rubygems-update 2.6.0 → 3.4.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5802 -0
- data/CODE_OF_CONDUCT.md +76 -35
- data/CONTRIBUTING.md +231 -0
- data/MAINTAINERS.txt +8 -0
- data/Manifest.txt +441 -42
- data/POLICIES.md +135 -0
- data/README.md +114 -0
- data/UPGRADING.md +15 -0
- data/bundler/CHANGELOG.md +4666 -0
- data/bundler/LICENSE.md +22 -0
- data/bundler/README.md +58 -0
- data/bundler/UPGRADING.md +222 -0
- data/bundler/bundler.gemspec +44 -0
- data/bundler/exe/bundle +38 -0
- data/bundler/exe/bundler +4 -0
- data/bundler/lib/bundler/.document +1 -0
- data/bundler/lib/bundler/build_metadata.rb +45 -0
- data/bundler/lib/bundler/capistrano.rb +22 -0
- data/bundler/lib/bundler/cli/add.rb +47 -0
- data/bundler/lib/bundler/cli/binstubs.rb +57 -0
- data/bundler/lib/bundler/cli/cache.rb +43 -0
- data/bundler/lib/bundler/cli/check.rb +40 -0
- data/bundler/lib/bundler/cli/clean.rb +25 -0
- data/bundler/lib/bundler/cli/common.rb +130 -0
- data/bundler/lib/bundler/cli/config.rb +203 -0
- data/bundler/lib/bundler/cli/console.rb +43 -0
- data/bundler/lib/bundler/cli/doctor.rb +157 -0
- data/bundler/lib/bundler/cli/exec.rb +88 -0
- data/bundler/lib/bundler/cli/fund.rb +36 -0
- data/bundler/lib/bundler/cli/gem.rb +466 -0
- data/bundler/lib/bundler/cli/info.rb +94 -0
- data/bundler/lib/bundler/cli/init.rb +51 -0
- data/bundler/lib/bundler/cli/inject.rb +60 -0
- data/bundler/lib/bundler/cli/install.rb +189 -0
- data/bundler/lib/bundler/cli/issue.rb +41 -0
- data/bundler/lib/bundler/cli/list.rb +66 -0
- data/bundler/lib/bundler/cli/lock.rb +73 -0
- data/bundler/lib/bundler/cli/open.rb +29 -0
- data/bundler/lib/bundler/cli/outdated.rb +297 -0
- data/bundler/lib/bundler/cli/platform.rb +48 -0
- data/bundler/lib/bundler/cli/plugin.rb +41 -0
- data/bundler/lib/bundler/cli/pristine.rb +52 -0
- data/bundler/lib/bundler/cli/remove.rb +17 -0
- data/bundler/lib/bundler/cli/show.rb +75 -0
- data/bundler/lib/bundler/cli/update.rb +123 -0
- data/bundler/lib/bundler/cli/viz.rb +31 -0
- data/bundler/lib/bundler/cli.rb +894 -0
- data/bundler/lib/bundler/compact_index_client/cache.rb +101 -0
- data/bundler/lib/bundler/compact_index_client/gem_parser.rb +28 -0
- data/bundler/lib/bundler/compact_index_client/updater.rb +117 -0
- data/bundler/lib/bundler/compact_index_client.rb +119 -0
- data/bundler/lib/bundler/constants.rb +7 -0
- data/bundler/lib/bundler/current_ruby.rb +108 -0
- data/bundler/lib/bundler/definition.rb +978 -0
- data/bundler/lib/bundler/dependency.rb +97 -0
- data/bundler/lib/bundler/deployment.rb +69 -0
- data/bundler/lib/bundler/deprecate.rb +44 -0
- data/bundler/lib/bundler/digest.rb +71 -0
- data/bundler/lib/bundler/dsl.rb +583 -0
- data/bundler/lib/bundler/endpoint_specification.rb +143 -0
- data/bundler/lib/bundler/env.rb +150 -0
- data/bundler/lib/bundler/environment_preserver.rb +86 -0
- data/bundler/lib/bundler/errors.rb +190 -0
- data/bundler/lib/bundler/feature_flag.rb +53 -0
- data/bundler/lib/bundler/fetcher/base.rb +50 -0
- data/bundler/lib/bundler/fetcher/compact_index.rb +129 -0
- data/bundler/lib/bundler/fetcher/dependency.rb +78 -0
- data/bundler/lib/bundler/fetcher/downloader.rb +89 -0
- data/bundler/lib/bundler/fetcher/index.rb +25 -0
- data/bundler/lib/bundler/fetcher.rb +321 -0
- data/bundler/lib/bundler/force_platform.rb +18 -0
- data/bundler/lib/bundler/friendly_errors.rb +126 -0
- data/bundler/lib/bundler/gem_helper.rb +237 -0
- data/bundler/lib/bundler/gem_helpers.rb +124 -0
- data/bundler/lib/bundler/gem_tasks.rb +7 -0
- data/bundler/lib/bundler/gem_version_promoter.rb +145 -0
- data/bundler/lib/bundler/graph.rb +152 -0
- data/bundler/lib/bundler/index.rb +206 -0
- data/bundler/lib/bundler/injector.rb +287 -0
- data/bundler/lib/bundler/inline.rb +73 -0
- data/bundler/lib/bundler/installer/gem_installer.rb +84 -0
- data/bundler/lib/bundler/installer/parallel_installer.rb +194 -0
- data/bundler/lib/bundler/installer/standalone.rb +117 -0
- data/bundler/lib/bundler/installer.rb +267 -0
- data/bundler/lib/bundler/lazy_specification.rb +163 -0
- data/bundler/lib/bundler/lockfile_generator.rb +95 -0
- data/bundler/lib/bundler/lockfile_parser.rb +218 -0
- data/bundler/lib/bundler/man/.document +1 -0
- data/bundler/lib/bundler/man/bundle-add.1 +82 -0
- data/bundler/lib/bundler/man/bundle-add.1.ronn +58 -0
- data/bundler/lib/bundler/man/bundle-binstubs.1 +42 -0
- data/bundler/lib/bundler/man/bundle-binstubs.1.ronn +41 -0
- data/bundler/lib/bundler/man/bundle-cache.1 +61 -0
- data/bundler/lib/bundler/man/bundle-cache.1.ronn +79 -0
- data/bundler/lib/bundler/man/bundle-check.1 +31 -0
- data/bundler/lib/bundler/man/bundle-check.1.ronn +26 -0
- data/bundler/lib/bundler/man/bundle-clean.1 +24 -0
- data/bundler/lib/bundler/man/bundle-clean.1.ronn +18 -0
- data/bundler/lib/bundler/man/bundle-config.1 +512 -0
- data/bundler/lib/bundler/man/bundle-config.1.ronn +405 -0
- data/bundler/lib/bundler/man/bundle-console.1 +53 -0
- data/bundler/lib/bundler/man/bundle-console.1.ronn +44 -0
- data/bundler/lib/bundler/man/bundle-doctor.1 +44 -0
- data/bundler/lib/bundler/man/bundle-doctor.1.ronn +33 -0
- data/bundler/lib/bundler/man/bundle-exec.1 +165 -0
- data/bundler/lib/bundler/man/bundle-exec.1.ronn +151 -0
- data/bundler/lib/bundler/man/bundle-gem.1 +105 -0
- data/bundler/lib/bundler/man/bundle-gem.1.ronn +117 -0
- data/bundler/lib/bundler/man/bundle-help.1 +13 -0
- data/bundler/lib/bundler/man/bundle-help.1.ronn +12 -0
- data/bundler/lib/bundler/man/bundle-info.1 +20 -0
- data/bundler/lib/bundler/man/bundle-info.1.ronn +17 -0
- data/bundler/lib/bundler/man/bundle-init.1 +29 -0
- data/bundler/lib/bundler/man/bundle-init.1.ronn +31 -0
- data/bundler/lib/bundler/man/bundle-inject.1 +36 -0
- data/bundler/lib/bundler/man/bundle-inject.1.ronn +24 -0
- data/bundler/lib/bundler/man/bundle-install.1 +313 -0
- data/bundler/lib/bundler/man/bundle-install.1.ronn +382 -0
- data/bundler/lib/bundler/man/bundle-list.1 +50 -0
- data/bundler/lib/bundler/man/bundle-list.1.ronn +33 -0
- data/bundler/lib/bundler/man/bundle-lock.1 +84 -0
- data/bundler/lib/bundler/man/bundle-lock.1.ronn +94 -0
- data/bundler/lib/bundler/man/bundle-open.1 +52 -0
- data/bundler/lib/bundler/man/bundle-open.1.ronn +27 -0
- data/bundler/lib/bundler/man/bundle-outdated.1 +152 -0
- data/bundler/lib/bundler/man/bundle-outdated.1.ronn +105 -0
- data/bundler/lib/bundler/man/bundle-platform.1 +71 -0
- data/bundler/lib/bundler/man/bundle-platform.1.ronn +49 -0
- data/bundler/lib/bundler/man/bundle-plugin.1 +81 -0
- data/bundler/lib/bundler/man/bundle-plugin.1.ronn +59 -0
- data/bundler/lib/bundler/man/bundle-pristine.1 +34 -0
- data/bundler/lib/bundler/man/bundle-pristine.1.ronn +34 -0
- data/bundler/lib/bundler/man/bundle-remove.1 +31 -0
- data/bundler/lib/bundler/man/bundle-remove.1.ronn +23 -0
- data/bundler/lib/bundler/man/bundle-show.1 +23 -0
- data/bundler/lib/bundler/man/bundle-show.1.ronn +21 -0
- data/bundler/lib/bundler/man/bundle-update.1 +394 -0
- data/bundler/lib/bundler/man/bundle-update.1.ronn +351 -0
- data/bundler/lib/bundler/man/bundle-version.1 +35 -0
- data/bundler/lib/bundler/man/bundle-version.1.ronn +24 -0
- data/bundler/lib/bundler/man/bundle-viz.1 +42 -0
- data/bundler/lib/bundler/man/bundle-viz.1.ronn +32 -0
- data/bundler/lib/bundler/man/bundle.1 +141 -0
- data/bundler/lib/bundler/man/bundle.1.ronn +116 -0
- data/bundler/lib/bundler/man/gemfile.5 +747 -0
- data/bundler/lib/bundler/man/gemfile.5.ronn +548 -0
- data/bundler/lib/bundler/man/index.txt +29 -0
- data/bundler/lib/bundler/match_metadata.rb +13 -0
- data/bundler/lib/bundler/match_platform.rb +23 -0
- data/bundler/lib/bundler/match_remote_metadata.rb +29 -0
- data/bundler/lib/bundler/mirror.rb +221 -0
- data/bundler/lib/bundler/plugin/api/source.rb +320 -0
- data/bundler/lib/bundler/plugin/api.rb +81 -0
- data/bundler/lib/bundler/plugin/dsl.rb +53 -0
- data/bundler/lib/bundler/plugin/events.rb +61 -0
- data/bundler/lib/bundler/plugin/index.rb +193 -0
- data/bundler/lib/bundler/plugin/installer/git.rb +34 -0
- data/bundler/lib/bundler/plugin/installer/rubygems.rb +19 -0
- data/bundler/lib/bundler/plugin/installer.rb +112 -0
- data/bundler/lib/bundler/plugin/source_list.rb +31 -0
- data/bundler/lib/bundler/plugin.rb +359 -0
- data/bundler/lib/bundler/process_lock.rb +24 -0
- data/bundler/lib/bundler/remote_specification.rb +117 -0
- data/bundler/lib/bundler/resolver/base.rb +107 -0
- data/bundler/lib/bundler/resolver/candidate.rb +94 -0
- data/bundler/lib/bundler/resolver/incompatibility.rb +15 -0
- data/bundler/lib/bundler/resolver/package.rb +77 -0
- data/bundler/lib/bundler/resolver/root.rb +25 -0
- data/bundler/lib/bundler/resolver/spec_group.rb +82 -0
- data/bundler/lib/bundler/resolver.rb +462 -0
- data/bundler/lib/bundler/retry.rb +66 -0
- data/bundler/lib/bundler/ruby_dsl.rb +45 -0
- data/bundler/lib/bundler/ruby_version.rb +131 -0
- data/bundler/lib/bundler/rubygems_ext.rb +354 -0
- data/bundler/lib/bundler/rubygems_gem_installer.rb +187 -0
- data/bundler/lib/bundler/rubygems_integration.rb +562 -0
- data/bundler/lib/bundler/runtime.rb +307 -0
- data/bundler/lib/bundler/safe_marshal.rb +31 -0
- data/bundler/lib/bundler/self_manager.rb +170 -0
- data/bundler/lib/bundler/settings/validator.rb +102 -0
- data/bundler/lib/bundler/settings.rb +568 -0
- data/bundler/lib/bundler/setup.rb +30 -0
- data/bundler/lib/bundler/shared_helpers.rb +358 -0
- data/bundler/lib/bundler/similarity_detector.rb +63 -0
- data/bundler/lib/bundler/source/gemspec.rb +18 -0
- data/bundler/lib/bundler/source/git/git_proxy.rb +455 -0
- data/bundler/lib/bundler/source/git.rb +379 -0
- data/bundler/lib/bundler/source/metadata.rb +62 -0
- data/bundler/lib/bundler/source/path/installer.rb +53 -0
- data/bundler/lib/bundler/source/path.rb +260 -0
- data/bundler/lib/bundler/source/rubygems/remote.rb +68 -0
- data/bundler/lib/bundler/source/rubygems.rb +509 -0
- data/bundler/lib/bundler/source/rubygems_aggregate.rb +68 -0
- data/bundler/lib/bundler/source.rb +114 -0
- data/bundler/lib/bundler/source_list.rb +227 -0
- data/bundler/lib/bundler/source_map.rb +71 -0
- data/bundler/lib/bundler/spec_set.rb +219 -0
- data/bundler/lib/bundler/stub_specification.rb +118 -0
- data/bundler/lib/bundler/templates/.document +1 -0
- data/bundler/lib/bundler/templates/Executable +27 -0
- data/bundler/lib/bundler/templates/Executable.bundler +109 -0
- data/bundler/lib/bundler/templates/Executable.standalone +14 -0
- data/bundler/lib/bundler/templates/Gemfile +5 -0
- data/bundler/lib/bundler/templates/newgem/CHANGELOG.md.tt +5 -0
- data/bundler/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +84 -0
- data/bundler/lib/bundler/templates/newgem/Cargo.toml.tt +7 -0
- data/bundler/lib/bundler/templates/newgem/Gemfile.tt +26 -0
- data/bundler/lib/bundler/templates/newgem/LICENSE.txt.tt +21 -0
- data/bundler/lib/bundler/templates/newgem/README.md.tt +45 -0
- data/bundler/lib/bundler/templates/newgem/Rakefile.tt +71 -0
- data/bundler/lib/bundler/templates/newgem/bin/console.tt +11 -0
- data/bundler/lib/bundler/templates/newgem/bin/setup.tt +8 -0
- data/bundler/lib/bundler/templates/newgem/circleci/config.yml.tt +25 -0
- data/bundler/lib/bundler/templates/newgem/exe/newgem.tt +3 -0
- data/bundler/lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +15 -0
- data/bundler/lib/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt +10 -0
- data/bundler/lib/bundler/templates/newgem/ext/newgem/extconf-rust.rb.tt +6 -0
- data/bundler/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +9 -0
- data/bundler/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +6 -0
- data/bundler/lib/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +12 -0
- data/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +37 -0
- data/bundler/lib/bundler/templates/newgem/gitignore.tt +23 -0
- data/bundler/lib/bundler/templates/newgem/gitlab-ci.yml.tt +18 -0
- data/bundler/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +9 -0
- data/bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt +15 -0
- data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +51 -0
- data/bundler/lib/bundler/templates/newgem/rspec.tt +3 -0
- data/bundler/lib/bundler/templates/newgem/rubocop.yml.tt +13 -0
- data/bundler/lib/bundler/templates/newgem/sig/newgem.rbs.tt +8 -0
- data/bundler/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +11 -0
- data/bundler/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +15 -0
- data/bundler/lib/bundler/templates/newgem/standard.yml.tt +3 -0
- data/bundler/lib/bundler/templates/newgem/test/minitest/test_helper.rb.tt +6 -0
- data/bundler/lib/bundler/templates/newgem/test/minitest/test_newgem.rb.tt +13 -0
- data/bundler/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +15 -0
- data/bundler/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +6 -0
- data/bundler/lib/bundler/ui/rg_proxy.rb +19 -0
- data/bundler/lib/bundler/ui/shell.rb +165 -0
- data/bundler/lib/bundler/ui/silent.rb +85 -0
- data/bundler/lib/bundler/ui.rb +9 -0
- data/bundler/lib/bundler/uri_credentials_filter.rb +43 -0
- data/bundler/lib/bundler/uri_normalizer.rb +23 -0
- data/bundler/lib/bundler/vendor/.document +1 -0
- data/bundler/lib/bundler/vendor/connection_pool/LICENSE +20 -0
- data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +174 -0
- data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +3 -0
- data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +56 -0
- data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +128 -0
- data/bundler/lib/bundler/vendor/fileutils/LICENSE.txt +22 -0
- data/bundler/lib/bundler/vendor/fileutils/lib/fileutils.rb +2706 -0
- data/bundler/lib/bundler/vendor/net-http-persistent/README.rdoc +82 -0
- data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +41 -0
- data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +65 -0
- data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +79 -0
- data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +1073 -0
- data/bundler/lib/bundler/vendor/pub_grub/LICENSE.txt +21 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb +20 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/basic_package_source.rb +189 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb +182 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/incompatibility.rb +150 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/package.rb +43 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/partial_solution.rb +121 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/rubygems.rb +45 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb +19 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +60 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/term.rb +105 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version.rb +3 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb +129 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb +411 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb +248 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub/version_union.rb +178 -0
- data/bundler/lib/bundler/vendor/pub_grub/lib/pub_grub.rb +31 -0
- data/bundler/lib/bundler/vendor/thor/LICENSE.md +20 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +105 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +61 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +108 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +143 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +373 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +130 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions.rb +340 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/base.rb +825 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/command.rb +151 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +107 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/error.rb +106 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/group.rb +281 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/invocation.rb +178 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +37 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +88 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/line_editor.rb +17 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/nested_context.rb +29 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +89 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +195 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/option.rb +178 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser/options.rb +293 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +72 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/runner.rb +335 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +388 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/color.rb +115 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/column_printer.rb +29 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/html.rb +84 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/lcs_diff.rb +49 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/table_printer.rb +134 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/terminal.rb +42 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell/wrapped_printer.rb +38 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/shell.rb +81 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/util.rb +285 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/version.rb +3 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor.rb +663 -0
- data/bundler/lib/bundler/vendor/tsort/LICENSE.txt +22 -0
- data/bundler/lib/bundler/vendor/tsort/lib/tsort.rb +452 -0
- data/bundler/lib/bundler/vendor/uri/LICENSE.txt +22 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/common.rb +729 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/file.rb +100 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/ftp.rb +267 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/generic.rb +1587 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/http.rb +125 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/https.rb +23 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/ldap.rb +261 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/ldaps.rb +22 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/mailto.rb +293 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +539 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +119 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/version.rb +6 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/ws.rb +83 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri/wss.rb +23 -0
- data/bundler/lib/bundler/vendor/uri/lib/uri.rb +104 -0
- data/bundler/lib/bundler/vendored_fileutils.rb +4 -0
- data/bundler/lib/bundler/vendored_persistent.rb +15 -0
- data/bundler/lib/bundler/vendored_pub_grub.rb +4 -0
- data/bundler/lib/bundler/vendored_thor.rb +8 -0
- data/bundler/lib/bundler/vendored_tsort.rb +4 -0
- data/bundler/lib/bundler/vendored_uri.rb +4 -0
- data/bundler/lib/bundler/version.rb +13 -0
- data/bundler/lib/bundler/vlad.rb +17 -0
- data/bundler/lib/bundler/worker.rb +117 -0
- data/bundler/lib/bundler/yaml_serializer.rb +93 -0
- data/bundler/lib/bundler.rb +654 -0
- data/{test/rubygems/bogussources.rb → exe/gem} +5 -2
- data/exe/update_rubygems +38 -0
- data/hide_lib_for_update/note.txt +0 -4
- data/lib/rubygems/available_set.rb +9 -9
- data/lib/rubygems/basic_specification.rb +56 -37
- data/lib/rubygems/bundler_version_finder.rb +77 -0
- data/lib/rubygems/command.rb +142 -67
- data/lib/rubygems/command_manager.rb +61 -25
- data/lib/rubygems/commands/build_command.rb +88 -17
- data/lib/rubygems/commands/cert_command.rb +131 -82
- data/lib/rubygems/commands/check_command.rb +27 -24
- data/lib/rubygems/commands/cleanup_command.rb +56 -37
- data/lib/rubygems/commands/contents_command.rb +33 -35
- data/lib/rubygems/commands/dependency_command.rb +52 -63
- data/lib/rubygems/commands/environment_command.rb +31 -13
- data/lib/rubygems/commands/exec_command.rb +249 -0
- data/lib/rubygems/commands/fetch_command.rb +36 -19
- data/lib/rubygems/commands/generate_index_command.rb +21 -20
- data/lib/rubygems/commands/help_command.rb +21 -21
- data/lib/rubygems/commands/info_command.rb +38 -0
- data/lib/rubygems/commands/install_command.rb +65 -133
- data/lib/rubygems/commands/list_command.rb +10 -9
- data/lib/rubygems/commands/lock_command.rb +11 -13
- data/lib/rubygems/commands/mirror_command.rb +4 -4
- data/lib/rubygems/commands/open_command.rb +28 -26
- data/lib/rubygems/commands/outdated_command.rb +6 -6
- data/lib/rubygems/commands/owner_command.rb +50 -26
- data/lib/rubygems/commands/pristine_command.rb +96 -66
- data/lib/rubygems/commands/push_command.rb +52 -45
- data/lib/rubygems/commands/query_command.rb +22 -328
- data/lib/rubygems/commands/rdoc_command.rb +31 -31
- data/lib/rubygems/commands/search_command.rb +9 -9
- data/lib/rubygems/commands/server_command.rb +15 -76
- data/lib/rubygems/commands/setup_command.rb +375 -188
- data/lib/rubygems/commands/signin_command.rb +34 -0
- data/lib/rubygems/commands/signout_command.rb +32 -0
- data/lib/rubygems/commands/sources_command.rb +51 -35
- data/lib/rubygems/commands/specification_command.rb +39 -29
- data/lib/rubygems/commands/stale_command.rb +5 -4
- data/lib/rubygems/commands/uninstall_command.rb +94 -59
- data/lib/rubygems/commands/unpack_command.rb +43 -52
- data/lib/rubygems/commands/update_command.rb +154 -96
- data/lib/rubygems/commands/which_command.rb +13 -16
- data/lib/rubygems/commands/yank_command.rb +27 -31
- data/lib/rubygems/compatibility.rb +8 -26
- data/lib/rubygems/config_file.rb +214 -119
- data/lib/rubygems/core_ext/kernel_gem.rb +10 -14
- data/lib/rubygems/core_ext/kernel_require.rb +119 -88
- data/lib/rubygems/core_ext/kernel_warn.rb +49 -0
- data/lib/rubygems/core_ext/tcpsocket_init.rb +54 -0
- data/lib/rubygems/defaults.rb +174 -56
- data/lib/rubygems/dependency.rb +66 -51
- data/lib/rubygems/dependency_installer.rb +70 -225
- data/lib/rubygems/dependency_list.rb +32 -33
- data/lib/rubygems/deprecate.rb +112 -17
- data/lib/rubygems/doctor.rb +30 -30
- data/lib/rubygems/errors.rb +51 -9
- data/lib/rubygems/exceptions.rb +64 -35
- data/lib/rubygems/ext/build_error.rb +3 -1
- data/lib/rubygems/ext/builder.rb +96 -75
- data/lib/rubygems/ext/cargo_builder/link_flag_converter.rb +27 -0
- data/lib/rubygems/ext/cargo_builder.rb +360 -0
- data/lib/rubygems/ext/cmake_builder.rb +6 -7
- data/lib/rubygems/ext/configure_builder.rb +6 -9
- data/lib/rubygems/ext/ext_conf_builder.rb +41 -60
- data/lib/rubygems/ext/rake_builder.rb +18 -21
- data/lib/rubygems/ext.rb +8 -7
- data/lib/rubygems/gem_runner.rb +22 -24
- data/lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb +163 -0
- data/lib/rubygems/gemcutter_utilities/webauthn_listener.rb +105 -0
- data/lib/rubygems/gemcutter_utilities/webauthn_poller.rb +78 -0
- data/lib/rubygems/gemcutter_utilities.rb +244 -40
- data/lib/rubygems/indexer.rb +49 -55
- data/lib/rubygems/install_default_message.rb +3 -3
- data/lib/rubygems/install_message.rb +3 -3
- data/lib/rubygems/install_update_options.rb +103 -96
- data/lib/rubygems/installer.rb +370 -214
- data/lib/rubygems/installer_uninstaller_utils.rb +29 -0
- data/lib/rubygems/local_remote_options.rb +27 -27
- data/lib/rubygems/mock_gem_ui.rb +6 -9
- data/lib/rubygems/name_tuple.rb +16 -19
- data/lib/rubygems/openssl.rb +7 -0
- data/lib/rubygems/optparse/.document +1 -0
- data/lib/rubygems/optparse/COPYING +56 -0
- data/lib/rubygems/optparse/lib/optionparser.rb +2 -0
- data/lib/rubygems/optparse/lib/optparse/ac.rb +54 -0
- data/lib/rubygems/optparse/lib/optparse/date.rb +18 -0
- data/lib/rubygems/optparse/lib/optparse/kwargs.rb +22 -0
- data/lib/rubygems/optparse/lib/optparse/shellwords.rb +7 -0
- data/lib/rubygems/optparse/lib/optparse/time.rb +11 -0
- data/lib/rubygems/optparse/lib/optparse/uri.rb +7 -0
- data/lib/rubygems/optparse/lib/optparse/version.rb +71 -0
- data/lib/rubygems/optparse/lib/optparse.rb +2308 -0
- data/lib/rubygems/optparse.rb +3 -0
- data/lib/rubygems/package/digest_io.rb +5 -7
- data/lib/rubygems/package/file_source.rb +6 -8
- data/lib/rubygems/package/io_source.rb +6 -4
- data/lib/rubygems/package/old.rb +18 -27
- data/lib/rubygems/package/source.rb +1 -1
- data/lib/rubygems/package/tar_header.rb +86 -71
- data/lib/rubygems/package/tar_reader/entry.rb +113 -20
- data/lib/rubygems/package/tar_reader.rb +13 -37
- data/lib/rubygems/package/tar_writer.rb +28 -44
- data/lib/rubygems/package.rb +234 -135
- data/lib/rubygems/package_task.rb +6 -12
- data/lib/rubygems/path_support.rb +18 -12
- data/lib/rubygems/platform.rb +123 -77
- data/lib/rubygems/psych_tree.rb +3 -2
- data/lib/rubygems/query_utils.rb +351 -0
- data/lib/rubygems/rdoc.rb +4 -326
- data/lib/rubygems/remote_fetcher.rb +89 -171
- data/lib/rubygems/request/connection_pools.rb +30 -23
- data/lib/rubygems/request/http_pool.rb +6 -7
- data/lib/rubygems/request/https_pool.rb +2 -3
- data/lib/rubygems/request.rb +88 -41
- data/lib/rubygems/request_set/gem_dependency_api.rb +171 -176
- data/lib/rubygems/request_set/lockfile/parser.rb +39 -49
- data/lib/rubygems/request_set/lockfile/tokenizer.rb +15 -13
- data/lib/rubygems/request_set/lockfile.rb +34 -32
- data/lib/rubygems/request_set.rb +115 -71
- data/lib/rubygems/requirement.rb +72 -63
- data/lib/rubygems/resolver/activation_request.rb +35 -60
- data/lib/rubygems/resolver/api_set/gem_parser.rb +20 -0
- data/lib/rubygems/resolver/api_set.rb +40 -32
- data/lib/rubygems/resolver/api_specification.rb +37 -18
- data/lib/rubygems/resolver/best_set.rb +15 -17
- data/lib/rubygems/resolver/composed_set.rb +9 -11
- data/lib/rubygems/resolver/conflict.rb +18 -24
- data/lib/rubygems/resolver/current_set.rb +2 -4
- data/lib/rubygems/resolver/dependency_request.rb +8 -9
- data/lib/rubygems/resolver/git_set.rb +8 -10
- data/lib/rubygems/resolver/git_specification.rb +11 -13
- data/lib/rubygems/resolver/index_set.rb +10 -12
- data/lib/rubygems/resolver/index_specification.rb +42 -11
- data/lib/rubygems/resolver/installed_specification.rb +9 -11
- data/lib/rubygems/resolver/installer_set.rb +93 -46
- data/lib/rubygems/resolver/local_specification.rb +5 -7
- data/lib/rubygems/resolver/lock_set.rb +13 -15
- data/lib/rubygems/resolver/lock_specification.rb +13 -15
- data/lib/rubygems/resolver/molinillo/LICENSE +9 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/delegates/resolution_state.rb +57 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/delegates/specification_provider.rb +88 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/action.rb +36 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +66 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +62 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +63 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +61 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/log.rb +126 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/set_payload.rb +46 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/tag.rb +36 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb +164 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb +110 -146
- data/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb +83 -9
- data/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb +2 -1
- data/lib/rubygems/resolver/molinillo/lib/molinillo/modules/specification_provider.rb +13 -1
- data/lib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb +3 -1
- data/lib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb +552 -172
- data/lib/rubygems/resolver/molinillo/lib/molinillo/resolver.rb +3 -2
- data/lib/rubygems/resolver/molinillo/lib/molinillo/state.rb +12 -6
- data/lib/rubygems/resolver/molinillo/lib/molinillo.rb +6 -5
- data/lib/rubygems/resolver/molinillo.rb +2 -1
- data/lib/rubygems/resolver/requirement_list.rb +2 -2
- data/lib/rubygems/resolver/set.rb +3 -5
- data/lib/rubygems/resolver/source_set.rb +6 -7
- data/lib/rubygems/resolver/spec_specification.rb +16 -4
- data/lib/rubygems/resolver/specification.rb +25 -10
- data/lib/rubygems/resolver/stats.rb +1 -0
- data/lib/rubygems/resolver/vendor_set.rb +6 -8
- data/lib/rubygems/resolver/vendor_specification.rb +6 -8
- data/lib/rubygems/resolver.rb +120 -64
- data/lib/rubygems/s3_uri_signer.rb +177 -0
- data/lib/rubygems/safe_yaml.rb +59 -0
- data/lib/rubygems/security/policies.rb +49 -49
- data/lib/rubygems/security/policy.rb +44 -47
- data/lib/rubygems/security/signer.rb +86 -29
- data/lib/rubygems/security/trust_dir.rb +21 -23
- data/lib/rubygems/security.rb +111 -78
- data/lib/rubygems/security_option.rb +43 -0
- data/lib/rubygems/shellwords.rb +3 -0
- data/lib/rubygems/source/git.rb +40 -40
- data/lib/rubygems/source/installed.rb +5 -7
- data/lib/rubygems/source/local.rb +30 -30
- data/lib/rubygems/source/lock.rb +9 -7
- data/lib/rubygems/source/specific_file.rb +7 -8
- data/lib/rubygems/source/vendor.rb +3 -5
- data/lib/rubygems/source.rb +73 -63
- data/lib/rubygems/source_list.rb +14 -18
- data/lib/rubygems/spec_fetcher.rb +66 -78
- data/lib/rubygems/specification.rb +823 -1092
- data/lib/rubygems/specification_policy.rb +508 -0
- data/lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem +21 -0
- data/lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem +21 -0
- data/lib/rubygems/stub_specification.rb +52 -53
- data/lib/rubygems/text.rb +40 -27
- data/lib/rubygems/tsort/.document +1 -0
- data/lib/rubygems/tsort/LICENSE.txt +22 -0
- data/lib/rubygems/tsort/lib/tsort.rb +452 -0
- data/lib/rubygems/tsort.rb +3 -0
- data/lib/rubygems/uninstaller.rb +149 -84
- data/lib/rubygems/unknown_command_spell_checker.rb +21 -0
- data/lib/rubygems/update_suggestion.rb +69 -0
- data/lib/rubygems/uri.rb +126 -0
- data/lib/rubygems/uri_formatter.rb +3 -6
- data/lib/rubygems/user_interaction.rb +95 -143
- data/lib/rubygems/util/licenses.rb +679 -314
- data/lib/rubygems/util/list.rb +2 -1
- data/lib/rubygems/util.rb +58 -73
- data/lib/rubygems/validator.rb +23 -47
- data/lib/rubygems/version.rb +92 -48
- data/lib/rubygems/version_option.rb +20 -9
- data/lib/rubygems/yaml_serializer.rb +93 -0
- data/lib/rubygems.rb +434 -346
- data/rubygems-update.gemspec +38 -0
- data/setup.rb +13 -27
- data/test/rubygems/alternate_cert.pem +15 -14
- data/test/rubygems/alternate_cert_32.pem +16 -15
- data/test/rubygems/alternate_key.pem +25 -25
- data/test/rubygems/bad_rake.rb +1 -0
- data/test/rubygems/bundler_test_gem.rb +424 -0
- data/test/rubygems/ca_cert.pem +74 -65
- data/test/rubygems/child_cert.pem +16 -15
- data/test/rubygems/child_cert_32.pem +16 -15
- data/test/rubygems/child_key.pem +25 -25
- data/test/rubygems/client.pem +103 -45
- data/test/rubygems/data/excon-0.7.7.gemspec.rz +0 -0
- 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 +26 -26
- data/test/rubygems/expired_cert.pem +15 -14
- data/test/rubygems/fake_certlib/openssl.rb +1 -0
- data/test/rubygems/future_cert.pem +15 -14
- data/test/rubygems/future_cert_32.pem +15 -14
- data/test/rubygems/good_rake.rb +1 -0
- data/test/rubygems/grandchild_cert.pem +16 -15
- data/test/rubygems/grandchild_cert_32.pem +16 -15
- data/test/rubygems/grandchild_key.pem +25 -25
- data/{lib/rubygems/test_case.rb → test/rubygems/helper.rb} +643 -490
- data/{lib → test}/rubygems/installer_test_case.rb +118 -64
- data/test/rubygems/invalid_issuer_cert.pem +17 -15
- data/test/rubygems/invalid_issuer_cert_32.pem +17 -15
- data/test/rubygems/invalid_key.pem +25 -25
- data/test/rubygems/invalid_signer_cert.pem +16 -15
- data/test/rubygems/invalid_signer_cert_32.pem +16 -15
- data/test/rubygems/invalidchild_cert.pem +16 -15
- data/test/rubygems/invalidchild_cert_32.pem +16 -15
- data/test/rubygems/invalidchild_key.pem +25 -25
- data/test/rubygems/multifactor_auth_utilities.rb +111 -0
- data/{lib → test}/rubygems/package/tar_test_case.rb +54 -26
- 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 +2 -1
- data/test/rubygems/plugin/load/rubygems_plugin.rb +1 -0
- data/test/rubygems/plugin/standarderror/rubygems_plugin.rb +2 -1
- data/test/rubygems/private3072_key.pem +40 -0
- data/test/rubygems/private_ec_key.pem +9 -0
- data/test/rubygems/private_key.pem +25 -25
- data/test/rubygems/public3072_cert.pem +25 -0
- data/test/rubygems/public_cert.pem +17 -15
- data/test/rubygems/public_cert_32.pem +16 -15
- data/test/rubygems/public_key.pem +7 -7
- data/test/rubygems/rubygems/commands/crash_command.rb +1 -2
- data/test/rubygems/rubygems_plugin.rb +7 -5
- data/test/rubygems/simple_gem.rb +1 -0
- data/test/rubygems/specifications/bar-0.0.2.gemspec +1 -1
- data/test/rubygems/specifications/rubyforge-0.0.1.gemspec +14 -0
- data/test/rubygems/ssl_cert.pem +78 -17
- data/test/rubygems/ssl_key.pem +25 -13
- data/test/rubygems/test_bundled_ca.rb +45 -43
- data/test/rubygems/test_config.rb +13 -9
- data/test/rubygems/test_deprecate.rb +91 -10
- data/test/rubygems/test_exit.rb +17 -0
- data/test/rubygems/test_gem.rb +917 -797
- data/test/rubygems/test_gem_available_set.rb +25 -25
- data/test/rubygems/test_gem_bundler_version_finder.rb +127 -0
- data/test/rubygems/test_gem_command.rb +195 -40
- data/test/rubygems/test_gem_command_manager.rb +182 -46
- data/test/rubygems/test_gem_commands_build_command.rb +646 -28
- data/test/rubygems/test_gem_commands_cert_command.rb +321 -126
- data/test/rubygems/test_gem_commands_check_command.rb +11 -12
- data/test/rubygems/test_gem_commands_cleanup_command.rb +147 -52
- data/test/rubygems/test_gem_commands_contents_command.rb +75 -44
- data/test/rubygems/test_gem_commands_dependency_command.rb +61 -63
- data/test/rubygems/test_gem_commands_environment_command.rb +62 -47
- data/test/rubygems/test_gem_commands_exec_command.rb +857 -0
- data/test/rubygems/test_gem_commands_fetch_command.rb +164 -33
- data/test/rubygems/test_gem_commands_generate_index_command.rb +39 -9
- data/test/rubygems/test_gem_commands_help_command.rb +36 -17
- data/test/rubygems/test_gem_commands_info_command.rb +70 -0
- data/test/rubygems/test_gem_commands_install_command.rb +736 -150
- data/test/rubygems/test_gem_commands_list_command.rb +6 -7
- data/test/rubygems/test_gem_commands_lock_command.rb +12 -14
- data/test/rubygems/test_gem_commands_mirror.rb +4 -4
- data/test/rubygems/test_gem_commands_open_command.rb +47 -16
- data/test/rubygems/test_gem_commands_outdated_command.rb +25 -8
- data/test/rubygems/test_gem_commands_owner_command.rb +368 -70
- data/test/rubygems/test_gem_commands_pristine_command.rb +318 -101
- data/test/rubygems/test_gem_commands_push_command.rb +331 -58
- data/test/rubygems/test_gem_commands_query_command.rb +329 -128
- data/test/rubygems/test_gem_commands_search_command.rb +3 -5
- data/test/rubygems/test_gem_commands_server_command.rb +7 -47
- data/test/rubygems/test_gem_commands_setup_command.rb +404 -66
- data/test/rubygems/test_gem_commands_signin_command.rb +259 -0
- data/test/rubygems/test_gem_commands_signout_command.rb +30 -0
- data/test/rubygems/test_gem_commands_sources_command.rb +316 -31
- data/test/rubygems/test_gem_commands_specification_command.rb +82 -56
- data/test/rubygems/test_gem_commands_stale_command.rb +9 -9
- data/test/rubygems/test_gem_commands_uninstall_command.rb +347 -88
- data/test/rubygems/test_gem_commands_unpack_command.rb +49 -34
- data/test/rubygems/test_gem_commands_update_command.rb +429 -107
- data/test/rubygems/test_gem_commands_which_command.rb +13 -15
- data/test/rubygems/test_gem_commands_yank_command.rb +227 -28
- data/test/rubygems/test_gem_config_file.rb +168 -108
- data/test/rubygems/test_gem_dependency.rb +112 -76
- data/test/rubygems/test_gem_dependency_installer.rb +346 -391
- data/test/rubygems/test_gem_dependency_list.rb +68 -63
- data/test/rubygems/test_gem_dependency_resolution_error.rb +6 -8
- data/test/rubygems/test_gem_doctor.rb +75 -49
- data/test/rubygems/test_gem_ext_builder.rb +121 -125
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/.gitignore +1 -0
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/custom_name.gemspec +10 -0
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/ext/custom_name_lib/Cargo.lock +249 -0
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/ext/custom_name_lib/Cargo.toml +10 -0
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/ext/custom_name_lib/src/lib.rs +27 -0
- data/test/rubygems/test_gem_ext_cargo_builder/custom_name/lib/custom_name.rb +3 -0
- data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/.gitignore +1 -0
- data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/Cargo.lock +249 -0
- data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/Cargo.toml +10 -0
- data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/rust_ruby_example.gemspec +10 -0
- data/test/rubygems/test_gem_ext_cargo_builder/rust_ruby_example/src/lib.rs +51 -0
- data/test/rubygems/test_gem_ext_cargo_builder.rb +167 -0
- data/test/rubygems/test_gem_ext_cargo_builder_link_flag_converter.rb +34 -0
- data/test/rubygems/test_gem_ext_cargo_builder_unit.rb +60 -0
- data/test/rubygems/test_gem_ext_cmake_builder.rb +33 -36
- data/test/rubygems/test_gem_ext_configure_builder.rb +25 -32
- data/test/rubygems/test_gem_ext_ext_conf_builder.rb +94 -76
- data/test/rubygems/test_gem_ext_rake_builder.rb +79 -31
- data/test/rubygems/test_gem_gem_runner.rb +59 -9
- data/test/rubygems/test_gem_gemcutter_utilities.rb +210 -84
- data/test/rubygems/test_gem_impossible_dependencies_error.rb +5 -7
- data/test/rubygems/test_gem_indexer.rb +121 -107
- data/test/rubygems/test_gem_install_update_options.rb +65 -54
- data/test/rubygems/test_gem_installer.rb +1517 -557
- data/test/rubygems/test_gem_local_remote_options.rb +14 -15
- data/test/rubygems/test_gem_name_tuple.rb +5 -7
- data/test/rubygems/test_gem_package.rb +673 -243
- data/test/rubygems/test_gem_package_old.rb +58 -57
- data/test/rubygems/test_gem_package_tar_header.rb +129 -50
- data/test/rubygems/test_gem_package_tar_reader.rb +71 -11
- data/test/rubygems/test_gem_package_tar_reader_entry.rb +229 -21
- data/test/rubygems/test_gem_package_tar_writer.rb +168 -101
- data/test/rubygems/test_gem_package_task.rb +59 -25
- data/test/rubygems/test_gem_path_support.rb +49 -31
- data/test/rubygems/test_gem_platform.rb +393 -204
- data/test/rubygems/test_gem_rdoc.rb +23 -156
- data/test/rubygems/test_gem_remote_fetcher.rb +580 -404
- data/test/rubygems/test_gem_request.rb +270 -86
- data/test/rubygems/test_gem_request_connection_pools.rb +57 -35
- data/test/rubygems/test_gem_request_set.rb +192 -115
- data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +300 -278
- data/test/rubygems/test_gem_request_set_lockfile.rb +95 -96
- data/test/rubygems/test_gem_request_set_lockfile_parser.rb +73 -78
- data/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb +138 -137
- data/test/rubygems/test_gem_requirement.rb +175 -57
- data/test/rubygems/test_gem_resolver.rb +257 -113
- data/test/rubygems/test_gem_resolver_activation_request.rb +10 -41
- data/test/rubygems/test_gem_resolver_api_set.rb +80 -79
- data/test/rubygems/test_gem_resolver_api_specification.rb +64 -42
- data/test/rubygems/test_gem_resolver_best_set.rb +44 -23
- data/test/rubygems/test_gem_resolver_composed_set.rb +2 -4
- data/test/rubygems/test_gem_resolver_conflict.rb +13 -19
- data/test/rubygems/test_gem_resolver_dependency_request.rb +16 -18
- data/test/rubygems/test_gem_resolver_git_set.rb +23 -25
- data/test/rubygems/test_gem_resolver_git_specification.rb +23 -23
- data/test/rubygems/test_gem_resolver_index_set.rb +15 -17
- data/test/rubygems/test_gem_resolver_index_specification.rb +22 -19
- data/test/rubygems/test_gem_resolver_installed_specification.rb +6 -9
- data/test/rubygems/test_gem_resolver_installer_set.rb +110 -48
- data/test/rubygems/test_gem_resolver_local_specification.rb +8 -10
- data/test/rubygems/test_gem_resolver_lock_set.rb +16 -18
- data/test/rubygems/test_gem_resolver_lock_specification.rb +18 -20
- data/test/rubygems/test_gem_resolver_requirement_list.rb +2 -4
- data/test/rubygems/test_gem_resolver_specification.rb +10 -12
- data/test/rubygems/test_gem_resolver_vendor_set.rb +10 -12
- data/test/rubygems/test_gem_resolver_vendor_specification.rb +11 -13
- data/test/rubygems/test_gem_security.rb +116 -82
- data/test/rubygems/test_gem_security_policy.rb +128 -134
- data/test/rubygems/test_gem_security_signer.rb +58 -49
- data/test/rubygems/test_gem_security_trust_dir.rb +19 -21
- data/test/rubygems/test_gem_silent_ui.rb +48 -42
- data/test/rubygems/test_gem_source.rb +73 -61
- data/test/rubygems/test_gem_source_fetch_problem.rb +23 -6
- data/test/rubygems/test_gem_source_git.rb +79 -78
- data/test/rubygems/test_gem_source_installed.rb +17 -19
- data/test/rubygems/test_gem_source_list.rb +6 -5
- data/test/rubygems/test_gem_source_local.rb +16 -16
- data/test/rubygems/test_gem_source_lock.rb +32 -34
- data/test/rubygems/test_gem_source_specific_file.rb +19 -19
- data/test/rubygems/test_gem_source_subpath_problem.rb +50 -0
- data/test/rubygems/test_gem_source_vendor.rb +14 -16
- data/test/rubygems/test_gem_spec_fetcher.rb +89 -62
- data/test/rubygems/test_gem_specification.rb +1441 -1104
- data/test/rubygems/test_gem_stream_ui.rb +71 -55
- data/test/rubygems/test_gem_stub_specification.rb +102 -41
- data/test/rubygems/test_gem_text.rb +27 -1
- data/test/rubygems/test_gem_uninstaller.rb +289 -99
- data/test/rubygems/test_gem_unsatisfiable_dependency_error.rb +4 -6
- data/test/rubygems/test_gem_update_suggestion.rb +209 -0
- data/test/rubygems/test_gem_uri.rb +41 -0
- data/test/rubygems/test_gem_uri_formatter.rb +15 -17
- data/test/rubygems/test_gem_util.rb +68 -17
- data/test/rubygems/test_gem_validator.rb +12 -16
- data/test/rubygems/test_gem_version.rb +123 -40
- data/test/rubygems/test_gem_version_option.rb +30 -17
- data/test/rubygems/test_kernel.rb +75 -37
- data/test/rubygems/test_project_sanity.rb +49 -0
- data/test/rubygems/test_remote_fetch_error.rb +20 -0
- data/test/rubygems/test_require.rb +527 -117
- data/test/rubygems/test_rubygems.rb +76 -0
- data/test/rubygems/test_webauthn_listener.rb +143 -0
- data/test/rubygems/test_webauthn_listener_response.rb +93 -0
- data/test/rubygems/test_webauthn_poller.rb +124 -0
- data/{lib/rubygems/test_utilities.rb → test/rubygems/utilities.rb} +135 -83
- data/test/rubygems/wrong_key_cert.pem +16 -15
- data/test/rubygems/wrong_key_cert_32.pem +16 -15
- data/test/test_changelog_generator.rb +17 -0
- metadata +513 -189
- data/.autotest +0 -71
- data/.document +0 -5
- data/.travis.yml +0 -46
- data/CONTRIBUTING.rdoc +0 -129
- data/CVE-2013-4287.txt +0 -35
- data/CVE-2013-4363.txt +0 -45
- data/CVE-2015-3900.txt +0 -40
- data/History.txt +0 -3094
- data/MAINTAINERS.md +0 -5
- data/POLICIES.rdoc +0 -61
- data/README.rdoc +0 -54
- data/Rakefile +0 -449
- data/UPGRADING.rdoc +0 -92
- data/appveyor.yml +0 -36
- data/bin/gem +0 -25
- data/bin/update_rubygems +0 -37
- data/lib/gauntlet_rubygems.rb +0 -51
- data/lib/rubygems/psych_additions.rb +0 -10
- data/lib/rubygems/server.rb +0 -869
- data/lib/rubygems/source_local.rb +0 -6
- data/lib/rubygems/source_specific_file.rb +0 -5
- data/lib/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem +0 -25
- data/lib/rubygems/ssl_certs/AddTrustExternalCARoot.pem +0 -32
- data/lib/rubygems/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem +0 -14
- data/lib/rubygems/ssl_certs/DigiCertHighAssuranceEVRootCA.pem +0 -23
- data/lib/rubygems/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem +0 -28
- data/lib/rubygems/ssl_certs/GeoTrustGlobalCA.pem +0 -20
- data/lib/rubygems/syck_hack.rb +0 -77
- data/lib/ubygems.rb +0 -11
- data/test/rubygems/data/null-type.gemspec.rz +0 -0
- data/test/rubygems/fix_openssl_warnings.rb +0 -13
- data/test/rubygems/test_gem_server.rb +0 -409
- data/util/CL2notes +0 -56
- data/util/create_certs.rb +0 -157
- data/util/create_encrypted_key.rb +0 -17
- data/util/generate_spdx_license_list.rb +0 -51
- data/util/update_bundled_ca_certificates.rb +0 -118
@@ -0,0 +1,382 @@
|
|
1
|
+
bundle-install(1) -- Install the dependencies specified in your Gemfile
|
2
|
+
=======================================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle install` [--binstubs[=DIRECTORY]]
|
7
|
+
[--clean]
|
8
|
+
[--deployment]
|
9
|
+
[--frozen]
|
10
|
+
[--full-index]
|
11
|
+
[--gemfile=GEMFILE]
|
12
|
+
[--jobs=NUMBER]
|
13
|
+
[--local]
|
14
|
+
[--no-cache]
|
15
|
+
[--no-prune]
|
16
|
+
[--path PATH]
|
17
|
+
[--quiet]
|
18
|
+
[--redownload]
|
19
|
+
[--retry=NUMBER]
|
20
|
+
[--shebang]
|
21
|
+
[--standalone[=GROUP[ GROUP...]]]
|
22
|
+
[--system]
|
23
|
+
[--trust-policy=POLICY]
|
24
|
+
[--with=GROUP[ GROUP...]]
|
25
|
+
[--without=GROUP[ GROUP...]]
|
26
|
+
|
27
|
+
## DESCRIPTION
|
28
|
+
|
29
|
+
Install the gems specified in your Gemfile(5). If this is the first
|
30
|
+
time you run bundle install (and a `Gemfile.lock` does not exist),
|
31
|
+
Bundler will fetch all remote sources, resolve dependencies and
|
32
|
+
install all needed gems.
|
33
|
+
|
34
|
+
If a `Gemfile.lock` does exist, and you have not updated your Gemfile(5),
|
35
|
+
Bundler will fetch all remote sources, but use the dependencies
|
36
|
+
specified in the `Gemfile.lock` instead of resolving dependencies.
|
37
|
+
|
38
|
+
If a `Gemfile.lock` does exist, and you have updated your Gemfile(5),
|
39
|
+
Bundler will use the dependencies in the `Gemfile.lock` for all gems
|
40
|
+
that you did not update, but will re-resolve the dependencies of
|
41
|
+
gems that you did update. You can find more information about this
|
42
|
+
update process below under [CONSERVATIVE UPDATING][].
|
43
|
+
|
44
|
+
## OPTIONS
|
45
|
+
|
46
|
+
The `--clean`, `--deployment`, `--frozen`, `--no-prune`, `--path`, `--shebang`,
|
47
|
+
`--system`, `--without` and `--with` options are deprecated because they only
|
48
|
+
make sense if they are applied to every subsequent `bundle install` run
|
49
|
+
automatically and that requires `bundler` to silently remember them. Since
|
50
|
+
`bundler` will no longer remember CLI flags in future versions, `bundle config`
|
51
|
+
(see bundle-config(1)) should be used to apply them permanently.
|
52
|
+
|
53
|
+
* `--binstubs[=<directory>]`:
|
54
|
+
Binstubs are scripts that wrap around executables. Bundler creates a small Ruby
|
55
|
+
file (a binstub) that loads Bundler, runs the command, and puts it in `bin/`.
|
56
|
+
This lets you link the binstub inside of an application to the exact gem
|
57
|
+
version the application needs.
|
58
|
+
|
59
|
+
Creates a directory (defaults to `~/bin`) and places any executables from the
|
60
|
+
gem there. These executables run in Bundler's context. If used, you might add
|
61
|
+
this directory to your environment's `PATH` variable. For instance, if the
|
62
|
+
`rails` gem comes with a `rails` executable, this flag will create a
|
63
|
+
`bin/rails` executable that ensures that all referred dependencies will be
|
64
|
+
resolved using the bundled gems.
|
65
|
+
|
66
|
+
* `--clean`:
|
67
|
+
On finishing the installation Bundler is going to remove any gems not present
|
68
|
+
in the current Gemfile(5). Don't worry, gems currently in use will not be
|
69
|
+
removed.
|
70
|
+
|
71
|
+
This option is deprecated in favor of the `clean` setting.
|
72
|
+
|
73
|
+
* `--deployment`:
|
74
|
+
In [deployment mode][DEPLOYMENT MODE], Bundler will 'roll-out' the bundle for
|
75
|
+
production or CI use. Please check carefully if you want to have this option
|
76
|
+
enabled in your development environment.
|
77
|
+
|
78
|
+
This option is deprecated in favor of the `deployment` setting.
|
79
|
+
|
80
|
+
* `--redownload`:
|
81
|
+
Force download every gem, even if the required versions are already available
|
82
|
+
locally.
|
83
|
+
|
84
|
+
* `--frozen`:
|
85
|
+
Do not allow the Gemfile.lock to be updated after this install. Exits
|
86
|
+
non-zero if there are going to be changes to the Gemfile.lock.
|
87
|
+
|
88
|
+
This option is deprecated in favor of the `frozen` setting.
|
89
|
+
|
90
|
+
* `--full-index`:
|
91
|
+
Bundler will not call Rubygems' API endpoint (default) but download and cache
|
92
|
+
a (currently big) index file of all gems. Performance can be improved for
|
93
|
+
large bundles that seldom change by enabling this option.
|
94
|
+
|
95
|
+
* `--gemfile=<gemfile>`:
|
96
|
+
The location of the Gemfile(5) which Bundler should use. This defaults
|
97
|
+
to a Gemfile(5) in the current working directory. In general, Bundler
|
98
|
+
will assume that the location of the Gemfile(5) is also the project's
|
99
|
+
root and will try to find `Gemfile.lock` and `vendor/cache` relative
|
100
|
+
to this location.
|
101
|
+
|
102
|
+
* `--jobs=[<number>]`, `-j[<number>]`:
|
103
|
+
The maximum number of parallel download and install jobs. The default is the
|
104
|
+
number of available processors.
|
105
|
+
|
106
|
+
* `--local`:
|
107
|
+
Do not attempt to connect to `rubygems.org`. Instead, Bundler will use the
|
108
|
+
gems already present in Rubygems' cache or in `vendor/cache`. Note that if an
|
109
|
+
appropriate platform-specific gem exists on `rubygems.org` it will not be
|
110
|
+
found.
|
111
|
+
|
112
|
+
* `--prefer-local`:
|
113
|
+
Force using locally installed gems, or gems already present in Rubygems' cache
|
114
|
+
or in `vendor/cache`, when resolving, even if newer versions are available
|
115
|
+
remotely. Only attempt to connect to `rubygems.org` for gems that are not
|
116
|
+
present locally.
|
117
|
+
|
118
|
+
* `--no-cache`:
|
119
|
+
Do not update the cache in `vendor/cache` with the newly bundled gems. This
|
120
|
+
does not remove any gems in the cache but keeps the newly bundled gems from
|
121
|
+
being cached during the install.
|
122
|
+
|
123
|
+
* `--no-prune`:
|
124
|
+
Don't remove stale gems from the cache when the installation finishes.
|
125
|
+
|
126
|
+
This option is deprecated in favor of the `no_prune` setting.
|
127
|
+
|
128
|
+
* `--path=<path>`:
|
129
|
+
The location to install the specified gems to. This defaults to Rubygems'
|
130
|
+
setting. Bundler shares this location with Rubygems, `gem install ...` will
|
131
|
+
have gem installed there, too. Therefore, gems installed without a
|
132
|
+
`--path ...` setting will show up by calling `gem list`. Accordingly, gems
|
133
|
+
installed to other locations will not get listed.
|
134
|
+
|
135
|
+
This option is deprecated in favor of the `path` setting.
|
136
|
+
|
137
|
+
* `--quiet`:
|
138
|
+
Do not print progress information to the standard output. Instead, Bundler
|
139
|
+
will exit using a status code (`$?`).
|
140
|
+
|
141
|
+
* `--retry=[<number>]`:
|
142
|
+
Retry failed network or git requests for <number> times.
|
143
|
+
|
144
|
+
* `--shebang=<ruby-executable>`:
|
145
|
+
Uses the specified ruby executable (usually `ruby`) to execute the scripts
|
146
|
+
created with `--binstubs`. In addition, if you use `--binstubs` together with
|
147
|
+
`--shebang jruby` these executables will be changed to execute `jruby`
|
148
|
+
instead.
|
149
|
+
|
150
|
+
This option is deprecated in favor of the `shebang` setting.
|
151
|
+
|
152
|
+
* `--standalone[=<list>]`:
|
153
|
+
Makes a bundle that can work without depending on Rubygems or Bundler at
|
154
|
+
runtime. A space separated list of groups to install has to be specified.
|
155
|
+
Bundler creates a directory named `bundle` and installs the bundle there. It
|
156
|
+
also generates a `bundle/bundler/setup.rb` file to replace Bundler's own setup
|
157
|
+
in the manner required. Using this option implicitly sets `path`, which is a
|
158
|
+
[remembered option][REMEMBERED OPTIONS].
|
159
|
+
|
160
|
+
* `--system`:
|
161
|
+
Installs the gems specified in the bundle to the system's Rubygems location.
|
162
|
+
This overrides any previous configuration of `--path`.
|
163
|
+
|
164
|
+
This option is deprecated in favor of the `system` setting.
|
165
|
+
|
166
|
+
* `--trust-policy=[<policy>]`:
|
167
|
+
Apply the Rubygems security policy <policy>, where policy is one of
|
168
|
+
`HighSecurity`, `MediumSecurity`, `LowSecurity`, `AlmostNoSecurity`, or
|
169
|
+
`NoSecurity`. For more details, please see the Rubygems signing documentation
|
170
|
+
linked below in [SEE ALSO][].
|
171
|
+
|
172
|
+
* `--with=<list>`:
|
173
|
+
A space-separated list of groups referencing gems to install. If an
|
174
|
+
optional group is given it is installed. If a group is given that is
|
175
|
+
in the remembered list of groups given to --without, it is removed
|
176
|
+
from that list.
|
177
|
+
|
178
|
+
This option is deprecated in favor of the `with` setting.
|
179
|
+
|
180
|
+
* `--without=<list>`:
|
181
|
+
A space-separated list of groups referencing gems to skip during installation.
|
182
|
+
If a group is given that is in the remembered list of groups given
|
183
|
+
to --with, it is removed from that list.
|
184
|
+
|
185
|
+
This option is deprecated in favor of the `without` setting.
|
186
|
+
|
187
|
+
## DEPLOYMENT MODE
|
188
|
+
|
189
|
+
Bundler's defaults are optimized for development. To switch to
|
190
|
+
defaults optimized for deployment and for CI, use the `--deployment`
|
191
|
+
flag. Do not activate deployment mode on development machines, as it
|
192
|
+
will cause an error when the Gemfile(5) is modified.
|
193
|
+
|
194
|
+
1. A `Gemfile.lock` is required.
|
195
|
+
|
196
|
+
To ensure that the same versions of the gems you developed with
|
197
|
+
and tested with are also used in deployments, a `Gemfile.lock`
|
198
|
+
is required.
|
199
|
+
|
200
|
+
This is mainly to ensure that you remember to check your
|
201
|
+
`Gemfile.lock` into version control.
|
202
|
+
|
203
|
+
2. The `Gemfile.lock` must be up to date
|
204
|
+
|
205
|
+
In development, you can modify your Gemfile(5) and re-run
|
206
|
+
`bundle install` to [conservatively update][CONSERVATIVE UPDATING]
|
207
|
+
your `Gemfile.lock` snapshot.
|
208
|
+
|
209
|
+
In deployment, your `Gemfile.lock` should be up-to-date with
|
210
|
+
changes made in your Gemfile(5).
|
211
|
+
|
212
|
+
3. Gems are installed to `vendor/bundle` not your default system location
|
213
|
+
|
214
|
+
In development, it's convenient to share the gems used in your
|
215
|
+
application with other applications and other scripts that run on
|
216
|
+
the system.
|
217
|
+
|
218
|
+
In deployment, isolation is a more important default. In addition,
|
219
|
+
the user deploying the application may not have permission to install
|
220
|
+
gems to the system, or the web server may not have permission to
|
221
|
+
read them.
|
222
|
+
|
223
|
+
As a result, `bundle install --deployment` installs gems to
|
224
|
+
the `vendor/bundle` directory in the application. This may be
|
225
|
+
overridden using the `--path` option.
|
226
|
+
|
227
|
+
## INSTALLING GROUPS
|
228
|
+
|
229
|
+
By default, `bundle install` will install all gems in all groups
|
230
|
+
in your Gemfile(5), except those declared for a different platform.
|
231
|
+
|
232
|
+
However, you can explicitly tell Bundler to skip installing
|
233
|
+
certain groups with the `--without` option. This option takes
|
234
|
+
a space-separated list of groups.
|
235
|
+
|
236
|
+
While the `--without` option will skip _installing_ the gems in the
|
237
|
+
specified groups, it will still _download_ those gems and use them to
|
238
|
+
resolve the dependencies of every gem in your Gemfile(5).
|
239
|
+
|
240
|
+
This is so that installing a different set of groups on another
|
241
|
+
machine (such as a production server) will not change the
|
242
|
+
gems and versions that you have already developed and tested against.
|
243
|
+
|
244
|
+
`Bundler offers a rock-solid guarantee that the third-party
|
245
|
+
code you are running in development and testing is also the
|
246
|
+
third-party code you are running in production. You can choose
|
247
|
+
to exclude some of that code in different environments, but you
|
248
|
+
will never be caught flat-footed by different versions of
|
249
|
+
third-party code being used in different environments.`
|
250
|
+
|
251
|
+
For a simple illustration, consider the following Gemfile(5):
|
252
|
+
|
253
|
+
source 'https://rubygems.org'
|
254
|
+
|
255
|
+
gem 'sinatra'
|
256
|
+
|
257
|
+
group :production do
|
258
|
+
gem 'rack-perftools-profiler'
|
259
|
+
end
|
260
|
+
|
261
|
+
In this case, `sinatra` depends on any version of Rack (`>= 1.0`), while
|
262
|
+
`rack-perftools-profiler` depends on 1.x (`~> 1.0`).
|
263
|
+
|
264
|
+
When you run `bundle install --without production` in development, we
|
265
|
+
look at the dependencies of `rack-perftools-profiler` as well. That way,
|
266
|
+
you do not spend all your time developing against Rack 2.0, using new
|
267
|
+
APIs unavailable in Rack 1.x, only to have Bundler switch to Rack 1.2
|
268
|
+
when the `production` group _is_ used.
|
269
|
+
|
270
|
+
This should not cause any problems in practice, because we do not
|
271
|
+
attempt to `install` the gems in the excluded groups, and only evaluate
|
272
|
+
as part of the dependency resolution process.
|
273
|
+
|
274
|
+
This also means that you cannot include different versions of the same
|
275
|
+
gem in different groups, because doing so would result in different
|
276
|
+
sets of dependencies used in development and production. Because of
|
277
|
+
the vagaries of the dependency resolution process, this usually
|
278
|
+
affects more than the gems you list in your Gemfile(5), and can
|
279
|
+
(surprisingly) radically change the gems you are using.
|
280
|
+
|
281
|
+
## THE GEMFILE.LOCK
|
282
|
+
|
283
|
+
When you run `bundle install`, Bundler will persist the full names
|
284
|
+
and versions of all gems that you used (including dependencies of
|
285
|
+
the gems specified in the Gemfile(5)) into a file called `Gemfile.lock`.
|
286
|
+
|
287
|
+
Bundler uses this file in all subsequent calls to `bundle install`,
|
288
|
+
which guarantees that you always use the same exact code, even
|
289
|
+
as your application moves across machines.
|
290
|
+
|
291
|
+
Because of the way dependency resolution works, even a
|
292
|
+
seemingly small change (for instance, an update to a point-release
|
293
|
+
of a dependency of a gem in your Gemfile(5)) can result in radically
|
294
|
+
different gems being needed to satisfy all dependencies.
|
295
|
+
|
296
|
+
As a result, you `SHOULD` check your `Gemfile.lock` into version
|
297
|
+
control, in both applications and gems. If you do not, every machine that
|
298
|
+
checks out your repository (including your production server) will resolve all
|
299
|
+
dependencies again, which will result in different versions of
|
300
|
+
third-party code being used if `any` of the gems in the Gemfile(5)
|
301
|
+
or any of their dependencies have been updated.
|
302
|
+
|
303
|
+
When Bundler first shipped, the `Gemfile.lock` was included in the `.gitignore`
|
304
|
+
file included with generated gems. Over time, however, it became clear that
|
305
|
+
this practice forces the pain of broken dependencies onto new contributors,
|
306
|
+
while leaving existing contributors potentially unaware of the problem. Since
|
307
|
+
`bundle install` is usually the first step towards a contribution, the pain of
|
308
|
+
broken dependencies would discourage new contributors from contributing. As a
|
309
|
+
result, we have revised our guidance for gem authors to now recommend checking
|
310
|
+
in the lock for gems.
|
311
|
+
|
312
|
+
## CONSERVATIVE UPDATING
|
313
|
+
|
314
|
+
When you make a change to the Gemfile(5) and then run `bundle install`,
|
315
|
+
Bundler will update only the gems that you modified.
|
316
|
+
|
317
|
+
In other words, if a gem that you `did not modify` worked before
|
318
|
+
you called `bundle install`, it will continue to use the exact
|
319
|
+
same versions of all dependencies as it used before the update.
|
320
|
+
|
321
|
+
Let's take a look at an example. Here's your original Gemfile(5):
|
322
|
+
|
323
|
+
source 'https://rubygems.org'
|
324
|
+
|
325
|
+
gem 'actionpack', '2.3.8'
|
326
|
+
gem 'activemerchant'
|
327
|
+
|
328
|
+
In this case, both `actionpack` and `activemerchant` depend on
|
329
|
+
`activesupport`. The `actionpack` gem depends on `activesupport 2.3.8`
|
330
|
+
and `rack ~> 1.1.0`, while the `activemerchant` gem depends on
|
331
|
+
`activesupport >= 2.3.2`, `braintree >= 2.0.0`, and `builder >= 2.0.0`.
|
332
|
+
|
333
|
+
When the dependencies are first resolved, Bundler will select
|
334
|
+
`activesupport 2.3.8`, which satisfies the requirements of both
|
335
|
+
gems in your Gemfile(5).
|
336
|
+
|
337
|
+
Next, you modify your Gemfile(5) to:
|
338
|
+
|
339
|
+
source 'https://rubygems.org'
|
340
|
+
|
341
|
+
gem 'actionpack', '3.0.0.rc'
|
342
|
+
gem 'activemerchant'
|
343
|
+
|
344
|
+
The `actionpack 3.0.0.rc` gem has a number of new dependencies,
|
345
|
+
and updates the `activesupport` dependency to `= 3.0.0.rc` and
|
346
|
+
the `rack` dependency to `~> 1.2.1`.
|
347
|
+
|
348
|
+
When you run `bundle install`, Bundler notices that you changed
|
349
|
+
the `actionpack` gem, but not the `activemerchant` gem. It
|
350
|
+
evaluates the gems currently being used to satisfy its requirements:
|
351
|
+
|
352
|
+
* `activesupport 2.3.8`:
|
353
|
+
also used to satisfy a dependency in `activemerchant`,
|
354
|
+
which is not being updated
|
355
|
+
* `rack ~> 1.1.0`:
|
356
|
+
not currently being used to satisfy another dependency
|
357
|
+
|
358
|
+
Because you did not explicitly ask to update `activemerchant`,
|
359
|
+
you would not expect it to suddenly stop working after updating
|
360
|
+
`actionpack`. However, satisfying the new `activesupport 3.0.0.rc`
|
361
|
+
dependency of actionpack requires updating one of its dependencies.
|
362
|
+
|
363
|
+
Even though `activemerchant` declares a very loose dependency
|
364
|
+
that theoretically matches `activesupport 3.0.0.rc`, Bundler treats
|
365
|
+
gems in your Gemfile(5) that have not changed as an atomic unit
|
366
|
+
together with their dependencies. In this case, the `activemerchant`
|
367
|
+
dependency is treated as `activemerchant 1.7.1 + activesupport 2.3.8`,
|
368
|
+
so `bundle install` will report that it cannot update `actionpack`.
|
369
|
+
|
370
|
+
To explicitly update `actionpack`, including its dependencies
|
371
|
+
which other gems in the Gemfile(5) still depend on, run
|
372
|
+
`bundle update actionpack` (see `bundle update(1)`).
|
373
|
+
|
374
|
+
`Summary`: In general, after making a change to the Gemfile(5) , you
|
375
|
+
should first try to run `bundle install`, which will guarantee that no
|
376
|
+
other gem in the Gemfile(5) is impacted by the change. If that
|
377
|
+
does not work, run [bundle update(1)](bundle-update.1.html).
|
378
|
+
|
379
|
+
## SEE ALSO
|
380
|
+
|
381
|
+
* [Gem install docs](http://guides.rubygems.org/rubygems-basics/#installing-gems)
|
382
|
+
* [Rubygems signing docs](http://guides.rubygems.org/security/)
|
@@ -0,0 +1,50 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "BUNDLE\-LIST" "1" "October 2023" "" ""
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBbundle\-list\fR \- List all the gems in the bundle
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fBbundle list\fR [\-\-name\-only] [\-\-paths] [\-\-without\-group=GROUP[ GROUP\.\.\.]] [\-\-only\-group=GROUP[ GROUP\.\.\.]]
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
Prints a list of all the gems in the bundle including their version\.
|
14
|
+
.
|
15
|
+
.P
|
16
|
+
Example:
|
17
|
+
.
|
18
|
+
.P
|
19
|
+
bundle list \-\-name\-only
|
20
|
+
.
|
21
|
+
.P
|
22
|
+
bundle list \-\-paths
|
23
|
+
.
|
24
|
+
.P
|
25
|
+
bundle list \-\-without\-group test
|
26
|
+
.
|
27
|
+
.P
|
28
|
+
bundle list \-\-only\-group dev
|
29
|
+
.
|
30
|
+
.P
|
31
|
+
bundle list \-\-only\-group dev test \-\-paths
|
32
|
+
.
|
33
|
+
.SH "OPTIONS"
|
34
|
+
.
|
35
|
+
.TP
|
36
|
+
\fB\-\-name\-only\fR
|
37
|
+
Print only the name of each gem\.
|
38
|
+
.
|
39
|
+
.TP
|
40
|
+
\fB\-\-paths\fR
|
41
|
+
Print the path to each gem in the bundle\.
|
42
|
+
.
|
43
|
+
.TP
|
44
|
+
\fB\-\-without\-group=<list>\fR
|
45
|
+
A space\-separated list of groups of gems to skip during printing\.
|
46
|
+
.
|
47
|
+
.TP
|
48
|
+
\fB\-\-only\-group=<list>\fR
|
49
|
+
A space\-separated list of groups of gems to print\.
|
50
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
bundle-list(1) -- List all the gems in the bundle
|
2
|
+
=========================================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle list` [--name-only] [--paths] [--without-group=GROUP[ GROUP...]] [--only-group=GROUP[ GROUP...]]
|
7
|
+
|
8
|
+
## DESCRIPTION
|
9
|
+
|
10
|
+
Prints a list of all the gems in the bundle including their version.
|
11
|
+
|
12
|
+
Example:
|
13
|
+
|
14
|
+
bundle list --name-only
|
15
|
+
|
16
|
+
bundle list --paths
|
17
|
+
|
18
|
+
bundle list --without-group test
|
19
|
+
|
20
|
+
bundle list --only-group dev
|
21
|
+
|
22
|
+
bundle list --only-group dev test --paths
|
23
|
+
|
24
|
+
## OPTIONS
|
25
|
+
|
26
|
+
* `--name-only`:
|
27
|
+
Print only the name of each gem.
|
28
|
+
* `--paths`:
|
29
|
+
Print the path to each gem in the bundle.
|
30
|
+
* `--without-group=<list>`:
|
31
|
+
A space-separated list of groups of gems to skip during printing.
|
32
|
+
* `--only-group=<list>`:
|
33
|
+
A space-separated list of groups of gems to print.
|
@@ -0,0 +1,84 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "BUNDLE\-LOCK" "1" "October 2023" "" ""
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fBbundle lock\fR [\-\-update] [\-\-local] [\-\-print] [\-\-lockfile=PATH] [\-\-full\-index] [\-\-add\-platform] [\-\-remove\-platform] [\-\-patch] [\-\-minor] [\-\-major] [\-\-strict] [\-\-conservative]
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
Lock the gems specified in Gemfile\.
|
14
|
+
.
|
15
|
+
.SH "OPTIONS"
|
16
|
+
.
|
17
|
+
.TP
|
18
|
+
\fB\-\-update=<*gems>\fR
|
19
|
+
Ignores the existing lockfile\. Resolve then updates lockfile\. Taking a list of gems or updating all gems if no list is given\.
|
20
|
+
.
|
21
|
+
.TP
|
22
|
+
\fB\-\-local\fR
|
23
|
+
Do not attempt to connect to \fBrubygems\.org\fR\. Instead, Bundler will use the gems already present in Rubygems\' cache or in \fBvendor/cache\fR\. Note that if a appropriate platform\-specific gem exists on \fBrubygems\.org\fR it will not be found\.
|
24
|
+
.
|
25
|
+
.TP
|
26
|
+
\fB\-\-print\fR
|
27
|
+
Prints the lockfile to STDOUT instead of writing to the file system\.
|
28
|
+
.
|
29
|
+
.TP
|
30
|
+
\fB\-\-lockfile=<path>\fR
|
31
|
+
The path where the lockfile should be written to\.
|
32
|
+
.
|
33
|
+
.TP
|
34
|
+
\fB\-\-full\-index\fR
|
35
|
+
Fall back to using the single\-file index of all gems\.
|
36
|
+
.
|
37
|
+
.TP
|
38
|
+
\fB\-\-add\-platform\fR
|
39
|
+
Add a new platform to the lockfile, re\-resolving for the addition of that platform\.
|
40
|
+
.
|
41
|
+
.TP
|
42
|
+
\fB\-\-remove\-platform\fR
|
43
|
+
Remove a platform from the lockfile\.
|
44
|
+
.
|
45
|
+
.TP
|
46
|
+
\fB\-\-patch\fR
|
47
|
+
If updating, prefer updating only to next patch version\.
|
48
|
+
.
|
49
|
+
.TP
|
50
|
+
\fB\-\-minor\fR
|
51
|
+
If updating, prefer updating only to next minor version\.
|
52
|
+
.
|
53
|
+
.TP
|
54
|
+
\fB\-\-major\fR
|
55
|
+
If updating, prefer updating to next major version (default)\.
|
56
|
+
.
|
57
|
+
.TP
|
58
|
+
\fB\-\-strict\fR
|
59
|
+
If updating, do not allow any gem to be updated past latest \-\-patch | \-\-minor | \-\-major\.
|
60
|
+
.
|
61
|
+
.TP
|
62
|
+
\fB\-\-conservative\fR
|
63
|
+
If updating, use bundle install conservative update behavior and do not allow shared dependencies to be updated\.
|
64
|
+
.
|
65
|
+
.SH "UPDATING ALL GEMS"
|
66
|
+
If you run \fBbundle lock\fR with \fB\-\-update\fR option without list of gems, bundler will ignore any previously installed gems and resolve all dependencies again based on the latest versions of all gems available in the sources\.
|
67
|
+
.
|
68
|
+
.SH "UPDATING A LIST OF GEMS"
|
69
|
+
Sometimes, you want to update a single gem in the Gemfile(5), and leave the rest of the gems that you specified locked to the versions in the \fBGemfile\.lock\fR\.
|
70
|
+
.
|
71
|
+
.P
|
72
|
+
For instance, you only want to update \fBnokogiri\fR, run \fBbundle lock \-\-update nokogiri\fR\.
|
73
|
+
.
|
74
|
+
.P
|
75
|
+
Bundler will update \fBnokogiri\fR and any of its dependencies, but leave the rest of the gems that you specified locked to the versions in the \fBGemfile\.lock\fR\.
|
76
|
+
.
|
77
|
+
.SH "SUPPORTING OTHER PLATFORMS"
|
78
|
+
If you want your bundle to support platforms other than the one you\'re running locally, you can run \fBbundle lock \-\-add\-platform PLATFORM\fR to add PLATFORM to the lockfile, force bundler to re\-resolve and consider the new platform when picking gems, all without needing to have a machine that matches PLATFORM handy to install those platform\-specific gems on\.
|
79
|
+
.
|
80
|
+
.P
|
81
|
+
For a full explanation of gem platforms, see \fBgem help platform\fR\.
|
82
|
+
.
|
83
|
+
.SH "PATCH LEVEL OPTIONS"
|
84
|
+
See bundle update(1) \fIbundle\-update\.1\.html\fR for details\.
|
@@ -0,0 +1,94 @@
|
|
1
|
+
bundle-lock(1) -- Creates / Updates a lockfile without installing
|
2
|
+
=================================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle lock` [--update]
|
7
|
+
[--local]
|
8
|
+
[--print]
|
9
|
+
[--lockfile=PATH]
|
10
|
+
[--full-index]
|
11
|
+
[--add-platform]
|
12
|
+
[--remove-platform]
|
13
|
+
[--patch]
|
14
|
+
[--minor]
|
15
|
+
[--major]
|
16
|
+
[--strict]
|
17
|
+
[--conservative]
|
18
|
+
|
19
|
+
## DESCRIPTION
|
20
|
+
|
21
|
+
Lock the gems specified in Gemfile.
|
22
|
+
|
23
|
+
## OPTIONS
|
24
|
+
|
25
|
+
* `--update=<*gems>`:
|
26
|
+
Ignores the existing lockfile. Resolve then updates lockfile. Taking a list
|
27
|
+
of gems or updating all gems if no list is given.
|
28
|
+
|
29
|
+
* `--local`:
|
30
|
+
Do not attempt to connect to `rubygems.org`. Instead, Bundler will use the
|
31
|
+
gems already present in Rubygems' cache or in `vendor/cache`. Note that if a
|
32
|
+
appropriate platform-specific gem exists on `rubygems.org` it will not be
|
33
|
+
found.
|
34
|
+
|
35
|
+
* `--print`:
|
36
|
+
Prints the lockfile to STDOUT instead of writing to the file system.
|
37
|
+
|
38
|
+
* `--lockfile=<path>`:
|
39
|
+
The path where the lockfile should be written to.
|
40
|
+
|
41
|
+
* `--full-index`:
|
42
|
+
Fall back to using the single-file index of all gems.
|
43
|
+
|
44
|
+
* `--add-platform`:
|
45
|
+
Add a new platform to the lockfile, re-resolving for the addition of that
|
46
|
+
platform.
|
47
|
+
|
48
|
+
* `--remove-platform`:
|
49
|
+
Remove a platform from the lockfile.
|
50
|
+
|
51
|
+
* `--patch`:
|
52
|
+
If updating, prefer updating only to next patch version.
|
53
|
+
|
54
|
+
* `--minor`:
|
55
|
+
If updating, prefer updating only to next minor version.
|
56
|
+
|
57
|
+
* `--major`:
|
58
|
+
If updating, prefer updating to next major version (default).
|
59
|
+
|
60
|
+
* `--strict`:
|
61
|
+
If updating, do not allow any gem to be updated past latest --patch | --minor | --major.
|
62
|
+
|
63
|
+
* `--conservative`:
|
64
|
+
If updating, use bundle install conservative update behavior and do not allow shared dependencies to be updated.
|
65
|
+
|
66
|
+
## UPDATING ALL GEMS
|
67
|
+
|
68
|
+
If you run `bundle lock` with `--update` option without list of gems, bundler will
|
69
|
+
ignore any previously installed gems and resolve all dependencies again based
|
70
|
+
on the latest versions of all gems available in the sources.
|
71
|
+
|
72
|
+
## UPDATING A LIST OF GEMS
|
73
|
+
|
74
|
+
Sometimes, you want to update a single gem in the Gemfile(5), and leave the rest of
|
75
|
+
the gems that you specified locked to the versions in the `Gemfile.lock`.
|
76
|
+
|
77
|
+
For instance, you only want to update `nokogiri`, run `bundle lock --update nokogiri`.
|
78
|
+
|
79
|
+
Bundler will update `nokogiri` and any of its dependencies, but leave the rest of the
|
80
|
+
gems that you specified locked to the versions in the `Gemfile.lock`.
|
81
|
+
|
82
|
+
## SUPPORTING OTHER PLATFORMS
|
83
|
+
|
84
|
+
If you want your bundle to support platforms other than the one you're running
|
85
|
+
locally, you can run `bundle lock --add-platform PLATFORM` to add PLATFORM to
|
86
|
+
the lockfile, force bundler to re-resolve and consider the new platform when
|
87
|
+
picking gems, all without needing to have a machine that matches PLATFORM handy
|
88
|
+
to install those platform-specific gems on.
|
89
|
+
|
90
|
+
For a full explanation of gem platforms, see `gem help platform`.
|
91
|
+
|
92
|
+
## PATCH LEVEL OPTIONS
|
93
|
+
|
94
|
+
See [bundle update(1)](bundle-update.1.html) for details.
|
@@ -0,0 +1,52 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "BUNDLE\-OPEN" "1" "October 2023" "" ""
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBbundle\-open\fR \- Opens the source directory for a gem in your bundle
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fBbundle open\fR [GEM] [\-\-path=PATH]
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
Opens the source directory of the provided GEM in your editor\.
|
14
|
+
.
|
15
|
+
.P
|
16
|
+
For this to work the \fBEDITOR\fR or \fBBUNDLER_EDITOR\fR environment variable has to be set\.
|
17
|
+
.
|
18
|
+
.P
|
19
|
+
Example:
|
20
|
+
.
|
21
|
+
.IP "" 4
|
22
|
+
.
|
23
|
+
.nf
|
24
|
+
|
25
|
+
bundle open \'rack\'
|
26
|
+
.
|
27
|
+
.fi
|
28
|
+
.
|
29
|
+
.IP "" 0
|
30
|
+
.
|
31
|
+
.P
|
32
|
+
Will open the source directory for the \'rack\' gem in your bundle\.
|
33
|
+
.
|
34
|
+
.IP "" 4
|
35
|
+
.
|
36
|
+
.nf
|
37
|
+
|
38
|
+
bundle open \'rack\' \-\-path \'README\.md\'
|
39
|
+
.
|
40
|
+
.fi
|
41
|
+
.
|
42
|
+
.IP "" 0
|
43
|
+
.
|
44
|
+
.P
|
45
|
+
Will open the README\.md file of the \'rack\' gem source in your bundle\.
|
46
|
+
.
|
47
|
+
.SH "OPTIONS"
|
48
|
+
.
|
49
|
+
.TP
|
50
|
+
\fB\-\-path\fR
|
51
|
+
Specify GEM source relative path to open\.
|
52
|
+
|