diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-24 08:55:09 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-24 08:55:09 +0000 |
commit | d2172c8d190c60b4d218130df15a540ed7f72d35 (patch) | |
tree | f82ff67538350c351ba8db07af532c471cad908d | |
parent | 9c0f09dae0a4370f61e4fd3448eeca689810e5cc (diff) | |
download | ruby-d2172c8d190c60b4d218130df15a540ed7f72d35.tar.gz |
tool/downloader.rb: Made Unicode data file location available
via :unicode Symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tool/downloader.rb | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Sep 24 17:55:55 2014 Martin Duerst <duerst@it.aoyama.ac.jp> + + * tool/downloader.rb: Made Unicode data file location available + via :unicode Symbol. + Tue Sep 24 10:45:45 2014 Martin Duerst <duerst@it.aoyama.ac.jp> * tool/downloader.rb: Small fix to documentation comment. diff --git a/tool/downloader.rb b/tool/downloader.rb index 49205f5c26..88207f4c95 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -9,6 +9,10 @@ class Downloader "https://rubygems.org/downloads/#{name}" end + def self.unicode(name) + "http://www.unicode.org/Public/UCD/latest/ucd/#{name}" + end + def self.uri_to_download(url, name) from, url = url case from @@ -16,6 +20,8 @@ class Downloader url = gnu(url || name) when :rubygems, :gems url = rubygems(url || name) + when :unicode + url = unicode(url || name) when Symbol raise ArgumentError, "unkonwn site - #{from}" else |