1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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
This commit is contained in:
Karol Bucek 2020-06-22 23:15:45 +02:00 committed by Hiroshi SHIBATA
parent c3b480b776
commit e7b6e0ff58
Notes: git 2020-07-31 21:08:28 +09:00
7 changed files with 0 additions and 13 deletions

View file

@ -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'

View file

@ -2,9 +2,6 @@
##
# The Dependency class holds a Gem name and a Gem::Requirement.
require "rubygems/bundler_version_finder"
require "rubygems/requirement"
class Gem::Dependency
##
# Valid dependency types.

View file

@ -7,7 +7,6 @@
require 'rubygems'
require 'rubygems/command_manager'
require 'rubygems/config_file'
require 'rubygems/deprecate'
##

View file

@ -4,8 +4,6 @@
# Represents a gem of name +name+ at +version+ of +platform+. These
# wrap the data returned from the indexes.
require 'rubygems/platform'
class Gem::NameTuple
def initialize(name, version, platform="ruby")
@name = name

View file

@ -43,7 +43,6 @@
require "rubygems"
require 'rubygems/security'
require 'rubygems/specification'
require 'rubygems/user_interaction'
require 'zlib'

View file

@ -1,5 +1,4 @@
# frozen_string_literal: true
require "rubygems/version"
require "rubygems/deprecate"
##

View file

@ -6,9 +6,6 @@
# See LICENSE.txt for permissions.
#++
require 'rubygems/version'
require 'rubygems/requirement'
require 'rubygems/platform'
require 'rubygems/deprecate'
require 'rubygems/basic_specification'
require 'rubygems/stub_specification'