diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-11 11:02:35 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-03 09:29:58 +0900 |
commit | a181df75429a3c3db2eef387f7476b18c3893615 (patch) | |
tree | 1b8bca70f81bc6511b374f2e9eafbc09169722fe /lib/bundler/rubygems_integration.rb | |
parent | f399a2b7964dac890fd08bd78b62fbe8313319ea (diff) |
[bundler/bundler] No need to make `Gem.refresh` a noop
The rubygems integration sets up a `post_reset` hook that resets the
specs back to what bundler knows after `Gem::Specification.reset` is
called (which is what `Gem.refresh` calls under the hood).
https://github.com/bundler/bundler/commit/3810f9945c
Diffstat (limited to 'lib/bundler/rubygems_integration.rb')
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 734ac91bd9..15771e6c0a 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -441,13 +441,6 @@ module Bundler end end - # Because Bundler has a static view of what specs are available, - # we don't #refresh, so stub it out. - def replace_refresh - gem_class = (class << Gem; self; end) - redefine_method(gem_class, :refresh) {} - end - # Replace or hook into RubyGems to provide a bundlerized view # of the world. def replace_entrypoints(specs) @@ -468,7 +461,6 @@ module Bundler replace_gem(specs, specs_by_name) stub_rubygems(specs) replace_bin_path(specs_by_name) - replace_refresh Gem.clear_paths end |