diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-03-01 12:38:43 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-03-01 12:38:43 +0900 |
commit | 9448fc8c37eb9f867f352c3085f20994c7726fa9 (patch) | |
tree | 1cc0e339bd8e4160c83807d25d0f780be50aad91 /spec/support | |
parent | c4fc79a2bfed38335a3371300bea49286a371d83 (diff) | |
download | bundler-9448fc8c37eb9f867f352c3085f20994c7726fa9.tar.gz |
Use Gem::Util.inflate instead of Gem.inflateupdate-deprecated-methods
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 434307576f..d59f59831b 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.inflate(File.open(gem_repo.join("quick/Marshal.4.8/#{full_name}.gemspec.rz")).read)) + Marshal.load(Gem::Util.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 9afecff8e6..84dbcfd345 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.inflate(File.open(gem_repo.join("quick/Marshal.4.8/#{full_name}.gemspec.rz")).read)) + Marshal.load(Gem::Util.inflate(File.open(gem_repo.join("quick/Marshal.4.8/#{full_name}.gemspec.rz")).read)) end end |