summaryrefslogtreecommitdiff
path: root/lib/rubygems/core_ext
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-04-25 11:48:40 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-17 07:35:48 +0900
commit3587824d710ffcfd1270be0a354a770a49312b6f (patch)
tree7b446b5cff5b8e06bc28e386afeed6abae8dbb3b /lib/rubygems/core_ext
parent1ac6890bd05a48e385f564d212765a3a60899659 (diff)
[rubygems/rubygems] Don't unregister default specifications
I think this should be more efficient? https://github.com/rubygems/rubygems/commit/a1de78104f
Diffstat (limited to 'lib/rubygems/core_ext')
-rwxr-xr-xlib/rubygems/core_ext/kernel_require.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/rubygems/core_ext/kernel_require.rb b/lib/rubygems/core_ext/kernel_require.rb
index 5656524..7407c02 100755
--- a/lib/rubygems/core_ext/kernel_require.rb
+++ b/lib/rubygems/core_ext/kernel_require.rb
@@ -57,7 +57,6 @@ module Kernel
end
if spec = Gem.find_unresolved_default_spec(path)
- Gem.remove_unresolved_default_spec(spec)
begin
Kernel.send(:gem, spec.name, "#{Gem::Requirement.default}.a")
rescue Exception