ruby-changes:19704
From: nobu <ko1@a...>
Date: Fri, 27 May 2011 22:46:44 +0900 (JST)
Subject: [ruby-changes:19704] nobu:r31749 (trunk): * tool/rbinstall.rb (gem): install gemspec of json. fixed #4784
nobu 2011-05-27 22:46:25 +0900 (Fri, 27 May 2011) New Revision: 31749 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31749 Log: * tool/rbinstall.rb (gem): install gemspec of json. fixed #4784 Modified files: trunk/ChangeLog trunk/tool/rbinstall.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 31748) +++ ChangeLog (revision 31749) @@ -1,3 +1,7 @@ +Fri May 27 22:46:23 2011 Nobuyoshi Nakada <nobu@r...> + + * tool/rbinstall.rb (gem): install gemspec of json. fixed #4784 + Fri May 27 22:45:10 2011 Nobuyoshi Nakada <nobu@r...> * io.c (validate_enc_binmode): do not clear textmode flag if Index: tool/rbinstall.rb =================================================================== --- tool/rbinstall.rb (revision 31748) +++ tool/rbinstall.rb (revision 31749) @@ -544,12 +544,13 @@ destdir = File.join(gpath, directories.grep(/^spec/)[0]) default_gems = [ - ['rake', 'rake.rb'], - ['rdoc', 'rdoc.rb'], - ['minitest', 'minitest/unit.rb'], + ['rake', 'lib/rake.rb'], + ['rdoc', 'lib/rdoc.rb'], + ['minitest', 'lib/minitest/unit.rb'], + ['json', 'ext/json/lib/json/version.rb'], ] default_gems.each do |name, src| - src = File.join(srcdir, "lib", src) + src = File.join(srcdir, src) version = open(src) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~ s}} or next version = version.split(%r"=\s*", 2)[1].strip[/\A([\'\"])(.*?)\1/, 2] puts "#{" "*30}#{name} #{version}" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/