summaryrefslogtreecommitdiff
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authorOlle Jonsson <olle.jonsson@gmail.com>2020-03-16 07:36:41 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 07:38:50 +0900
commitbb3d80bbbe0603e9f9689a96c7ce86682053b4dd (patch)
tree1749e52131452afe57f0cb0eed0c0c2cf8c86520 /lib/rubygems.rb
parent39322317f3442e71a997503059fb644f31e0ea3e (diff)
[rubygems/rubygems] Autoload name_tuple.rb before use
- Resolver asked Molinillo to resolve-then-activate, which led to using Gem::NameTuple before any require had been passed Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net> https://github.com/rubygems/rubygems/commit/e11782b0c8
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3087
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index bf9e92c..9c074a3 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -1307,6 +1307,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
autoload :DependencyList, File.expand_path('rubygems/dependency_list', __dir__)
autoload :Installer, File.expand_path('rubygems/installer', __dir__)
autoload :Licenses, File.expand_path('rubygems/util/licenses', __dir__)
+ autoload :NameTuple, File.expand_path('rubygems/name_tuple', __dir__)
autoload :PathSupport, File.expand_path('rubygems/path_support', __dir__)
autoload :Platform, File.expand_path('rubygems/platform', __dir__)
autoload :RequestSet, File.expand_path('rubygems/request_set', __dir__)