lib/bundler/rubygems_integration.rb in bundler-1.1.0 vs lib/bundler/rubygems_integration.rb in bundler-1.1.1

- old
+ new

@@ -263,10 +263,19 @@ /^\d+$/ =~ s ? s.to_i : s end end end + # This backport fixes the marshaling of @segments. + def backport_yaml_initialize + Gem::Version.send(:define_method, :yaml_initialize) do |tag, map| + @version = map['version'] + @segments = nil + @hash = nil + end + end + # This backports base_dir which replaces installation path # Rubygems 1.8+ def backport_base_dir Gem::Specification.send(:define_method, :base_dir) do return Gem.dir unless loaded_from @@ -299,9 +308,10 @@ def initialize super backport_base_dir backport_cache_file backport_spec_file + backport_yaml_initialize end def stub_rubygems(specs) stub_source_index137(specs) end