summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-12-17 20:52:51 +0000
committerBundlerbot <bot@bundler.io>2019-12-17 20:52:51 +0000
commitf3f34bc5e62c513190f7608edab5818414ee9669 (patch)
treec34cc485e37fbe0c9b58d56df3ad55c07b1bccc4 /lib
parentb932700858f058c88c2f927c1fd61f7669b8a5c6 (diff)
parenta9e819aa5a4021c8e29dcdc8da3aae34963bdbfe (diff)
downloadbundler-f3f34bc5e62c513190f7608edab5818414ee9669.tar.gz
Merge #7498
7498: Add compatibility methods for `rubygems-bundler` gem r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that `bundler install` on a `ruby` installation using `rvm` is broken by default. ### What was your diagnosis of the problem? My diagnosis was that during 2.1.0 development phase I removed some stuff I thought it was internal and nobody would be using. ### What is your fix for the problem, implemented in this PR? My fix is to restore a minimal compatibility layer so that this stuff works again. ### Why did you choose this fix out of the possible options? I chose this fix because I think this is the minimum set of additions that gets stuff working again. Fixes #7488. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/rubygems_integration.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index 3ca1831dee..17f2d7d9fa 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -496,6 +496,14 @@ module Bundler
end
end
+ def plain_specs
+ Gem::Specification._all
+ end
+
+ def plain_specs=(specs)
+ Gem::Specification.all = specs
+ end
+
def fetch_specs(remote, name)
path = remote.uri.to_s + "#{name}.#{Gem.marshal_version}.gz"
fetcher = gem_remote_fetcher