1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* tool/rbinstall.rb (install?): gemspec filename should include

its version. patched by Luis Lavena [ruby-core:32165]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2010-09-09 00:17:11 +00:00
parent 0787deb64c
commit 4d2787c67b
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Sep 9 09:02:01 2010 NARUSE, Yui <naruse@ruby-lang.org>
* tool/rbinstall.rb (install?): gemspec filename should include
its version. patched by Luis Lavena [ruby-core:32165]
Wed Sep 8 22:46:31 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
* ext/openssl/ossl_ssl.c (ssl_get_error): Thread context switch was

View file

@ -515,7 +515,7 @@ install?(:ext, :comm, :gem) do
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}"
open_for_install(File.join(destdir, "#{name}.gemspec"), $data_mode) do
open_for_install(File.join(destdir, "#{name}-#{version}.gemspec"), $data_mode) do
<<-GEMSPEC
Gem::Specification.new do |s|
s.name = #{name.dump}