rubygems-update 3.2.23 → 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 +54 -0
- data/Manifest.txt +7 -7
- data/bundler/CHANGELOG.md +68 -0
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/bundler/lib/bundler/cli/cache.rb +1 -1
- data/bundler/lib/bundler/cli/doctor.rb +1 -1
- data/bundler/lib/bundler/cli/exec.rb +1 -6
- data/bundler/lib/bundler/cli/gem.rb +3 -2
- data/bundler/lib/bundler/cli/install.rb +4 -17
- data/bundler/lib/bundler/cli/list.rb +7 -1
- data/bundler/lib/bundler/cli/open.rb +1 -2
- data/bundler/lib/bundler/cli/update.rb +1 -1
- data/bundler/lib/bundler/cli.rb +12 -9
- data/bundler/lib/bundler/definition.rb +38 -47
- data/bundler/lib/bundler/dsl.rb +40 -26
- data/bundler/lib/bundler/errors.rb +1 -1
- data/bundler/lib/bundler/installer/gem_installer.rb +3 -16
- data/bundler/lib/bundler/installer/standalone.rb +14 -9
- data/bundler/lib/bundler/installer.rb +0 -1
- data/bundler/lib/bundler/lockfile_parser.rb +1 -0
- data/bundler/lib/bundler/plugin/index.rb +4 -1
- data/bundler/lib/bundler/plugin/installer.rb +2 -0
- data/bundler/lib/bundler/plugin.rb +25 -6
- data/bundler/lib/bundler/resolver.rb +10 -17
- data/bundler/lib/bundler/rubygems_gem_installer.rb +5 -1
- data/bundler/lib/bundler/rubygems_integration.rb +2 -0
- data/bundler/lib/bundler/runtime.rb +16 -9
- data/bundler/lib/bundler/settings.rb +13 -1
- data/bundler/lib/bundler/setup.rb +2 -2
- data/bundler/lib/bundler/shared_helpers.rb +0 -7
- data/bundler/lib/bundler/source/git/git_proxy.rb +1 -2
- data/bundler/lib/bundler/source/rubygems.rb +23 -2
- data/bundler/lib/bundler/source/rubygems_aggregate.rb +4 -0
- data/bundler/lib/bundler/source.rb +4 -0
- data/bundler/lib/bundler/source_list.rb +16 -3
- data/bundler/lib/bundler/spec_set.rb +14 -37
- data/bundler/lib/bundler/templates/Executable.bundler +6 -6
- data/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +13 -2
- data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +3 -1
- data/bundler/lib/bundler/version.rb +1 -1
- data/bundler/lib/bundler/worker.rb +17 -2
- data/bundler/lib/bundler.rb +11 -21
- 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 +5 -5
- 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/ext/builder.rb +1 -0
- data/lib/rubygems/ext/ext_conf_builder.rb +1 -2
- data/lib/rubygems/ext/rake_builder.rb +1 -2
- data/lib/rubygems/gem_runner.rb +3 -3
- data/lib/rubygems/gemcutter_utilities.rb +4 -3
- 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 +17 -8
- 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 -21
- 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 +3 -22
- 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/s3_uri_signer.rb +0 -1
- data/lib/rubygems/safe_yaml.rb +0 -2
- 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 -15
- data/lib/rubygems/specification_policy.rb +1 -1
- data/lib/rubygems/uninstaller.rb +42 -11
- 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 +37 -47
- data/rubygems-update.gemspec +1 -1
- data/test/rubygems/data/null-type.gemspec.rz +0 -0
- data/{lib/rubygems/test_case.rb → test/rubygems/helper.rb} +16 -19
- data/{lib → test}/rubygems/installer_test_case.rb +1 -1
- data/{lib → test}/rubygems/package/tar_test_case.rb +1 -1
- data/test/rubygems/test_bundled_ca.rb +1 -1
- data/test/rubygems/test_config.rb +1 -1
- data/test/rubygems/test_deprecate.rb +1 -1
- data/test/rubygems/test_gem.rb +190 -136
- data/test/rubygems/test_gem_available_set.rb +1 -1
- data/test/rubygems/test_gem_bundler_version_finder.rb +1 -1
- data/test/rubygems/test_gem_command.rb +1 -1
- data/test/rubygems/test_gem_command_manager.rb +1 -1
- data/test/rubygems/test_gem_commands_build_command.rb +1 -1
- data/test/rubygems/test_gem_commands_cert_command.rb +1 -1
- data/test/rubygems/test_gem_commands_check_command.rb +1 -1
- data/test/rubygems/test_gem_commands_cleanup_command.rb +1 -1
- data/test/rubygems/test_gem_commands_contents_command.rb +1 -1
- data/test/rubygems/test_gem_commands_dependency_command.rb +1 -1
- data/test/rubygems/test_gem_commands_environment_command.rb +1 -1
- data/test/rubygems/test_gem_commands_fetch_command.rb +1 -1
- data/test/rubygems/test_gem_commands_generate_index_command.rb +1 -1
- data/test/rubygems/test_gem_commands_help_command.rb +1 -1
- data/test/rubygems/test_gem_commands_info_command.rb +1 -1
- data/test/rubygems/test_gem_commands_install_command.rb +26 -1
- data/test/rubygems/test_gem_commands_list_command.rb +1 -1
- data/test/rubygems/test_gem_commands_lock_command.rb +1 -1
- data/test/rubygems/test_gem_commands_mirror.rb +1 -1
- data/test/rubygems/test_gem_commands_open_command.rb +1 -1
- data/test/rubygems/test_gem_commands_outdated_command.rb +1 -1
- data/test/rubygems/test_gem_commands_owner_command.rb +1 -1
- data/test/rubygems/test_gem_commands_pristine_command.rb +1 -1
- data/test/rubygems/test_gem_commands_push_command.rb +1 -1
- data/test/rubygems/test_gem_commands_query_command.rb +1 -1
- data/test/rubygems/test_gem_commands_search_command.rb +1 -1
- data/test/rubygems/test_gem_commands_server_command.rb +1 -1
- data/test/rubygems/test_gem_commands_setup_command.rb +3 -3
- data/test/rubygems/test_gem_commands_signin_command.rb +1 -1
- data/test/rubygems/test_gem_commands_signout_command.rb +1 -1
- data/test/rubygems/test_gem_commands_sources_command.rb +1 -1
- data/test/rubygems/test_gem_commands_specification_command.rb +1 -1
- data/test/rubygems/test_gem_commands_stale_command.rb +1 -1
- data/test/rubygems/test_gem_commands_uninstall_command.rb +1 -1
- data/test/rubygems/test_gem_commands_unpack_command.rb +1 -1
- data/test/rubygems/test_gem_commands_update_command.rb +1 -1
- data/test/rubygems/test_gem_commands_which_command.rb +1 -1
- data/test/rubygems/test_gem_commands_yank_command.rb +1 -1
- data/test/rubygems/test_gem_config_file.rb +1 -1
- data/test/rubygems/test_gem_dependency.rb +1 -1
- data/test/rubygems/test_gem_dependency_installer.rb +1 -1
- data/test/rubygems/test_gem_dependency_list.rb +1 -1
- data/test/rubygems/test_gem_dependency_resolution_error.rb +1 -1
- data/test/rubygems/test_gem_doctor.rb +1 -1
- data/test/rubygems/test_gem_ext_builder.rb +4 -1
- data/test/rubygems/test_gem_ext_cmake_builder.rb +1 -1
- data/test/rubygems/test_gem_ext_configure_builder.rb +1 -1
- data/test/rubygems/test_gem_ext_ext_conf_builder.rb +1 -1
- data/test/rubygems/test_gem_ext_rake_builder.rb +1 -1
- data/test/rubygems/test_gem_gem_runner.rb +1 -1
- data/test/rubygems/test_gem_gemcutter_utilities.rb +1 -1
- data/test/rubygems/test_gem_impossible_dependencies_error.rb +1 -1
- data/test/rubygems/test_gem_indexer.rb +1 -1
- data/test/rubygems/test_gem_install_update_options.rb +1 -1
- data/test/rubygems/test_gem_installer.rb +4 -2
- data/test/rubygems/test_gem_local_remote_options.rb +1 -1
- data/test/rubygems/test_gem_name_tuple.rb +1 -1
- data/test/rubygems/test_gem_package.rb +1 -1
- data/test/rubygems/test_gem_package_old.rb +1 -1
- data/test/rubygems/test_gem_package_tar_header.rb +1 -1
- data/test/rubygems/test_gem_package_tar_reader.rb +1 -1
- data/test/rubygems/test_gem_package_tar_reader_entry.rb +1 -1
- data/test/rubygems/test_gem_package_tar_writer.rb +1 -1
- data/test/rubygems/test_gem_package_task.rb +1 -1
- data/test/rubygems/test_gem_path_support.rb +1 -1
- data/test/rubygems/test_gem_platform.rb +1 -1
- data/test/rubygems/test_gem_rdoc.rb +1 -1
- data/test/rubygems/test_gem_remote_fetcher.rb +31 -1
- data/test/rubygems/test_gem_request.rb +31 -5
- data/test/rubygems/test_gem_request_connection_pools.rb +1 -1
- data/test/rubygems/test_gem_request_set.rb +1 -1
- data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +1 -1
- data/test/rubygems/test_gem_request_set_lockfile.rb +1 -1
- data/test/rubygems/test_gem_request_set_lockfile_parser.rb +1 -1
- data/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb +1 -1
- data/test/rubygems/test_gem_requirement.rb +35 -1
- data/test/rubygems/test_gem_resolver.rb +1 -1
- data/test/rubygems/test_gem_resolver_activation_request.rb +1 -1
- data/test/rubygems/test_gem_resolver_api_set.rb +1 -1
- data/test/rubygems/test_gem_resolver_api_specification.rb +1 -1
- data/test/rubygems/test_gem_resolver_best_set.rb +1 -1
- data/test/rubygems/test_gem_resolver_composed_set.rb +1 -1
- data/test/rubygems/test_gem_resolver_conflict.rb +1 -1
- data/test/rubygems/test_gem_resolver_dependency_request.rb +1 -1
- data/test/rubygems/test_gem_resolver_git_set.rb +1 -1
- data/test/rubygems/test_gem_resolver_git_specification.rb +2 -1
- data/test/rubygems/test_gem_resolver_index_set.rb +1 -1
- data/test/rubygems/test_gem_resolver_index_specification.rb +1 -1
- data/test/rubygems/test_gem_resolver_installed_specification.rb +1 -1
- data/test/rubygems/test_gem_resolver_installer_set.rb +19 -1
- data/test/rubygems/test_gem_resolver_local_specification.rb +1 -1
- data/test/rubygems/test_gem_resolver_lock_set.rb +1 -1
- data/test/rubygems/test_gem_resolver_lock_specification.rb +1 -1
- data/test/rubygems/test_gem_resolver_requirement_list.rb +1 -1
- data/test/rubygems/test_gem_resolver_specification.rb +1 -1
- data/test/rubygems/test_gem_resolver_vendor_set.rb +1 -1
- data/test/rubygems/test_gem_resolver_vendor_specification.rb +1 -1
- data/test/rubygems/test_gem_security.rb +1 -1
- data/test/rubygems/test_gem_security_policy.rb +1 -1
- data/test/rubygems/test_gem_security_signer.rb +1 -1
- data/test/rubygems/test_gem_security_trust_dir.rb +1 -1
- data/test/rubygems/test_gem_server.rb +1 -1
- data/test/rubygems/test_gem_silent_ui.rb +1 -1
- data/test/rubygems/test_gem_source.rb +1 -1
- data/test/rubygems/test_gem_source_fetch_problem.rb +1 -1
- data/test/rubygems/test_gem_source_git.rb +1 -1
- data/test/rubygems/test_gem_source_installed.rb +1 -1
- data/test/rubygems/test_gem_source_list.rb +1 -1
- data/test/rubygems/test_gem_source_local.rb +1 -1
- data/test/rubygems/test_gem_source_lock.rb +1 -1
- data/test/rubygems/test_gem_source_specific_file.rb +1 -1
- data/test/rubygems/test_gem_source_subpath_problem.rb +1 -1
- data/test/rubygems/test_gem_source_vendor.rb +1 -1
- data/test/rubygems/test_gem_spec_fetcher.rb +1 -1
- data/test/rubygems/test_gem_specification.rb +1 -165
- data/test/rubygems/test_gem_stream_ui.rb +1 -1
- data/test/rubygems/test_gem_stub_specification.rb +1 -1
- data/test/rubygems/test_gem_text.rb +1 -1
- data/test/rubygems/test_gem_uninstaller.rb +10 -3
- data/test/rubygems/test_gem_unsatisfiable_dependency_error.rb +1 -1
- data/test/rubygems/test_gem_uri.rb +32 -0
- data/test/rubygems/test_gem_uri_formatter.rb +1 -1
- data/test/rubygems/test_gem_util.rb +1 -1
- data/test/rubygems/test_gem_validator.rb +1 -1
- data/test/rubygems/test_gem_version.rb +1 -1
- data/test/rubygems/test_gem_version_option.rb +1 -1
- data/test/rubygems/test_kernel.rb +1 -1
- data/test/rubygems/test_project_sanity.rb +1 -1
- data/test/rubygems/test_remote_fetch_error.rb +1 -1
- data/test/rubygems/test_require.rb +1 -1
- data/test/rubygems/test_rubygems.rb +44 -0
- data/{lib/rubygems/test_utilities.rb → test/rubygems/utilities.rb} +0 -2
- metadata +10 -10
- data/lib/rubygems/syck_hack.rb +0 -77
- data/lib/rubygems/uri_parser.rb +0 -34
- data/lib/rubygems/uri_parsing.rb +0 -23
data/bundler/lib/bundler.rb
CHANGED
@@ -636,6 +636,12 @@ EOF
|
|
636
636
|
@rubygems = nil
|
637
637
|
end
|
638
638
|
|
639
|
+
def configure_gem_home_and_path(path = bundle_path)
|
640
|
+
configure_gem_path
|
641
|
+
configure_gem_home(path)
|
642
|
+
Bundler.rubygems.clear_paths
|
643
|
+
end
|
644
|
+
|
639
645
|
private
|
640
646
|
|
641
647
|
def eval_yaml_gemspec(path, contents)
|
@@ -653,36 +659,20 @@ EOF
|
|
653
659
|
rescue ScriptError, StandardError => e
|
654
660
|
msg = "There was an error while loading `#{path.basename}`: #{e.message}"
|
655
661
|
|
656
|
-
if e.is_a?(LoadError)
|
657
|
-
msg += "\nDoes it try to require a relative path? That's been removed in Ruby 1.9"
|
658
|
-
end
|
659
|
-
|
660
662
|
raise GemspecError, Dsl::DSLError.new(msg, path, e.backtrace, contents)
|
661
663
|
end
|
662
664
|
|
663
|
-
def
|
664
|
-
|
665
|
-
configure_gem_home
|
666
|
-
bundle_path
|
667
|
-
end
|
668
|
-
|
669
|
-
def configure_gem_path(env = ENV)
|
670
|
-
blank_home = env["GEM_HOME"].nil? || env["GEM_HOME"].empty?
|
671
|
-
if !use_system_gems?
|
665
|
+
def configure_gem_path
|
666
|
+
unless use_system_gems?
|
672
667
|
# this needs to be empty string to cause
|
673
668
|
# PathSupport.split_gem_path to only load up the
|
674
669
|
# Bundler --path setting as the GEM_PATH.
|
675
|
-
|
676
|
-
elsif blank_home
|
677
|
-
possibles = [Bundler.rubygems.gem_dir, Bundler.rubygems.gem_path]
|
678
|
-
paths = possibles.flatten.compact.uniq.reject(&:empty?)
|
679
|
-
env["GEM_PATH"] = paths.join(File::PATH_SEPARATOR)
|
670
|
+
Bundler::SharedHelpers.set_env "GEM_PATH", ""
|
680
671
|
end
|
681
672
|
end
|
682
673
|
|
683
|
-
def configure_gem_home
|
684
|
-
Bundler::SharedHelpers.set_env "GEM_HOME",
|
685
|
-
Bundler.rubygems.clear_paths
|
674
|
+
def configure_gem_home(path)
|
675
|
+
Bundler::SharedHelpers.set_env "GEM_HOME", path.to_s
|
686
676
|
end
|
687
677
|
|
688
678
|
def tmp_home_path
|
@@ -5,9 +5,9 @@
|
|
5
5
|
# See LICENSE.txt for permissions.
|
6
6
|
#++
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
require_relative 'command'
|
9
|
+
require_relative 'user_interaction'
|
10
|
+
require_relative 'text'
|
11
11
|
|
12
12
|
##
|
13
13
|
# The command manager registers and installs all the individual sub-commands
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
require_relative '../command'
|
3
|
+
require_relative '../package'
|
4
|
+
require_relative '../version_option'
|
5
5
|
|
6
6
|
class Gem::Commands::BuildCommand < Gem::Command
|
7
7
|
include Gem::VersionOption
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
require_relative '../command'
|
3
|
+
require_relative '../version_option'
|
4
|
+
require_relative '../validator'
|
5
|
+
require_relative '../doctor'
|
6
6
|
|
7
7
|
class Gem::Commands::CheckCommand < Gem::Command
|
8
8
|
include Gem::VersionOption
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
require_relative '../command'
|
3
|
+
require_relative '../dependency_list'
|
4
|
+
require_relative '../uninstaller'
|
5
5
|
|
6
6
|
class Gem::Commands::CleanupCommand < Gem::Command
|
7
7
|
def initialize
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
require_relative '../command'
|
3
|
+
require_relative '../local_remote_options'
|
4
|
+
require_relative '../version_option'
|
5
5
|
|
6
6
|
class Gem::Commands::DependencyCommand < Gem::Command
|
7
7
|
include Gem::LocalRemoteOptions
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
require_relative '../command'
|
3
|
+
require_relative '../local_remote_options'
|
4
|
+
require_relative '../version_option'
|
5
5
|
|
6
6
|
class Gem::Commands::FetchCommand < Gem::Command
|
7
7
|
include Gem::LocalRemoteOptions
|
@@ -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]
|