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
515 515
    version = open(src) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~ s}} or next
516 516
    version = version.split(%r"=\s*", 2)[1].strip[/\A([\'\"])(.*?)\1/, 2]
517 517
    puts "#{" "*30}#{name} #{version}"
518
    open_for_install(File.join(destdir, "#{name}.gemspec"), $data_mode) do
518
    open_for_install(File.join(destdir, "#{name}-#{version}.gemspec"), $data_mode) do
519 519
      <<-GEMSPEC
520 520
Gem::Specification.new do |s|
521 521
  s.name = #{name.dump}