diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2018-03-10 15:41:51 -0800 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2018-03-10 15:41:51 -0800 |
commit | a5130824dea64200e28fd3a2886016ac1001b1d0 (patch) | |
tree | 6597a955ac4fa075167f1a013a41c9c6cf1c1749 /lib/bundler/fetcher | |
parent | 007a1737f3d3ba678bc78d3fa101d61b3d6892db (diff) | |
download | bundler-a5130824dea64200e28fd3a2886016ac1001b1d0.tar.gz |
Use Bundler.rubygems.inflate instead of the Gem::Util method directlysegiddins/use-rubygems-integration-inflate
Diffstat (limited to 'lib/bundler/fetcher')
-rw-r--r-- | lib/bundler/fetcher/index.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/fetcher/index.rb b/lib/bundler/fetcher/index.rb index 19b37ee548..1a8064624d 100644 --- a/lib/bundler/fetcher/index.rb +++ b/lib/bundler/fetcher/index.rb @@ -29,11 +29,11 @@ module Bundler uri = URI.parse("#{remote_uri}#{Gem::MARSHAL_SPEC_DIR}#{spec_file_name}.rz") if uri.scheme == "file" - Bundler.load_marshal Gem::Util.inflate(Gem.read_binary(uri.path)) + Bundler.load_marshal Bundler.rubygems.inflate(Gem.read_binary(uri.path)) elsif cached_spec_path = gemspec_cached_path(spec_file_name) Bundler.load_gemspec(cached_spec_path) else - Bundler.load_marshal Gem::Util.inflate(downloader.fetch(uri).body) + Bundler.load_marshal Bundler.rubygems.inflate(downloader.fetch(uri).body) end rescue MarshalError raise HTTPError, "Gemspec #{spec} contained invalid data.\n" \ |