diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-05-30 21:48:49 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-06-01 17:07:35 +0900 |
commit | 0a6b9924bd1b45bd8ad29b1eb3c8a65835f5864d (patch) | |
tree | ffb32bcc5d35495ca7b9255fbe40004e9f375b21 /lib | |
parent | f5b88d93ae58dd8a956782f08a435e452f5eba12 (diff) | |
download | ruby-0a6b9924bd1b45bd8ad29b1eb3c8a65835f5864d.tar.gz |
[rubygems/rubygems] Fix generated standalone script for default gems
The installer is actually rewriting the spec's full gem path to be the
one of the newly installed gem, however the accessor was not properly
working for `StubSpecification` instances, and default gems are always
of this type, because they are always present locally.
Fix the accessor to properly update the underlying full specification.
https://github.com/rubygems/rubygems/commit/efa41babfa
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/stub_specification.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/stub_specification.rb b/lib/bundler/stub_specification.rb index 4a23b2cfe8..88a4257fa4 100644 --- a/lib/bundler/stub_specification.rb +++ b/lib/bundler/stub_specification.rb @@ -67,6 +67,10 @@ module Bundler stub.full_gem_path end + def full_gem_path=(path) + stub.full_gem_path = path + end + def full_require_paths stub.full_require_paths end |