summaryrefslogtreecommitdiff
path: root/tool/downloader.rb
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-24 08:55:09 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-24 08:55:09 +0000
commitd2172c8d190c60b4d218130df15a540ed7f72d35 (patch)
treef82ff67538350c351ba8db07af532c471cad908d /tool/downloader.rb
parent9c0f09dae0a4370f61e4fd3448eeca689810e5cc (diff)
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
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r--tool/downloader.rb6
1 files changed, 6 insertions, 0 deletions
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