summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2024-10-07 22:33:53 +0200
committergit <svn-admin@ruby-lang.org>2024-10-09 10:07:11 +0000
commit48410af53c83a0c351004c5f661571108f84391b (patch)
tree1ecf634e5871408a8bda3b490931c2f33075bad7 /include/ruby
parent5eee2698661eb4d6afbfd6db4a3e6318b5eefad1 (diff)
[rubygems/rubygems] Fix a `gem install` crash during "done installing" hooks
It would happen when the gem is already installed to multiple GEM_PATHS. RubyGems was removing duplicate specs without considering the potentially different `base_dir`. That was causing the gem to be misidentified as not already installed, and a nil specification getting returned from the installer as a result, causing the crash. Solve it by making sure `Gem::Specification.all` really iterates through all the different specifications in all GEM_PATHs. https://github.com/rubygems/rubygems/commit/0d8c208f65
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions