summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2024-07-18 13:02:48 +0200
committergit <[email protected]>2024-07-18 18:07:09 +0000
commitc9d2343f5c331792bcf46484c8203589a13cfb3c (patch)
treeac7ec9ea0e900324c0938ee9edd974ad0f87eb27 /lib
parentbb9a9f31ca78f7fbc7084ae4d7b7eb4fc418577a (diff)
[rubygems/rubygems] Fix incorrect standalone script when default gems with extensions are used
https://github.com/rubygems/rubygems/commit/55649cd09b
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/source/rubygems.rb1
-rw-r--r--lib/bundler/stub_specification.rb8
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb
index df458629df..1085fdc2d8 100644
--- a/lib/bundler/source/rubygems.rb
+++ b/lib/bundler/source/rubygems.rb
@@ -206,6 +206,7 @@ module Bundler
spec.full_gem_path = installed_spec.full_gem_path
spec.loaded_from = installed_spec.loaded_from
+ spec.base_dir = installed_spec.base_dir
spec.post_install_message
end
diff --git a/lib/bundler/stub_specification.rb b/lib/bundler/stub_specification.rb
index da830cf8d4..1cbb506ef9 100644
--- a/lib/bundler/stub_specification.rb
+++ b/lib/bundler/stub_specification.rb
@@ -77,6 +77,14 @@ module Bundler
stub.full_require_paths
end
+ def require_paths
+ stub.require_paths
+ end
+
+ def base_dir=(path)
+ stub.base_dir = path
+ end
+
def load_paths
full_require_paths
end