summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-17 12:11:24 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-12-17 18:41:12 +0100
commita9e819aa5a4021c8e29dcdc8da3aae34963bdbfe (patch)
treeec314031dfb20c35656fbbe6370eb294fc71e09a /lib
parenta03dd65152775c93e939aedff58c09827d72357f (diff)
downloadbundler-a9e819aa5a4021c8e29dcdc8da3aae34963bdbfe.tar.gz
Add compatibility methods for `rubygems-bundler` gemfix_rubygems_bundler_integration
Hopefully `rvm` won't install this gem by default, but for now I'm adding the following two methods for compatibility with it.
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