diff options
-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 |