rubygems-update 3.2.26 → 3.2.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/Manifest.txt +2 -2
  4. data/bundler/CHANGELOG.md +15 -0
  5. data/bundler/lib/bundler/build_metadata.rb +2 -2
  6. data/bundler/lib/bundler/cli/check.rb +1 -1
  7. data/bundler/lib/bundler/definition.rb +6 -0
  8. data/bundler/lib/bundler/installer.rb +0 -1
  9. data/bundler/lib/bundler/plugin/installer.rb +2 -0
  10. data/bundler/lib/bundler/plugin.rb +23 -6
  11. data/bundler/lib/bundler/rubygems_integration.rb +2 -0
  12. data/bundler/lib/bundler/settings.rb +9 -1
  13. data/bundler/lib/bundler/source/rubygems.rb +8 -1
  14. data/bundler/lib/bundler/source.rb +2 -0
  15. data/bundler/lib/bundler/source_list.rb +4 -0
  16. data/bundler/lib/bundler/spec_set.rb +1 -1
  17. data/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +2 -1
  18. data/bundler/lib/bundler/version.rb +1 -1
  19. data/bundler/lib/bundler.rb +11 -17
  20. data/lib/rubygems/command_manager.rb +3 -3
  21. data/lib/rubygems/commands/build_command.rb +3 -3
  22. data/lib/rubygems/commands/cert_command.rb +2 -2
  23. data/lib/rubygems/commands/check_command.rb +4 -4
  24. data/lib/rubygems/commands/cleanup_command.rb +3 -3
  25. data/lib/rubygems/commands/contents_command.rb +2 -2
  26. data/lib/rubygems/commands/dependency_command.rb +3 -3
  27. data/lib/rubygems/commands/environment_command.rb +1 -1
  28. data/lib/rubygems/commands/fetch_command.rb +3 -3
  29. data/lib/rubygems/commands/generate_index_command.rb +2 -2
  30. data/lib/rubygems/commands/help_command.rb +1 -1
  31. data/lib/rubygems/commands/info_command.rb +2 -2
  32. data/lib/rubygems/commands/install_command.rb +12 -11
  33. data/lib/rubygems/commands/list_command.rb +2 -2
  34. data/lib/rubygems/commands/lock_command.rb +1 -1
  35. data/lib/rubygems/commands/mirror_command.rb +1 -1
  36. data/lib/rubygems/commands/open_command.rb +2 -2
  37. data/lib/rubygems/commands/outdated_command.rb +4 -4
  38. data/lib/rubygems/commands/owner_command.rb +4 -4
  39. data/lib/rubygems/commands/pristine_command.rb +5 -5
  40. data/lib/rubygems/commands/push_command.rb +4 -4
  41. data/lib/rubygems/commands/query_command.rb +3 -3
  42. data/lib/rubygems/commands/rdoc_command.rb +3 -3
  43. data/lib/rubygems/commands/search_command.rb +2 -2
  44. data/lib/rubygems/commands/server_command.rb +3 -3
  45. data/lib/rubygems/commands/setup_command.rb +5 -5
  46. data/lib/rubygems/commands/signin_command.rb +2 -2
  47. data/lib/rubygems/commands/signout_command.rb +1 -1
  48. data/lib/rubygems/commands/sources_command.rb +4 -4
  49. data/lib/rubygems/commands/specification_command.rb +4 -4
  50. data/lib/rubygems/commands/stale_command.rb +1 -1
  51. data/lib/rubygems/commands/uninstall_command.rb +3 -3
  52. data/lib/rubygems/commands/unpack_command.rb +5 -5
  53. data/lib/rubygems/commands/update_command.rb +9 -9
  54. data/lib/rubygems/commands/which_command.rb +1 -1
  55. data/lib/rubygems/commands/yank_command.rb +4 -4
  56. data/lib/rubygems/config_file.rb +1 -1
  57. data/lib/rubygems/dependency_installer.rb +8 -8
  58. data/lib/rubygems/dependency_list.rb +1 -1
  59. data/lib/rubygems/doctor.rb +2 -2
  60. data/lib/rubygems/exceptions.rb +1 -1
  61. data/lib/rubygems/gem_runner.rb +3 -3
  62. data/lib/rubygems/gemcutter_utilities.rb +2 -2
  63. data/lib/rubygems/indexer.rb +2 -2
  64. data/lib/rubygems/install_default_message.rb +2 -2
  65. data/lib/rubygems/install_message.rb +2 -2
  66. data/lib/rubygems/install_update_options.rb +2 -2
  67. data/lib/rubygems/installer.rb +7 -7
  68. data/lib/rubygems/local_remote_options.rb +1 -1
  69. data/lib/rubygems/mock_gem_ui.rb +1 -1
  70. data/lib/rubygems/package/tar_reader.rb +1 -1
  71. data/lib/rubygems/package.rb +12 -12
  72. data/lib/rubygems/package_task.rb +2 -2
  73. data/lib/rubygems/platform.rb +1 -1
  74. data/lib/rubygems/rdoc.rb +1 -1
  75. data/lib/rubygems/remote_fetcher.rb +14 -20
  76. data/lib/rubygems/request.rb +5 -5
  77. data/lib/rubygems/request_set/lockfile/tokenizer.rb +1 -1
  78. data/lib/rubygems/request_set/lockfile.rb +1 -1
  79. data/lib/rubygems/request_set.rb +4 -4
  80. data/lib/rubygems/requirement.rb +1 -1
  81. data/lib/rubygems/resolver/git_specification.rb +1 -1
  82. data/lib/rubygems/resolver/installer_set.rb +3 -3
  83. data/lib/rubygems/resolver/molinillo.rb +1 -1
  84. data/lib/rubygems/resolver/specification.rb +1 -1
  85. data/lib/rubygems/resolver.rb +31 -31
  86. data/lib/rubygems/security/policy.rb +1 -1
  87. data/lib/rubygems/security/signer.rb +1 -1
  88. data/lib/rubygems/security.rb +5 -5
  89. data/lib/rubygems/security_option.rb +2 -2
  90. data/lib/rubygems/server.rb +2 -2
  91. data/lib/rubygems/source.rb +6 -6
  92. data/lib/rubygems/spec_fetcher.rb +5 -5
  93. data/lib/rubygems/specification.rb +9 -9
  94. data/lib/rubygems/specification_policy.rb +1 -1
  95. data/lib/rubygems/uninstaller.rb +6 -6
  96. data/lib/rubygems/uri.rb +102 -0
  97. data/lib/rubygems/user_interaction.rb +2 -2
  98. data/lib/rubygems/util/licenses.rb +1 -1
  99. data/lib/rubygems/validator.rb +2 -2
  100. data/lib/rubygems/version_option.rb +1 -1
  101. data/lib/rubygems.rb +15 -15
  102. data/rubygems-update.gemspec +1 -1
  103. data/test/rubygems/test_gem_commands_install_command.rb +25 -0
  104. data/test/rubygems/test_gem_remote_fetcher.rb +30 -0
  105. data/test/rubygems/test_gem_request.rb +30 -4
  106. data/test/rubygems/test_gem_resolver_installer_set.rb +18 -0
  107. data/test/rubygems/test_gem_uri.rb +32 -0
  108. metadata +5 -5
  109. data/lib/rubygems/uri_parser.rb +0 -34
  110. data/lib/rubygems/uri_parsing.rb +0 -23
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/indexer'
2
+ require_relative '../command'
3
+ require_relative '../indexer'
4
4
 
5
5
  ##
6
6
  # Generates a index files for use as a gem server.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
2
+ require_relative '../command'
3
3
 
4
4
  class Gem::Commands::HelpCommand < Gem::Command
5
5
  # :stopdoc:
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rubygems/command'
4
- require 'rubygems/query_utils'
3
+ require_relative '../command'
4
+ require_relative '../query_utils'
5
5
 
6
6
  class Gem::Commands::InfoCommand < Gem::Command
7
7
  include Gem::QueryUtils
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/install_update_options'
4
- require 'rubygems/dependency_installer'
5
- require 'rubygems/local_remote_options'
6
- require 'rubygems/validator'
7
- require 'rubygems/version_option'
2
+ require_relative '../command'
3
+ require_relative '../install_update_options'
4
+ require_relative '../dependency_installer'
5
+ require_relative '../local_remote_options'
6
+ require_relative '../validator'
7
+ require_relative '../version_option'
8
8
 
9
9
  ##
10
10
  # Gem installer command line tool
@@ -169,7 +169,7 @@ You can use `i` command instead of `install`.
169
169
  end
170
170
 
171
171
  def install_from_gemdeps # :nodoc:
172
- require 'rubygems/request_set'
172
+ require_relative '../request_set'
173
173
  rs = Gem::RequestSet.new
174
174
 
175
175
  specs = rs.install_from_gemdeps options do |req, inst|
@@ -244,11 +244,11 @@ You can use `i` command instead of `install`.
244
244
 
245
245
  def load_hooks # :nodoc:
246
246
  if options[:install_as_default]
247
- require 'rubygems/install_default_message'
247
+ require_relative '../install_default_message'
248
248
  else
249
- require 'rubygems/install_message'
249
+ require_relative '../install_message'
250
250
  end
251
- require 'rubygems/rdoc'
251
+ require_relative '../rdoc'
252
252
  end
253
253
 
254
254
  def show_install_errors(errors) # :nodoc:
@@ -257,7 +257,8 @@ You can use `i` command instead of `install`.
257
257
  errors.each do |x|
258
258
  return unless Gem::SourceFetchProblem === x
259
259
 
260
- msg = "Unable to pull data from '#{x.source.uri}': #{x.error.message}"
260
+ require_relative "../uri"
261
+ msg = "Unable to pull data from '#{Gem::Uri.new(x.source.uri).redacted}': #{x.error.message}"
261
262
 
262
263
  alert_warning msg
263
264
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/query_utils'
2
+ require_relative '../command'
3
+ require_relative '../query_utils'
4
4
 
5
5
  ##
6
6
  # Searches for gems starting with the supplied argument.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
2
+ require_relative '../command'
3
3
 
4
4
  class Gem::Commands::LockCommand < Gem::Command
5
5
  def initialize
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
2
+ require_relative '../command'
3
3
 
4
4
  unless defined? Gem::Commands::MirrorCommand
5
5
  class Gem::Commands::MirrorCommand < Gem::Command
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/version_option'
2
+ require_relative '../command'
3
+ require_relative '../version_option'
4
4
 
5
5
  class Gem::Commands::OpenCommand < Gem::Command
6
6
  include Gem::VersionOption
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/local_remote_options'
4
- require 'rubygems/spec_fetcher'
5
- require 'rubygems/version_option'
2
+ require_relative '../command'
3
+ require_relative '../local_remote_options'
4
+ require_relative '../spec_fetcher'
5
+ require_relative '../version_option'
6
6
 
7
7
  class Gem::Commands::OutdatedCommand < Gem::Command
8
8
  include Gem::LocalRemoteOptions
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/local_remote_options'
4
- require 'rubygems/gemcutter_utilities'
5
- require 'rubygems/text'
2
+ require_relative '../command'
3
+ require_relative '../local_remote_options'
4
+ require_relative '../gemcutter_utilities'
5
+ require_relative '../text'
6
6
 
7
7
  class Gem::Commands::OwnerCommand < Gem::Command
8
8
  include Gem::Text
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/package'
4
- require 'rubygems/installer'
5
- require 'rubygems/version_option'
2
+ require_relative '../command'
3
+ require_relative '../package'
4
+ require_relative '../installer'
5
+ require_relative '../version_option'
6
6
 
7
7
  class Gem::Commands::PristineCommand < Gem::Command
8
8
  include Gem::VersionOption
@@ -138,7 +138,7 @@ extensions will be restored.
138
138
  gem = spec.cache_file
139
139
 
140
140
  unless File.exist? gem or options[:only_executables] or options[:only_plugins]
141
- require 'rubygems/remote_fetcher'
141
+ require_relative '../remote_fetcher'
142
142
 
143
143
  say "Cached gem for #{spec.full_name} not found, attempting to fetch..."
144
144
 
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/local_remote_options'
4
- require 'rubygems/gemcutter_utilities'
5
- require 'rubygems/package'
2
+ require_relative '../command'
3
+ require_relative '../local_remote_options'
4
+ require_relative '../gemcutter_utilities'
5
+ require_relative '../package'
6
6
 
7
7
  class Gem::Commands::PushCommand < Gem::Command
8
8
  include Gem::LocalRemoteOptions
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/query_utils'
4
- require 'rubygems/deprecate'
2
+ require_relative '../command'
3
+ require_relative '../query_utils'
4
+ require_relative '../deprecate'
5
5
 
6
6
  class Gem::Commands::QueryCommand < Gem::Command
7
7
  extend Gem::Deprecate
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/version_option'
4
- require 'rubygems/rdoc'
2
+ require_relative '../command'
3
+ require_relative '../version_option'
4
+ require_relative '../rdoc'
5
5
  require 'fileutils'
6
6
 
7
7
  class Gem::Commands::RdocCommand < Gem::Command
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/query_utils'
2
+ require_relative '../command'
3
+ require_relative '../query_utils'
4
4
 
5
5
  class Gem::Commands::SearchCommand < Gem::Command
6
6
  include Gem::QueryUtils
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/server'
4
- require 'rubygems/deprecate'
2
+ require_relative '../command'
3
+ require_relative '../server'
4
+ require_relative '../deprecate'
5
5
 
6
6
  class Gem::Commands::ServerCommand < Gem::Command
7
7
  extend Gem::Deprecate
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
2
+ require_relative '../command'
3
3
 
4
4
  ##
5
5
  # Installs RubyGems itself. This command is ordinarily only available from a
@@ -348,7 +348,7 @@ By default, this RubyGems will install gem as:
348
348
  rm_rf dir
349
349
  end
350
350
 
351
- require 'rubygems/rdoc'
351
+ require_relative '../rdoc'
352
352
 
353
353
  fake_spec = Gem::Specification.new 'rubygems', Gem::VERSION
354
354
  def fake_spec.full_gem_path
@@ -407,7 +407,7 @@ By default, this RubyGems will install gem as:
407
407
  cp File.join("bundler", bundler_spec.bindir, e), File.join(bundler_bin_dir, e)
408
408
  end
409
409
 
410
- require 'rubygems/installer'
410
+ require_relative '../installer'
411
411
 
412
412
  Dir.chdir("bundler") do
413
413
  built_gem = Gem::Package.build(bundler_spec)
@@ -596,7 +596,7 @@ abort "#{deprecation_message}"
596
596
  end
597
597
 
598
598
  def uninstall_old_gemcutter
599
- require 'rubygems/uninstaller'
599
+ require_relative '../uninstaller'
600
600
 
601
601
  ui = Gem::Uninstaller.new('gemcutter', :all => true, :ignore => true,
602
602
  :version => '< 0.4')
@@ -605,7 +605,7 @@ abort "#{deprecation_message}"
605
605
  end
606
606
 
607
607
  def regenerate_binstubs
608
- require "rubygems/commands/pristine_command"
608
+ require_relative "pristine_command"
609
609
  say "Regenerating binstubs"
610
610
 
611
611
  args = %w[--all --only-executables --silent]
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/gemcutter_utilities'
2
+ require_relative '../command'
3
+ require_relative '../gemcutter_utilities'
4
4
 
5
5
  class Gem::Commands::SigninCommand < Gem::Command
6
6
  include Gem::GemcutterUtilities
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
2
+ require_relative '../command'
3
3
 
4
4
  class Gem::Commands::SignoutCommand < Gem::Command
5
5
  def initialize
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/remote_fetcher'
4
- require 'rubygems/spec_fetcher'
5
- require 'rubygems/local_remote_options'
2
+ require_relative '../command'
3
+ require_relative '../remote_fetcher'
4
+ require_relative '../spec_fetcher'
5
+ require_relative '../local_remote_options'
6
6
 
7
7
  class Gem::Commands::SourcesCommand < Gem::Command
8
8
  include Gem::LocalRemoteOptions
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/local_remote_options'
4
- require 'rubygems/version_option'
5
- require 'rubygems/package'
2
+ require_relative '../command'
3
+ require_relative '../local_remote_options'
4
+ require_relative '../version_option'
5
+ require_relative '../package'
6
6
 
7
7
  class Gem::Commands::SpecificationCommand < Gem::Command
8
8
  include Gem::LocalRemoteOptions
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
2
+ require_relative '../command'
3
3
 
4
4
  class Gem::Commands::StaleCommand < Gem::Command
5
5
  def initialize
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/version_option'
4
- require 'rubygems/uninstaller'
2
+ require_relative '../command'
3
+ require_relative '../version_option'
4
+ require_relative '../uninstaller'
5
5
  require 'fileutils'
6
6
 
7
7
  ##
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/version_option'
4
- require 'rubygems/security_option'
5
- require 'rubygems/remote_fetcher'
6
- require 'rubygems/package'
2
+ require_relative '../command'
3
+ require_relative '../version_option'
4
+ require_relative '../security_option'
5
+ require_relative '../remote_fetcher'
6
+ require_relative '../package'
7
7
 
8
8
  # forward-declare
9
9
 
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/command_manager'
4
- require 'rubygems/dependency_installer'
5
- require 'rubygems/install_update_options'
6
- require 'rubygems/local_remote_options'
7
- require 'rubygems/spec_fetcher'
8
- require 'rubygems/version_option'
9
- require 'rubygems/install_message' # must come before rdoc for messaging
10
- require 'rubygems/rdoc'
2
+ require_relative '../command'
3
+ require_relative '../command_manager'
4
+ require_relative '../dependency_installer'
5
+ require_relative '../install_update_options'
6
+ require_relative '../local_remote_options'
7
+ require_relative '../spec_fetcher'
8
+ require_relative '../version_option'
9
+ require_relative '../install_message' # must come before rdoc for messaging
10
+ require_relative '../rdoc'
11
11
 
12
12
  class Gem::Commands::UpdateCommand < Gem::Command
13
13
  include Gem::InstallUpdateOptions
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
2
+ require_relative '../command'
3
3
 
4
4
  class Gem::Commands::WhichCommand < Gem::Command
5
5
  def initialize
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems/command'
3
- require 'rubygems/local_remote_options'
4
- require 'rubygems/version_option'
5
- require 'rubygems/gemcutter_utilities'
2
+ require_relative '../command'
3
+ require_relative '../local_remote_options'
4
+ require_relative '../version_option'
5
+ require_relative '../gemcutter_utilities'
6
6
 
7
7
  class Gem::Commands::YankCommand < Gem::Command
8
8
  include Gem::LocalRemoteOptions
@@ -5,7 +5,7 @@
5
5
  # See LICENSE.txt for permissions.
6
6
  #++
7
7
 
8
- require 'rubygems/user_interaction'
8
+ require_relative 'user_interaction'
9
9
  require 'rbconfig'
10
10
 
11
11
  ##
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems'
3
- require 'rubygems/dependency_list'
4
- require 'rubygems/package'
5
- require 'rubygems/installer'
6
- require 'rubygems/spec_fetcher'
7
- require 'rubygems/user_interaction'
8
- require 'rubygems/available_set'
9
- require 'rubygems/deprecate'
2
+ require_relative '../rubygems'
3
+ require_relative 'dependency_list'
4
+ require_relative 'package'
5
+ require_relative 'installer'
6
+ require_relative 'spec_fetcher'
7
+ require_relative 'user_interaction'
8
+ require_relative 'available_set'
9
+ require_relative 'deprecate'
10
10
 
11
11
  ##
12
12
  # Installs a gem along with all its dependencies from local and remote gems.
@@ -6,7 +6,7 @@
6
6
  #++
7
7
 
8
8
  require 'tsort'
9
- require 'rubygems/deprecate'
9
+ require_relative 'deprecate'
10
10
 
11
11
  ##
12
12
  # Gem::DependencyList is used for installing and uninstalling gems in the
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'rubygems'
3
- require 'rubygems/user_interaction'
2
+ require_relative '../rubygems'
3
+ require_relative 'user_interaction'
4
4
 
5
5
  ##
6
6
  # Cleans up after a partially-failed uninstall or for an invalid