lib/bundler/rubygems_integration.rb in bundler-1.1.pre.7 vs lib/bundler/rubygems_integration.rb in bundler-1.1.pre.8
- old
+ new
@@ -258,11 +258,24 @@
/^\d+$/ =~ s ? s.to_i : s
end
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
+ installation_path
+ end
+ end
+
# Rubygems 1.4 through 1.6
class Legacy < RubygemsIntegration
+ def initialize
+ super
+ backport_base_dir
+ end
+
def stub_rubygems(specs)
stub_source_index137(specs)
end
def all_specs