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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Manifest.txt +2 -2
- data/bundler/CHANGELOG.md +15 -0
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/bundler/lib/bundler/cli/check.rb +1 -1
- data/bundler/lib/bundler/definition.rb +6 -0
- data/bundler/lib/bundler/installer.rb +0 -1
- data/bundler/lib/bundler/plugin/installer.rb +2 -0
- data/bundler/lib/bundler/plugin.rb +23 -6
- data/bundler/lib/bundler/rubygems_integration.rb +2 -0
- data/bundler/lib/bundler/settings.rb +9 -1
- data/bundler/lib/bundler/source/rubygems.rb +8 -1
- data/bundler/lib/bundler/source.rb +2 -0
- data/bundler/lib/bundler/source_list.rb +4 -0
- data/bundler/lib/bundler/spec_set.rb +1 -1
- data/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +2 -1
- data/bundler/lib/bundler/version.rb +1 -1
- data/bundler/lib/bundler.rb +11 -17
- data/lib/rubygems/command_manager.rb +3 -3
- data/lib/rubygems/commands/build_command.rb +3 -3
- data/lib/rubygems/commands/cert_command.rb +2 -2
- data/lib/rubygems/commands/check_command.rb +4 -4
- data/lib/rubygems/commands/cleanup_command.rb +3 -3
- data/lib/rubygems/commands/contents_command.rb +2 -2
- data/lib/rubygems/commands/dependency_command.rb +3 -3
- data/lib/rubygems/commands/environment_command.rb +1 -1
- data/lib/rubygems/commands/fetch_command.rb +3 -3
- data/lib/rubygems/commands/generate_index_command.rb +2 -2
- data/lib/rubygems/commands/help_command.rb +1 -1
- data/lib/rubygems/commands/info_command.rb +2 -2
- data/lib/rubygems/commands/install_command.rb +12 -11
- data/lib/rubygems/commands/list_command.rb +2 -2
- data/lib/rubygems/commands/lock_command.rb +1 -1
- data/lib/rubygems/commands/mirror_command.rb +1 -1
- data/lib/rubygems/commands/open_command.rb +2 -2
- data/lib/rubygems/commands/outdated_command.rb +4 -4
- data/lib/rubygems/commands/owner_command.rb +4 -4
- data/lib/rubygems/commands/pristine_command.rb +5 -5
- data/lib/rubygems/commands/push_command.rb +4 -4
- data/lib/rubygems/commands/query_command.rb +3 -3
- data/lib/rubygems/commands/rdoc_command.rb +3 -3
- data/lib/rubygems/commands/search_command.rb +2 -2
- data/lib/rubygems/commands/server_command.rb +3 -3
- data/lib/rubygems/commands/setup_command.rb +5 -5
- data/lib/rubygems/commands/signin_command.rb +2 -2
- data/lib/rubygems/commands/signout_command.rb +1 -1
- data/lib/rubygems/commands/sources_command.rb +4 -4
- data/lib/rubygems/commands/specification_command.rb +4 -4
- data/lib/rubygems/commands/stale_command.rb +1 -1
- data/lib/rubygems/commands/uninstall_command.rb +3 -3
- data/lib/rubygems/commands/unpack_command.rb +5 -5
- data/lib/rubygems/commands/update_command.rb +9 -9
- data/lib/rubygems/commands/which_command.rb +1 -1
- data/lib/rubygems/commands/yank_command.rb +4 -4
- data/lib/rubygems/config_file.rb +1 -1
- data/lib/rubygems/dependency_installer.rb +8 -8
- data/lib/rubygems/dependency_list.rb +1 -1
- data/lib/rubygems/doctor.rb +2 -2
- data/lib/rubygems/exceptions.rb +1 -1
- data/lib/rubygems/gem_runner.rb +3 -3
- data/lib/rubygems/gemcutter_utilities.rb +2 -2
- data/lib/rubygems/indexer.rb +2 -2
- data/lib/rubygems/install_default_message.rb +2 -2
- data/lib/rubygems/install_message.rb +2 -2
- data/lib/rubygems/install_update_options.rb +2 -2
- data/lib/rubygems/installer.rb +7 -7
- data/lib/rubygems/local_remote_options.rb +1 -1
- data/lib/rubygems/mock_gem_ui.rb +1 -1
- data/lib/rubygems/package/tar_reader.rb +1 -1
- data/lib/rubygems/package.rb +12 -12
- data/lib/rubygems/package_task.rb +2 -2
- data/lib/rubygems/platform.rb +1 -1
- data/lib/rubygems/rdoc.rb +1 -1
- data/lib/rubygems/remote_fetcher.rb +14 -20
- data/lib/rubygems/request.rb +5 -5
- data/lib/rubygems/request_set/lockfile/tokenizer.rb +1 -1
- data/lib/rubygems/request_set/lockfile.rb +1 -1
- data/lib/rubygems/request_set.rb +4 -4
- data/lib/rubygems/requirement.rb +1 -1
- data/lib/rubygems/resolver/git_specification.rb +1 -1
- data/lib/rubygems/resolver/installer_set.rb +3 -3
- data/lib/rubygems/resolver/molinillo.rb +1 -1
- data/lib/rubygems/resolver/specification.rb +1 -1
- data/lib/rubygems/resolver.rb +31 -31
- data/lib/rubygems/security/policy.rb +1 -1
- data/lib/rubygems/security/signer.rb +1 -1
- data/lib/rubygems/security.rb +5 -5
- data/lib/rubygems/security_option.rb +2 -2
- data/lib/rubygems/server.rb +2 -2
- data/lib/rubygems/source.rb +6 -6
- data/lib/rubygems/spec_fetcher.rb +5 -5
- data/lib/rubygems/specification.rb +9 -9
- data/lib/rubygems/specification_policy.rb +1 -1
- data/lib/rubygems/uninstaller.rb +6 -6
- data/lib/rubygems/uri.rb +102 -0
- data/lib/rubygems/user_interaction.rb +2 -2
- data/lib/rubygems/util/licenses.rb +1 -1
- data/lib/rubygems/validator.rb +2 -2
- data/lib/rubygems/version_option.rb +1 -1
- data/lib/rubygems.rb +15 -15
- data/rubygems-update.gemspec +1 -1
- data/test/rubygems/test_gem_commands_install_command.rb +25 -0
- data/test/rubygems/test_gem_remote_fetcher.rb +30 -0
- data/test/rubygems/test_gem_request.rb +30 -4
- data/test/rubygems/test_gem_resolver_installer_set.rb +18 -0
- data/test/rubygems/test_gem_uri.rb +32 -0
- metadata +5 -5
- data/lib/rubygems/uri_parser.rb +0 -34
- data/lib/rubygems/uri_parsing.rb +0 -23
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
-
|
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
|
-
|
247
|
+
require_relative '../install_default_message'
|
248
248
|
else
|
249
|
-
|
249
|
+
require_relative '../install_message'
|
250
250
|
end
|
251
|
-
|
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
|
-
|
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,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
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,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
608
|
+
require_relative "pristine_command"
|
609
609
|
say "Regenerating binstubs"
|
610
610
|
|
611
611
|
args = %w[--all --only-executables --silent]
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
data/lib/rubygems/config_file.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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.
|
data/lib/rubygems/doctor.rb
CHANGED