lib/bundler/rubygems_integration.rb in bundler-2.1.0 vs lib/bundler/rubygems_integration.rb in bundler-2.1.1
- old
+ new
@@ -523,9 +523,17 @@
redefine_method((class << Gem; self; end), :finish_resolve) do |*|
[]
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
fetcher.headers = { "X-Gemfile-Source" => remote.original_uri.to_s } if remote.original_uri
string = fetcher.fetch_path(path)