зеркало из https://github.com/github/ruby.git
* tool/rbinstall.rb (gem): install gemspec of json. fixed #4784
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b5bc09d234
Коммит
c5719d9a75
|
@ -1,3 +1,7 @@
|
|||
Fri May 27 22:46:23 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* tool/rbinstall.rb (gem): install gemspec of json. fixed #4784
|
||||
|
||||
Fri May 27 22:45:10 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (validate_enc_binmode): do not clear textmode flag if
|
||||
|
|
|
@ -544,12 +544,13 @@ install?(:ext, :comm, :gem) do
|
|||
|
||||
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}"
|
||||
|
|
Загрузка…
Ссылка в новой задаче