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 /spec/support | |
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 'spec/support')
-rw-r--r-- | spec/support/artifice/compact_index.rb | 2 | ||||
-rw-r--r-- | spec/support/artifice/endpoint.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/artifice/compact_index.rb b/spec/support/artifice/compact_index.rb index d59f59831b..38559e2e23 100644 --- a/spec/support/artifice/compact_index.rb +++ b/spec/support/artifice/compact_index.rb @@ -10,7 +10,7 @@ class CompactIndexAPI < Endpoint def load_spec(name, version, platform, gem_repo) full_name = "#{name}-#{version}" full_name += "-#{platform}" if platform != "ruby" - Marshal.load(Gem::Util.inflate(File.open(gem_repo.join("quick/Marshal.4.8/#{full_name}.gemspec.rz")).read)) + Marshal.load(Bundler.rubygems.inflate(File.open(gem_repo.join("quick/Marshal.4.8/#{full_name}.gemspec.rz")).read)) end def etag_response diff --git a/spec/support/artifice/endpoint.rb b/spec/support/artifice/endpoint.rb index 84dbcfd345..9a0cfae8a2 100644 --- a/spec/support/artifice/endpoint.rb +++ b/spec/support/artifice/endpoint.rb @@ -68,7 +68,7 @@ class Endpoint < Sinatra::Base def load_spec(name, version, platform, gem_repo) full_name = "#{name}-#{version}" full_name += "-#{platform}" if platform != "ruby" - Marshal.load(Gem::Util.inflate(File.open(gem_repo.join("quick/Marshal.4.8/#{full_name}.gemspec.rz")).read)) + Marshal.load(Bundler.rubygems.inflate(File.open(gem_repo.join("quick/Marshal.4.8/#{full_name}.gemspec.rz")).read)) end end |