Bug #3805 ยป 0001-version-bundled-gems-during-installation.patch
tool/rbinstall.rb | ||
---|---|---|
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}
|