Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bdb4a3688987^
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8a8cf027cf99
Choose a head ref
  • 2 commits
  • 171 files changed
  • 1 contributor

Commits on Mar 10, 2016

  1. Copy the full SHA
    bdb4a36 View commit details
  2. Copy the full SHA
    8a8cf02 View commit details
Showing with 3,114 additions and 1,289 deletions.
  1. +106 −26 lib/ruby/stdlib/rubygems.rb
  2. +1 −0 lib/ruby/stdlib/rubygems/available_set.rb
  3. +91 −53 lib/ruby/stdlib/rubygems/basic_specification.rb
  4. +15 −3 lib/ruby/stdlib/rubygems/command.rb
  5. +1 −0 lib/ruby/stdlib/rubygems/command_manager.rb
  6. +5 −0 lib/ruby/stdlib/rubygems/commands/build_command.rb
  7. +1 −0 lib/ruby/stdlib/rubygems/commands/cert_command.rb
  8. +1 −0 lib/ruby/stdlib/rubygems/commands/check_command.rb
  9. +9 −3 lib/ruby/stdlib/rubygems/commands/cleanup_command.rb
  10. +1 −0 lib/ruby/stdlib/rubygems/commands/contents_command.rb
  11. +28 −17 lib/ruby/stdlib/rubygems/commands/dependency_command.rb
  12. +5 −3 lib/ruby/stdlib/rubygems/commands/environment_command.rb
  13. +1 −0 lib/ruby/stdlib/rubygems/commands/fetch_command.rb
  14. +1 −0 lib/ruby/stdlib/rubygems/commands/generate_index_command.rb
  15. +1 −10 lib/ruby/stdlib/rubygems/commands/help_command.rb
  16. +3 −1 lib/ruby/stdlib/rubygems/commands/install_command.rb
  17. +3 −2 lib/ruby/stdlib/rubygems/commands/list_command.rb
  18. +1 −0 lib/ruby/stdlib/rubygems/commands/lock_command.rb
  19. +1 −0 lib/ruby/stdlib/rubygems/commands/mirror_command.rb
  20. +5 −0 lib/ruby/stdlib/rubygems/commands/open_command.rb
  21. +1 −0 lib/ruby/stdlib/rubygems/commands/outdated_command.rb
  22. +1 −0 lib/ruby/stdlib/rubygems/commands/owner_command.rb
  23. +12 −1 lib/ruby/stdlib/rubygems/commands/pristine_command.rb
  24. +8 −3 lib/ruby/stdlib/rubygems/commands/push_command.rb
  25. +13 −6 lib/ruby/stdlib/rubygems/commands/query_command.rb
  26. +1 −0 lib/ruby/stdlib/rubygems/commands/rdoc_command.rb
  27. +1 −0 lib/ruby/stdlib/rubygems/commands/search_command.rb
  28. +1 −0 lib/ruby/stdlib/rubygems/commands/server_command.rb
  29. +1 −0 lib/ruby/stdlib/rubygems/commands/setup_command.rb
  30. +2 −1 lib/ruby/stdlib/rubygems/commands/sources_command.rb
  31. +1 −0 lib/ruby/stdlib/rubygems/commands/specification_command.rb
  32. +1 −0 lib/ruby/stdlib/rubygems/commands/stale_command.rb
  33. +1 −0 lib/ruby/stdlib/rubygems/commands/uninstall_command.rb
  34. +1 −0 lib/ruby/stdlib/rubygems/commands/unpack_command.rb
  35. +4 −2 lib/ruby/stdlib/rubygems/commands/update_command.rb
  36. +1 −0 lib/ruby/stdlib/rubygems/commands/which_command.rb
  37. +11 −15 lib/ruby/stdlib/rubygems/commands/yank_command.rb
  38. +1 −0 lib/ruby/stdlib/rubygems/compatibility.rb
  39. +21 −10 lib/ruby/stdlib/rubygems/config_file.rb
  40. +1 −0 lib/ruby/stdlib/rubygems/core_ext/kernel_gem.rb
  41. +4 −5 lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb
  42. +1 −0 lib/ruby/stdlib/rubygems/defaults.rb
  43. +1 −1 lib/ruby/stdlib/rubygems/defaults/jruby.rb
  44. +20 −14 lib/ruby/stdlib/rubygems/dependency.rb
  45. +1 −0 lib/ruby/stdlib/rubygems/dependency_installer.rb
  46. +4 −0 lib/ruby/stdlib/rubygems/dependency_list.rb
  47. +1 −0 lib/ruby/stdlib/rubygems/deprecate.rb
  48. +1 −0 lib/ruby/stdlib/rubygems/doctor.rb
  49. +1 −0 lib/ruby/stdlib/rubygems/errors.rb
  50. +2 −2 lib/ruby/stdlib/rubygems/exceptions.rb
  51. +1 −0 lib/ruby/stdlib/rubygems/ext.rb
  52. +1 −0 lib/ruby/stdlib/rubygems/ext/build_error.rb
  53. +3 −0 lib/ruby/stdlib/rubygems/ext/builder.rb
  54. +1 −0 lib/ruby/stdlib/rubygems/ext/cmake_builder.rb
  55. +1 −0 lib/ruby/stdlib/rubygems/ext/configure_builder.rb
  56. +21 −5 lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb
  57. +1 −0 lib/ruby/stdlib/rubygems/ext/rake_builder.rb
  58. +1 −0 lib/ruby/stdlib/rubygems/gem_runner.rb
  59. +18 −4 lib/ruby/stdlib/rubygems/gemcutter_utilities.rb
  60. +27 −91 lib/ruby/stdlib/rubygems/indexer.rb
  61. +1 −0 lib/ruby/stdlib/rubygems/install_default_message.rb
  62. +1 −0 lib/ruby/stdlib/rubygems/install_message.rb
  63. +7 −0 lib/ruby/stdlib/rubygems/install_update_options.rb
  64. +74 −34 lib/ruby/stdlib/rubygems/installer.rb
  65. +5 −2 lib/ruby/stdlib/rubygems/installer_test_case.rb
  66. +2 −1 lib/ruby/stdlib/rubygems/local_remote_options.rb
  67. +1 −0 lib/ruby/stdlib/rubygems/mock_gem_ui.rb
  68. +2 −1 lib/ruby/stdlib/rubygems/name_tuple.rb
  69. +20 −7 lib/ruby/stdlib/rubygems/package.rb
  70. +1 −0 lib/ruby/stdlib/rubygems/package/digest_io.rb
  71. +1 −0 lib/ruby/stdlib/rubygems/package/file_source.rb
  72. +1 −0 lib/ruby/stdlib/rubygems/package/io_source.rb
  73. +6 −6 lib/ruby/stdlib/rubygems/package/old.rb
  74. +1 −0 lib/ruby/stdlib/rubygems/package/source.rb
  75. +1 −1 lib/ruby/stdlib/rubygems/package/tar_header.rb
  76. +1 −1 lib/ruby/stdlib/rubygems/package/tar_reader.rb
  77. +8 −1 lib/ruby/stdlib/rubygems/package/tar_reader/entry.rb
  78. +13 −3 lib/ruby/stdlib/rubygems/package/tar_test_case.rb
  79. +20 −1 lib/ruby/stdlib/rubygems/package/tar_writer.rb
  80. +1 −0 lib/ruby/stdlib/rubygems/package_task.rb
  81. +25 −25 lib/ruby/stdlib/rubygems/path_support.rb
  82. +4 −2 lib/ruby/stdlib/rubygems/platform.rb
  83. +1 −0 lib/ruby/stdlib/rubygems/psych_additions.rb
  84. +1 −0 lib/ruby/stdlib/rubygems/psych_tree.rb
  85. +2 −2 lib/ruby/stdlib/rubygems/rdoc.rb
  86. +26 −6 lib/ruby/stdlib/rubygems/remote_fetcher.rb
  87. +7 −3 lib/ruby/stdlib/rubygems/request.rb
  88. +9 −4 lib/ruby/stdlib/rubygems/request/connection_pools.rb
  89. +1 −0 lib/ruby/stdlib/rubygems/request/http_pool.rb
  90. +1 −0 lib/ruby/stdlib/rubygems/request/https_pool.rb
  91. +16 −11 lib/ruby/stdlib/rubygems/request_set.rb
  92. +56 −8 lib/ruby/stdlib/rubygems/request_set/gem_dependency_api.rb
  93. +4 −4 lib/ruby/stdlib/rubygems/request_set/lockfile.rb
  94. +72 −52 lib/ruby/stdlib/rubygems/request_set/lockfile/parser.rb
  95. +17 −13 lib/ruby/stdlib/rubygems/request_set/lockfile/tokenizer.rb
  96. +4 −3 lib/ruby/stdlib/rubygems/requirement.rb
  97. +49 −242 lib/ruby/stdlib/rubygems/resolver.rb
  98. +20 −6 lib/ruby/stdlib/rubygems/resolver/activation_request.rb
  99. +1 −0 lib/ruby/stdlib/rubygems/resolver/api_set.rb
  100. +1 −0 lib/ruby/stdlib/rubygems/resolver/api_specification.rb
  101. +1 −0 lib/ruby/stdlib/rubygems/resolver/best_set.rb
  102. +1 −0 lib/ruby/stdlib/rubygems/resolver/composed_set.rb
  103. +1 −1 lib/ruby/stdlib/rubygems/resolver/conflict.rb
  104. +1 −0 lib/ruby/stdlib/rubygems/resolver/current_set.rb
  105. +5 −1 lib/ruby/stdlib/rubygems/resolver/dependency_request.rb
  106. +1 −0 lib/ruby/stdlib/rubygems/resolver/git_set.rb
  107. +2 −2 lib/ruby/stdlib/rubygems/resolver/git_specification.rb
  108. +1 −0 lib/ruby/stdlib/rubygems/resolver/index_set.rb
  109. +1 −0 lib/ruby/stdlib/rubygems/resolver/index_specification.rb
  110. +1 −0 lib/ruby/stdlib/rubygems/resolver/installed_specification.rb
  111. +9 −4 lib/ruby/stdlib/rubygems/resolver/installer_set.rb
  112. +1 −0 lib/ruby/stdlib/rubygems/resolver/local_specification.rb
  113. +4 −5 lib/ruby/stdlib/rubygems/resolver/lock_set.rb
  114. +6 −2 lib/ruby/stdlib/rubygems/resolver/lock_specification.rb
  115. +2 −0 lib/ruby/stdlib/rubygems/resolver/molinillo.rb
  116. +10 −0 lib/ruby/stdlib/rubygems/resolver/molinillo/lib/molinillo.rb
  117. +291 −0 lib/ruby/stdlib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb
  118. +75 −0 lib/ruby/stdlib/rubygems/resolver/molinillo/lib/molinillo/errors.rb
  119. +5 −0 lib/ruby/stdlib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb
  120. +100 −0 lib/ruby/stdlib/rubygems/resolver/molinillo/lib/molinillo/modules/specification_provider.rb
  121. +65 −0 lib/ruby/stdlib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb
  122. +459 −0 lib/ruby/stdlib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb
  123. +45 −0 lib/ruby/stdlib/rubygems/resolver/molinillo/lib/molinillo/resolver.rb
  124. +52 −0 lib/ruby/stdlib/rubygems/resolver/molinillo/lib/molinillo/state.rb
  125. +1 −0 lib/ruby/stdlib/rubygems/resolver/requirement_list.rb
  126. +1 −0 lib/ruby/stdlib/rubygems/resolver/set.rb
  127. +48 −0 lib/ruby/stdlib/rubygems/resolver/source_set.rb
  128. +1 −0 lib/ruby/stdlib/rubygems/resolver/spec_specification.rb
  129. +2 −1 lib/ruby/stdlib/rubygems/resolver/specification.rb
  130. +1 −0 lib/ruby/stdlib/rubygems/resolver/stats.rb
  131. +1 −0 lib/ruby/stdlib/rubygems/resolver/vendor_set.rb
  132. +1 −0 lib/ruby/stdlib/rubygems/resolver/vendor_specification.rb
  133. +3 −2 lib/ruby/stdlib/rubygems/security.rb
  134. +1 −0 lib/ruby/stdlib/rubygems/security/policies.rb
  135. +2 −2 lib/ruby/stdlib/rubygems/security/policy.rb
  136. +1 −0 lib/ruby/stdlib/rubygems/security/signer.rb
  137. +1 −0 lib/ruby/stdlib/rubygems/security/trust_dir.rb
  138. +1 −0 lib/ruby/stdlib/rubygems/server.rb
  139. +1 −0 lib/ruby/stdlib/rubygems/source.rb
  140. +1 −0 lib/ruby/stdlib/rubygems/source/git.rb
  141. +1 −0 lib/ruby/stdlib/rubygems/source/installed.rb
  142. +1 −0 lib/ruby/stdlib/rubygems/source/local.rb
  143. +1 −0 lib/ruby/stdlib/rubygems/source/lock.rb
  144. +1 −0 lib/ruby/stdlib/rubygems/source/specific_file.rb
  145. +1 −0 lib/ruby/stdlib/rubygems/source/vendor.rb
  146. +3 −2 lib/ruby/stdlib/rubygems/source_list.rb
  147. +1 −0 lib/ruby/stdlib/rubygems/source_local.rb
  148. +1 −0 lib/ruby/stdlib/rubygems/source_specific_file.rb
  149. +1 −0 lib/ruby/stdlib/rubygems/spec_fetcher.rb
  150. +324 −103 lib/ruby/stdlib/rubygems/specification.rb
  151. +0 −35 lib/ruby/stdlib/rubygems/ssl_certs/COMODORSACertificationAuthority.pem
  152. +0 −31 lib/ruby/stdlib/rubygems/ssl_certs/COMODORSADomainValidationSecureServer.pem
  153. +0 −90 lib/ruby/stdlib/rubygems/ssl_certs/Entrust_net-Secure-Server-Certification-Authority.pem
  154. +0 −20 lib/ruby/stdlib/rubygems/ssl_certs/GeoTrust_Global_CA.pem
  155. +0 −57 lib/ruby/stdlib/rubygems/ssl_certs/VerisignClass3PublicPrimaryCertificationAuthority-G2.pem
  156. +94 −75 lib/ruby/stdlib/rubygems/stub_specification.rb
  157. +1 −0 lib/ruby/stdlib/rubygems/syck_hack.rb
  158. +90 −32 lib/ruby/stdlib/rubygems/test_case.rb
  159. +19 −18 lib/ruby/stdlib/rubygems/test_utilities.rb
  160. +1 −3 lib/ruby/stdlib/rubygems/text.rb
  161. +2 −1 lib/ruby/stdlib/rubygems/uninstaller.rb
  162. +1 −0 lib/ruby/stdlib/rubygems/uri_formatter.rb
  163. +1 −0 lib/ruby/stdlib/rubygems/user_interaction.rb
  164. +5 −4 lib/ruby/stdlib/rubygems/util.rb
  165. +343 −0 lib/ruby/stdlib/rubygems/util/licenses.rb
  166. +10 −21 lib/ruby/stdlib/rubygems/util/list.rb
  167. +0 −34 lib/ruby/stdlib/rubygems/util/stringio.rb
  168. +1 −0 lib/ruby/stdlib/rubygems/validator.rb
  169. +44 −26 lib/ruby/stdlib/rubygems/version.rb
  170. +1 −0 lib/ruby/stdlib/rubygems/version_option.rb
  171. +1 −0 lib/ruby/stdlib/ubygems.rb
132 changes: 106 additions & 26 deletions lib/ruby/stdlib/rubygems.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
# -*- ruby -*-
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
@@ -9,7 +10,7 @@
require 'thread'

module Gem
VERSION = '2.4.8'
VERSION = '2.6.1'
end

# Must be first since it unloads the prelude from 1.9.2
@@ -26,12 +27,12 @@ module Gem
# For user documentation, see:
#
# * <tt>gem help</tt> and <tt>gem help [command]</tt>
# * {RubyGems User Guide}[http://docs.rubygems.org/read/book/1]
# * {Frequently Asked Questions}[http://docs.rubygems.org/read/book/3]
# * {RubyGems User Guide}[http://guides.rubygems.org/]
# * {Frequently Asked Questions}[http://guides.rubygems.org/faqs]
#
# For gem developer documentation see:
#
# * {Creating Gems}[http://docs.rubygems.org/read/chapter/5]
# * {Creating Gems}[http://guides.rubygems.org/make-your-own-gem]
# * Gem::Specification
# * Gem::Version for version dependency notes
#
@@ -156,6 +157,7 @@ module Gem
@@win_platform = nil

@configuration = nil
@gemdeps = nil
@loaded_specs = {}
LOADED_SPECS_MUTEX = Mutex.new
@path_to_default_spec_map = {}
@@ -184,18 +186,19 @@ def self.try_activate path
# or if it was ambiguous (and thus unresolved) the code in our custom
# require will try to activate the more specific version.

spec = Gem::Specification.find_inactive_by_path path

unless spec
spec = Gem::Specification.find_by_path path
return true if spec && spec.activated?
return false
end
spec = Gem::Specification.find_by_path path
return false unless spec
return true if spec.activated?

begin
spec.activate
rescue Gem::LoadError # this could fail due to gem dep collisions, go lax
Gem::Specification.find_by_name(spec.name).activate
rescue Gem::LoadError => e # this could fail due to gem dep collisions, go lax
spec_by_name = Gem::Specification.find_by_name(spec.name)
if spec_by_name.nil?
raise e
else
spec_by_name.activate
end
end

return true
@@ -232,16 +235,20 @@ def self.bin_path(name, exec_name = nil, *requirements)
requirements = Gem::Requirement.default if
requirements.empty?

find_spec_for_exe(name, exec_name, requirements).bin_file exec_name
end

def self.find_spec_for_exe name, exec_name, requirements
dep = Gem::Dependency.new name, requirements

loaded = Gem.loaded_specs[name]

return loaded.bin_file exec_name if loaded && dep.matches_spec?(loaded)
return loaded if loaded && dep.matches_spec?(loaded)

specs = dep.matching_specs(true)

raise Gem::GemNotFoundException,
"can't find gem #{name} (#{requirements})" if specs.empty?
"can't find gem #{dep}" if specs.empty?

specs = specs.find_all { |spec|
spec.executables.include? exec_name
@@ -252,6 +259,24 @@ def self.bin_path(name, exec_name = nil, *requirements)
raise Gem::GemNotFoundException, msg
end

spec
end
private_class_method :find_spec_for_exe

##
# Find the full path to the executable for gem +name+. If the +exec_name+
# is not given, the gem's default_executable is chosen, otherwise the
# specified executable's path is returned. +requirements+ allows
# you to specify specific gem versions.
#
# A side effect of this method is that it will activate the gem that
# contains the executable.
#
# This method should *only* be used in bin stub files.

def self.activate_bin_path name, exec_name, requirement # :nodoc:
spec = find_spec_for_exe name, exec_name, [requirement]
Gem::LOADED_SPECS_MUTEX.synchronize { spec.activate }
spec.bin_file exec_name
end

@@ -310,11 +335,10 @@ def self.configuration=(config)
# package is not available as a gem, return nil.

def self.datadir(gem_name)
# TODO: deprecate and move to Gem::Specification
# and drop the extra ", gem_name" which is uselessly redundant
# TODO: deprecate
spec = @loaded_specs[gem_name]
return nil if spec.nil?
File.join spec.full_gem_path, "data", gem_name
spec.datadir
end

##
@@ -329,16 +353,38 @@ def self.deflate(data)
# lookup files.

def self.paths
@paths ||= Gem::PathSupport.new
@paths ||= Gem::PathSupport.new(ENV)
end

# Initialize the filesystem paths to use from +env+.
# +env+ is a hash-like object (typically ENV) that
# is queried for 'GEM_HOME', 'GEM_PATH', and 'GEM_SPEC_CACHE'
# Keys for the +env+ hash should be Strings, and values of the hash should
# be Strings or +nil+.

def self.paths=(env)
clear_paths
@paths = Gem::PathSupport.new env
target = {}
env.each_pair do |k,v|
case k
when 'GEM_HOME', 'GEM_PATH', 'GEM_SPEC_CACHE'
case v
when nil, String
target[k] = v
when Array
unless Gem::Deprecate.skip
warn <<-eowarn
Array values in the parameter are deprecated. Please use a String or nil.
An Array was passed in from #{caller[3]}
eowarn
end
target[k] = v.join File::PATH_SEPARATOR
end
else
target[k] = v
end
end
@paths = Gem::PathSupport.new ENV.to_hash.merge(target)
Gem::Specification.dirs = @paths.path
end

@@ -433,7 +479,9 @@ def self.find_files(glob, check_load_path=true)

files = find_files_from_load_path glob if check_load_path

files.concat Gem::Specification.map { |spec|
gem_specifications = @gemdeps ? Gem.loaded_specs.values : Gem::Specification.stubs

files.concat gem_specifications.map { |spec|
spec.matches_for_glob("#{glob}#{Gem.suffix_pattern}")
}.flatten

@@ -580,6 +628,10 @@ def self.host= host
# gem's paths are inserted before site lib directory by default.

def self.load_path_insert_index
$LOAD_PATH.each_with_index do |path, i|
return i if path.instance_variable_defined?(:@gem_prelude_index)
end

index = $LOAD_PATH.index RbConfig::CONFIG['sitelibdir']

index
@@ -596,6 +648,9 @@ def self.load_yaml

test_syck = ENV['TEST_SYCK']

# Only Ruby 1.8 and 1.9 have syck
test_syck = false unless /^1\./ =~ RUBY_VERSION

unless test_syck
begin
gem 'psych', '>= 1.2.1'
@@ -777,6 +832,14 @@ def self.read_binary(path)
open path, 'rb' do |f|
f.read
end
rescue Errno::ENOLCK # NFS
if Thread.main != Thread.current
raise
else
open path, 'rb' do |f|
f.read
end
end
end

##
@@ -800,6 +863,15 @@ def self.ruby_api_version
@ruby_api_version ||= RbConfig::CONFIG['ruby_version'].dup
end

def self.env_requirement(gem_name)
@env_requirements_by_name ||= {}
@env_requirements_by_name[gem_name] ||= begin
req = ENV["GEM_REQUIREMENT_#{gem_name.upcase}"] || '>= 0'.freeze
Gem::Requirement.create(req)
end
end
post_reset { @env_requirements_by_name = {} }

##
# Returns the latest release-version specification for the gem +name+.

@@ -927,9 +999,11 @@ def self.ui
# by the unit tests to provide environment isolation.

def self.use_paths(home, *paths)
paths = nil if paths == [nil]
paths = paths.first if Array === Array(paths).first
self.paths = { "GEM_HOME" => home, "GEM_PATH" => paths }
paths.flatten!
paths.compact!
hash = { "GEM_HOME" => home, "GEM_PATH" => paths.empty? ? home : paths.join(File::PATH_SEPARATOR) }
hash.delete_if { |_, v| v.nil? }
self.paths = hash
end

##
@@ -1052,7 +1126,7 @@ def self.use_gemdeps path = nil
end

rs = Gem::RequestSet.new
rs.load_gemdeps path
@gemdeps = rs.load_gemdeps path

rs.resolve_current.map do |s|
sp = s.full_spec
@@ -1082,6 +1156,12 @@ class << self

attr_reader :loaded_specs

##
# GemDependencyAPI object, which is set when .use_gemdeps is called.
# This contains all the information from the Gemfile.

attr_reader :gemdeps

##
# Register a Gem::Specification for default gem.
#
@@ -1196,6 +1276,7 @@ def clear_default_specs
autoload :DependencyList, 'rubygems/dependency_list'
autoload :DependencyResolver, 'rubygems/resolver'
autoload :Installer, 'rubygems/installer'
autoload :Licenses, 'rubygems/util/licenses'
autoload :PathSupport, 'rubygems/path_support'
autoload :Platform, 'rubygems/platform'
autoload :RequestSet, 'rubygems/request_set'
@@ -1242,4 +1323,3 @@ def clear_default_specs
require 'rubygems/core_ext/kernel_require'

Gem.use_gemdeps

1 change: 1 addition & 0 deletions lib/ruby/stdlib/rubygems/available_set.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
class Gem::AvailableSet

include Enumerable
Loading