summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2024-05-30 19:05:39 +0200
committergit <svn-admin@ruby-lang.org>2024-06-06 18:44:35 +0000
commitc8161a4eae20a59f91b993d45952525844ed7e16 (patch)
tree795c70236f6000c2d4ce21779c84251588c94094 /lib
parent7b7d1586ee8c8e4bd73ab44798432099517cdde0 (diff)
[rubygems/rubygems] Autoload `pathname` at the top level
Otherwise Ruby >= 3.2 gives a warning which makes several specs fail, and truffleruby rejects it at all. https://github.com/rubygems/rubygems/commit/ae2878484f
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/shared_helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb
index 28f0cdff19..e55632b89f 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -4,14 +4,14 @@ require_relative "version"
require_relative "rubygems_integration"
require_relative "current_ruby"
+autoload :Pathname, "pathname"
+
module Bundler
autoload :WINDOWS, File.expand_path("constants", __dir__)
autoload :FREEBSD, File.expand_path("constants", __dir__)
autoload :NULL, File.expand_path("constants", __dir__)
module SharedHelpers
- autoload :Pathname, "pathname"
-
def root
gemfile = find_gemfile
raise GemfileNotFound, "Could not locate Gemfile" unless gemfile