Project

General

Profile

Bug #3805 ยป 0001-version-bundled-gems-during-installation.patch

luislavena (Luis Lavena), 09/09/2010 02:40 AM

View differences:

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}
    (1-1/1)