ruby-changes:35623
From: duerst <ko1@a...>
Date: Wed, 24 Sep 2014 17:55:24 +0900 (JST)
Subject: [ruby-changes:35623] duerst:r47705 (trunk): tool/downloader.rb: Made Unicode data file location available
duerst 2014-09-24 17:55:09 +0900 (Wed, 24 Sep 2014) New Revision: 47705 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47705 Log: tool/downloader.rb: Made Unicode data file location available via :unicode Symbol. Modified files: trunk/ChangeLog trunk/tool/downloader.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 47704) +++ ChangeLog (revision 47705) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Sep 24 17:55:55 2014 Martin Duerst <duerst@i...> + + * tool/downloader.rb: Made Unicode data file location available + via :unicode Symbol. + Tue Sep 24 10:45:45 2014 Martin Duerst <duerst@i...> * tool/downloader.rb: Small fix to documentation comment. Index: tool/downloader.rb =================================================================== --- tool/downloader.rb (revision 47704) +++ tool/downloader.rb (revision 47705) @@ -9,6 +9,10 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L9 "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 https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L20 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/