rubygems-update 2.6.11 → 2.7.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -22
- data/CONTRIBUTING.rdoc +53 -54
- data/History.txt +405 -0
- data/Manifest.txt +46 -15
- data/POLICIES.rdoc +3 -3
- data/README.md +72 -0
- data/Rakefile +55 -12
- data/appveyor.yml +29 -1
- data/bin/gem +1 -1
- data/bin/update_rubygems +2 -2
- data/bundler/CHANGELOG.md +412 -9
- data/bundler/CODE_OF_CONDUCT.md +1 -1
- data/bundler/CONTRIBUTING.md +10 -29
- data/bundler/README.md +27 -11
- data/bundler/bundler.gemspec +58 -0
- data/bundler/exe/bundle +5 -7
- data/bundler/exe/bundle_ruby +4 -3
- data/bundler/lib/bundler.rb +103 -79
- data/bundler/lib/bundler/build_metadata.rb +53 -0
- data/bundler/lib/bundler/capistrano.rb +5 -0
- data/bundler/lib/bundler/cli.rb +231 -66
- data/bundler/lib/bundler/cli/add.rb +25 -0
- data/bundler/lib/bundler/cli/binstubs.rb +9 -7
- data/bundler/lib/bundler/cli/cache.rb +5 -4
- data/bundler/lib/bundler/cli/check.rb +3 -5
- data/bundler/lib/bundler/cli/clean.rb +5 -6
- data/bundler/lib/bundler/cli/common.rb +18 -2
- data/bundler/lib/bundler/cli/config.rb +26 -7
- data/bundler/lib/bundler/cli/console.rb +2 -1
- data/bundler/lib/bundler/cli/doctor.rb +1 -0
- data/bundler/lib/bundler/cli/exec.rb +6 -5
- data/bundler/lib/bundler/cli/gem.rb +42 -18
- data/bundler/lib/bundler/cli/info.rb +50 -0
- data/bundler/lib/bundler/cli/init.rb +21 -7
- data/bundler/lib/bundler/cli/inject.rb +13 -4
- data/bundler/lib/bundler/cli/install.rb +61 -77
- data/bundler/lib/bundler/cli/issue.rb +40 -0
- data/bundler/lib/bundler/cli/list.rb +22 -0
- data/bundler/lib/bundler/cli/lock.rb +4 -2
- data/bundler/lib/bundler/cli/open.rb +2 -2
- data/bundler/lib/bundler/cli/outdated.rb +30 -28
- data/bundler/lib/bundler/cli/package.rb +9 -6
- data/bundler/lib/bundler/cli/platform.rb +1 -0
- data/bundler/lib/bundler/cli/plugin.rb +1 -0
- data/bundler/lib/bundler/cli/pristine.rb +43 -0
- data/bundler/lib/bundler/cli/show.rb +1 -1
- data/bundler/lib/bundler/cli/update.rb +36 -13
- data/bundler/lib/bundler/cli/viz.rb +5 -1
- data/bundler/lib/bundler/compact_index_client.rb +1 -0
- data/bundler/lib/bundler/compact_index_client/cache.rb +1 -2
- data/bundler/lib/bundler/compact_index_client/updater.rb +36 -8
- data/bundler/lib/bundler/compatibility_guard.rb +14 -0
- data/bundler/lib/bundler/constants.rb +1 -0
- data/bundler/lib/bundler/current_ruby.rb +16 -8
- data/bundler/lib/bundler/definition.rb +252 -170
- data/bundler/lib/bundler/dep_proxy.rb +3 -1
- data/bundler/lib/bundler/dependency.rb +7 -7
- data/bundler/lib/bundler/deployment.rb +1 -1
- data/bundler/lib/bundler/deprecate.rb +15 -3
- data/bundler/lib/bundler/dsl.rb +103 -62
- data/bundler/lib/bundler/endpoint_specification.rb +13 -3
- data/bundler/lib/bundler/env.rb +101 -38
- data/bundler/lib/bundler/environment_preserver.rb +27 -6
- data/bundler/lib/bundler/errors.rb +3 -1
- data/bundler/lib/bundler/feature_flag.rb +39 -4
- data/bundler/lib/bundler/fetcher.rb +18 -11
- data/bundler/lib/bundler/fetcher/base.rb +1 -0
- data/bundler/lib/bundler/fetcher/compact_index.rb +2 -12
- data/bundler/lib/bundler/fetcher/dependency.rb +2 -1
- data/bundler/lib/bundler/fetcher/downloader.rb +14 -7
- data/bundler/lib/bundler/fetcher/index.rb +3 -2
- data/bundler/lib/bundler/friendly_errors.rb +7 -2
- data/bundler/lib/bundler/gem_helper.rb +24 -10
- data/bundler/lib/bundler/gem_helpers.rb +1 -0
- data/bundler/lib/bundler/gem_remote_fetcher.rb +1 -0
- data/bundler/lib/bundler/gem_tasks.rb +1 -0
- data/bundler/lib/bundler/gem_version_promoter.rb +13 -0
- data/bundler/lib/bundler/gemdeps.rb +1 -0
- data/bundler/lib/bundler/graph.rb +1 -0
- data/bundler/lib/bundler/index.rb +19 -11
- data/bundler/lib/bundler/injector.rb +54 -30
- data/bundler/lib/bundler/inline.rb +10 -10
- data/bundler/lib/bundler/installer.rb +114 -52
- data/bundler/lib/bundler/installer/gem_installer.rb +14 -4
- data/bundler/lib/bundler/installer/parallel_installer.rb +91 -42
- data/bundler/lib/bundler/installer/standalone.rb +1 -0
- data/bundler/lib/bundler/lazy_specification.rb +17 -4
- data/bundler/lib/bundler/lockfile_generator.rb +95 -0
- data/bundler/lib/bundler/lockfile_parser.rb +49 -35
- data/bundler/lib/bundler/match_platform.rb +1 -0
- data/bundler/lib/bundler/mirror.rb +10 -5
- data/bundler/lib/bundler/plugin.rb +8 -3
- data/bundler/lib/bundler/plugin/api/source.rb +16 -3
- data/bundler/lib/bundler/plugin/index.rb +9 -2
- data/bundler/lib/bundler/plugin/installer.rb +7 -6
- data/bundler/lib/bundler/plugin/source_list.rb +7 -8
- data/bundler/lib/bundler/process_lock.rb +24 -0
- data/bundler/lib/bundler/psyched_yaml.rb +10 -0
- data/bundler/lib/bundler/remote_specification.rb +25 -1
- data/bundler/lib/bundler/resolver.rb +176 -193
- data/bundler/lib/bundler/resolver/spec_group.rb +106 -0
- data/bundler/lib/bundler/retry.rb +1 -0
- data/bundler/lib/bundler/ruby_dsl.rb +1 -0
- data/bundler/lib/bundler/ruby_version.rb +7 -2
- data/bundler/lib/bundler/rubygems_ext.rb +18 -8
- data/bundler/lib/bundler/rubygems_gem_installer.rb +25 -2
- data/bundler/lib/bundler/rubygems_integration.rb +166 -69
- data/bundler/lib/bundler/runtime.rb +29 -19
- data/bundler/lib/bundler/settings.rb +202 -87
- data/bundler/lib/bundler/settings/validator.rb +79 -0
- data/bundler/lib/bundler/setup.rb +4 -7
- data/bundler/lib/bundler/shared_helpers.rb +143 -27
- data/bundler/lib/bundler/similarity_detector.rb +1 -0
- data/bundler/lib/bundler/source.rb +53 -1
- data/bundler/lib/bundler/source/gemspec.rb +1 -0
- data/bundler/lib/bundler/source/git.rb +51 -22
- data/bundler/lib/bundler/source/git/git_proxy.rb +23 -13
- data/bundler/lib/bundler/source/metadata.rb +63 -0
- data/bundler/lib/bundler/source/path.rb +38 -17
- data/bundler/lib/bundler/source/path/installer.rb +4 -2
- data/bundler/lib/bundler/source/rubygems.rb +161 -82
- data/bundler/lib/bundler/source/rubygems/remote.rb +12 -2
- data/bundler/lib/bundler/source_list.rb +75 -15
- data/bundler/lib/bundler/spec_set.rb +37 -21
- data/bundler/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
- data/bundler/lib/bundler/stub_specification.rb +86 -2
- data/bundler/lib/bundler/templates/.document +1 -0
- data/bundler/lib/bundler/templates/Executable +13 -1
- data/bundler/lib/bundler/templates/Executable.bundler +105 -0
- data/bundler/lib/bundler/templates/Executable.standalone +5 -5
- data/bundler/lib/bundler/templates/Gemfile +3 -0
- data/bundler/lib/bundler/templates/gems.rb +8 -0
- data/bundler/lib/bundler/templates/newgem/Gemfile.tt +4 -2
- data/bundler/lib/bundler/templates/newgem/LICENSE.txt.tt +1 -1
- data/bundler/lib/bundler/templates/newgem/README.md.tt +14 -8
- data/bundler/lib/bundler/templates/newgem/Rakefile.tt +5 -5
- data/bundler/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +4 -4
- data/bundler/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +3 -3
- data/bundler/lib/bundler/templates/newgem/gitignore.tt +0 -1
- data/bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt +6 -6
- data/bundler/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +4 -4
- data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +21 -12
- data/bundler/lib/bundler/templates/newgem/rspec.tt +1 -0
- data/bundler/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -2
- data/bundler/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +3 -0
- data/bundler/lib/bundler/templates/newgem/test/newgem_test.rb.tt +1 -1
- data/bundler/lib/bundler/templates/newgem/test/test_helper.rb.tt +3 -3
- data/bundler/lib/bundler/templates/newgem/{.travis.yml.tt → travis.yml.tt} +2 -0
- data/bundler/lib/bundler/ui.rb +1 -0
- data/bundler/lib/bundler/ui/rg_proxy.rb +1 -0
- data/bundler/lib/bundler/ui/shell.rb +26 -10
- data/bundler/lib/bundler/ui/silent.rb +12 -1
- data/bundler/lib/bundler/uri_credentials_filter.rb +1 -0
- data/bundler/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +16 -5
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +10 -2
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +16 -5
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +75 -7
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +501 -138
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
- data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +3 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor.rb +46 -21
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions.rb +24 -22
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +2 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +2 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +2 -2
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +16 -8
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +66 -18
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +17 -15
- data/bundler/lib/bundler/vendor/thor/lib/thor/base.rb +55 -32
- data/bundler/lib/bundler/vendor/thor/lib/thor/command.rb +13 -11
- data/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +21 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +7 -5
- data/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +94 -63
- data/bundler/lib/bundler/vendor/thor/lib/thor/error.rb +3 -3
- data/bundler/lib/bundler/vendor/thor/lib/thor/group.rb +13 -13
- data/bundler/lib/bundler/vendor/thor/lib/thor/invocation.rb +4 -5
- data/bundler/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +2 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +4 -7
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +16 -16
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/option.rb +42 -21
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/options.rb +13 -10
- data/bundler/lib/bundler/vendor/thor/lib/thor/runner.rb +31 -29
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell.rb +1 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +49 -33
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/color.rb +1 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/html.rb +4 -4
- data/bundler/lib/bundler/vendor/thor/lib/thor/util.rb +8 -7
- data/bundler/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
- data/bundler/lib/bundler/vendored_fileutils.rb +9 -0
- data/bundler/lib/bundler/vendored_molinillo.rb +1 -0
- data/bundler/lib/bundler/vendored_persistent.rb +35 -0
- data/bundler/lib/bundler/vendored_thor.rb +6 -2
- data/bundler/lib/bundler/version.rb +19 -2
- data/bundler/lib/bundler/version_ranges.rb +76 -0
- data/bundler/lib/bundler/vlad.rb +5 -0
- data/bundler/lib/bundler/worker.rb +3 -1
- data/bundler/lib/bundler/yaml_serializer.rb +3 -3
- data/bundler/man/bundle-add.ronn +29 -0
- data/bundler/man/bundle-binstubs.ronn +15 -1
- data/bundler/man/bundle-check.ronn +26 -0
- data/bundler/man/bundle-clean.ronn +18 -0
- data/bundler/man/bundle-config.ronn +193 -69
- data/bundler/man/bundle-doctor.ronn +33 -0
- data/bundler/man/bundle-exec.ronn +10 -3
- data/bundler/man/bundle-gem.ronn +3 -2
- data/bundler/man/bundle-info.ronn +17 -0
- data/bundler/man/bundle-init.ronn +29 -0
- data/bundler/man/bundle-inject.ronn +22 -0
- data/bundler/man/bundle-install.ronn +44 -35
- data/bundler/man/bundle-list.ronn +15 -0
- data/bundler/man/bundle-lock.ronn +1 -1
- data/bundler/man/bundle-open.ronn +19 -0
- data/bundler/man/bundle-outdated.ronn +2 -2
- data/bundler/man/bundle-package.ronn +7 -2
- data/bundler/man/bundle-pristine.ronn +34 -0
- data/bundler/man/bundle-show.ronn +21 -0
- data/bundler/man/bundle-update.ronn +24 -17
- data/bundler/man/bundle-viz.ronn +30 -0
- data/bundler/man/bundle.ronn +36 -45
- data/bundler/man/gemfile.5.ronn +77 -71
- data/lib/rubygems.rb +102 -46
- data/lib/rubygems/basic_specification.rb +8 -4
- data/lib/rubygems/bundler_version_finder.rb +99 -0
- data/lib/rubygems/command.rb +10 -2
- data/lib/rubygems/command_manager.rb +8 -4
- data/lib/rubygems/commands/cert_command.rb +31 -6
- data/lib/rubygems/commands/cleanup_command.rb +10 -3
- data/lib/rubygems/commands/generate_index_command.rb +1 -1
- data/lib/rubygems/commands/help_command.rb +1 -1
- data/lib/rubygems/commands/install_command.rb +7 -0
- data/lib/rubygems/commands/open_command.rb +1 -1
- data/lib/rubygems/commands/owner_command.rb +7 -2
- data/lib/rubygems/commands/pristine_command.rb +11 -8
- data/lib/rubygems/commands/push_command.rb +39 -5
- data/lib/rubygems/commands/query_command.rb +17 -17
- data/lib/rubygems/commands/setup_command.rb +174 -69
- data/lib/rubygems/commands/signin_command.rb +33 -0
- data/lib/rubygems/commands/signout_command.rb +33 -0
- data/lib/rubygems/commands/sources_command.rb +1 -1
- data/lib/rubygems/commands/uninstall_command.rb +5 -4
- data/lib/rubygems/commands/unpack_command.rb +19 -7
- data/lib/rubygems/commands/update_command.rb +1 -1
- data/lib/rubygems/commands/which_command.rb +1 -1
- data/lib/rubygems/commands/yank_command.rb +4 -11
- data/lib/rubygems/config_file.rb +15 -26
- data/lib/rubygems/core_ext/kernel_require.rb +12 -16
- data/lib/rubygems/dependency.rb +3 -0
- data/lib/rubygems/dependency_installer.rb +8 -2
- data/lib/rubygems/dependency_list.rb +1 -1
- data/lib/rubygems/errors.rb +3 -0
- data/lib/rubygems/exceptions.rb +11 -1
- data/lib/rubygems/ext/builder.rb +2 -2
- data/lib/rubygems/ext/ext_conf_builder.rb +2 -4
- data/lib/rubygems/ext/rake_builder.rb +1 -1
- data/lib/rubygems/gem_runner.rb +5 -1
- data/lib/rubygems/gemcutter_utilities.rb +5 -2
- data/lib/rubygems/indexer.rb +6 -5
- data/lib/rubygems/install_update_options.rb +6 -29
- data/lib/rubygems/installer.rb +60 -13
- data/lib/rubygems/installer_test_case.rb +6 -3
- data/lib/rubygems/package.rb +55 -8
- data/lib/rubygems/package/file_source.rb +2 -2
- data/lib/rubygems/package/old.rb +3 -3
- data/lib/rubygems/package/tar_header.rb +17 -10
- data/lib/rubygems/package/tar_writer.rb +4 -3
- data/lib/rubygems/platform.rb +1 -1
- data/lib/rubygems/remote_fetcher.rb +2 -2
- data/lib/rubygems/request.rb +1 -1
- data/lib/rubygems/request_set.rb +47 -19
- data/lib/rubygems/request_set/gem_dependency_api.rb +3 -3
- data/lib/rubygems/request_set/lockfile.rb +1 -1
- data/lib/rubygems/requirement.rb +19 -4
- data/lib/rubygems/resolver.rb +24 -3
- data/lib/rubygems/resolver/api_specification.rb +5 -0
- data/lib/rubygems/resolver/installer_set.rb +4 -6
- data/lib/rubygems/safe_yaml.rb +51 -0
- data/lib/rubygems/security.rb +18 -6
- data/lib/rubygems/security/trust_dir.rb +1 -1
- data/lib/rubygems/security_option.rb +43 -0
- data/lib/rubygems/server.rb +21 -17
- data/lib/rubygems/source.rb +9 -6
- data/lib/rubygems/source/git.rb +2 -1
- data/lib/rubygems/source/local.rb +38 -35
- data/lib/rubygems/source/lock.rb +4 -1
- data/lib/rubygems/source_local.rb +3 -1
- data/lib/rubygems/source_specific_file.rb +3 -2
- data/lib/rubygems/spec_fetcher.rb +7 -3
- data/lib/rubygems/specification.rb +315 -249
- data/lib/rubygems/ssl_certs/{index.rubygems.org → rubygems.org}/GlobalSignRootCA.pem +0 -0
- data/lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem +21 -0
- data/lib/rubygems/stub_specification.rb +4 -3
- data/lib/rubygems/test_case.rb +51 -11
- data/lib/rubygems/test_utilities.rb +2 -2
- data/lib/rubygems/text.rb +14 -1
- data/lib/rubygems/user_interaction.rb +24 -15
- data/lib/rubygems/util.rb +6 -16
- data/lib/rubygems/util/licenses.rb +72 -4
- data/lib/rubygems/validator.rb +3 -3
- data/lib/rubygems/version.rb +24 -4
- data/lib/rubygems/version_option.rb +6 -1
- data/lib/ubygems.rb +3 -0
- data/setup.rb +1 -1
- data/test/rubygems/private3072_key.pem +40 -0
- data/test/rubygems/public3072_cert.pem +25 -0
- data/test/rubygems/test_bundled_ca.rb +7 -4
- data/test/rubygems/test_config.rb +1 -1
- data/test/rubygems/test_gem.rb +158 -39
- data/test/rubygems/test_gem_bundler_version_finder.rb +126 -0
- data/test/rubygems/test_gem_command.rb +7 -1
- data/test/rubygems/test_gem_command_manager.rb +2 -2
- data/test/rubygems/test_gem_commands_build_command.rb +29 -1
- data/test/rubygems/test_gem_commands_cert_command.rb +64 -0
- data/test/rubygems/test_gem_commands_cleanup_command.rb +44 -1
- data/test/rubygems/test_gem_commands_install_command.rb +73 -2
- data/test/rubygems/test_gem_commands_open_command.rb +2 -1
- data/test/rubygems/test_gem_commands_owner_command.rb +25 -0
- data/test/rubygems/test_gem_commands_pristine_command.rb +1 -1
- data/test/rubygems/test_gem_commands_push_command.rb +25 -5
- data/test/rubygems/test_gem_commands_query_command.rb +154 -1
- data/test/rubygems/test_gem_commands_setup_command.rb +140 -10
- data/test/rubygems/test_gem_commands_signin_command.rb +98 -0
- data/test/rubygems/test_gem_commands_signout_command.rb +37 -0
- data/test/rubygems/test_gem_commands_sources_command.rb +52 -0
- data/test/rubygems/test_gem_commands_uninstall_command.rb +15 -3
- data/test/rubygems/test_gem_commands_update_command.rb +1 -7
- data/test/rubygems/test_gem_commands_which_command.rb +3 -3
- data/test/rubygems/test_gem_dependency.rb +28 -0
- data/test/rubygems/test_gem_dependency_installer.rb +1 -1
- data/test/rubygems/test_gem_doctor.rb +2 -2
- data/test/rubygems/test_gem_ext_builder.rb +8 -8
- data/test/rubygems/test_gem_ext_configure_builder.rb +1 -1
- data/test/rubygems/test_gem_ext_rake_builder.rb +2 -6
- data/test/rubygems/test_gem_gemcutter_utilities.rb +4 -4
- data/test/rubygems/test_gem_indexer.rb +1 -2
- data/test/rubygems/test_gem_install_update_options.rb +6 -1
- data/test/rubygems/test_gem_installer.rb +168 -31
- data/test/rubygems/test_gem_package.rb +183 -26
- data/test/rubygems/test_gem_package_old.rb +1 -1
- data/test/rubygems/test_gem_package_tar_header.rb +21 -0
- data/test/rubygems/test_gem_rdoc.rb +2 -0
- data/test/rubygems/test_gem_remote_fetcher.rb +24 -5
- data/test/rubygems/test_gem_request.rb +5 -2
- data/test/rubygems/test_gem_request_connection_pools.rb +6 -7
- data/test/rubygems/test_gem_request_set.rb +7 -7
- data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +3 -3
- data/test/rubygems/test_gem_request_set_lockfile.rb +4 -4
- 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 +12 -0
- data/test/rubygems/test_gem_resolver.rb +26 -0
- data/test/rubygems/test_gem_resolver_api_specification.rb +24 -0
- data/test/rubygems/test_gem_resolver_conflict.rb +1 -1
- data/test/rubygems/test_gem_resolver_git_specification.rb +1 -1
- data/test/rubygems/test_gem_resolver_installer_set.rb +1 -1
- data/test/rubygems/test_gem_security.rb +5 -0
- data/test/rubygems/test_gem_security_policy.rb +27 -27
- data/test/rubygems/test_gem_security_signer.rb +6 -6
- data/test/rubygems/test_gem_security_trust_dir.rb +2 -2
- data/test/rubygems/test_gem_server.rb +194 -12
- data/test/rubygems/test_gem_source.rb +12 -3
- data/test/rubygems/test_gem_source_git.rb +1 -1
- data/test/rubygems/test_gem_spec_fetcher.rb +20 -0
- data/test/rubygems/test_gem_specification.rb +180 -42
- data/test/rubygems/test_gem_stream_ui.rb +8 -8
- data/test/rubygems/test_gem_stub_specification.rb +26 -8
- data/test/rubygems/test_gem_text.rb +16 -0
- data/test/rubygems/test_gem_util.rb +26 -0
- data/test/rubygems/test_gem_version.rb +68 -9
- data/test/rubygems/test_gem_version_option.rb +15 -0
- data/test/rubygems/test_kernel.rb +30 -0
- data/test/rubygems/test_require.rb +70 -21
- data/util/ci +1 -0
- data/util/generate_spdx_license_list.rb +16 -6
- data/util/update_bundled_ca_certificates.rb +1 -3
- metadata +61 -57
- data/README.rdoc +0 -54
- data/bundler/DEVELOPMENT.md +0 -150
- data/bundler/ISSUES.md +0 -117
- data/bundler/lib/bundler/postit_trampoline.rb +0 -73
- data/bundler/lib/bundler/vendor/postit/lib/postit.rb +0 -15
- data/bundler/lib/bundler/vendor/postit/lib/postit/environment.rb +0 -44
- data/bundler/lib/bundler/vendor/postit/lib/postit/installer.rb +0 -28
- data/bundler/lib/bundler/vendor/postit/lib/postit/parser.rb +0 -21
- data/bundler/lib/bundler/vendor/postit/lib/postit/setup.rb +0 -12
- data/bundler/lib/bundler/vendor/postit/lib/postit/version.rb +0 -3
- data/bundler/man/index.txt +0 -8
- data/lib/rubygems/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +0 -23
- data/lib/rubygems/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +0 -25
@@ -44,7 +44,7 @@ class Gem::Commands::SourcesCommand < Gem::Command
|
|
44
44
|
source = Gem::Source.new source_uri
|
45
45
|
|
46
46
|
begin
|
47
|
-
if Gem.sources.include?
|
47
|
+
if Gem.sources.include? source then
|
48
48
|
say "source #{source_uri} already present in the cache"
|
49
49
|
else
|
50
50
|
source.load_specs :released
|
@@ -30,7 +30,7 @@ class Gem::Commands::UninstallCommand < Gem::Command
|
|
30
30
|
options[:ignore] = value
|
31
31
|
end
|
32
32
|
|
33
|
-
add_option('-D', '--[no-]
|
33
|
+
add_option('-D', '--[no-]check-development',
|
34
34
|
'Check development dependencies while uninstalling',
|
35
35
|
'(default: false)') do |value, options|
|
36
36
|
options[:check_dev] = value
|
@@ -48,7 +48,7 @@ class Gem::Commands::UninstallCommand < Gem::Command
|
|
48
48
|
end
|
49
49
|
|
50
50
|
add_option('-n', '--bindir DIR',
|
51
|
-
'Directory to remove
|
51
|
+
'Directory to remove executables from') do |value, options|
|
52
52
|
options[:bin_dir] = File.expand_path(value)
|
53
53
|
end
|
54
54
|
|
@@ -143,7 +143,9 @@ that is a dependency of an existing gem. You can use the
|
|
143
143
|
deplist = Gem::DependencyList.new
|
144
144
|
|
145
145
|
get_all_gem_names.uniq.each do |name|
|
146
|
-
Gem::Specification.find_all_by_name(name)
|
146
|
+
gem_specs = Gem::Specification.find_all_by_name(name)
|
147
|
+
say("Gem '#{name}' is not installed") if gem_specs.empty?
|
148
|
+
gem_specs.each do |spec|
|
147
149
|
deplist.add spec
|
148
150
|
end
|
149
151
|
end
|
@@ -162,4 +164,3 @@ that is a dependency of an existing gem. You can use the
|
|
162
164
|
end
|
163
165
|
|
164
166
|
end
|
165
|
-
|
@@ -2,11 +2,20 @@
|
|
2
2
|
require 'rubygems/command'
|
3
3
|
require 'rubygems/installer'
|
4
4
|
require 'rubygems/version_option'
|
5
|
+
require 'rubygems/security_option'
|
5
6
|
require 'rubygems/remote_fetcher'
|
6
7
|
|
8
|
+
# forward-declare
|
9
|
+
|
10
|
+
module Gem::Security # :nodoc:
|
11
|
+
class Policy # :nodoc:
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
7
15
|
class Gem::Commands::UnpackCommand < Gem::Command
|
8
16
|
|
9
17
|
include Gem::VersionOption
|
18
|
+
include Gem::SecurityOption
|
10
19
|
|
11
20
|
def initialize
|
12
21
|
require 'fileutils'
|
@@ -24,6 +33,7 @@ class Gem::Commands::UnpackCommand < Gem::Command
|
|
24
33
|
options[:spec] = true
|
25
34
|
end
|
26
35
|
|
36
|
+
add_security_option
|
27
37
|
add_version_option
|
28
38
|
end
|
29
39
|
|
@@ -63,6 +73,8 @@ command help for an example.
|
|
63
73
|
# at the same time.)
|
64
74
|
|
65
75
|
def execute
|
76
|
+
security_policy = options[:security_policy]
|
77
|
+
|
66
78
|
get_all_gem_names.each do |name|
|
67
79
|
dependency = Gem::Dependency.new name, options[:version]
|
68
80
|
path = get_path dependency
|
@@ -73,7 +85,7 @@ command help for an example.
|
|
73
85
|
end
|
74
86
|
|
75
87
|
if @options[:spec] then
|
76
|
-
spec, metadata = get_metadata path
|
88
|
+
spec, metadata = get_metadata path, security_policy
|
77
89
|
|
78
90
|
if metadata.nil? then
|
79
91
|
alert_error "--spec is unsupported on '#{name}' (old format gem)"
|
@@ -82,14 +94,14 @@ command help for an example.
|
|
82
94
|
|
83
95
|
spec_file = File.basename spec.spec_file
|
84
96
|
|
85
|
-
open spec_file, 'w' do |io|
|
97
|
+
File.open spec_file, 'w' do |io|
|
86
98
|
io.write metadata
|
87
99
|
end
|
88
100
|
else
|
89
101
|
basename = File.basename path, '.gem'
|
90
102
|
target_dir = File.expand_path basename, options[:target]
|
91
103
|
|
92
|
-
package = Gem::Package.new path
|
104
|
+
package = Gem::Package.new path, security_policy
|
93
105
|
package.extract_files target_dir
|
94
106
|
|
95
107
|
say "Unpacked gem: '#{target_dir}'"
|
@@ -158,20 +170,20 @@ command help for an example.
|
|
158
170
|
#--
|
159
171
|
# TODO move to Gem::Package as #raw_spec or something
|
160
172
|
|
161
|
-
def get_metadata path
|
162
|
-
format = Gem::Package.new path
|
173
|
+
def get_metadata path, security_policy = nil
|
174
|
+
format = Gem::Package.new path, security_policy
|
163
175
|
spec = format.spec
|
164
176
|
|
165
177
|
metadata = nil
|
166
178
|
|
167
|
-
open path, Gem.binary_mode do |io|
|
179
|
+
File.open path, Gem.binary_mode do |io|
|
168
180
|
tar = Gem::Package::TarReader.new io
|
169
181
|
tar.each_entry do |entry|
|
170
182
|
case entry.full_name
|
171
183
|
when 'metadata' then
|
172
184
|
metadata = entry.read
|
173
185
|
when 'metadata.gz' then
|
174
|
-
metadata = Gem.gunzip entry.read
|
186
|
+
metadata = Gem::Util.gunzip entry.read
|
175
187
|
end
|
176
188
|
end
|
177
189
|
end
|
@@ -70,7 +70,7 @@ command to remove old versions.
|
|
70
70
|
|
71
71
|
def check_latest_rubygems version # :nodoc:
|
72
72
|
if Gem.rubygems_version == version then
|
73
|
-
say "Latest version
|
73
|
+
say "Latest version already installed. Done."
|
74
74
|
terminate_interaction
|
75
75
|
end
|
76
76
|
|
@@ -56,7 +56,7 @@ requiring to see why it does not behave as you expect.
|
|
56
56
|
paths = find_paths arg, dirs
|
57
57
|
|
58
58
|
if paths.empty? then
|
59
|
-
alert_error "Can't find
|
59
|
+
alert_error "Can't find Ruby library file or shared library #{arg}"
|
60
60
|
|
61
61
|
found &&= false
|
62
62
|
else
|
@@ -11,19 +11,11 @@ class Gem::Commands::YankCommand < Gem::Command
|
|
11
11
|
|
12
12
|
def description # :nodoc:
|
13
13
|
<<-EOF
|
14
|
-
The yank command removes a gem you pushed to a server
|
15
|
-
index.
|
16
|
-
|
17
|
-
Note that if you push a gem to rubygems.org the yank command does not
|
18
|
-
prevent other people from downloading the gem via the download link.
|
14
|
+
The yank command permanently removes a gem you pushed to a server.
|
19
15
|
|
20
16
|
Once you have pushed a gem several downloads will happen automatically
|
21
|
-
via the webhooks.
|
17
|
+
via the webhooks. If you accidentally pushed passwords or other sensitive
|
22
18
|
data you will need to change them immediately and yank your gem.
|
23
|
-
|
24
|
-
If you are yanking a gem due to intellectual property reasons contact
|
25
|
-
http://help.rubygems.org for permanent removal. Be sure to mention this
|
26
|
-
as the reason for the removal request.
|
27
19
|
EOF
|
28
20
|
end
|
29
21
|
|
@@ -42,7 +34,8 @@ as the reason for the removal request.
|
|
42
34
|
add_platform_option("remove")
|
43
35
|
|
44
36
|
add_option('--host HOST',
|
45
|
-
'Yank from another gemcutter-compatible host'
|
37
|
+
'Yank from another gemcutter-compatible host',
|
38
|
+
' (e.g. https://rubygems.org)') do |value, options|
|
46
39
|
options[:host] = value
|
47
40
|
end
|
48
41
|
|
data/lib/rubygems/config_file.rb
CHANGED
@@ -336,6 +336,15 @@ if you believe they were disclosed to a third party.
|
|
336
336
|
load_api_keys # reload
|
337
337
|
end
|
338
338
|
|
339
|
+
##
|
340
|
+
# Remove the +~/.gem/credentials+ file to clear all the current sessions.
|
341
|
+
|
342
|
+
def unset_api_key!
|
343
|
+
return false unless File.exist?(credentials_path)
|
344
|
+
|
345
|
+
File.delete(credentials_path)
|
346
|
+
end
|
347
|
+
|
339
348
|
def load_file(filename)
|
340
349
|
Gem.load_yaml
|
341
350
|
|
@@ -345,7 +354,7 @@ if you believe they were disclosed to a third party.
|
|
345
354
|
return {} unless filename and File.exist? filename
|
346
355
|
|
347
356
|
begin
|
348
|
-
content =
|
357
|
+
content = Gem::SafeYAML.load(File.read(filename))
|
349
358
|
unless content.kind_of? Hash
|
350
359
|
warn "Failed to load #{filename} because it doesn't contain valid YAML hash"
|
351
360
|
return {}
|
@@ -419,31 +428,11 @@ if you believe they were disclosed to a third party.
|
|
419
428
|
# to_yaml only overwrites things you can't override on the command line.
|
420
429
|
def to_yaml # :nodoc:
|
421
430
|
yaml_hash = {}
|
422
|
-
yaml_hash[:backtrace] =
|
423
|
-
|
424
|
-
else
|
425
|
-
DEFAULT_BACKTRACE
|
426
|
-
end
|
427
|
-
|
428
|
-
yaml_hash[:bulk_threshold] = if @hash.key?(:bulk_threshold)
|
429
|
-
@hash[:bulk_threshold]
|
430
|
-
else
|
431
|
-
DEFAULT_BULK_THRESHOLD
|
432
|
-
end
|
433
|
-
|
431
|
+
yaml_hash[:backtrace] = @hash.fetch(:backtrace, DEFAULT_BACKTRACE)
|
432
|
+
yaml_hash[:bulk_threshold] = @hash.fetch(:bulk_threshold, DEFAULT_BULK_THRESHOLD)
|
434
433
|
yaml_hash[:sources] = Gem.sources.to_a
|
435
|
-
|
436
|
-
yaml_hash[:
|
437
|
-
@hash[:update_sources]
|
438
|
-
else
|
439
|
-
DEFAULT_UPDATE_SOURCES
|
440
|
-
end
|
441
|
-
|
442
|
-
yaml_hash[:verbose] = if @hash.key?(:verbose)
|
443
|
-
@hash[:verbose]
|
444
|
-
else
|
445
|
-
DEFAULT_VERBOSITY
|
446
|
-
end
|
434
|
+
yaml_hash[:update_sources] = @hash.fetch(:update_sources, DEFAULT_UPDATE_SOURCES)
|
435
|
+
yaml_hash[:verbose] = @hash.fetch(:verbose, DEFAULT_VERBOSITY)
|
447
436
|
|
448
437
|
yaml_hash[:ssl_verify_mode] =
|
449
438
|
@hash[:ssl_verify_mode] if @hash.key? :ssl_verify_mode
|
@@ -469,7 +458,7 @@ if you believe they were disclosed to a third party.
|
|
469
458
|
|
470
459
|
# Writes out this config file, replacing its source.
|
471
460
|
def write
|
472
|
-
open config_file_name, 'w' do |io|
|
461
|
+
File.open config_file_name, 'w' do |io|
|
473
462
|
io.write to_yaml
|
474
463
|
end
|
475
464
|
end
|
@@ -11,13 +11,8 @@ module Kernel
|
|
11
11
|
|
12
12
|
RUBYGEMS_ACTIVATION_MONITOR = Monitor.new # :nodoc:
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
remove_method :require
|
17
|
-
else
|
18
|
-
##
|
19
|
-
# The Kernel#require from before RubyGems was loaded.
|
20
|
-
|
14
|
+
# Make sure we have a reference to Ruby's original Kernel#require
|
15
|
+
unless defined?(gem_original_require)
|
21
16
|
alias gem_original_require require
|
22
17
|
private :gem_original_require
|
23
18
|
end
|
@@ -41,10 +36,14 @@ module Kernel
|
|
41
36
|
|
42
37
|
path = path.to_path if path.respond_to? :to_path
|
43
38
|
|
44
|
-
spec = Gem.find_unresolved_default_spec(path)
|
45
|
-
if spec
|
39
|
+
if spec = Gem.find_unresolved_default_spec(path)
|
46
40
|
Gem.remove_unresolved_default_spec(spec)
|
47
|
-
|
41
|
+
begin
|
42
|
+
Kernel.send(:gem, spec.name)
|
43
|
+
rescue Exception
|
44
|
+
RUBYGEMS_ACTIVATION_MONITOR.exit
|
45
|
+
raise
|
46
|
+
end
|
48
47
|
end
|
49
48
|
|
50
49
|
# If there are no unresolved deps, then we can use just try
|
@@ -61,12 +60,10 @@ module Kernel
|
|
61
60
|
#--
|
62
61
|
# TODO request access to the C implementation of this to speed up RubyGems
|
63
62
|
|
64
|
-
|
65
|
-
|
66
|
-
begin
|
63
|
+
if Gem::Specification.find_active_stub_by_path(path)
|
67
64
|
RUBYGEMS_ACTIVATION_MONITOR.exit
|
68
65
|
return gem_original_require(path)
|
69
|
-
end
|
66
|
+
end
|
70
67
|
|
71
68
|
# Attempt to find +path+ in any unresolved gems...
|
72
69
|
|
@@ -104,7 +101,7 @@ module Kernel
|
|
104
101
|
|
105
102
|
# Ok, now find a gem that has no conflicts, starting
|
106
103
|
# at the highest version.
|
107
|
-
valid = found_specs.
|
104
|
+
valid = found_specs.find { |s| !s.has_conflicts? }
|
108
105
|
|
109
106
|
unless valid then
|
110
107
|
le = Gem::LoadError.new "unable to find a version of '#{names.first}' to activate"
|
@@ -138,4 +135,3 @@ module Kernel
|
|
138
135
|
private :require
|
139
136
|
|
140
137
|
end
|
141
|
-
|
data/lib/rubygems/dependency.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
##
|
3
3
|
# The Dependency class holds a Gem name and a Gem::Requirement.
|
4
4
|
|
5
|
+
require "rubygems/bundler_version_finder"
|
5
6
|
require "rubygems/requirement"
|
6
7
|
|
7
8
|
class Gem::Dependency
|
@@ -280,6 +281,8 @@ class Gem::Dependency
|
|
280
281
|
requirement.satisfied_by?(spec.version) && env_req.satisfied_by?(spec.version)
|
281
282
|
}.map(&:to_spec)
|
282
283
|
|
284
|
+
Gem::BundlerVersionFinder.filter!(matches) if name == "bundler".freeze
|
285
|
+
|
283
286
|
if platform_only
|
284
287
|
matches.reject! { |spec|
|
285
288
|
spec.nil? || !Gem::Platform.match(spec.platform)
|
@@ -7,6 +7,7 @@ require 'rubygems/spec_fetcher'
|
|
7
7
|
require 'rubygems/user_interaction'
|
8
8
|
require 'rubygems/source'
|
9
9
|
require 'rubygems/available_set'
|
10
|
+
require 'rubygems/deprecate'
|
10
11
|
|
11
12
|
##
|
12
13
|
# Installs a gem along with all its dependencies from local and remote gems.
|
@@ -46,6 +47,9 @@ class Gem::DependencyInstaller
|
|
46
47
|
|
47
48
|
attr_reader :gems_to_install # :nodoc:
|
48
49
|
|
50
|
+
extend Gem::Deprecate
|
51
|
+
deprecate :gems_to_install, :none, 2016, 10
|
52
|
+
|
49
53
|
##
|
50
54
|
# List of gems installed by #install in alphabetic order
|
51
55
|
|
@@ -109,7 +113,7 @@ class Gem::DependencyInstaller
|
|
109
113
|
|
110
114
|
##
|
111
115
|
#--
|
112
|
-
# TODO remove, no longer used
|
116
|
+
# TODO remove at RubyGems 4, no longer used
|
113
117
|
|
114
118
|
def add_found_dependencies to_do, dependency_list # :nodoc:
|
115
119
|
seen = {}
|
@@ -159,6 +163,7 @@ class Gem::DependencyInstaller
|
|
159
163
|
|
160
164
|
dependency_list.remove_specs_unsatisfied_by dependencies
|
161
165
|
end
|
166
|
+
deprecate :add_found_dependencies, :none, 2018, 12
|
162
167
|
|
163
168
|
##
|
164
169
|
# Creates an AvailableSet to install from based on +dep_or_name+ and
|
@@ -317,7 +322,7 @@ class Gem::DependencyInstaller
|
|
317
322
|
# Gathers all dependencies necessary for the installation from local and
|
318
323
|
# remote sources unless the ignore_dependencies was given.
|
319
324
|
#--
|
320
|
-
# TODO remove at RubyGems
|
325
|
+
# TODO remove at RubyGems 4
|
321
326
|
|
322
327
|
def gather_dependencies # :nodoc:
|
323
328
|
specs = @available.all_specs
|
@@ -350,6 +355,7 @@ class Gem::DependencyInstaller
|
|
350
355
|
|
351
356
|
@gems_to_install = dependency_list.dependency_order.reverse
|
352
357
|
end
|
358
|
+
deprecate :gather_dependencies, :none, 2018, 12
|
353
359
|
|
354
360
|
def in_background what # :nodoc:
|
355
361
|
fork_happened = false
|
data/lib/rubygems/errors.rb
CHANGED
@@ -58,6 +58,9 @@ module Gem
|
|
58
58
|
private
|
59
59
|
|
60
60
|
def build_message
|
61
|
+
if name == "bundler" && message = Gem::BundlerVersionFinder.missing_version_message
|
62
|
+
return message
|
63
|
+
end
|
61
64
|
names = specs.map(&:full_name)
|
62
65
|
"Could not find '#{name}' (#{requirement}) - did find: [#{names.join ','}]\n"
|
63
66
|
end
|
data/lib/rubygems/exceptions.rb
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
# Each exception needs a brief description and the scenarios where it is
|
5
5
|
# likely to be raised
|
6
6
|
|
7
|
+
require 'rubygems/deprecate'
|
8
|
+
|
7
9
|
##
|
8
10
|
# Base exception class for RubyGems. All exception raised by RubyGems are a
|
9
11
|
# subclass of this one.
|
@@ -11,10 +13,12 @@ class Gem::Exception < RuntimeError
|
|
11
13
|
|
12
14
|
##
|
13
15
|
#--
|
14
|
-
# TODO: remove in RubyGems
|
16
|
+
# TODO: remove in RubyGems 4, nobody sets this
|
15
17
|
|
16
18
|
attr_accessor :source_exception # :nodoc:
|
17
19
|
|
20
|
+
extend Gem::Deprecate
|
21
|
+
deprecate :source_exception, :none, 2018, 12
|
18
22
|
end
|
19
23
|
|
20
24
|
class Gem::CommandLineError < Gem::Exception; end
|
@@ -154,6 +158,12 @@ class Gem::ImpossibleDependenciesError < Gem::Exception
|
|
154
158
|
end
|
155
159
|
|
156
160
|
class Gem::InstallError < Gem::Exception; end
|
161
|
+
class Gem::RuntimeRequirementNotMetError < Gem::InstallError
|
162
|
+
attr_accessor :suggestion
|
163
|
+
def message
|
164
|
+
[suggestion, super].compact.join("\n\t")
|
165
|
+
end
|
166
|
+
end
|
157
167
|
|
158
168
|
##
|
159
169
|
# Potentially raised when a specification is validated.
|
data/lib/rubygems/ext/builder.rb
CHANGED
@@ -183,7 +183,7 @@ EOF
|
|
183
183
|
return if @spec.extensions.empty?
|
184
184
|
|
185
185
|
if @build_args.empty?
|
186
|
-
say "Building native extensions.
|
186
|
+
say "Building native extensions. This could take a while..."
|
187
187
|
else
|
188
188
|
say "Building native extensions with: '#{@build_args.join ' '}'"
|
189
189
|
say "This could take a while..."
|
@@ -212,7 +212,7 @@ EOF
|
|
212
212
|
|
213
213
|
FileUtils.mkdir_p @spec.extension_dir
|
214
214
|
|
215
|
-
open destination, 'wb' do |io| io.puts output end
|
215
|
+
File.open destination, 'wb' do |io| io.puts output end
|
216
216
|
|
217
217
|
destination
|
218
218
|
end
|