rubygems-update 2.6.14 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rubygems-update might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +10 -7
- data/CONTRIBUTING.rdoc +53 -54
- data/History.txt +173 -9
- data/Manifest.txt +39 -11
- data/POLICIES.rdoc +3 -3
- data/README.md +72 -0
- data/Rakefile +30 -5
- data/appveyor.yml +29 -1
- data/bin/gem +1 -1
- data/bin/update_rubygems +2 -2
- data/bundler/CHANGELOG.md +269 -9
- data/bundler/CODE_OF_CONDUCT.md +1 -1
- data/bundler/CONTRIBUTING.md +10 -29
- data/bundler/README.md +22 -10
- data/bundler/exe/bundle +5 -7
- data/bundler/exe/bundle_ruby +4 -3
- data/bundler/lib/bundler.rb +94 -74
- data/bundler/lib/bundler/build_metadata.rb +36 -0
- data/bundler/lib/bundler/capistrano.rb +5 -0
- data/bundler/lib/bundler/cli.rb +229 -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 +3 -2
- data/bundler/lib/bundler/cli/gem.rb +36 -15
- data/bundler/lib/bundler/cli/info.rb +50 -0
- data/bundler/lib/bundler/cli/init.rb +20 -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 +32 -11
- 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 +26 -7
- data/bundler/lib/bundler/compatibility_guard.rb +14 -0
- data/bundler/lib/bundler/constants.rb +1 -0
- data/bundler/lib/bundler/current_ruby.rb +8 -7
- data/bundler/lib/bundler/definition.rb +231 -159
- data/bundler/lib/bundler/dep_proxy.rb +2 -0
- data/bundler/lib/bundler/dependency.rb +6 -7
- data/bundler/lib/bundler/deployment.rb +1 -1
- data/bundler/lib/bundler/deprecate.rb +14 -3
- data/bundler/lib/bundler/dsl.rb +103 -62
- data/bundler/lib/bundler/endpoint_specification.rb +12 -2
- data/bundler/lib/bundler/env.rb +97 -36
- 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 +15 -8
- 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 +4 -2
- data/bundler/lib/bundler/fetcher/index.rb +1 -0
- data/bundler/lib/bundler/friendly_errors.rb +5 -2
- data/bundler/lib/bundler/gem_helper.rb +23 -9
- 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 +1 -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 +51 -27
- data/bundler/lib/bundler/inline.rb +10 -10
- data/bundler/lib/bundler/installer.rb +104 -50
- data/bundler/lib/bundler/installer/gem_installer.rb +5 -2
- 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 +8 -3
- data/bundler/lib/bundler/plugin.rb +6 -1
- data/bundler/lib/bundler/plugin/api/source.rb +16 -3
- data/bundler/lib/bundler/plugin/index.rb +2 -0
- 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 +171 -192
- data/bundler/lib/bundler/resolver/spec_group.rb +111 -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 +6 -1
- 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 +157 -66
- data/bundler/lib/bundler/runtime.rb +28 -18
- 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 +129 -25
- 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 +49 -21
- data/bundler/lib/bundler/source/git/git_proxy.rb +17 -12
- 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 +154 -82
- data/bundler/lib/bundler/source/rubygems/remote.rb +8 -1
- data/bundler/lib/bundler/source_list.rb +75 -15
- data/bundler/lib/bundler/spec_set.rb +34 -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/Executable +5 -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 +13 -10
- 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/ui.rb +1 -0
- data/bundler/lib/bundler/ui/rg_proxy.rb +1 -0
- data/bundler/lib/bundler/ui/shell.rb +24 -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 +5 -4
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +69 -6
- 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 +14 -0
- data/bundler/man/bundle-check.ronn +26 -0
- data/bundler/man/bundle-clean.ronn +18 -0
- data/bundler/man/bundle-config.ronn +180 -60
- data/bundler/man/bundle-exec.ronn +7 -0
- data/bundler/man/bundle-gem.ronn +3 -2
- data/bundler/man/bundle-info.ronn +17 -0
- data/bundler/man/bundle-init.ronn +18 -0
- data/bundler/man/bundle-inject.ronn +22 -0
- data/bundler/man/bundle-install.ronn +32 -32
- data/bundler/man/bundle-list.ronn +15 -0
- data/bundler/man/bundle-open.ronn +19 -0
- data/bundler/man/bundle-outdated.ronn +1 -1
- data/bundler/man/bundle-package.ronn +5 -0
- data/bundler/man/bundle-pristine.ronn +34 -0
- data/bundler/man/bundle-show.ronn +20 -0
- data/bundler/man/bundle-update.ronn +6 -3
- data/bundler/man/bundle-viz.ronn +30 -0
- data/bundler/man/bundle.ronn +11 -20
- data/bundler/man/gemfile.5.ronn +55 -64
- data/lib/rubygems.rb +79 -36
- data/lib/rubygems/basic_specification.rb +8 -4
- data/lib/rubygems/bundler_version_finder.rb +112 -0
- data/lib/rubygems/command.rb +1 -1
- data/lib/rubygems/command_manager.rb +3 -1
- data/lib/rubygems/commands/cert_command.rb +31 -6
- data/lib/rubygems/commands/cleanup_command.rb +1 -1
- data/lib/rubygems/commands/help_command.rb +1 -1
- data/lib/rubygems/commands/owner_command.rb +3 -1
- data/lib/rubygems/commands/pristine_command.rb +11 -8
- data/lib/rubygems/commands/push_command.rb +2 -1
- data/lib/rubygems/commands/query_command.rb +13 -14
- data/lib/rubygems/commands/setup_command.rb +124 -69
- data/lib/rubygems/commands/signin_command.rb +33 -0
- data/lib/rubygems/commands/signout_command.rb +33 -0
- data/lib/rubygems/commands/uninstall_command.rb +4 -3
- data/lib/rubygems/commands/unpack_command.rb +16 -4
- 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 +13 -24
- data/lib/rubygems/core_ext/kernel_require.rb +10 -9
- data/lib/rubygems/dependency.rb +2 -0
- data/lib/rubygems/dependency_installer.rb +4 -0
- data/lib/rubygems/errors.rb +3 -0
- data/lib/rubygems/exceptions.rb +6 -0
- data/lib/rubygems/ext/builder.rb +1 -1
- 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/install_update_options.rb +5 -28
- data/lib/rubygems/installer.rb +12 -7
- data/lib/rubygems/installer_test_case.rb +6 -3
- data/lib/rubygems/package/old.rb +1 -1
- data/lib/rubygems/request.rb +1 -1
- data/lib/rubygems/request_set.rb +20 -3
- data/lib/rubygems/request_set/gem_dependency_api.rb +3 -3
- data/lib/rubygems/requirement.rb +5 -1
- data/lib/rubygems/resolver.rb +24 -3
- data/lib/rubygems/resolver/installer_set.rb +4 -6
- data/lib/rubygems/safe_yaml.rb +4 -1
- data/lib/rubygems/security.rb +10 -3
- data/lib/rubygems/security_option.rb +43 -0
- data/lib/rubygems/server.rb +4 -12
- data/lib/rubygems/source.rb +7 -4
- 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 +281 -231
- data/lib/rubygems/stub_specification.rb +2 -3
- data/lib/rubygems/test_case.rb +14 -1
- data/lib/rubygems/user_interaction.rb +15 -13
- data/lib/rubygems/util.rb +6 -17
- data/lib/rubygems/version.rb +17 -3
- data/lib/rubygems/version_option.rb +6 -1
- 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_config.rb +1 -1
- data/test/rubygems/test_gem.rb +72 -14
- data/test/rubygems/test_gem_bundler_version_finder.rb +125 -0
- data/test/rubygems/test_gem_command.rb +1 -1
- data/test/rubygems/test_gem_commands_build_command.rb +27 -1
- data/test/rubygems/test_gem_commands_cert_command.rb +64 -0
- data/test/rubygems/test_gem_commands_install_command.rb +35 -2
- data/test/rubygems/test_gem_commands_pristine_command.rb +1 -1
- data/test/rubygems/test_gem_commands_query_command.rb +19 -0
- data/test/rubygems/test_gem_commands_setup_command.rb +17 -0
- data/test/rubygems/test_gem_commands_signin_command.rb +95 -0
- data/test/rubygems/test_gem_commands_signout_command.rb +37 -0
- data/test/rubygems/test_gem_commands_sources_command.rb +1 -1
- data/test/rubygems/test_gem_commands_uninstall_command.rb +12 -0
- data/test/rubygems/test_gem_commands_update_command.rb +1 -1
- 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_ext_builder.rb +2 -2
- data/test/rubygems/test_gem_ext_rake_builder.rb +2 -2
- data/test/rubygems/test_gem_install_update_options.rb +2 -1
- data/test/rubygems/test_gem_installer.rb +29 -27
- data/test/rubygems/test_gem_package.rb +5 -5
- data/test/rubygems/test_gem_remote_fetcher.rb +2 -2
- data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +3 -3
- data/test/rubygems/test_gem_requirement.rb +6 -0
- data/test/rubygems/test_gem_resolver.rb +26 -0
- data/test/rubygems/test_gem_resolver_conflict.rb +1 -1
- data/test/rubygems/test_gem_security.rb +5 -0
- data/test/rubygems/test_gem_security_policy.rb +24 -24
- 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 +18 -1
- data/test/rubygems/test_gem_source.rb +9 -0
- data/test/rubygems/test_gem_spec_fetcher.rb +20 -0
- data/test/rubygems/test_gem_specification.rb +85 -10
- data/test/rubygems/test_gem_stream_ui.rb +6 -6
- data/test/rubygems/test_gem_stub_specification.rb +19 -1
- data/test/rubygems/test_gem_util.rb +1 -0
- data/test/rubygems/test_gem_version.rb +28 -7
- data/test/rubygems/test_gem_version_option.rb +15 -0
- data/test/rubygems/test_kernel.rb +30 -0
- data/test/rubygems/test_require.rb +44 -0
- metadata +47 -46
- 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
@@ -51,13 +51,13 @@ class Bundler::Thor
|
|
51
51
|
def set_color(string, *colors)
|
52
52
|
if colors.all? { |color| color.is_a?(Symbol) || color.is_a?(String) }
|
53
53
|
html_colors = colors.map { |color| lookup_color(color) }
|
54
|
-
"<span style=\"#{html_colors.join(
|
54
|
+
"<span style=\"#{html_colors.join('; ')};\">#{string}</span>"
|
55
55
|
else
|
56
56
|
color, bold = colors
|
57
57
|
html_color = self.class.const_get(color.to_s.upcase) if color.is_a?(Symbol)
|
58
58
|
styles = [html_color]
|
59
59
|
styles << BOLD if bold
|
60
|
-
"<span style=\"#{styles.join(
|
60
|
+
"<span style=\"#{styles.join('; ')};\">#{string}</span>"
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
@@ -68,7 +68,7 @@ class Bundler::Thor
|
|
68
68
|
#
|
69
69
|
# TODO: Implement #ask for Bundler::Thor::Shell::HTML
|
70
70
|
def ask(statement, color = nil)
|
71
|
-
|
71
|
+
raise NotImplementedError, "Implement #ask for Bundler::Thor::Shell::HTML"
|
72
72
|
end
|
73
73
|
|
74
74
|
protected
|
@@ -111,7 +111,7 @@ class Bundler::Thor
|
|
111
111
|
# for diff.
|
112
112
|
#
|
113
113
|
def diff_lcs_loaded? #:nodoc:
|
114
|
-
return true
|
114
|
+
return true if defined?(Diff::LCS)
|
115
115
|
return @diff_lcs_loaded unless @diff_lcs_loaded.nil?
|
116
116
|
|
117
117
|
@diff_lcs_loaded = begin
|
@@ -64,7 +64,7 @@ class Bundler::Thor
|
|
64
64
|
new_constants = Bundler::Thor::Base.subclasses.dup
|
65
65
|
Bundler::Thor::Base.subclasses.replace(old_constants)
|
66
66
|
|
67
|
-
new_constants.map!
|
67
|
+
new_constants.map!(&:namespace)
|
68
68
|
new_constants.compact!
|
69
69
|
new_constants
|
70
70
|
end
|
@@ -72,7 +72,7 @@ class Bundler::Thor
|
|
72
72
|
# Returns the thor classes declared inside the given class.
|
73
73
|
#
|
74
74
|
def thor_classes_in(klass)
|
75
|
-
stringfied_constants = klass.constants.map
|
75
|
+
stringfied_constants = klass.constants.map(&:to_s)
|
76
76
|
Bundler::Thor::Base.subclasses.select do |subclass|
|
77
77
|
next unless subclass.name
|
78
78
|
stringfied_constants.include?(subclass.name.gsub("#{klass.name}::", ""))
|
@@ -103,7 +103,7 @@ class Bundler::Thor
|
|
103
103
|
#
|
104
104
|
def camel_case(str)
|
105
105
|
return str if str !~ /_/ && str =~ /[A-Z]+.*/
|
106
|
-
str.split("_").map
|
106
|
+
str.split("_").map(&:capitalize).join
|
107
107
|
end
|
108
108
|
|
109
109
|
# Receives a namespace and tries to retrieve a Bundler::Thor or Bundler::Thor::Group class
|
@@ -135,7 +135,8 @@ class Bundler::Thor
|
|
135
135
|
klass = Bundler::Thor::Util.find_by_namespace(pieces.join(":"))
|
136
136
|
end
|
137
137
|
unless klass # look for a Bundler::Thor::Group with the right name
|
138
|
-
klass
|
138
|
+
klass = Bundler::Thor::Util.find_by_namespace(namespace)
|
139
|
+
command = nil
|
139
140
|
end
|
140
141
|
if !klass && fallback # try a command in the default namespace
|
141
142
|
command = namespace
|
@@ -163,7 +164,7 @@ class Bundler::Thor
|
|
163
164
|
end
|
164
165
|
end
|
165
166
|
|
166
|
-
def user_home
|
167
|
+
def user_home
|
167
168
|
@@user_home ||= if ENV["HOME"]
|
168
169
|
ENV["HOME"]
|
169
170
|
elsif ENV["USERPROFILE"]
|
@@ -188,7 +189,7 @@ class Bundler::Thor
|
|
188
189
|
# Returns the root where thor files are located, depending on the OS.
|
189
190
|
#
|
190
191
|
def thor_root
|
191
|
-
File.join(user_home, ".thor").
|
192
|
+
File.join(user_home, ".thor").tr('\\', "/")
|
192
193
|
end
|
193
194
|
|
194
195
|
# Returns the files in the thor root. On Windows thor_root will be something
|
@@ -216,7 +217,7 @@ class Bundler::Thor
|
|
216
217
|
# Return the path to the ruby interpreter taking into account multiple
|
217
218
|
# installations and windows extensions.
|
218
219
|
#
|
219
|
-
def ruby_command
|
220
|
+
def ruby_command
|
220
221
|
@ruby_command ||= begin
|
221
222
|
ruby_name = RbConfig::CONFIG["ruby_install_name"]
|
222
223
|
ruby = File.join(RbConfig::CONFIG["bindir"], ruby_name)
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
# We forcibly require OpenSSL, because net/http/persistent will only autoload
|
3
4
|
# it. On some Rubies, autoload fails but explicit require succeeds.
|
4
5
|
begin
|
@@ -15,3 +16,37 @@ module Bundler
|
|
15
16
|
end
|
16
17
|
end
|
17
18
|
require "bundler/vendor/net-http-persistent/lib/net/http/persistent"
|
19
|
+
|
20
|
+
module Bundler
|
21
|
+
class PersistentHTTP < Persistent::Net::HTTP::Persistent
|
22
|
+
def connection_for(uri)
|
23
|
+
connection = super
|
24
|
+
warn_old_tls_version_rubygems_connection(uri, connection)
|
25
|
+
connection
|
26
|
+
end
|
27
|
+
|
28
|
+
def warn_old_tls_version_rubygems_connection(uri, connection)
|
29
|
+
return unless connection.use_ssl?
|
30
|
+
return unless (uri.host || "").end_with?("rubygems.org")
|
31
|
+
|
32
|
+
socket = connection.instance_variable_get(:@socket)
|
33
|
+
return unless socket
|
34
|
+
socket_io = socket.io
|
35
|
+
return unless socket_io.respond_to?(:ssl_version)
|
36
|
+
ssl_version = socket_io.ssl_version
|
37
|
+
|
38
|
+
case ssl_version
|
39
|
+
when /TLSv([\d\.]+)/
|
40
|
+
version = Gem::Version.new($1)
|
41
|
+
if version < Gem::Version.new("1.2")
|
42
|
+
Bundler.ui.warn \
|
43
|
+
"Warning: Your Ruby version is compiled against a copy of OpenSSL that is very old. " \
|
44
|
+
"Starting in January 2018, RubyGems.org will refuse connection requests from these " \
|
45
|
+
"very old versions of OpenSSL. If you will need to continue installing gems after " \
|
46
|
+
"January 2018, please follow this guide to upgrade: http://ruby.to/tls-outdated.",
|
47
|
+
:wrap => true
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -1,4 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
2
|
+
|
3
|
+
module Bundler
|
4
|
+
def self.require_thor_actions
|
5
|
+
Kernel.send(:require, "bundler/vendor/thor/lib/thor/actions")
|
6
|
+
end
|
7
|
+
end
|
3
8
|
require "bundler/vendor/thor/lib/thor"
|
4
|
-
require "bundler/vendor/thor/lib/thor/actions"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# frozen_string_literal:
|
1
|
+
# frozen_string_literal: false
|
2
2
|
|
3
3
|
# Ruby 1.9.3 and old RubyGems don't play nice with frozen version strings
|
4
4
|
# rubocop:disable MutableConstant
|
@@ -7,5 +7,22 @@ module Bundler
|
|
7
7
|
# We're doing this because we might write tests that deal
|
8
8
|
# with other versions of bundler and we are unsure how to
|
9
9
|
# handle this better.
|
10
|
-
VERSION = "1.
|
10
|
+
VERSION = "1.16.0" unless defined?(::Bundler::VERSION)
|
11
|
+
|
12
|
+
def self.overwrite_loaded_gem_version
|
13
|
+
begin
|
14
|
+
require "rubygems"
|
15
|
+
rescue LoadError
|
16
|
+
return
|
17
|
+
end
|
18
|
+
return unless bundler_spec = Gem.loaded_specs["bundler"]
|
19
|
+
return if bundler_spec.version == VERSION
|
20
|
+
bundler_spec.version = Bundler::VERSION
|
21
|
+
end
|
22
|
+
private_class_method :overwrite_loaded_gem_version
|
23
|
+
overwrite_loaded_gem_version
|
24
|
+
|
25
|
+
def self.bundler_major_version
|
26
|
+
@bundler_major_version ||= VERSION.split(".").first.to_i
|
27
|
+
end
|
11
28
|
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Bundler
|
4
|
+
module VersionRanges
|
5
|
+
NEq = Struct.new(:version)
|
6
|
+
ReqR = Struct.new(:left, :right)
|
7
|
+
class ReqR
|
8
|
+
Endpoint = Struct.new(:version, :inclusive)
|
9
|
+
def to_s
|
10
|
+
"#{left.inclusive ? "[" : "("}#{left.version}, #{right.version}#{right.inclusive ? "]" : ")"}"
|
11
|
+
end
|
12
|
+
INFINITY = Object.new.freeze
|
13
|
+
ZERO = Gem::Version.new("0.a")
|
14
|
+
|
15
|
+
def cover?(v)
|
16
|
+
return false if left.inclusive && left.version > v
|
17
|
+
return false if !left.inclusive && left.version >= v
|
18
|
+
|
19
|
+
if right.version != INFINITY
|
20
|
+
return false if right.inclusive && right.version < v
|
21
|
+
return false if !right.inclusive && right.version <= v
|
22
|
+
end
|
23
|
+
|
24
|
+
true
|
25
|
+
end
|
26
|
+
|
27
|
+
def empty?
|
28
|
+
left.version == right.version && !(left.inclusive && right.inclusive)
|
29
|
+
end
|
30
|
+
|
31
|
+
def single?
|
32
|
+
left.version == right.version
|
33
|
+
end
|
34
|
+
|
35
|
+
UNIVERSAL = ReqR.new(ReqR::Endpoint.new(Gem::Version.new("0.a"), true), ReqR::Endpoint.new(ReqR::INFINITY, false)).freeze
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.for_many(requirements)
|
39
|
+
requirements = requirements.map(&:requirements).flatten(1).map {|r| r.join(" ") }
|
40
|
+
requirements << ">= 0.a" if requirements.empty?
|
41
|
+
requirement = Gem::Requirement.new(requirements)
|
42
|
+
self.for(requirement)
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.for(requirement)
|
46
|
+
ranges = requirement.requirements.map do |op, v|
|
47
|
+
case op
|
48
|
+
when "=" then ReqR.new(ReqR::Endpoint.new(v, true), ReqR::Endpoint.new(v, true))
|
49
|
+
when "!=" then NEq.new(v)
|
50
|
+
when ">=" then ReqR.new(ReqR::Endpoint.new(v, true), ReqR::Endpoint.new(ReqR::INFINITY, false))
|
51
|
+
when ">" then ReqR.new(ReqR::Endpoint.new(v, false), ReqR::Endpoint.new(ReqR::INFINITY, false))
|
52
|
+
when "<" then ReqR.new(ReqR::Endpoint.new(ReqR::ZERO, true), ReqR::Endpoint.new(v, false))
|
53
|
+
when "<=" then ReqR.new(ReqR::Endpoint.new(ReqR::ZERO, true), ReqR::Endpoint.new(v, true))
|
54
|
+
when "~>" then ReqR.new(ReqR::Endpoint.new(v, true), ReqR::Endpoint.new(v.bump, false))
|
55
|
+
else raise "unknown version op #{op} in requirement #{requirement}"
|
56
|
+
end
|
57
|
+
end.uniq
|
58
|
+
ranges, neqs = ranges.partition {|r| !r.is_a?(NEq) }
|
59
|
+
|
60
|
+
[ranges.sort_by {|range| [range.left.version, range.left.inclusive ? 0 : 1] }, neqs.map(&:version)]
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.empty?(ranges, neqs)
|
64
|
+
!ranges.reduce(ReqR::UNIVERSAL) do |last_range, curr_range|
|
65
|
+
next false unless last_range
|
66
|
+
next false if curr_range.single? && neqs.include?(curr_range.left.version)
|
67
|
+
next curr_range if last_range.right.version == ReqR::INFINITY
|
68
|
+
case last_range.right.version <=> curr_range.left.version
|
69
|
+
when 1 then next curr_range
|
70
|
+
when 0 then next(last_range.right.inclusive && curr_range.left.inclusive && !neqs.include?(curr_range.left.version) && curr_range)
|
71
|
+
when -1 then next false
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
data/bundler/lib/bundler/vlad.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
require "thread"
|
3
4
|
|
4
5
|
module Bundler
|
@@ -27,7 +28,7 @@ module Bundler
|
|
27
28
|
@func = func
|
28
29
|
@size = size
|
29
30
|
@threads = nil
|
30
|
-
trap("INT") { abort_threads }
|
31
|
+
SharedHelpers.trap("INT") { abort_threads }
|
31
32
|
end
|
32
33
|
|
33
34
|
# Enqueue a request to be executed in the worker pool
|
@@ -76,6 +77,7 @@ module Bundler
|
|
76
77
|
|
77
78
|
def abort_threads
|
78
79
|
return unless @threads
|
80
|
+
Bundler.ui.debug("\n#{caller.join("\n")}")
|
79
81
|
@threads.each(&:exit)
|
80
82
|
exit 1
|
81
83
|
end
|
@@ -37,7 +37,7 @@ module Bundler
|
|
37
37
|
HASH_REGEX = /
|
38
38
|
^
|
39
39
|
([ ]*) # indentations
|
40
|
-
(
|
40
|
+
(.+) # key
|
41
41
|
(?::(?=(?:\s|$))) # : (without the lookahead the #key includes this when : is present in value)
|
42
42
|
[ ]?
|
43
43
|
(?: !\s)? # optional exclamation mark found with ruby 1.9.3
|
@@ -54,10 +54,10 @@ module Bundler
|
|
54
54
|
last_empty_key = nil
|
55
55
|
str.split(/\r?\n/).each do |line|
|
56
56
|
if match = HASH_REGEX.match(line)
|
57
|
-
indent, key,
|
57
|
+
indent, key, quote, val = match.captures
|
58
58
|
key = convert_to_backward_compatible_key(key)
|
59
59
|
depth = indent.scan(/ /).length
|
60
|
-
if val.empty?
|
60
|
+
if quote.empty? && val.empty?
|
61
61
|
new_hash = {}
|
62
62
|
stack[depth][key] = new_hash
|
63
63
|
stack[depth + 1] = new_hash
|
@@ -0,0 +1,29 @@
|
|
1
|
+
bundle-add(1) -- Add gem to the Gemfile and run bundle install
|
2
|
+
================================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle add` <GEM_NAME> [--group=GROUP] [--version=VERSION] [--source=SOURCE]
|
7
|
+
|
8
|
+
## DESCRIPTION
|
9
|
+
Adds the named gem to the Gemfile and run `bundle install`.
|
10
|
+
|
11
|
+
Example:
|
12
|
+
|
13
|
+
bundle add rails
|
14
|
+
|
15
|
+
bundle add rails --version "< 3.0, > 1.1"
|
16
|
+
|
17
|
+
bundle add rails --version "~> 5.0.0" --source "https://gems.example.com" --group "development"
|
18
|
+
|
19
|
+
bundle add rails --group "development, test"
|
20
|
+
|
21
|
+
## OPTIONS
|
22
|
+
* `--version`, `-v`:
|
23
|
+
Specify version requirements(s) for the added gem.
|
24
|
+
|
25
|
+
* `--group`, `-g`:
|
26
|
+
Specify the group(s) for the added gem. Multiple groups should be separated by commas.
|
27
|
+
|
28
|
+
* `--source`, , `-s`:
|
29
|
+
Specify the source for the added gem.
|
@@ -7,6 +7,17 @@ bundle-binstubs(1) -- Install the binstubs of the listed gems
|
|
7
7
|
|
8
8
|
## DESCRIPTION
|
9
9
|
|
10
|
+
Binstubs are scripts that wrap aroung executables. Bundler creates a
|
11
|
+
small Ruby file (a binstub) that loads Bundler, runs the command,
|
12
|
+
and puts it into `bin/`. Binstubs are a shortcut-or alternative-
|
13
|
+
to always using `bundle exec`. This gives you a file that can by run
|
14
|
+
directly, and one that will always run the correct gem version
|
15
|
+
used by the application.
|
16
|
+
|
17
|
+
For example, if you run `bundle binstubs rspec-core`, Bundler will create
|
18
|
+
the file `bin/rspec`. That file will contain enough code to load Bundler,
|
19
|
+
tell it to load the bundled gems, and then run rspec.
|
20
|
+
|
10
21
|
This command generates binstubs for executables in `GEM_NAME`.
|
11
22
|
Binstubs are put into `bin`, or the `--path` directory if one has been set.
|
12
23
|
Calling binstubs with [GEM [GEM]] will create binstubs for all given gems.
|
@@ -23,6 +34,9 @@ Calling binstubs with [GEM [GEM]] will create binstubs for all given gems.
|
|
23
34
|
Makes binstubs that can work without depending on Rubygems or Bundler at
|
24
35
|
runtime.
|
25
36
|
|
37
|
+
* `--sheband`:
|
38
|
+
Specify a different shebang executable name than the default (default 'ruby')
|
39
|
+
|
26
40
|
## BUNDLE INSTALL --BINSTUBS
|
27
41
|
|
28
42
|
To create binstubs for all the gems in the bundle you can use the `--binstubs`
|
@@ -0,0 +1,26 @@
|
|
1
|
+
bundle-check(1) -- Verifies if dependencies are satisfied by installed gems
|
2
|
+
===========================================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle check` [--dry-run]
|
7
|
+
[--gemfile=FILE]
|
8
|
+
[--path=PATH]
|
9
|
+
|
10
|
+
## DESCRIPTION
|
11
|
+
|
12
|
+
`check` searches the local machine for each of the gems requested in the
|
13
|
+
Gemfile. If all gems are found, Bundler prints a success message and exits with
|
14
|
+
a status of 0.
|
15
|
+
|
16
|
+
If not, the first missing gem is listed and Bundler exits status 1.
|
17
|
+
|
18
|
+
## OPTIONS
|
19
|
+
|
20
|
+
* `--dry-run`:
|
21
|
+
Locks the `Gemfile(5)` before running the command.
|
22
|
+
* `--gemfile`:
|
23
|
+
Use the specified gemfile instead of the `Gemfile(5)`
|
24
|
+
* `--path`:
|
25
|
+
Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME).
|
26
|
+
Bundler will remember this value for future installs on this machine.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
bundle-clean(1) -- Cleans up unused gems in your bundler directory
|
2
|
+
==================================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle clean` [--dry-run] [--force]
|
7
|
+
|
8
|
+
## DESCRIPTION
|
9
|
+
|
10
|
+
This command will remove all unused gems in your bundler directory. This is
|
11
|
+
useful when you have made many changes to your gem dependencies.
|
12
|
+
|
13
|
+
## OPTIONS
|
14
|
+
|
15
|
+
* `--dry-run`:
|
16
|
+
Print the changes, but do not clean the unused gems.
|
17
|
+
* `--force`:
|
18
|
+
Force a clean even if `--path` is not set.
|