rubygems-update 3.4.22 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +105 -2
- data/Manifest.txt +46 -221
- data/README.md +1 -3
- data/bundler/CHANGELOG.md +63 -0
- data/bundler/bundler.gemspec +4 -2
- data/bundler/exe/bundle +1 -10
- data/bundler/lib/bundler/build_metadata.rb +3 -3
- data/bundler/lib/bundler/capistrano.rb +1 -1
- data/bundler/lib/bundler/checksum.rb +254 -0
- data/bundler/lib/bundler/ci_detector.rb +75 -0
- data/bundler/lib/bundler/cli/add.rb +3 -3
- data/bundler/lib/bundler/cli/binstubs.rb +4 -4
- data/bundler/lib/bundler/cli/cache.rb +1 -1
- data/bundler/lib/bundler/cli/check.rb +1 -1
- data/bundler/lib/bundler/cli/common.rb +9 -1
- data/bundler/lib/bundler/cli/config.rb +8 -7
- data/bundler/lib/bundler/cli/console.rb +3 -2
- data/bundler/lib/bundler/cli/doctor.rb +2 -2
- data/bundler/lib/bundler/cli/exec.rb +1 -1
- data/bundler/lib/bundler/cli/gem.rb +28 -23
- data/bundler/lib/bundler/cli/info.rb +2 -13
- data/bundler/lib/bundler/cli/install.rb +5 -4
- data/bundler/lib/bundler/cli/issue.rb +1 -1
- data/bundler/lib/bundler/cli/lock.rb +4 -4
- data/bundler/lib/bundler/cli/open.rb +1 -1
- data/bundler/lib/bundler/cli/outdated.rb +6 -6
- data/bundler/lib/bundler/cli/plugin.rb +7 -14
- data/bundler/lib/bundler/cli/pristine.rb +38 -30
- data/bundler/lib/bundler/cli/show.rb +2 -2
- data/bundler/lib/bundler/cli/update.rb +5 -5
- data/bundler/lib/bundler/cli.rb +215 -263
- data/bundler/lib/bundler/compact_index_client/cache.rb +29 -9
- data/bundler/lib/bundler/compact_index_client/cache_file.rb +153 -0
- data/bundler/lib/bundler/compact_index_client/gem_parser.rb +7 -3
- data/bundler/lib/bundler/compact_index_client/updater.rb +79 -81
- data/bundler/lib/bundler/compact_index_client.rb +14 -7
- data/bundler/lib/bundler/constants.rb +1 -1
- data/bundler/lib/bundler/current_ruby.rb +5 -21
- data/bundler/lib/bundler/definition.rb +42 -15
- data/bundler/lib/bundler/dependency.rb +16 -12
- data/bundler/lib/bundler/digest.rb +2 -2
- data/bundler/lib/bundler/dsl.rb +46 -30
- data/bundler/lib/bundler/endpoint_specification.rb +5 -1
- data/bundler/lib/bundler/env.rb +1 -3
- data/bundler/lib/bundler/errors.rb +43 -0
- data/bundler/lib/bundler/fetcher/base.rb +3 -1
- data/bundler/lib/bundler/fetcher/compact_index.rb +4 -4
- data/bundler/lib/bundler/fetcher/downloader.rb +13 -11
- data/bundler/lib/bundler/fetcher/gem_remote_fetcher.rb +16 -0
- data/bundler/lib/bundler/fetcher/index.rb +1 -1
- data/bundler/lib/bundler/fetcher.rb +28 -25
- data/bundler/lib/bundler/friendly_errors.rb +5 -5
- data/bundler/lib/bundler/gem_helper.rb +1 -1
- data/bundler/lib/bundler/gem_helpers.rb +5 -2
- data/bundler/lib/bundler/graph.rb +9 -9
- data/bundler/lib/bundler/index.rb +1 -2
- data/bundler/lib/bundler/injector.rb +1 -1
- data/bundler/lib/bundler/inline.rb +3 -3
- data/bundler/lib/bundler/installer/gem_installer.rb +5 -5
- data/bundler/lib/bundler/installer/parallel_installer.rb +16 -8
- data/bundler/lib/bundler/installer/standalone.rb +2 -3
- data/bundler/lib/bundler/installer.rb +9 -9
- data/bundler/lib/bundler/lazy_specification.rb +24 -17
- data/bundler/lib/bundler/lockfile_generator.rb +9 -0
- data/bundler/lib/bundler/lockfile_parser.rb +81 -10
- data/bundler/lib/bundler/man/bundle-add.1 +3 -26
- data/bundler/lib/bundler/man/bundle-binstubs.1 +4 -16
- data/bundler/lib/bundler/man/bundle-cache.1 +3 -24
- data/bundler/lib/bundler/man/bundle-check.1 +3 -12
- data/bundler/lib/bundler/man/bundle-clean.1 +3 -10
- data/bundler/lib/bundler/man/bundle-config.1 +20 -211
- data/bundler/lib/bundler/man/bundle-config.1.ronn +6 -0
- data/bundler/lib/bundler/man/bundle-console.1 +4 -22
- data/bundler/lib/bundler/man/bundle-doctor.1 +4 -18
- data/bundler/lib/bundler/man/bundle-exec.1 +12 -73
- data/bundler/lib/bundler/man/bundle-gem.1 +13 -49
- data/bundler/lib/bundler/man/bundle-help.1 +3 -7
- data/bundler/lib/bundler/man/bundle-info.1 +3 -9
- data/bundler/lib/bundler/man/bundle-init.1 +3 -12
- data/bundler/lib/bundler/man/bundle-inject.1 +6 -19
- data/bundler/lib/bundler/man/bundle-install.1 +27 -125
- data/bundler/lib/bundler/man/bundle-install.1.ronn +1 -0
- data/bundler/lib/bundler/man/bundle-list.1 +4 -19
- data/bundler/lib/bundler/man/bundle-lock.1 +5 -29
- data/bundler/lib/bundler/man/bundle-open.1 +7 -27
- data/bundler/lib/bundler/man/bundle-outdated.1 +3 -55
- data/bundler/lib/bundler/man/bundle-outdated.1.ronn +1 -0
- data/bundler/lib/bundler/man/bundle-platform.1 +5 -27
- data/bundler/lib/bundler/man/bundle-plugin.1 +3 -29
- data/bundler/lib/bundler/man/bundle-pristine.1 +5 -16
- data/bundler/lib/bundler/man/bundle-remove.1 +4 -14
- data/bundler/lib/bundler/man/bundle-show.1 +3 -10
- data/bundler/lib/bundler/man/bundle-update.1 +18 -137
- data/bundler/lib/bundler/man/bundle-version.1 +3 -16
- data/bundler/lib/bundler/man/bundle-viz.1 +4 -16
- data/bundler/lib/bundler/man/bundle.1 +5 -44
- data/bundler/lib/bundler/man/gemfile.5 +24 -301
- data/bundler/lib/bundler/man/gemfile.5.ronn +4 -0
- data/bundler/lib/bundler/match_metadata.rb +4 -0
- data/bundler/lib/bundler/match_platform.rb +1 -1
- data/bundler/lib/bundler/plugin/api/source.rb +3 -2
- data/bundler/lib/bundler/plugin/installer.rb +1 -1
- data/bundler/lib/bundler/plugin.rb +3 -3
- data/bundler/lib/bundler/resolver/base.rb +1 -1
- data/bundler/lib/bundler/resolver/incompatibility.rb +1 -1
- data/bundler/lib/bundler/resolver/spec_group.rb +1 -4
- data/bundler/lib/bundler/resolver.rb +16 -16
- data/bundler/lib/bundler/ruby_dsl.rb +20 -12
- data/bundler/lib/bundler/ruby_version.rb +1 -1
- data/bundler/lib/bundler/rubygems_ext.rb +24 -50
- data/bundler/lib/bundler/rubygems_gem_installer.rb +6 -56
- data/bundler/lib/bundler/rubygems_integration.rb +25 -94
- data/bundler/lib/bundler/runtime.rb +2 -2
- data/bundler/lib/bundler/self_manager.rb +23 -7
- data/bundler/lib/bundler/settings.rb +27 -7
- data/bundler/lib/bundler/setup.rb +4 -1
- data/bundler/lib/bundler/shared_helpers.rb +35 -13
- data/bundler/lib/bundler/source/git/git_proxy.rb +15 -15
- data/bundler/lib/bundler/source/git.rb +4 -3
- data/bundler/lib/bundler/source/metadata.rb +15 -15
- data/bundler/lib/bundler/source/path.rb +7 -6
- data/bundler/lib/bundler/source/rubygems.rb +21 -14
- data/bundler/lib/bundler/source.rb +2 -0
- data/bundler/lib/bundler/spec_set.rb +38 -10
- data/bundler/lib/bundler/stub_specification.rb +1 -0
- data/bundler/lib/bundler/templates/Executable.bundler +1 -1
- data/bundler/lib/bundler/templates/newgem/README.md.tt +3 -3
- data/bundler/lib/bundler/templates/newgem/Rakefile.tt +2 -6
- data/bundler/lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +1 -1
- data/bundler/lib/bundler/templates/newgem/standard.yml.tt +1 -1
- data/bundler/lib/bundler/ui/shell.rb +1 -1
- data/bundler/lib/bundler/vendor/connection_pool/.document +1 -0
- data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +1 -1
- data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +53 -6
- data/bundler/lib/bundler/vendor/fileutils/.document +1 -0
- data/bundler/lib/bundler/vendor/fileutils/lib/fileutils.rb +8 -20
- data/bundler/lib/bundler/vendor/net-http-persistent/.document +1 -0
- data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +3 -3
- data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +2 -2
- data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +1 -1
- data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +34 -34
- data/bundler/lib/bundler/vendor/pub_grub/.document +1 -0
- data/bundler/lib/bundler/vendor/thor/.document +1 -0
- data/bundler/lib/bundler/vendor/tsort/.document +1 -0
- data/bundler/lib/bundler/vendor/tsort/lib/tsort.rb +3 -0
- data/bundler/lib/bundler/vendor/uri/.document +1 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/common.rb +256 -132
- data/bundler/lib/bundler/vendor/uri/lib/uri/generic.rb +1 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +95 -31
- data/bundler/lib/bundler/vendor/uri/lib/uri/version.rb +1 -1
- data/bundler/lib/bundler/vendored_net_http.rb +8 -0
- data/bundler/lib/bundler/vendored_persistent.rb +0 -4
- data/bundler/lib/bundler/vendored_timeout.rb +8 -0
- data/bundler/lib/bundler/version.rb +1 -1
- data/bundler/lib/bundler/vlad.rb +1 -1
- data/bundler/lib/bundler/yaml_serializer.rb +3 -3
- data/bundler/lib/bundler.rb +41 -32
- data/lib/rubygems/available_set.rb +4 -4
- data/lib/rubygems/basic_specification.rb +35 -37
- data/lib/rubygems/bundler_version_finder.rb +4 -4
- data/lib/rubygems/ci_detector.rb +75 -0
- data/lib/rubygems/command.rb +13 -15
- data/lib/rubygems/command_manager.rb +5 -4
- data/lib/rubygems/commands/build_command.rb +2 -2
- data/lib/rubygems/commands/cert_command.rb +1 -2
- data/lib/rubygems/commands/check_command.rb +4 -4
- data/lib/rubygems/commands/cleanup_command.rb +12 -14
- data/lib/rubygems/commands/contents_command.rb +4 -4
- data/lib/rubygems/commands/dependency_command.rb +4 -5
- data/lib/rubygems/commands/environment_command.rb +1 -3
- data/lib/rubygems/commands/exec_command.rb +1 -1
- data/lib/rubygems/commands/fetch_command.rb +2 -2
- data/lib/rubygems/commands/generate_index_command.rb +39 -74
- data/lib/rubygems/commands/help_command.rb +3 -3
- data/lib/rubygems/commands/info_command.rb +2 -2
- data/lib/rubygems/commands/install_command.rb +8 -16
- data/lib/rubygems/commands/list_command.rb +2 -2
- data/lib/rubygems/commands/lock_command.rb +1 -1
- data/lib/rubygems/commands/open_command.rb +1 -1
- data/lib/rubygems/commands/owner_command.rb +1 -1
- data/lib/rubygems/commands/pristine_command.rb +13 -15
- data/lib/rubygems/commands/push_command.rb +2 -2
- data/lib/rubygems/commands/query_command.rb +4 -5
- data/lib/rubygems/commands/rdoc_command.rb +2 -2
- data/lib/rubygems/commands/search_command.rb +2 -2
- data/lib/rubygems/commands/setup_command.rb +31 -34
- data/lib/rubygems/commands/sources_command.rb +12 -12
- data/lib/rubygems/commands/specification_command.rb +10 -10
- data/lib/rubygems/commands/stale_command.rb +1 -1
- data/lib/rubygems/commands/uninstall_command.rb +9 -10
- data/lib/rubygems/commands/unpack_command.rb +4 -4
- data/lib/rubygems/commands/update_command.rb +10 -12
- data/lib/rubygems/commands/which_command.rb +1 -1
- data/lib/rubygems/commands/yank_command.rb +1 -1
- data/lib/rubygems/compatibility.rb +5 -6
- data/lib/rubygems/config_file.rb +4 -4
- data/lib/rubygems/core_ext/kernel_gem.rb +0 -2
- data/lib/rubygems/core_ext/kernel_require.rb +19 -48
- data/lib/rubygems/core_ext/kernel_warn.rb +1 -1
- data/lib/rubygems/core_ext/tcpsocket_init.rb +1 -1
- data/lib/rubygems/defaults.rb +15 -3
- data/lib/rubygems/dependency.rb +12 -14
- data/lib/rubygems/dependency_installer.rb +29 -30
- data/lib/rubygems/dependency_list.rb +1 -1
- data/lib/rubygems/deprecate.rb +16 -15
- data/lib/rubygems/doctor.rb +5 -5
- data/lib/rubygems/errors.rb +2 -6
- data/lib/rubygems/exceptions.rb +2 -1
- data/lib/rubygems/ext/builder.rb +15 -10
- data/lib/rubygems/ext/cargo_builder.rb +5 -5
- data/lib/rubygems/ext/ext_conf_builder.rb +1 -3
- data/lib/rubygems/gem_runner.rb +4 -4
- data/lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb +3 -3
- data/lib/rubygems/gemcutter_utilities/webauthn_poller.rb +3 -3
- data/lib/rubygems/gemcutter_utilities.rb +18 -19
- data/lib/rubygems/install_update_options.rb +18 -19
- data/lib/rubygems/installer.rb +59 -33
- data/lib/rubygems/installer_uninstaller_utils.rb +0 -2
- data/lib/rubygems/local_remote_options.rb +7 -10
- data/lib/rubygems/name_tuple.rb +7 -9
- data/lib/rubygems/net/http.rb +3 -0
- data/lib/rubygems/net-http/.document +1 -0
- data/lib/rubygems/net-http/LICENSE.txt +22 -0
- data/lib/rubygems/net-http/lib/net/http/backward.rb +40 -0
- data/lib/rubygems/net-http/lib/net/http/exceptions.rb +34 -0
- data/lib/rubygems/net-http/lib/net/http/generic_request.rb +414 -0
- data/lib/rubygems/net-http/lib/net/http/header.rb +981 -0
- data/lib/rubygems/net-http/lib/net/http/proxy_delta.rb +17 -0
- data/lib/rubygems/net-http/lib/net/http/request.rb +88 -0
- data/lib/rubygems/net-http/lib/net/http/requests.rb +425 -0
- data/lib/rubygems/net-http/lib/net/http/response.rb +738 -0
- data/lib/rubygems/net-http/lib/net/http/responses.rb +1174 -0
- data/lib/rubygems/net-http/lib/net/http/status.rb +84 -0
- data/lib/rubygems/net-http/lib/net/http.rb +2496 -0
- data/lib/rubygems/net-http/lib/net/https.rb +23 -0
- data/lib/rubygems/net-protocol/.document +1 -0
- data/lib/rubygems/net-protocol/LICENSE.txt +22 -0
- data/lib/rubygems/net-protocol/lib/net/protocol.rb +544 -0
- data/lib/rubygems/optparse/lib/optparse.rb +39 -17
- data/lib/rubygems/package/old.rb +2 -2
- data/lib/rubygems/package/tar_header.rb +45 -39
- data/lib/rubygems/package/tar_reader/entry.rb +5 -4
- data/lib/rubygems/package/tar_reader.rb +5 -3
- data/lib/rubygems/package/tar_writer.rb +19 -17
- data/lib/rubygems/package.rb +27 -26
- data/lib/rubygems/package_task.rb +2 -2
- data/lib/rubygems/path_support.rb +9 -10
- data/lib/rubygems/platform.rb +60 -45
- data/lib/rubygems/query_utils.rb +7 -9
- data/lib/rubygems/remote_fetcher.rb +15 -15
- data/lib/rubygems/request/connection_pools.rb +3 -3
- data/lib/rubygems/request.rb +20 -17
- data/lib/rubygems/request_set/gem_dependency_api.rb +119 -122
- data/lib/rubygems/request_set/lockfile/parser.rb +9 -9
- data/lib/rubygems/request_set/lockfile/tokenizer.rb +20 -12
- data/lib/rubygems/request_set/lockfile.rb +6 -11
- data/lib/rubygems/request_set.rb +5 -5
- data/lib/rubygems/requirement.rb +7 -7
- data/lib/rubygems/resolv/.document +1 -0
- data/lib/rubygems/resolv/LICENSE.txt +22 -0
- data/lib/rubygems/resolv/lib/resolv.rb +3387 -0
- data/lib/rubygems/resolver/activation_request.rb +1 -3
- data/lib/rubygems/resolver/api_set/gem_parser.rb +7 -3
- data/lib/rubygems/resolver/best_set.rb +1 -1
- data/lib/rubygems/resolver/composed_set.rb +1 -1
- data/lib/rubygems/resolver/conflict.rb +4 -12
- data/lib/rubygems/resolver/index_set.rb +4 -4
- data/lib/rubygems/resolver/index_specification.rb +2 -2
- data/lib/rubygems/resolver/installer_set.rb +5 -6
- data/lib/rubygems/resolver/lock_set.rb +1 -1
- data/lib/rubygems/resolver/molinillo/.document +1 -0
- data/lib/rubygems/resolver.rb +3 -10
- data/lib/rubygems/s3_uri_signer.rb +6 -6
- data/lib/rubygems/safe_marshal/elements.rb +138 -0
- data/lib/rubygems/safe_marshal/reader.rb +306 -0
- data/lib/rubygems/safe_marshal/visitors/stream_printer.rb +31 -0
- data/lib/rubygems/safe_marshal/visitors/to_ruby.rb +385 -0
- data/lib/rubygems/safe_marshal/visitors/visitor.rb +74 -0
- data/lib/rubygems/safe_marshal.rb +74 -0
- data/lib/rubygems/safe_yaml.rb +5 -28
- data/lib/rubygems/security/policies.rb +36 -38
- data/lib/rubygems/security/policy.rb +7 -11
- data/lib/rubygems/security/signer.rb +1 -1
- data/lib/rubygems/security/trust_dir.rb +3 -3
- data/lib/rubygems/security.rb +8 -22
- data/lib/rubygems/source/git.rb +1 -3
- data/lib/rubygems/source/installed.rb +0 -2
- data/lib/rubygems/source/local.rb +5 -8
- data/lib/rubygems/source/lock.rb +1 -3
- data/lib/rubygems/source/specific_file.rb +0 -1
- data/lib/rubygems/source/vendor.rb +0 -2
- data/lib/rubygems/source.rb +12 -12
- data/lib/rubygems/source_list.rb +4 -4
- data/lib/rubygems/spec_fetcher.rb +29 -29
- data/lib/rubygems/specification.rb +125 -138
- data/lib/rubygems/specification_policy.rb +55 -25
- data/lib/rubygems/stub_specification.rb +4 -5
- data/lib/rubygems/text.rb +1 -2
- data/lib/rubygems/timeout/.document +1 -0
- data/lib/rubygems/timeout/LICENSE.txt +22 -0
- data/lib/rubygems/timeout/lib/timeout.rb +199 -0
- data/lib/rubygems/timeout.rb +3 -0
- data/lib/rubygems/tsort/lib/tsort.rb +3 -0
- data/lib/rubygems/uninstaller.rb +7 -9
- data/lib/rubygems/update_suggestion.rb +5 -18
- data/lib/rubygems/uri_formatter.rb +1 -1
- data/lib/rubygems/user_interaction.rb +15 -21
- data/lib/rubygems/util/licenses.rb +65 -35
- data/lib/rubygems/util/list.rb +3 -1
- data/lib/rubygems/util.rb +2 -4
- data/lib/rubygems/validator.rb +5 -3
- data/lib/rubygems/version.rb +34 -28
- data/lib/rubygems/version_option.rb +2 -5
- data/lib/rubygems/yaml_serializer.rb +3 -3
- data/lib/rubygems.rb +37 -37
- data/rubygems-update.gemspec +4 -4
- data/setup.rb +2 -2
- metadata +50 -225
- data/lib/rubygems/indexer.rb +0 -428
- data/lib/rubygems/mock_gem_ui.rb +0 -86
- data/test/rubygems/alternate_cert.pem +0 -19
- data/test/rubygems/alternate_cert_32.pem +0 -19
- data/test/rubygems/alternate_key.pem +0 -27
- data/test/rubygems/bad_rake.rb +0 -3
- data/test/rubygems/bundler_test_gem.rb +0 -424
- data/test/rubygems/ca_cert.pem +0 -77
- data/test/rubygems/child_cert.pem +0 -19
- data/test/rubygems/child_cert_32.pem +0 -19
- data/test/rubygems/child_key.pem +0 -27
- data/test/rubygems/client.pem +0 -107
- data/test/rubygems/data/excon-0.7.7.gemspec.rz +0 -0
- data/test/rubygems/data/gem-private_key.pem +0 -27
- data/test/rubygems/data/gem-public_cert.pem +0 -20
- data/test/rubygems/data/null-required-ruby-version.gemspec.rz +0 -0
- data/test/rubygems/data/null-required-rubygems-version.gemspec.rz +0 -0
- data/test/rubygems/data/pry-0.4.7.gemspec.rz +0 -0
- data/test/rubygems/encrypted_private_key.pem +0 -30
- data/test/rubygems/expired_cert.pem +0 -19
- data/test/rubygems/fake_certlib/openssl.rb +0 -9
- data/test/rubygems/foo/discover.rb +0 -1
- data/test/rubygems/future_cert.pem +0 -19
- data/test/rubygems/future_cert_32.pem +0 -19
- data/test/rubygems/good_rake.rb +0 -3
- data/test/rubygems/grandchild_cert.pem +0 -19
- data/test/rubygems/grandchild_cert_32.pem +0 -19
- data/test/rubygems/grandchild_key.pem +0 -27
- data/test/rubygems/helper.rb +0 -1649
- data/test/rubygems/installer_test_case.rb +0 -248
- data/test/rubygems/invalid_client.pem +0 -49
- data/test/rubygems/invalid_issuer_cert.pem +0 -20
- data/test/rubygems/invalid_issuer_cert_32.pem +0 -20
- data/test/rubygems/invalid_key.pem +0 -27
- data/test/rubygems/invalid_signer_cert.pem +0 -19
- data/test/rubygems/invalid_signer_cert_32.pem +0 -19
- data/test/rubygems/invalidchild_cert.pem +0 -19
- data/test/rubygems/invalidchild_cert_32.pem +0 -19
- data/test/rubygems/invalidchild_key.pem +0 -27
- data/test/rubygems/multifactor_auth_utilities.rb +0 -111
- data/test/rubygems/package/tar_test_case.rb +0 -175
- data/test/rubygems/packages/Bluebie-legs-0.6.2.gem +0 -0
- data/test/rubygems/packages/ascii_binder-0.1.10.1.gem +0 -0
- data/test/rubygems/packages/ill-formatted-platform-1.0.0.10.gem +0 -0
- data/test/rubygems/plugin/exception/rubygems_plugin.rb +0 -4
- data/test/rubygems/plugin/load/rubygems_plugin.rb +0 -5
- data/test/rubygems/plugin/standarderror/rubygems_plugin.rb +0 -4
- data/test/rubygems/private3072_key.pem +0 -40
- data/test/rubygems/private_ec_key.pem +0 -9
- data/test/rubygems/private_key.pem +0 -27
- data/test/rubygems/public3072_cert.pem +0 -25
- data/test/rubygems/public_cert.pem +0 -20
- data/test/rubygems/public_cert_32.pem +0 -19
- data/test/rubygems/public_key.pem +0 -9
- data/test/rubygems/rubygems/commands/crash_command.rb +0 -5
- data/test/rubygems/rubygems_plugin.rb +0 -24
- data/test/rubygems/sff/discover.rb +0 -1
- data/test/rubygems/simple_gem.rb +0 -68
- data/test/rubygems/specifications/bar-0.0.2.gemspec +0 -9
- data/test/rubygems/specifications/foo-0.0.1-x86-mswin32.gemspec +0 -0
- data/test/rubygems/specifications/rubyforge-0.0.1.gemspec +0 -14
- data/test/rubygems/ssl_cert.pem +0 -80
- data/test/rubygems/ssl_key.pem +0 -27
- data/test/rubygems/test_bundled_ca.rb +0 -61
- data/test/rubygems/test_config.rb +0 -28
- data/test/rubygems/test_deprecate.rb +0 -158
- data/test/rubygems/test_exit.rb +0 -17
- data/test/rubygems/test_gem.rb +0 -1799
- data/test/rubygems/test_gem_available_set.rb +0 -130
- data/test/rubygems/test_gem_bundler_version_finder.rb +0 -127
- data/test/rubygems/test_gem_command.rb +0 -403
- data/test/rubygems/test_gem_command_manager.rb +0 -400
- data/test/rubygems/test_gem_commands_build_command.rb +0 -739
- data/test/rubygems/test_gem_commands_cert_command.rb +0 -866
- data/test/rubygems/test_gem_commands_check_command.rb +0 -68
- data/test/rubygems/test_gem_commands_cleanup_command.rb +0 -292
- data/test/rubygems/test_gem_commands_contents_command.rb +0 -271
- data/test/rubygems/test_gem_commands_dependency_command.rb +0 -228
- data/test/rubygems/test_gem_commands_environment_command.rb +0 -169
- data/test/rubygems/test_gem_commands_exec_command.rb +0 -857
- data/test/rubygems/test_gem_commands_fetch_command.rb +0 -258
- data/test/rubygems/test_gem_commands_generate_index_command.rb +0 -81
- data/test/rubygems/test_gem_commands_help_command.rb +0 -94
- data/test/rubygems/test_gem_commands_info_command.rb +0 -70
- data/test/rubygems/test_gem_commands_install_command.rb +0 -1573
- data/test/rubygems/test_gem_commands_list_command.rb +0 -33
- data/test/rubygems/test_gem_commands_lock_command.rb +0 -67
- data/test/rubygems/test_gem_commands_mirror.rb +0 -20
- data/test/rubygems/test_gem_commands_open_command.rb +0 -101
- data/test/rubygems/test_gem_commands_outdated_command.rb +0 -50
- data/test/rubygems/test_gem_commands_owner_command.rb +0 -503
- data/test/rubygems/test_gem_commands_pristine_command.rb +0 -708
- data/test/rubygems/test_gem_commands_push_command.rb +0 -603
- data/test/rubygems/test_gem_commands_query_command.rb +0 -858
- data/test/rubygems/test_gem_commands_search_command.rb +0 -16
- data/test/rubygems/test_gem_commands_server_command.rb +0 -20
- data/test/rubygems/test_gem_commands_setup_command.rb +0 -474
- data/test/rubygems/test_gem_commands_signin_command.rb +0 -259
- data/test/rubygems/test_gem_commands_signout_command.rb +0 -30
- data/test/rubygems/test_gem_commands_sources_command.rb +0 -534
- data/test/rubygems/test_gem_commands_specification_command.rb +0 -277
- data/test/rubygems/test_gem_commands_stale_command.rb +0 -43
- data/test/rubygems/test_gem_commands_uninstall_command.rb +0 -542
- data/test/rubygems/test_gem_commands_unpack_command.rb +0 -224
- data/test/rubygems/test_gem_commands_update_command.rb +0 -836
- data/test/rubygems/test_gem_commands_which_command.rb +0 -85
- data/test/rubygems/test_gem_commands_yank_command.rb +0 -299
- data/test/rubygems/test_gem_config_file.rb +0 -551
- data/test/rubygems/test_gem_dependency.rb +0 -398
- data/test/rubygems/test_gem_dependency_installer.rb +0 -1190
- data/test/rubygems/test_gem_dependency_list.rb +0 -265
- data/test/rubygems/test_gem_dependency_resolution_error.rb +0 -27
- data/test/rubygems/test_gem_doctor.rb +0 -195
- data/test/rubygems/test_gem_ext_builder.rb +0 -337
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/.gitignore +0 -1
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/custom_name.gemspec +0 -10
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/ext/custom_name_lib/Cargo.lock +0 -249
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/ext/custom_name_lib/Cargo.toml +0 -10
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/ext/custom_name_lib/src/lib.rs +0 -27
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/lib/custom_name.rb +0 -3
- data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/.gitignore +0 -1
- data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/Cargo.lock +0 -249
- data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/Cargo.toml +0 -10
- data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/rust_ruby_example.gemspec +0 -10
- data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/src/lib.rs +0 -51
- data/test/rubygems/test_gem_ext_cargo_builder.rb +0 -167
- data/test/rubygems/test_gem_ext_cargo_builder_link_flag_converter.rb +0 -34
- data/test/rubygems/test_gem_ext_cargo_builder_unit.rb +0 -60
- data/test/rubygems/test_gem_ext_cmake_builder.rb +0 -84
- data/test/rubygems/test_gem_ext_configure_builder.rb +0 -80
- data/test/rubygems/test_gem_ext_ext_conf_builder.rb +0 -229
- data/test/rubygems/test_gem_ext_rake_builder.rb +0 -113
- data/test/rubygems/test_gem_gem_runner.rb +0 -119
- data/test/rubygems/test_gem_gemcutter_utilities.rb +0 -361
- data/test/rubygems/test_gem_impossible_dependencies_error.rb +0 -60
- data/test/rubygems/test_gem_indexer.rb +0 -381
- data/test/rubygems/test_gem_install_update_options.rb +0 -208
- data/test/rubygems/test_gem_installer.rb +0 -2512
- data/test/rubygems/test_gem_local_remote_options.rb +0 -133
- data/test/rubygems/test_gem_name_tuple.rb +0 -43
- data/test/rubygems/test_gem_package.rb +0 -1306
- data/test/rubygems/test_gem_package_old.rb +0 -91
- data/test/rubygems/test_gem_package_tar_header.rb +0 -226
- data/test/rubygems/test_gem_package_tar_reader.rb +0 -150
- data/test/rubygems/test_gem_package_tar_reader_entry.rb +0 -350
- data/test/rubygems/test_gem_package_tar_writer.rb +0 -331
- data/test/rubygems/test_gem_package_task.rb +0 -118
- data/test/rubygems/test_gem_path_support.rb +0 -139
- data/test/rubygems/test_gem_platform.rb +0 -497
- data/test/rubygems/test_gem_rdoc.rb +0 -137
- data/test/rubygems/test_gem_remote_fetcher.rb +0 -1227
- data/test/rubygems/test_gem_request.rb +0 -547
- data/test/rubygems/test_gem_request_connection_pools.rb +0 -152
- data/test/rubygems/test_gem_request_set.rb +0 -672
- data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +0 -853
- data/test/rubygems/test_gem_request_set_lockfile.rb +0 -469
- data/test/rubygems/test_gem_request_set_lockfile_parser.rb +0 -544
- data/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb +0 -307
- data/test/rubygems/test_gem_requirement.rb +0 -505
- data/test/rubygems/test_gem_resolver.rb +0 -859
- data/test/rubygems/test_gem_resolver_activation_request.rb +0 -43
- data/test/rubygems/test_gem_resolver_api_set.rb +0 -210
- data/test/rubygems/test_gem_resolver_api_specification.rb +0 -167
- data/test/rubygems/test_gem_resolver_best_set.rb +0 -159
- data/test/rubygems/test_gem_resolver_composed_set.rb +0 -44
- data/test/rubygems/test_gem_resolver_conflict.rb +0 -82
- data/test/rubygems/test_gem_resolver_dependency_request.rb +0 -83
- data/test/rubygems/test_gem_resolver_git_set.rb +0 -188
- data/test/rubygems/test_gem_resolver_git_specification.rb +0 -114
- data/test/rubygems/test_gem_resolver_index_set.rb +0 -88
- data/test/rubygems/test_gem_resolver_index_specification.rb +0 -93
- data/test/rubygems/test_gem_resolver_installed_specification.rb +0 -47
- data/test/rubygems/test_gem_resolver_installer_set.rb +0 -320
- data/test/rubygems/test_gem_resolver_local_specification.rb +0 -44
- data/test/rubygems/test_gem_resolver_lock_set.rb +0 -62
- data/test/rubygems/test_gem_resolver_lock_specification.rb +0 -98
- data/test/rubygems/test_gem_resolver_requirement_list.rb +0 -19
- data/test/rubygems/test_gem_resolver_specification.rb +0 -63
- data/test/rubygems/test_gem_resolver_vendor_set.rb +0 -82
- data/test/rubygems/test_gem_resolver_vendor_specification.rb +0 -82
- data/test/rubygems/test_gem_security.rb +0 -341
- data/test/rubygems/test_gem_security_policy.rb +0 -535
- data/test/rubygems/test_gem_security_signer.rb +0 -218
- data/test/rubygems/test_gem_security_trust_dir.rb +0 -99
- data/test/rubygems/test_gem_silent_ui.rb +0 -123
- data/test/rubygems/test_gem_source.rb +0 -254
- data/test/rubygems/test_gem_source_fetch_problem.rb +0 -37
- data/test/rubygems/test_gem_source_git.rb +0 -310
- data/test/rubygems/test_gem_source_installed.rb +0 -35
- data/test/rubygems/test_gem_source_list.rb +0 -119
- data/test/rubygems/test_gem_source_local.rb +0 -107
- data/test/rubygems/test_gem_source_lock.rb +0 -113
- data/test/rubygems/test_gem_source_specific_file.rb +0 -76
- data/test/rubygems/test_gem_source_subpath_problem.rb +0 -50
- data/test/rubygems/test_gem_source_vendor.rb +0 -30
- data/test/rubygems/test_gem_spec_fetcher.rb +0 -338
- data/test/rubygems/test_gem_specification.rb +0 -3856
- data/test/rubygems/test_gem_stream_ui.rb +0 -255
- data/test/rubygems/test_gem_stub_specification.rb +0 -278
- data/test/rubygems/test_gem_text.rb +0 -103
- data/test/rubygems/test_gem_uninstaller.rb +0 -675
- data/test/rubygems/test_gem_unsatisfiable_dependency_error.rb +0 -31
- data/test/rubygems/test_gem_update_suggestion.rb +0 -209
- data/test/rubygems/test_gem_uri.rb +0 -41
- data/test/rubygems/test_gem_uri_formatter.rb +0 -27
- data/test/rubygems/test_gem_util.rb +0 -91
- data/test/rubygems/test_gem_validator.rb +0 -42
- data/test/rubygems/test_gem_version.rb +0 -305
- data/test/rubygems/test_gem_version_option.rb +0 -165
- data/test/rubygems/test_kernel.rb +0 -124
- data/test/rubygems/test_project_sanity.rb +0 -49
- data/test/rubygems/test_remote_fetch_error.rb +0 -20
- data/test/rubygems/test_require.rb +0 -732
- data/test/rubygems/test_rubygems.rb +0 -76
- data/test/rubygems/test_webauthn_listener.rb +0 -143
- data/test/rubygems/test_webauthn_listener_response.rb +0 -93
- data/test/rubygems/test_webauthn_poller.rb +0 -124
- data/test/rubygems/utilities.rb +0 -436
- data/test/rubygems/wrong_key_cert.pem +0 -19
- data/test/rubygems/wrong_key_cert_32.pem +0 -19
- data/test/test_changelog_generator.rb +0 -17
@@ -1,424 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "helper"
|
4
|
-
|
5
|
-
class TestBundlerGem < Gem::TestCase
|
6
|
-
PROJECT_DIR = File.expand_path("../..", __dir__).tap(&Gem::UNTAINT)
|
7
|
-
|
8
|
-
def test_self_use_gemdeps
|
9
|
-
with_local_bundler_at(Gem.dir) do
|
10
|
-
with_rubygems_gemdeps("-") do
|
11
|
-
FileUtils.mkdir_p "detect/a/b"
|
12
|
-
FileUtils.mkdir_p "detect/a/Isolate"
|
13
|
-
|
14
|
-
FileUtils.touch "detect/Isolate"
|
15
|
-
|
16
|
-
begin
|
17
|
-
Dir.chdir "detect/a/b"
|
18
|
-
|
19
|
-
Gem.use_gemdeps
|
20
|
-
|
21
|
-
assert_equal add_bundler_full_name([]), loaded_spec_names
|
22
|
-
ensure
|
23
|
-
Dir.chdir @tempdir
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
def test_self_find_files_with_gemfile
|
30
|
-
with_local_bundler_at(Gem.dir) do
|
31
|
-
cwd = File.expand_path("test/rubygems", PROJECT_DIR)
|
32
|
-
actual_load_path = $LOAD_PATH.unshift(cwd).dup
|
33
|
-
|
34
|
-
discover_path = File.join "lib", "sff", "discover.rb"
|
35
|
-
|
36
|
-
foo1, _ = %w[1 2].map do |version|
|
37
|
-
spec = quick_gem "sff", version do |s|
|
38
|
-
s.files << discover_path
|
39
|
-
end
|
40
|
-
|
41
|
-
write_file(File.join "gems", spec.full_name, discover_path) do |fp|
|
42
|
-
fp.puts "# #{spec.full_name}"
|
43
|
-
end
|
44
|
-
|
45
|
-
spec
|
46
|
-
end
|
47
|
-
Gem.refresh
|
48
|
-
|
49
|
-
write_file(File.join Dir.pwd, "Gemfile") do |fp|
|
50
|
-
fp.puts "source 'https://rubygems.org'"
|
51
|
-
fp.puts "gem '#{foo1.name}', '#{foo1.version}'"
|
52
|
-
end
|
53
|
-
Gem.use_gemdeps(File.join Dir.pwd, "Gemfile")
|
54
|
-
|
55
|
-
expected = [
|
56
|
-
File.expand_path("test/rubygems/sff/discover.rb", PROJECT_DIR),
|
57
|
-
File.join(foo1.full_gem_path, discover_path),
|
58
|
-
].sort
|
59
|
-
|
60
|
-
assert_equal expected, Gem.find_files("sff/discover").sort
|
61
|
-
assert_equal expected, Gem.find_files("sff/**.rb").sort, "[ruby-core:31730]"
|
62
|
-
assert_equal cwd, actual_load_path.shift
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
def test_auto_activation_of_specific_gemdeps_file
|
67
|
-
with_local_bundler_at(Gem.dir) do
|
68
|
-
a = util_spec "a", "1", nil, "lib/a.rb"
|
69
|
-
b = util_spec "b", "1", nil, "lib/b.rb"
|
70
|
-
c = util_spec "c", "1", nil, "lib/c.rb"
|
71
|
-
|
72
|
-
install_specs a, b, c
|
73
|
-
|
74
|
-
path = File.join @tempdir, "gem.deps.rb"
|
75
|
-
|
76
|
-
File.open path, "w" do |f|
|
77
|
-
f.puts "gem 'a'"
|
78
|
-
f.puts "gem 'b'"
|
79
|
-
f.puts "gem 'c'"
|
80
|
-
end
|
81
|
-
|
82
|
-
with_rubygems_gemdeps(path) do
|
83
|
-
Gem.use_gemdeps
|
84
|
-
|
85
|
-
assert_equal add_bundler_full_name(%W[a-1 b-1 c-1]), loaded_spec_names
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
def test_auto_activation_of_used_gemdeps_file
|
91
|
-
with_local_bundler_at(Gem.dir) do
|
92
|
-
a = util_spec "a", "1", nil, "lib/a.rb"
|
93
|
-
b = util_spec "b", "1", nil, "lib/b.rb"
|
94
|
-
c = util_spec "c", "1", nil, "lib/c.rb"
|
95
|
-
|
96
|
-
install_specs a, b, c
|
97
|
-
|
98
|
-
path = File.join @tempdir, "gem.deps.rb"
|
99
|
-
|
100
|
-
File.open path, "w" do |f|
|
101
|
-
f.puts "gem 'a'"
|
102
|
-
f.puts "gem 'b'"
|
103
|
-
f.puts "gem 'c'"
|
104
|
-
end
|
105
|
-
|
106
|
-
with_rubygems_gemdeps("-") do
|
107
|
-
expected_specs = [a, b, util_spec("bundler", Bundler::VERSION), c].compact.map(&:full_name)
|
108
|
-
|
109
|
-
Gem.use_gemdeps
|
110
|
-
|
111
|
-
assert_equal expected_specs, loaded_spec_names
|
112
|
-
end
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
|
-
def test_looks_for_gemdeps_files_automatically_from_binstubs
|
117
|
-
path = File.join(@tempdir, "gd-tmp")
|
118
|
-
|
119
|
-
with_local_bundler_at(path) do
|
120
|
-
a = util_spec "a", "1" do |s|
|
121
|
-
s.executables = %w[foo]
|
122
|
-
s.bindir = "exe"
|
123
|
-
end
|
124
|
-
|
125
|
-
write_file File.join(@tempdir, "exe", "foo") do |fp|
|
126
|
-
fp.puts "puts Gem.loaded_specs.values.map(&:full_name).sort"
|
127
|
-
end
|
128
|
-
|
129
|
-
b = util_spec "b", "1", nil, "lib/b.rb"
|
130
|
-
c = util_spec "c", "1", nil, "lib/c.rb"
|
131
|
-
|
132
|
-
install_specs a, b, c
|
133
|
-
|
134
|
-
install_gem a, :install_dir => path
|
135
|
-
install_gem b, :install_dir => path
|
136
|
-
install_gem c, :install_dir => path
|
137
|
-
|
138
|
-
ENV["GEM_PATH"] = path
|
139
|
-
|
140
|
-
with_rubygems_gemdeps("-") do
|
141
|
-
new_PATH = [File.join(path, "bin"), ENV["PATH"]].join(File::PATH_SEPARATOR)
|
142
|
-
new_RUBYOPT = "-I#{rubygems_path} -I#{bundler_path}"
|
143
|
-
|
144
|
-
path = File.join @tempdir, "gem.deps.rb"
|
145
|
-
|
146
|
-
File.open path, "w" do |f|
|
147
|
-
f.puts "gem 'a'"
|
148
|
-
end
|
149
|
-
out0 = with_path_and_rubyopt(new_PATH, new_RUBYOPT) do
|
150
|
-
IO.popen("foo", &:read).split(/\n/)
|
151
|
-
end
|
152
|
-
|
153
|
-
File.open path, "a" do |f|
|
154
|
-
f.puts "gem 'b'"
|
155
|
-
f.puts "gem 'c'"
|
156
|
-
end
|
157
|
-
out = with_path_and_rubyopt(new_PATH, new_RUBYOPT) do
|
158
|
-
IO.popen("foo", &:read).split(/\n/)
|
159
|
-
end
|
160
|
-
|
161
|
-
assert_equal ["b-1", "c-1"], out - out0
|
162
|
-
end
|
163
|
-
end
|
164
|
-
end
|
165
|
-
|
166
|
-
def test_looks_for_gemdeps_files_automatically_from_binstubs_in_parent_dir
|
167
|
-
path = File.join(@tempdir, "gd-tmp")
|
168
|
-
|
169
|
-
with_local_bundler_at(path) do
|
170
|
-
pend "IO.popen has issues on JRuby when passed :chdir" if Gem.java_platform?
|
171
|
-
|
172
|
-
a = util_spec "a", "1" do |s|
|
173
|
-
s.executables = %w[foo]
|
174
|
-
s.bindir = "exe"
|
175
|
-
end
|
176
|
-
|
177
|
-
write_file File.join(@tempdir, "exe", "foo") do |fp|
|
178
|
-
fp.puts "puts Gem.loaded_specs.values.map(&:full_name).sort"
|
179
|
-
end
|
180
|
-
|
181
|
-
b = util_spec "b", "1", nil, "lib/b.rb"
|
182
|
-
c = util_spec "c", "1", nil, "lib/c.rb"
|
183
|
-
|
184
|
-
install_specs a, b, c
|
185
|
-
|
186
|
-
install_gem a, :install_dir => path
|
187
|
-
install_gem b, :install_dir => path
|
188
|
-
install_gem c, :install_dir => path
|
189
|
-
|
190
|
-
ENV["GEM_PATH"] = path
|
191
|
-
|
192
|
-
with_rubygems_gemdeps("-") do
|
193
|
-
Dir.mkdir "sub1"
|
194
|
-
|
195
|
-
new_PATH = [File.join(path, "bin"), ENV["PATH"]].join(File::PATH_SEPARATOR)
|
196
|
-
new_RUBYOPT = "-I#{rubygems_path} -I#{bundler_path}"
|
197
|
-
|
198
|
-
path = File.join @tempdir, "gem.deps.rb"
|
199
|
-
|
200
|
-
File.open path, "w" do |f|
|
201
|
-
f.puts "gem 'a'"
|
202
|
-
end
|
203
|
-
out0 = with_path_and_rubyopt(new_PATH, new_RUBYOPT) do
|
204
|
-
IO.popen("foo", :chdir => "sub1", &:read).split(/\n/)
|
205
|
-
end
|
206
|
-
|
207
|
-
File.open path, "a" do |f|
|
208
|
-
f.puts "gem 'b'"
|
209
|
-
f.puts "gem 'c'"
|
210
|
-
end
|
211
|
-
out = with_path_and_rubyopt(new_PATH, new_RUBYOPT) do
|
212
|
-
IO.popen("foo", :chdir => "sub1", &:read).split(/\n/)
|
213
|
-
end
|
214
|
-
|
215
|
-
Dir.rmdir "sub1"
|
216
|
-
|
217
|
-
assert_equal ["b-1", "c-1"], out - out0
|
218
|
-
end
|
219
|
-
end
|
220
|
-
end
|
221
|
-
|
222
|
-
def test_use_gemdeps
|
223
|
-
with_local_bundler_at(Gem.dir) do
|
224
|
-
gem_deps_file = "gem.deps.rb".tap(&Gem::UNTAINT)
|
225
|
-
spec = util_spec "a", 1
|
226
|
-
install_specs spec
|
227
|
-
|
228
|
-
spec = Gem::Specification.find {|s| s == spec }
|
229
|
-
refute spec.activated?
|
230
|
-
|
231
|
-
File.open gem_deps_file, "w" do |io|
|
232
|
-
io.write 'gem "a"'
|
233
|
-
end
|
234
|
-
|
235
|
-
assert_nil Gem.gemdeps
|
236
|
-
|
237
|
-
Gem.use_gemdeps gem_deps_file
|
238
|
-
|
239
|
-
assert_equal add_bundler_full_name(%W[a-1]), loaded_spec_names
|
240
|
-
refute_nil Gem.gemdeps
|
241
|
-
end
|
242
|
-
end
|
243
|
-
|
244
|
-
def test_use_gemdeps_ENV
|
245
|
-
with_local_bundler_at(Gem.dir) do
|
246
|
-
with_rubygems_gemdeps(nil) do
|
247
|
-
spec = util_spec "a", 1
|
248
|
-
|
249
|
-
refute spec.activated?
|
250
|
-
|
251
|
-
File.open "gem.deps.rb", "w" do |io|
|
252
|
-
io.write 'gem "a"'
|
253
|
-
end
|
254
|
-
|
255
|
-
Gem.use_gemdeps
|
256
|
-
|
257
|
-
refute spec.activated?
|
258
|
-
end
|
259
|
-
end
|
260
|
-
end
|
261
|
-
|
262
|
-
def test_use_gemdeps_argument_missing
|
263
|
-
with_local_bundler_at(Gem.dir) do
|
264
|
-
e = assert_raise ArgumentError do
|
265
|
-
Gem.use_gemdeps "gem.deps.rb"
|
266
|
-
end
|
267
|
-
|
268
|
-
assert_equal "Unable to find gem dependencies file at gem.deps.rb",
|
269
|
-
e.message
|
270
|
-
end
|
271
|
-
end
|
272
|
-
|
273
|
-
def test_use_gemdeps_argument_missing_match_ENV
|
274
|
-
with_local_bundler_at(Gem.dir) do
|
275
|
-
with_rubygems_gemdeps("gem.deps.rb") do
|
276
|
-
e = assert_raise ArgumentError do
|
277
|
-
Gem.use_gemdeps "gem.deps.rb"
|
278
|
-
end
|
279
|
-
|
280
|
-
assert_equal "Unable to find gem dependencies file at gem.deps.rb",
|
281
|
-
e.message
|
282
|
-
end
|
283
|
-
end
|
284
|
-
end
|
285
|
-
|
286
|
-
def test_use_gemdeps_automatic
|
287
|
-
with_local_bundler_at(Gem.dir) do
|
288
|
-
with_rubygems_gemdeps("-") do
|
289
|
-
spec = util_spec "a", 1
|
290
|
-
install_specs spec
|
291
|
-
spec = Gem::Specification.find {|s| s == spec }
|
292
|
-
|
293
|
-
refute spec.activated?
|
294
|
-
|
295
|
-
File.open "Gemfile", "w" do |io|
|
296
|
-
io.write 'gem "a"'
|
297
|
-
end
|
298
|
-
|
299
|
-
Gem.use_gemdeps
|
300
|
-
|
301
|
-
assert_equal add_bundler_full_name(%W[a-1]), loaded_spec_names
|
302
|
-
end
|
303
|
-
end
|
304
|
-
end
|
305
|
-
|
306
|
-
def test_use_gemdeps_automatic_missing
|
307
|
-
with_local_bundler_at(Gem.dir) do
|
308
|
-
with_rubygems_gemdeps("-") do
|
309
|
-
Gem.use_gemdeps
|
310
|
-
|
311
|
-
assert true # count
|
312
|
-
end
|
313
|
-
end
|
314
|
-
end
|
315
|
-
|
316
|
-
def test_use_gemdeps_disabled
|
317
|
-
with_local_bundler_at(Gem.dir) do
|
318
|
-
with_rubygems_gemdeps("") do
|
319
|
-
spec = util_spec "a", 1
|
320
|
-
|
321
|
-
refute spec.activated?
|
322
|
-
|
323
|
-
File.open "gem.deps.rb", "w" do |io|
|
324
|
-
io.write 'gem "a"'
|
325
|
-
end
|
326
|
-
|
327
|
-
Gem.use_gemdeps
|
328
|
-
|
329
|
-
refute spec.activated?
|
330
|
-
end
|
331
|
-
end
|
332
|
-
end
|
333
|
-
|
334
|
-
def test_use_gemdeps_missing_gem
|
335
|
-
with_local_bundler_at(Gem.dir) do
|
336
|
-
with_rubygems_gemdeps("x") do
|
337
|
-
File.open "x", "w" do |io|
|
338
|
-
io.write 'gem "a"'
|
339
|
-
end
|
340
|
-
|
341
|
-
expected = <<-EXPECTED
|
342
|
-
Could not find gem 'a' in locally installed gems.
|
343
|
-
You may need to `bundle install` to install missing gems
|
344
|
-
|
345
|
-
EXPECTED
|
346
|
-
|
347
|
-
Gem::Deprecate.skip_during do
|
348
|
-
actual_stdout, actual_stderr = capture_output do
|
349
|
-
Gem.use_gemdeps
|
350
|
-
end
|
351
|
-
assert_empty actual_stdout
|
352
|
-
assert_equal(expected, actual_stderr)
|
353
|
-
end
|
354
|
-
end
|
355
|
-
end
|
356
|
-
end
|
357
|
-
|
358
|
-
def test_use_gemdeps_specific
|
359
|
-
with_local_bundler_at(Gem.dir) do
|
360
|
-
with_rubygems_gemdeps("x") do
|
361
|
-
spec = util_spec "a", 1
|
362
|
-
install_specs spec
|
363
|
-
|
364
|
-
spec = Gem::Specification.find {|s| s == spec }
|
365
|
-
refute spec.activated?
|
366
|
-
|
367
|
-
File.open "x", "w" do |io|
|
368
|
-
io.write 'gem "a"'
|
369
|
-
end
|
370
|
-
|
371
|
-
Gem.use_gemdeps
|
372
|
-
|
373
|
-
assert_equal add_bundler_full_name(%W[a-1]), loaded_spec_names
|
374
|
-
end
|
375
|
-
end
|
376
|
-
end
|
377
|
-
|
378
|
-
private
|
379
|
-
|
380
|
-
def add_bundler_full_name(names)
|
381
|
-
names << "bundler-#{Bundler::VERSION}"
|
382
|
-
names.sort!
|
383
|
-
names
|
384
|
-
end
|
385
|
-
|
386
|
-
def with_path_and_rubyopt(path_value, rubyopt_value)
|
387
|
-
path = ENV["PATH"]
|
388
|
-
ENV["PATH"] = path_value
|
389
|
-
rubyopt = ENV["RUBYOPT"]
|
390
|
-
ENV["RUBYOPT"] = rubyopt_value
|
391
|
-
|
392
|
-
yield
|
393
|
-
ensure
|
394
|
-
ENV["PATH"] = path
|
395
|
-
ENV["RUBYOPT"] = rubyopt
|
396
|
-
end
|
397
|
-
|
398
|
-
def with_rubygems_gemdeps(value)
|
399
|
-
rubygems_gemdeps = ENV["RUBYGEMS_GEMDEPS"]
|
400
|
-
ENV["RUBYGEMS_GEMDEPS"] = value
|
401
|
-
|
402
|
-
yield
|
403
|
-
ensure
|
404
|
-
ENV["RUBYGEMS_GEMDEPS"] = rubygems_gemdeps
|
405
|
-
end
|
406
|
-
|
407
|
-
def with_local_bundler_at(path)
|
408
|
-
require "bundler"
|
409
|
-
|
410
|
-
# If bundler gemspec exists, pretend it's installed
|
411
|
-
bundler_gemspec = File.expand_path("../../bundler/bundler.gemspec", __dir__)
|
412
|
-
if File.exist?(bundler_gemspec)
|
413
|
-
target_gemspec_location = "#{path}/specifications/bundler-#{Bundler::VERSION}.gemspec"
|
414
|
-
|
415
|
-
FileUtils.mkdir_p File.dirname(target_gemspec_location)
|
416
|
-
|
417
|
-
File.write target_gemspec_location, Gem::Specification.load(bundler_gemspec).to_ruby_for_cache
|
418
|
-
end
|
419
|
-
|
420
|
-
yield
|
421
|
-
ensure
|
422
|
-
Bundler.reset!
|
423
|
-
end
|
424
|
-
end
|
data/test/rubygems/ca_cert.pem
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
Certificate:
|
2
|
-
Data:
|
3
|
-
Version: 3 (0x2)
|
4
|
-
Serial Number: 0 (0x0)
|
5
|
-
Signature Algorithm: sha256WithRSAEncryption
|
6
|
-
Issuer: C=JP, ST=Tokyo, O=RubyGemsTest, CN=CA
|
7
|
-
Validity
|
8
|
-
Not Before: Jan 1 00:00:00 2009 GMT
|
9
|
-
Not After : Dec 31 23:59:59 2049 GMT
|
10
|
-
Subject: C=JP, ST=Tokyo, O=RubyGemsTest, CN=CA
|
11
|
-
Subject Public Key Info:
|
12
|
-
Public Key Algorithm: rsaEncryption
|
13
|
-
RSA Public-Key: (2048 bit)
|
14
|
-
Modulus:
|
15
|
-
00:c8:19:2c:5a:1d:4d:2a:65:1d:9a:0b:d6:3a:5c:
|
16
|
-
5f:54:90:ac:17:6f:58:18:8f:e6:0f:33:36:ca:a0:
|
17
|
-
92:02:b8:49:85:96:e9:74:16:14:40:67:98:4a:1f:
|
18
|
-
4d:1c:d8:0b:c4:4e:f8:78:0a:68:70:39:d8:66:64:
|
19
|
-
c6:d5:ca:49:e9:02:c7:1a:1c:03:ba:a1:85:68:0a:
|
20
|
-
03:05:27:b5:7f:97:21:94:20:f3:fe:ea:2e:f5:2e:
|
21
|
-
99:34:6b:e0:e7:96:ca:51:4e:4d:40:48:09:d6:5f:
|
22
|
-
64:7b:e5:df:eb:3d:44:bf:42:25:f7:84:c7:2d:22:
|
23
|
-
e0:7f:00:37:c6:c3:16:75:75:37:6a:e5:56:da:1c:
|
24
|
-
77:37:3c:00:d3:1f:f4:9d:3b:27:08:ff:cd:cf:1e:
|
25
|
-
60:74:65:90:c2:59:b4:12:3e:a0:7f:22:47:87:ff:
|
26
|
-
52:f3:47:39:d1:91:02:1c:bb:8c:c9:20:1f:00:db:
|
27
|
-
d1:3a:b0:e0:ba:ee:55:05:8f:1a:f8:1e:dd:6d:83:
|
28
|
-
1c:1d:18:01:44:92:27:22:f1:2a:07:fe:43:83:08:
|
29
|
-
82:d3:2b:f1:ec:b1:68:b3:f8:94:1b:81:29:54:01:
|
30
|
-
56:12:54:66:ba:60:e7:5c:27:04:4d:a3:61:e3:f9:
|
31
|
-
8f:86:53:0b:83:eb:1f:1d:89:0c:83:66:88:c8:50:
|
32
|
-
8d:c5
|
33
|
-
Exponent: 65537 (0x10001)
|
34
|
-
X509v3 extensions:
|
35
|
-
X509v3 Subject Key Identifier:
|
36
|
-
D6:DB:87:AD:D3:45:FC:D4:8D:6B:2B:97:F4:CF:95:08:B6:FA:62:A4
|
37
|
-
X509v3 Authority Key Identifier:
|
38
|
-
keyid:D6:DB:87:AD:D3:45:FC:D4:8D:6B:2B:97:F4:CF:95:08:B6:FA:62:A4
|
39
|
-
|
40
|
-
X509v3 Basic Constraints: critical
|
41
|
-
CA:TRUE
|
42
|
-
Signature Algorithm: sha256WithRSAEncryption
|
43
|
-
06:92:f7:9a:0f:40:da:1a:7f:9f:0c:9e:04:37:4d:be:a4:1e:
|
44
|
-
86:65:b3:4a:be:87:13:a1:e4:6b:3b:d6:58:9d:ca:f8:ba:6d:
|
45
|
-
e4:dd:de:c5:e3:a2:ec:ef:32:2d:c0:06:01:3a:d5:81:5a:e1:
|
46
|
-
e4:f7:5f:68:67:ea:cd:28:90:b1:9c:82:d3:4e:00:51:b6:eb:
|
47
|
-
d5:8d:ec:ab:c3:18:b2:8b:8d:5b:63:6d:f8:f5:40:c6:c6:7e:
|
48
|
-
72:7b:ed:98:c5:5e:24:b9:ad:4f:5b:8f:1d:53:a3:d7:6a:4f:
|
49
|
-
07:2e:6a:b6:63:5c:dc:05:22:ac:77:af:b0:72:9d:39:6f:77:
|
50
|
-
9c:45:8b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
14
|
-
FwPpnpcQAceoctK095JTtRTFGRN6FPl0VWuEsCS9lnwLzS7mQXiBg5EO7474v2Ki
|
15
|
-
JPgncJefmCbtjJwaB78l+ybk9iUkdRv80QCHqdeHA5CegbsnDGkcJSkCgYEAuTUx
|
16
|
-
Tfd3zpIEz0qhUf1D4PpgtoTj1zbXIUEFWl1SkLqklTF7k4LXZoWj7i3LraFk+jC2
|
17
|
-
769qkLzF0CTHRFr5d00v9tCDOT5Sv2lqJw5UAmouKSuLF7XBp5tAkICkFX7Lo61v
|
18
|
-
4iS2HtpK9wzri+L2XnDD3bxcHFHsEaxuD0V6iI0CgYEAp6Nsa4pizxT53z1IDtw0
|
19
|
-
uCwrTt5rgVrlzE+hvcMSWvPG/+ZQUwmzDotDC462EDDnhO4mDPvW4WNUign4PmVx
|
20
|
-
/pzR3JRj89SEodRieFUNr5lOMq2KAz0vvj8Y0pnJQ5Z5Ed2V7hdN79uUITeZMTM3
|
21
|
-
AOAtSochohB3UTz7Kj1ykskCgYBPXZAHTSi2CLSu79g5fkJ8Qk73Z/MK4qFFyss0
|
22
|
-
chFTm+ezV0URbVxIvrQE+PLzMNpIrF94Tr9nzr0l+Ny7WhDVIuqO5cOV4DMte0rV
|
23
|
-
+bneXwnw8ovkWSrnXAxK4BVwcKlrNoNfcUPp7Ll7LLozc8sHpWMJvhHqwOBcont3
|
24
|
-
Z9qecQKBgAiiWHPgMKChKDg/JVQGEqILF67c7ZuzBMtUHmGNVn8NNr++NXZ4YIRB
|
25
|
-
/TgYNXySTgEuD7tUE6B/iO9Mp1CpJbzRtdk8oqJlgJ4rza50N07k/SGIIWl7hAr8
|
26
|
-
No1ibENOfw7aeMKRz3udLT50TFoluykWc/m1nJEaqtSEJLkBRM5c
|
27
|
-
-----END RSA PRIVATE KEY-----
|
data/test/rubygems/client.pem
DELETED
@@ -1,107 +0,0 @@
|
|
1
|
-
Certificate:
|
2
|
-
Data:
|
3
|
-
Version: 3 (0x2)
|
4
|
-
Serial Number: 2 (0x2)
|
5
|
-
Signature Algorithm: sha256WithRSAEncryption
|
6
|
-
Issuer: C=JP, ST=Tokyo, O=RubyGemsTest, CN=CA
|
7
|
-
Validity
|
8
|
-
Not Before: Jan 1 00:00:00 2009 GMT
|
9
|
-
Not After : Dec 31 23:59:59 2049 GMT
|
10
|
-
Subject: C=JP, ST=Tokyo, O=RubyGemsTest, CN=client
|
11
|
-
Subject Public Key Info:
|
12
|
-
Public Key Algorithm: rsaEncryption
|
13
|
-
RSA Public-Key: (2048 bit)
|
14
|
-
Modulus:
|
15
|
-
00:c7:87:4a:f4:77:32:54:0e:56:0a:80:04:ac:b5:
|
16
|
-
71:b6:29:9f:c6:aa:f5:9b:3b:75:0a:c2:55:2c:cf:
|
17
|
-
34:c8:78:b7:38:ed:af:48:7d:7e:6c:4c:39:d8:0f:
|
18
|
-
cf:fc:ba:f5:e0:50:47:a0:76:72:cf:c7:de:91:a6:
|
19
|
-
1a:99:8b:5f:6f:0c:06:fc:f1:78:6b:0f:c5:bc:91:
|
20
|
-
cc:91:f0:85:05:5d:66:d3:cb:ac:54:a1:bc:9b:6c:
|
21
|
-
e8:17:f2:17:20:b8:b0:b2:03:cc:9d:a6:8e:c0:33:
|
22
|
-
6c:8b:5f:ef:1a:f6:38:6d:80:3f:4d:b5:e3:a5:a4:
|
23
|
-
f1:86:15:76:62:8b:6c:9d:fa:24:59:32:8f:60:b0:
|
24
|
-
80:f4:22:a2:68:57:13:aa:60:e4:cd:01:34:87:76:
|
25
|
-
2a:15:ca:86:9b:b7:aa:b5:66:fd:72:d8:35:86:7e:
|
26
|
-
c8:1d:a1:71:71:85:ac:65:64:c2:ea:19:52:7b:34:
|
27
|
-
1e:12:c4:87:8f:75:d7:65:35:85:dd:5a:33:5d:2c:
|
28
|
-
31:f8:2f:b4:84:a7:b6:56:56:2b:e1:9c:c9:c8:f9:
|
29
|
-
41:18:40:19:d9:bb:d4:3c:0d:c4:93:dc:b8:d1:99:
|
30
|
-
44:d0:3d:a2:de:de:29:7f:d6:0c:a8:07:df:bc:ed:
|
31
|
-
66:5b:aa:cc:64:44:b8:79:49:ed:48:77:88:e2:d1:
|
32
|
-
94:b9
|
33
|
-
Exponent: 65537 (0x10001)
|
34
|
-
X509v3 extensions:
|
35
|
-
X509v3 Basic Constraints:
|
36
|
-
CA:FALSE
|
37
|
-
Netscape Comment:
|
38
|
-
OpenSSL Generated Certificate
|
39
|
-
X509v3 Subject Key Identifier:
|
40
|
-
EF:5A:B6:46:3A:44:5F:0F:E4:F9:E0:6B:B2:C8:45:8D:07:0D:70:15
|
41
|
-
X509v3 Authority Key Identifier:
|
42
|
-
keyid:D6:DB:87:AD:D3:45:FC:D4:8D:6B:2B:97:F4:CF:95:08:B6:FA:62:A4
|
43
|
-
|
44
|
-
Signature Algorithm: sha256WithRSAEncryption
|
45
|
-
55:b5:5a:51:cd:0b:2a:81:10:e6:d1:d9:d6:6c:78:99:9b:01:
|
46
|
-
18:e7:91:32:89:6c:fd:3b:eb:c0:03:82:f8:5c:e2:19:c1:04:
|
47
|
-
5d:37:10:5b:97:0b:be:76:8b:98:71:d4:63:68:8c:0e:61:c9:
|
48
|
-
ec:3d:cf:ed:01:57:9f:9b:53:07:27:1a:7e:20:f3:8a:13:8c:
|
49
|
-
4f:30:bd:e6:a0:eb:d7:2c:a1:95:35:3f:a6:53:c9:00:11:f9:
|
50
|
-
f6:b3:9d:53:e4:b5:71:33:f1:dc:86:47:94:6f:a9:64:01:d4:
|
51
|
-
c5:1b:7c:95:0a:02:0e:6f:d1:70:94:5a:5f:7b:ac:77:f7:56:
|
52
|
-
35:6b:ad:a2:e2:fc:74:91:1e:c3:46:fc:32:01:19:a1:a5:27:
|
53
|
-
f3:31:14:79:86:7c:4d:9a:83:7c:28:03:9f:ac:3c:8c:e4:d9:
|
54
|
-
c8:b0:4e:a3:fe:75:cd:a9:8e:34:57:3b:6b:14:d6:df:35:42:
|
55
|
-
7b:c9:3d:88:0d:ea:5f:1e:c6:5f:80:0e:a5:b9:bf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