summaryrefslogtreecommitdiff
path: root/lib/bundler/rubygems_integration.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-05-28 11:41:47 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-03 09:29:55 +0900
commit51bdc9433b92b60806ac535e291bf3fffd243e47 (patch)
tree01aaa998679b994a6cd1eb50dfec80736f6ef463 /lib/bundler/rubygems_integration.rb
parent81779e22469d89c38ee653e3de032144af0891f7 (diff)
[bundler/bundler] Normalize usages of `Gem::Util` in rubygems integration
https://github.com/bundler/bundler/commit/b35d7fc74a
Diffstat (limited to 'lib/bundler/rubygems_integration.rb')
-rw-r--r--lib/bundler/rubygems_integration.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index 3e74acf694..734ac91bd9 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -139,11 +139,9 @@ module Bundler
end
def inflate(obj)
- if defined?(Gem::Util)
- Gem::Util.inflate(obj)
- else
- Gem.inflate(obj)
- end
+ require "rubygems/util"
+
+ Gem::Util.inflate(obj)
end
def correct_for_windows_path(path)