From d2172c8d190c60b4d218130df15a540ed7f72d35 Mon Sep 17 00:00:00 2001 From: duerst Date: Wed, 24 Sep 2014 08:55:09 +0000 Subject: 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 --- tool/downloader.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tool') 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 -- cgit v1.2.3