diff options
author | Karol Bucek <kares@users.noreply.github.com> | 2020-06-22 23:15:45 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-07-31 21:07:19 +0900 |
commit | e7b6e0ff5823c422cd3e508d2b7104a91a2e36f6 (patch) | |
tree | 7fa2e7037eeaee1a7fc79225c61fecbbc2fd4b35 /lib/rubygems.rb | |
parent | c3b480b7764e7854b42c212e77a0ffe402dba6cb (diff) |
[rubygems/rubygems] remove explicit require(s) for auto-loaded constant(s)
the Gem module's auto-loads will handle loading these as needed,
this started as a redundancy found in *rubygems.rb* which had:
`autoload :Specification, 'rubygems/specification'` as well as
`require 'rubygems/specification'`
https://github.com/rubygems/rubygems/commit/43ceae7ac0
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3379
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 68b50611da..75122ed088 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -1333,8 +1333,6 @@ An Array (#{env.inspect}) was passed in from #{caller[3]} autoload :Specification, File.expand_path('rubygems/specification', __dir__) autoload :Util, File.expand_path('rubygems/util', __dir__) autoload :Version, File.expand_path('rubygems/version', __dir__) - - require "rubygems/specification" end require 'rubygems/exceptions' |