rubygems-update 3.1.6 → 3.2.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +55 -19
- data/CONTRIBUTING.md +1 -2
- data/History.txt +122 -14
- data/Manifest.txt +13 -25
- data/POLICIES.md +2 -9
- data/README.md +1 -1
- data/Rakefile +31 -33
- data/bin/update_rubygems +1 -1
- data/bundler/CHANGELOG.md +806 -741
- data/bundler/README.md +6 -8
- data/bundler/UPGRADING.md +16 -30
- data/bundler/bundler.gemspec +3 -3
- data/bundler/exe/bundle +3 -0
- data/bundler/lib/bundler.rb +15 -4
- data/bundler/lib/bundler/build_metadata.rb +2 -2
- data/bundler/lib/bundler/cli.rb +32 -11
- data/bundler/lib/bundler/cli/console.rb +1 -1
- data/bundler/lib/bundler/cli/gem.rb +83 -10
- data/bundler/lib/bundler/cli/info.rb +13 -3
- data/bundler/lib/bundler/cli/init.rb +1 -1
- data/bundler/lib/bundler/cli/install.rb +5 -14
- data/bundler/lib/bundler/cli/issue.rb +2 -2
- data/bundler/lib/bundler/cli/list.rb +11 -9
- data/bundler/lib/bundler/cli/outdated.rb +88 -65
- data/bundler/lib/bundler/cli/plugin.rb +10 -0
- data/bundler/lib/bundler/cli/pristine.rb +5 -0
- data/bundler/lib/bundler/definition.rb +32 -32
- data/bundler/lib/bundler/dependency.rb +0 -9
- data/bundler/lib/bundler/dsl.rb +1 -5
- data/bundler/lib/bundler/environment_preserver.rb +26 -2
- data/bundler/lib/bundler/errors.rb +1 -0
- data/bundler/lib/bundler/feature_flag.rb +0 -2
- data/bundler/lib/bundler/fetcher.rb +1 -0
- data/bundler/lib/bundler/friendly_errors.rb +4 -10
- data/bundler/lib/bundler/gem_helper.rb +17 -10
- data/bundler/lib/bundler/gem_version_promoter.rb +1 -1
- data/bundler/lib/bundler/injector.rb +14 -3
- data/bundler/lib/bundler/inline.rb +1 -1
- data/bundler/lib/bundler/installer.rb +29 -28
- data/bundler/lib/bundler/installer/gem_installer.rb +2 -2
- data/bundler/lib/bundler/installer/parallel_installer.rb +9 -9
- data/bundler/lib/bundler/lazy_specification.rb +16 -3
- data/bundler/lib/bundler/plugin.rb +26 -0
- data/bundler/lib/bundler/plugin/index.rb +9 -0
- data/bundler/lib/bundler/psyched_yaml.rb +0 -15
- data/bundler/lib/bundler/remote_specification.rb +4 -1
- data/bundler/lib/bundler/resolver.rb +31 -8
- data/bundler/lib/bundler/resolver/spec_group.rb +26 -5
- data/bundler/lib/bundler/rubygems_ext.rb +7 -8
- data/bundler/lib/bundler/rubygems_gem_installer.rb +1 -7
- data/bundler/lib/bundler/rubygems_integration.rb +3 -48
- data/bundler/lib/bundler/runtime.rb +2 -12
- data/bundler/lib/bundler/settings.rb +0 -3
- data/bundler/lib/bundler/shared_helpers.rb +1 -1
- data/bundler/lib/bundler/source/git.rb +4 -4
- data/bundler/lib/bundler/source/git/git_proxy.rb +53 -58
- data/bundler/lib/bundler/source/path.rb +5 -1
- data/bundler/lib/bundler/source/path/installer.rb +7 -9
- data/bundler/lib/bundler/source/rubygems.rb +11 -14
- data/bundler/lib/bundler/stub_specification.rb +16 -4
- data/bundler/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +57 -47
- data/bundler/lib/bundler/templates/newgem/Gemfile.tt +9 -1
- data/bundler/lib/bundler/templates/newgem/Rakefile.tt +19 -5
- data/bundler/lib/bundler/templates/newgem/bin/console.tt +2 -0
- data/bundler/lib/bundler/templates/newgem/circleci/config.yml.tt +13 -0
- data/bundler/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +2 -0
- data/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +18 -0
- data/bundler/lib/bundler/templates/newgem/gitlab-ci.yml.tt +9 -0
- data/bundler/lib/bundler/templates/newgem/lib/newgem.rb.tt +2 -0
- data/bundler/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +2 -0
- data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +6 -4
- data/bundler/lib/bundler/templates/newgem/rubocop.yml.tt +10 -0
- data/bundler/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +2 -0
- data/bundler/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +2 -0
- data/bundler/lib/bundler/templates/newgem/test/{newgem_test.rb.tt → minitest/newgem_test.rb.tt} +2 -0
- data/bundler/lib/bundler/templates/newgem/test/{test_helper.rb.tt → minitest/test_helper.rb.tt} +2 -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/vendor/net-http-persistent/lib/net/http/persistent.rb +75 -189
- data/bundler/lib/bundler/vendor/thor/lib/thor.rb +0 -7
- data/bundler/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +2 -1
- data/bundler/lib/bundler/vendor/thor/lib/thor/base.rb +9 -0
- data/bundler/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
- data/bundler/lib/bundler/version.rb +1 -1
- data/bundler/man/bundle-add.1 +1 -1
- data/bundler/man/bundle-add.1.txt +15 -15
- data/bundler/man/bundle-binstubs.1 +1 -1
- data/bundler/man/bundle-binstubs.1.txt +10 -10
- data/bundler/man/bundle-cache.1 +1 -1
- data/bundler/man/bundle-cache.1.txt +15 -15
- data/bundler/man/bundle-check.1 +1 -1
- data/bundler/man/bundle-check.1.txt +8 -8
- data/bundler/man/bundle-clean.1 +1 -1
- data/bundler/man/bundle-clean.1.txt +6 -6
- data/bundler/man/bundle-config.1 +3 -9
- data/bundler/man/bundle-config.1.txt +271 -272
- data/bundler/man/bundle-config.ronn +5 -9
- data/bundler/man/bundle-doctor.1 +1 -1
- data/bundler/man/bundle-doctor.1.txt +9 -9
- data/bundler/man/bundle-exec.1 +1 -1
- data/bundler/man/bundle-exec.1.txt +84 -81
- data/bundler/man/bundle-gem.1 +25 -3
- data/bundler/man/bundle-gem.1.txt +65 -39
- data/bundler/man/bundle-gem.ronn +30 -7
- data/bundler/man/bundle-info.1 +1 -1
- data/bundler/man/bundle-info.1.txt +2 -2
- data/bundler/man/bundle-init.1 +1 -1
- data/bundler/man/bundle-init.1.txt +9 -9
- data/bundler/man/bundle-inject.1 +1 -1
- data/bundler/man/bundle-inject.1.txt +4 -4
- data/bundler/man/bundle-install.1 +1 -1
- data/bundler/man/bundle-install.1.txt +169 -169
- data/bundler/man/bundle-list.1 +7 -7
- data/bundler/man/bundle-list.1.txt +12 -11
- data/bundler/man/bundle-list.ronn +6 -6
- data/bundler/man/bundle-lock.1 +1 -1
- data/bundler/man/bundle-lock.1.txt +28 -28
- data/bundler/man/bundle-open.1 +1 -1
- data/bundler/man/bundle-open.1.txt +3 -3
- data/bundler/man/bundle-outdated.1 +1 -1
- data/bundler/man/bundle-outdated.1.txt +34 -34
- data/bundler/man/bundle-platform.1 +1 -1
- data/bundler/man/bundle-platform.1.txt +16 -16
- data/bundler/man/bundle-pristine.1 +1 -1
- data/bundler/man/bundle-pristine.1.txt +8 -8
- data/bundler/man/bundle-remove.1 +1 -1
- data/bundler/man/bundle-remove.1.txt +9 -9
- data/bundler/man/bundle-show.1 +1 -1
- data/bundler/man/bundle-show.1.txt +8 -8
- data/bundler/man/bundle-update.1 +1 -1
- data/bundler/man/bundle-update.1.txt +149 -148
- data/bundler/man/bundle-viz.1 +1 -1
- data/bundler/man/bundle-viz.1.txt +11 -11
- data/bundler/man/bundle.1 +1 -1
- data/bundler/man/bundle.1.txt +31 -31
- data/bundler/man/gemfile.5 +1 -1
- data/bundler/man/gemfile.5.txt +218 -216
- data/lib/rubygems.rb +68 -148
- data/lib/rubygems/available_set.rb +4 -4
- data/lib/rubygems/basic_specification.rb +11 -5
- data/lib/rubygems/bundler_version_finder.rb +14 -9
- data/lib/rubygems/command.rb +16 -14
- data/lib/rubygems/command_manager.rb +4 -3
- data/lib/rubygems/commands/cert_command.rb +1 -1
- data/lib/rubygems/commands/cleanup_command.rb +3 -3
- data/lib/rubygems/commands/contents_command.rb +4 -4
- data/lib/rubygems/commands/dependency_command.rb +6 -6
- data/lib/rubygems/commands/fetch_command.rb +2 -2
- data/lib/rubygems/commands/help_command.rb +1 -1
- data/lib/rubygems/commands/info_command.rb +9 -4
- data/lib/rubygems/commands/install_command.rb +3 -3
- data/lib/rubygems/commands/list_command.rb +9 -6
- data/lib/rubygems/commands/lock_command.rb +1 -1
- data/lib/rubygems/commands/open_command.rb +0 -2
- data/lib/rubygems/commands/pristine_command.rb +10 -2
- data/lib/rubygems/commands/push_command.rb +4 -42
- data/lib/rubygems/commands/query_command.rb +7 -352
- data/lib/rubygems/commands/search_command.rb +8 -6
- data/lib/rubygems/commands/setup_command.rb +128 -32
- data/lib/rubygems/commands/specification_command.rb +2 -2
- data/lib/rubygems/commands/stale_command.rb +1 -1
- data/lib/rubygems/commands/uninstall_command.rb +1 -1
- data/lib/rubygems/commands/unpack_command.rb +1 -1
- data/lib/rubygems/commands/update_command.rb +40 -10
- data/lib/rubygems/config_file.rb +11 -2
- data/lib/rubygems/core_ext/kernel_require.rb +2 -2
- data/lib/rubygems/defaults.rb +99 -5
- data/lib/rubygems/dependency.rb +2 -5
- data/lib/rubygems/dependency_installer.rb +1 -73
- data/lib/rubygems/dependency_list.rb +7 -7
- data/lib/rubygems/deprecate.rb +46 -1
- data/lib/rubygems/doctor.rb +4 -2
- data/lib/rubygems/errors.rb +3 -2
- data/lib/rubygems/exceptions.rb +2 -13
- data/lib/rubygems/ext.rb +6 -6
- data/lib/rubygems/ext/build_error.rb +2 -0
- data/lib/rubygems/ext/builder.rb +1 -1
- data/lib/rubygems/ext/cmake_builder.rb +1 -1
- data/lib/rubygems/ext/ext_conf_builder.rb +6 -7
- data/lib/rubygems/gem_runner.rb +3 -8
- data/lib/rubygems/gemcutter_utilities.rb +1 -1
- data/lib/rubygems/indexer.rb +1 -19
- data/lib/rubygems/install_update_options.rb +5 -5
- data/lib/rubygems/installer.rb +45 -42
- data/lib/rubygems/installer_test_case.rb +19 -2
- data/lib/rubygems/installer_uninstaller_utils.rb +24 -0
- data/lib/rubygems/local_remote_options.rb +1 -1
- data/lib/rubygems/name_tuple.rb +2 -4
- data/lib/rubygems/package.rb +8 -13
- data/lib/rubygems/package/old.rb +1 -1
- data/lib/rubygems/package/tar_header.rb +3 -3
- data/lib/rubygems/package/tar_reader.rb +0 -1
- data/lib/rubygems/package/tar_reader/entry.rb +0 -1
- data/lib/rubygems/package/tar_test_case.rb +1 -1
- data/lib/rubygems/package/tar_writer.rb +2 -6
- data/lib/rubygems/package_task.rb +1 -5
- data/lib/rubygems/path_support.rb +1 -1
- data/lib/rubygems/platform.rb +3 -3
- data/lib/rubygems/query_utils.rb +362 -0
- data/lib/rubygems/rdoc.rb +0 -12
- data/lib/rubygems/remote_fetcher.rb +5 -19
- data/lib/rubygems/request/connection_pools.rb +1 -1
- data/lib/rubygems/request_set.rb +5 -5
- data/lib/rubygems/request_set/gem_dependency_api.rb +1 -1
- data/lib/rubygems/request_set/lockfile.rb +8 -8
- data/lib/rubygems/request_set/lockfile/tokenizer.rb +1 -1
- data/lib/rubygems/requirement.rb +14 -15
- data/lib/rubygems/resolver.rb +7 -8
- data/lib/rubygems/resolver/api_set.rb +3 -3
- data/lib/rubygems/resolver/composed_set.rb +3 -3
- data/lib/rubygems/resolver/conflict.rb +1 -1
- data/lib/rubygems/resolver/index_set.rb +1 -1
- data/lib/rubygems/resolver/installer_set.rb +3 -3
- data/lib/rubygems/resolver/lock_set.rb +1 -1
- data/lib/rubygems/safe_yaml.rb +4 -4
- data/lib/rubygems/security.rb +25 -25
- data/lib/rubygems/security/policy.rb +3 -3
- data/lib/rubygems/security/signer.rb +4 -4
- data/lib/rubygems/security/trust_dir.rb +1 -1
- data/lib/rubygems/server.rb +8 -8
- data/lib/rubygems/source/git.rb +7 -6
- data/lib/rubygems/source/local.rb +2 -2
- data/lib/rubygems/source_list.rb +4 -5
- data/lib/rubygems/spec_fetcher.rb +18 -15
- data/lib/rubygems/specification.rb +79 -104
- data/lib/rubygems/specification_policy.rb +79 -27
- data/lib/rubygems/ssl_certs/{rubygems.org → index.rubygems.org}/GlobalSignRootCA.pem +0 -0
- data/lib/rubygems/ssl_certs/rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem +23 -0
- data/lib/rubygems/ssl_certs/rubygems.org/AddTrustExternalCARoot.pem +25 -0
- data/lib/rubygems/test_case.rb +63 -83
- data/lib/rubygems/test_utilities.rb +6 -6
- data/lib/rubygems/uninstaller.rb +35 -14
- data/lib/rubygems/user_interaction.rb +1 -10
- data/lib/rubygems/util.rb +10 -2
- data/lib/rubygems/util/licenses.rb +4 -4
- data/lib/rubygems/validator.rb +1 -1
- data/lib/rubygems/version.rb +4 -4
- data/rubygems-update.gemspec +2 -2
- data/setup.rb +2 -7
- data/test/rubygems/specifications/bar-0.0.2.gemspec +0 -2
- data/test/rubygems/specifications/rubyforge-0.0.1.gemspec +0 -2
- data/test/rubygems/test_bundled_ca.rb +4 -12
- data/test/rubygems/test_deprecate.rb +43 -4
- data/test/rubygems/test_gem.rb +79 -74
- data/test/rubygems/test_gem_available_set.rb +3 -3
- data/test/rubygems/test_gem_bundler_version_finder.rb +19 -1
- data/test/rubygems/test_gem_command.rb +24 -3
- data/test/rubygems/test_gem_command_manager.rb +37 -4
- data/test/rubygems/test_gem_commands_build_command.rb +7 -2
- data/test/rubygems/test_gem_commands_cert_command.rb +2 -2
- data/test/rubygems/test_gem_commands_cleanup_command.rb +1 -1
- data/test/rubygems/test_gem_commands_contents_command.rb +48 -15
- data/test/rubygems/test_gem_commands_environment_command.rb +21 -21
- data/test/rubygems/test_gem_commands_generate_index_command.rb +1 -5
- data/test/rubygems/test_gem_commands_info_command.rb +6 -6
- data/test/rubygems/test_gem_commands_install_command.rb +31 -31
- data/test/rubygems/test_gem_commands_mirror.rb +1 -1
- data/test/rubygems/test_gem_commands_open_command.rb +4 -4
- data/test/rubygems/test_gem_commands_owner_command.rb +11 -3
- data/test/rubygems/test_gem_commands_pristine_command.rb +41 -8
- data/test/rubygems/test_gem_commands_push_command.rb +7 -2
- data/test/rubygems/test_gem_commands_query_command.rb +9 -5
- data/test/rubygems/test_gem_commands_setup_command.rb +160 -108
- data/test/rubygems/test_gem_commands_signin_command.rb +6 -4
- data/test/rubygems/test_gem_commands_signout_command.rb +0 -5
- data/test/rubygems/test_gem_commands_specification_command.rb +18 -18
- data/test/rubygems/test_gem_commands_uninstall_command.rb +1 -1
- data/test/rubygems/test_gem_commands_update_command.rb +68 -5
- data/test/rubygems/test_gem_commands_which_command.rb +3 -3
- data/test/rubygems/test_gem_commands_yank_command.rb +14 -6
- data/test/rubygems/test_gem_config_file.rb +7 -10
- data/test/rubygems/test_gem_dependency_installer.rb +52 -189
- data/test/rubygems/test_gem_dependency_list.rb +8 -8
- data/test/rubygems/test_gem_dependency_resolution_error.rb +1 -1
- data/test/rubygems/test_gem_doctor.rb +28 -0
- data/test/rubygems/test_gem_ext_builder.rb +14 -25
- data/test/rubygems/test_gem_ext_cmake_builder.rb +13 -12
- data/test/rubygems/test_gem_ext_configure_builder.rb +1 -9
- data/test/rubygems/test_gem_ext_ext_conf_builder.rb +0 -1
- data/test/rubygems/test_gem_ext_rake_builder.rb +9 -9
- data/test/rubygems/test_gem_gem_runner.rb +42 -0
- data/test/rubygems/test_gem_gemcutter_utilities.rb +5 -0
- data/test/rubygems/test_gem_indexer.rb +9 -13
- data/test/rubygems/test_gem_installer.rb +149 -45
- data/test/rubygems/test_gem_package.rb +13 -12
- data/test/rubygems/test_gem_package_tar_header.rb +19 -0
- data/test/rubygems/test_gem_package_tar_writer.rb +3 -3
- data/test/rubygems/test_gem_package_task.rb +46 -11
- data/test/rubygems/test_gem_remote_fetcher.rb +152 -190
- data/test/rubygems/test_gem_request.rb +11 -11
- data/test/rubygems/test_gem_request_set.rb +20 -20
- data/test/rubygems/test_gem_request_set_gem_dependency_api.rb +3 -3
- data/test/rubygems/test_gem_request_set_lockfile_parser.rb +9 -9
- data/test/rubygems/test_gem_request_set_lockfile_tokenizer.rb +118 -118
- data/test/rubygems/test_gem_requirement.rb +2 -2
- data/test/rubygems/test_gem_resolver.rb +6 -6
- data/test/rubygems/test_gem_resolver_api_set.rb +3 -3
- data/test/rubygems/test_gem_resolver_best_set.rb +2 -2
- data/test/rubygems/test_gem_resolver_index_set.rb +2 -2
- data/test/rubygems/test_gem_resolver_installer_set.rb +7 -7
- data/test/rubygems/test_gem_resolver_lock_set.rb +3 -3
- data/test/rubygems/test_gem_security.rb +20 -20
- data/test/rubygems/test_gem_security_policy.rb +5 -8
- data/test/rubygems/test_gem_security_signer.rb +8 -8
- data/test/rubygems/test_gem_security_trust_dir.rb +2 -2
- data/test/rubygems/test_gem_server.rb +10 -10
- data/test/rubygems/test_gem_source.rb +12 -14
- data/test/rubygems/test_gem_source_git.rb +12 -11
- data/test/rubygems/test_gem_source_installed.rb +7 -7
- data/test/rubygems/test_gem_source_local.rb +8 -8
- data/test/rubygems/test_gem_source_lock.rb +10 -10
- data/test/rubygems/test_gem_source_specific_file.rb +7 -7
- data/test/rubygems/test_gem_source_vendor.rb +7 -7
- data/test/rubygems/test_gem_spec_fetcher.rb +11 -2
- data/test/rubygems/test_gem_specification.rb +143 -113
- data/test/rubygems/test_gem_stream_ui.rb +3 -1
- data/test/rubygems/test_gem_text.rb +1 -1
- data/test/rubygems/test_gem_uninstaller.rb +134 -10
- data/test/rubygems/test_gem_util.rb +7 -5
- data/test/rubygems/test_gem_version.rb +1 -1
- data/test/rubygems/test_kernel.rb +10 -12
- data/test/rubygems/test_project_sanity.rb +8 -1
- data/test/rubygems/test_require.rb +141 -43
- metadata +32 -45
- data/.bundle/config +0 -2
- data/.rubocop.yml +0 -91
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -43
- data/bundler/CODE_OF_CONDUCT.md +0 -136
- data/lib/rubygems/source_local.rb +0 -7
- data/lib/rubygems/source_specific_file.rb +0 -6
- data/lib/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem +0 -21
- data/lib/ubygems.rb +0 -14
- data/tmp/.keep +0 -0
- data/util/CL2notes +0 -55
- data/util/bisect +0 -10
- data/util/ci.sh +0 -62
- data/util/cops/deprecations.rb +0 -52
- data/util/create_certs.rb +0 -171
- data/util/create_certs.sh +0 -27
- data/util/create_encrypted_key.rb +0 -16
- data/util/generate_spdx_license_list.rb +0 -63
- data/util/patch_with_prs.rb +0 -77
- data/util/rubocop +0 -8
- data/util/update_bundled_ca_certificates.rb +0 -137
- data/util/update_changelog.rb +0 -64
@@ -11,7 +11,7 @@ This command allows you to interact with Bundler's configuration system.
|
|
11
11
|
|
12
12
|
Bundler loads configuration settings in this order:
|
13
13
|
|
14
|
-
1. Local config (
|
14
|
+
1. Local config (`<project_root>/.bundle/config` or `$BUNDLE_APP_CONFIG/config`)
|
15
15
|
2. Environmental variables (`ENV`)
|
16
16
|
3. Global config (`~/.bundle/config`)
|
17
17
|
4. Bundler default config
|
@@ -30,8 +30,10 @@ overridden and user will be warned.
|
|
30
30
|
|
31
31
|
Executing `bundle config set --global <name> <value>` works the same as above.
|
32
32
|
|
33
|
-
Executing `bundle config set --local <name> <value>` will set that configuration
|
34
|
-
the local application. The configuration will be stored in
|
33
|
+
Executing `bundle config set --local <name> <value>` will set that configuration
|
34
|
+
in the directory for the local application. The configuration will be stored in
|
35
|
+
`<project_root>/.bundle/config`. If `BUNDLE_APP_CONFIG` is set, the configuration
|
36
|
+
will be stored in `$BUNDLE_APP_CONFIG/config`.
|
35
37
|
|
36
38
|
Executing `bundle config unset <name>` will delete the configuration in both
|
37
39
|
local and global sources.
|
@@ -179,8 +181,6 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
|
|
179
181
|
When set, Gemfiles containing multiple sources will produce errors
|
180
182
|
instead of warnings.
|
181
183
|
Use `bundle config unset disable_multisource` to unset.
|
182
|
-
* `disable_platform_warnings` (`BUNDLE_DISABLE_PLATFORM_WARNINGS`):
|
183
|
-
Disable warnings during bundle install when a dependency is unused on the current platform.
|
184
184
|
* `disable_shared_gems` (`BUNDLE_DISABLE_SHARED_GEMS`):
|
185
185
|
Stop Bundler from accessing gems installed to RubyGems' normal location.
|
186
186
|
* `disable_version_check` (`BUNDLE_DISABLE_VERSION_CHECK`):
|
@@ -249,9 +249,6 @@ learn more about their operation in [bundle install(1)](bundle-install.1.html).
|
|
249
249
|
be changed in the next major version.
|
250
250
|
* `silence_root_warning` (`BUNDLE_SILENCE_ROOT_WARNING`):
|
251
251
|
Silence the warning Bundler prints when installing gems as root.
|
252
|
-
* `skip_default_git_sources` (`BUNDLE_SKIP_DEFAULT_GIT_SOURCES`):
|
253
|
-
Whether Bundler should skip adding default git source shortcuts to the
|
254
|
-
Gemfile DSL.
|
255
252
|
* `specific_platform` (`BUNDLE_SPECIFIC_PLATFORM`):
|
256
253
|
Allow bundler to resolve for the specific running platform and store it in
|
257
254
|
the lockfile, instead of only using a generic platform.
|
@@ -396,4 +393,3 @@ outlines the available environment variables and their default values
|
|
396
393
|
BUNDLE_USER_CACHE : $BUNDLE_USER_HOME/cache
|
397
394
|
BUNDLE_USER_CONFIG : $BUNDLE_USER_HOME/config
|
398
395
|
BUNDLE_USER_PLUGIN : $BUNDLE_USER_HOME/plugin
|
399
|
-
|
data/bundler/man/bundle-doctor.1
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
BUNDLE-DOCTOR(1)
|
1
|
+
BUNDLE-DOCTOR(1) BUNDLE-DOCTOR(1)
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -10,7 +10,7 @@ SYNOPSIS
|
|
10
10
|
|
11
11
|
DESCRIPTION
|
12
12
|
Checks your Gemfile and gem environment for common problems. If issues
|
13
|
-
are detected, Bundler prints them and exits
|
13
|
+
are detected, Bundler prints them and exits status 1. Otherwise,
|
14
14
|
Bundler prints a success message and exits status 0.
|
15
15
|
|
16
16
|
Examples of common problems caught by bundle-doctor include:
|
@@ -29,16 +29,16 @@ DESCRIPTION
|
|
29
29
|
|
30
30
|
OPTIONS
|
31
31
|
--quiet
|
32
|
-
|
32
|
+
Only output warnings and errors.
|
33
33
|
|
34
34
|
--gemfile=<gemfile>
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
The location of the Gemfile(5) which Bundler should use. This
|
36
|
+
defaults to a Gemfile(5) in the current working directory. In
|
37
|
+
general, Bundler will assume that the location of the Gemfile(5)
|
38
|
+
is also the project's root and will try to find Gemfile.lock and
|
39
|
+
vendor/cache relative to this location.
|
40
40
|
|
41
41
|
|
42
42
|
|
43
43
|
|
44
|
-
|
44
|
+
July 2020 BUNDLE-DOCTOR(1)
|
data/bundler/man/bundle-exec.1
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
BUNDLE-EXEC(1)
|
1
|
+
BUNDLE-EXEC(1) BUNDLE-EXEC(1)
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -9,47 +9,48 @@ SYNOPSIS
|
|
9
9
|
bundle exec [--keep-file-descriptors] command
|
10
10
|
|
11
11
|
DESCRIPTION
|
12
|
-
This command executes
|
12
|
+
This command executes the command, making all gems specified in the
|
13
13
|
[Gemfile(5)][Gemfile(5)] available to require in Ruby programs.
|
14
14
|
|
15
|
-
Essentially, if you would normally have run
|
16
|
-
spec/my_spec.rb, and you want
|
17
|
-
|
18
|
-
|
15
|
+
Essentially, if you would normally have run something like rspec
|
16
|
+
spec/my_spec.rb, and you want to use the gems specified in the
|
17
|
+
[Gemfile(5)][Gemfile(5)] and installed via bundle install(1)
|
18
|
+
bundle-install.1.html, you should run bundle exec rspec
|
19
|
+
spec/my_spec.rb.
|
19
20
|
|
20
|
-
Note
|
21
|
+
Note that bundle exec does not require that an executable is available
|
21
22
|
on your shell's $PATH.
|
22
23
|
|
23
24
|
OPTIONS
|
24
25
|
--keep-file-descriptors
|
25
|
-
|
26
|
-
|
27
|
-
|
26
|
+
Exec in Ruby 2.0 began discarding non-standard file descriptors.
|
27
|
+
When this flag is passed, exec will revert to the 1.9 behaviour
|
28
|
+
of passing all file descriptors to the new process.
|
28
29
|
|
29
30
|
BUNDLE INSTALL --BINSTUBS
|
30
|
-
If
|
31
|
-
|
32
|
-
(which
|
31
|
+
If you use the --binstubs flag in bundle install(1)
|
32
|
+
bundle-install.1.html, Bundler will automatically create a directory
|
33
|
+
(which defaults to app_root/bin) containing all of the executables
|
33
34
|
available from gems in the bundle.
|
34
35
|
|
35
|
-
After
|
36
|
-
|
36
|
+
After using --binstubs, bin/rspec spec/my_spec.rb is identical to
|
37
|
+
bundle exec rspec spec/my_spec.rb.
|
37
38
|
|
38
39
|
ENVIRONMENT MODIFICATIONS
|
39
|
-
bundle
|
40
|
+
bundle exec makes a number of changes to the shell environment, then
|
40
41
|
executes the command you specify in full.
|
41
42
|
|
42
|
-
o make
|
43
|
-
|
43
|
+
o make sure that it's still possible to shell out to bundle from
|
44
|
+
inside a command invoked by bundle exec (using $BUNDLE_BIN_PATH)
|
44
45
|
|
45
|
-
o put
|
46
|
-
|
46
|
+
o put the directory containing executables (like rails, rspec,
|
47
|
+
rackup) for your bundle on $PATH
|
47
48
|
|
48
|
-
o make
|
49
|
-
|
49
|
+
o make sure that if bundler is invoked in the subshell, it uses the
|
50
|
+
same Gemfile (by setting BUNDLE_GEMFILE)
|
50
51
|
|
51
|
-
o add
|
52
|
-
|
52
|
+
o add -rbundler/setup to $RUBYOPT, which makes sure that Ruby
|
53
|
+
programs invoked in the subshell can see the gems in the bundle
|
53
54
|
|
54
55
|
|
55
56
|
|
@@ -57,122 +58,124 @@ ENVIRONMENT MODIFICATIONS
|
|
57
58
|
|
58
59
|
o disallow loading additional gems not in the bundle
|
59
60
|
|
60
|
-
o modify
|
61
|
-
|
61
|
+
o modify the gem method to be a no-op if a gem matching the
|
62
|
+
requirements is in the bundle, and to raise a Gem::LoadError if
|
63
|
+
it's not
|
62
64
|
|
63
|
-
o Define Gem.refresh to be a no-op, since the source index is
|
64
|
-
|
65
|
-
|
65
|
+
o Define Gem.refresh to be a no-op, since the source index is always
|
66
|
+
frozen when using bundler, and to prevent gems from the system
|
67
|
+
leaking into the environment
|
66
68
|
|
67
|
-
o Override Gem.bin_path to use the gems in the bundle, making
|
68
|
-
|
69
|
+
o Override Gem.bin_path to use the gems in the bundle, making system
|
70
|
+
executables work
|
69
71
|
|
70
72
|
o Add all gems in the bundle into Gem.loaded_specs
|
71
73
|
|
72
74
|
|
73
75
|
|
74
|
-
Finally,
|
75
|
-
|
76
|
-
|
77
|
-
and that information isn't stored in
|
78
|
-
lockfile
|
79
|
-
exec updates the lockfile beforehand.
|
76
|
+
Finally, bundle exec also implicitly modifies Gemfile.lock if the
|
77
|
+
lockfile and the Gemfile do not match. Bundler needs the Gemfile to
|
78
|
+
determine things such as a gem's groups, autorequire, and platforms,
|
79
|
+
etc., and that information isn't stored in the lockfile. The Gemfile
|
80
|
+
and lockfile must be synced in order to bundle exec successfully, so
|
81
|
+
bundle exec updates the lockfile beforehand.
|
80
82
|
|
81
83
|
Loading
|
82
|
-
By default, when attempting to bundle
|
83
|
-
|
84
|
-
For the vast majority of
|
85
|
-
rare few cases, this
|
86
|
-
dependence
|
87
|
-
|
84
|
+
By default, when attempting to bundle exec to a file with a ruby
|
85
|
+
shebang, Bundler will Kernel.load that file instead of using
|
86
|
+
Kernel.exec. For the vast majority of cases, this is a performance
|
87
|
+
improvement. In a rare few cases, this could cause some subtle
|
88
|
+
side-effects (such as dependence on the exact contents of $0 or
|
89
|
+
__FILE__) and the optimization can be disabled by enabling the
|
90
|
+
disable_exec_load setting.
|
88
91
|
|
89
92
|
Shelling out
|
90
|
-
Any
|
91
|
-
will
|
92
|
-
shell
|
93
|
-
use
|
94
|
-
inside
|
95
|
-
was
|
93
|
+
Any Ruby code that opens a subshell (like system, backticks, or %x{})
|
94
|
+
will automatically use the current Bundler environment. If you need to
|
95
|
+
shell out to a Ruby command that is not part of your current bundle,
|
96
|
+
use the with_clean_env method with a block. Any subshells created
|
97
|
+
inside the block will be given the environment present before Bundler
|
98
|
+
was activated. For example, Homebrew commands run Ruby, but don't work
|
96
99
|
inside a bundle:
|
97
100
|
|
98
101
|
|
99
102
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
+
Bundler.with_clean_env do
|
104
|
+
`brew install wget`
|
105
|
+
end
|
103
106
|
|
104
107
|
|
105
108
|
|
106
|
-
Using
|
107
|
-
different
|
108
|
-
the
|
109
|
+
Using with_clean_env is also necessary if you are shelling out to a
|
110
|
+
different bundle. Any Bundler commands run in a subshell will inherit
|
111
|
+
the current Gemfile, so commands that need to run in the context of a
|
109
112
|
different bundle also need to use with_clean_env.
|
110
113
|
|
111
114
|
|
112
115
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
116
|
+
Bundler.with_clean_env do
|
117
|
+
Dir.chdir "/other/bundler/project" do
|
118
|
+
`bundle exec ./script`
|
119
|
+
end
|
120
|
+
end
|
118
121
|
|
119
122
|
|
120
123
|
|
121
|
-
Bundler
|
124
|
+
Bundler provides convenience helpers that wrap system and exec, and
|
122
125
|
they can be used like this:
|
123
126
|
|
124
127
|
|
125
128
|
|
126
|
-
|
127
|
-
|
129
|
+
Bundler.clean_system('brew install wget')
|
130
|
+
Bundler.clean_exec('brew install wget')
|
128
131
|
|
129
132
|
|
130
133
|
|
131
134
|
RUBYGEMS PLUGINS
|
132
|
-
At
|
133
|
-
rubygems_plugin.rb
|
135
|
+
At present, the Rubygems plugin system requires all files named
|
136
|
+
rubygems_plugin.rb on the load path of any installed gem when any Ruby
|
134
137
|
code requires rubygems.rb. This includes executables installed into the
|
135
138
|
system, like rails, rackup, and rspec.
|
136
139
|
|
137
|
-
Since
|
140
|
+
Since Rubygems plugins can contain arbitrary Ruby code, they commonly
|
138
141
|
end up activating themselves or their dependencies.
|
139
142
|
|
140
|
-
For
|
141
|
-
that
|
142
|
-
|
143
|
-
json_pure <latest>.
|
143
|
+
For instance, the gemcutter 0.5 gem depended on json_pure. If you had
|
144
|
+
that version of gemcutter installed (even if you also had a newer
|
145
|
+
version without this problem), Rubygems would activate gemcutter 0.5
|
146
|
+
and json_pure <latest>.
|
144
147
|
|
145
148
|
If your Gemfile(5) also contained json_pure (or a gem with a dependency
|
146
|
-
on
|
147
|
-
the
|
148
|
-
|
149
|
+
on json_pure), the latest version on your system might conflict with
|
150
|
+
the version in your Gemfile(5), or the snapshot version in your
|
151
|
+
Gemfile.lock.
|
149
152
|
|
150
153
|
If this happens, bundler will say:
|
151
154
|
|
152
155
|
|
153
156
|
|
154
|
-
|
155
|
-
|
157
|
+
You have already activated json_pure 1.4.6 but your Gemfile
|
158
|
+
requires json_pure 1.4.3. Consider using bundle exec.
|
156
159
|
|
157
160
|
|
158
161
|
|
159
|
-
In
|
160
|
-
gem
|
161
|
-
plugins
|
162
|
+
In this situation, you almost certainly want to remove the underlying
|
163
|
+
gem with the problematic gem plugin. In general, the authors of these
|
164
|
+
plugins (in this case, the gemcutter gem) have released newer versions
|
162
165
|
that are more careful in their plugins.
|
163
166
|
|
164
167
|
You can find a list of all the gems containing gem plugins by running
|
165
168
|
|
166
169
|
|
167
170
|
|
168
|
-
|
171
|
+
ruby -rrubygems -e "puts Gem.find_files('rubygems_plugin.rb')"
|
169
172
|
|
170
173
|
|
171
174
|
|
172
175
|
At the very least, you should remove all but the newest version of each
|
173
|
-
gem
|
176
|
+
gem plugin, and also remove all gem plugins that you aren't using (gem
|
174
177
|
uninstall gem_name).
|
175
178
|
|
176
179
|
|
177
180
|
|
178
|
-
|
181
|
+
July 2020 BUNDLE-EXEC(1)
|
data/bundler/man/bundle-gem.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "BUNDLE\-GEM" "1" "
|
4
|
+
.TH "BUNDLE\-GEM" "1" "July 2020" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBbundle\-gem\fR \- Generate a project skeleton for creating a rubygem
|
@@ -64,8 +64,30 @@ Add an MIT license to a \fBLICENSE\.txt\fR file in the root of the generated pro
|
|
64
64
|
Do not create a \fBLICENSE\.txt\fR (overrides \fB\-\-mit\fR specified in the global config)\.
|
65
65
|
.
|
66
66
|
.TP
|
67
|
-
\fB\-t\fR, \fB\-\-test=minitest\fR, \fB\-\-test=rspec\fR
|
68
|
-
Specify the test framework that Bundler should use when generating the project\. Acceptable values are \fBminitest\fR and \
|
67
|
+
\fB\-t\fR, \fB\-\-test=minitest\fR, \fB\-\-test=rspec\fR, \fB\-\-test=test\-unit\fR
|
68
|
+
Specify the test framework that Bundler should use when generating the project\. Acceptable values are \fBminitest\fR, \fBrspec\fR and \fBtest\-unit\fR\. The \fBGEM_NAME\.gemspec\fR will be configured and a skeleton test/spec directory will be created based on this option\. Given no option is specified:
|
69
|
+
.
|
70
|
+
.IP
|
71
|
+
When Bundler is configured to generate tests, this defaults to Bundler\'s global config setting \fBgem\.test\fR\.
|
72
|
+
.
|
73
|
+
.IP
|
74
|
+
When Bundler is configured to not generate tests, an interactive prompt will be displayed and the answer will be used for the current rubygem project\.
|
75
|
+
.
|
76
|
+
.IP
|
77
|
+
When Bundler is unconfigured, an interactive prompt will be displayed and the answer will be saved in Bundler\'s global config for future \fBbundle gem\fR use\.
|
78
|
+
.
|
79
|
+
.TP
|
80
|
+
\fB\-\-ci\fR, \fB\-\-ci=github\fR, \fB\-\-ci=travis\fR, \fB\-\-ci=gitlab\fR, \fB\-\-ci=circle\fR
|
81
|
+
Specify the continuous integration service that Bundler should use when generating the project\. Acceptable values are \fBgithub\fR, \fBtravis\fR, \fBgitlab\fR and \fBcircle\fR\. A configuration file will be generated in the project directory\. Given no option is specified:
|
82
|
+
.
|
83
|
+
.IP
|
84
|
+
When Bundler is configured to generate CI files, this defaults to Bundler\'s global config setting \fBgem\.ci\fR\.
|
85
|
+
.
|
86
|
+
.IP
|
87
|
+
When Bundler is configured to not generate CI files, an interactive prompt will be displayed and the answer will be used for the current rubygem project\.
|
88
|
+
.
|
89
|
+
.IP
|
90
|
+
When Bundler is unconfigured, an interactive prompt will be displayed and the answer will be saved in Bundler\'s global config for future \fBbundle gem\fR use\.
|
69
91
|
.
|
70
92
|
.TP
|
71
93
|
\fB\-e\fR, \fB\-\-edit[=EDITOR]\fR
|
@@ -1,4 +1,4 @@
|
|
1
|
-
BUNDLE-GEM(1)
|
1
|
+
BUNDLE-GEM(1) BUNDLE-GEM(1)
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -16,8 +16,8 @@ DESCRIPTION
|
|
16
16
|
Run rake -T in the resulting project for a list of Rake tasks that can
|
17
17
|
be used to test and publish the gem to rubygems.org.
|
18
18
|
|
19
|
-
The generated project skeleton can be
|
20
|
-
explained below. Note
|
19
|
+
The generated project skeleton can be customized with OPTIONS, as
|
20
|
+
explained below. Note that these options can also be specified via
|
21
21
|
Bundler's global configuration file using the following names:
|
22
22
|
|
23
23
|
o gem.coc
|
@@ -30,55 +30,81 @@ DESCRIPTION
|
|
30
30
|
|
31
31
|
OPTIONS
|
32
32
|
--exe or -b or --bin
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
Specify that Bundler should create a binary executable (as
|
34
|
+
exe/GEM_NAME) in the generated rubygem project. This binary will
|
35
|
+
also be added to the GEM_NAME.gemspec manifest. This behavior is
|
36
|
+
disabled by default.
|
37
37
|
|
38
38
|
--no-exe
|
39
|
-
|
40
|
-
|
39
|
+
Do not create a binary (overrides --exe specified in the global
|
40
|
+
config).
|
41
41
|
|
42
|
-
--coc Add a CODE_OF_CONDUCT.md file to the root of
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
--coc Add a CODE_OF_CONDUCT.md file to the root of the generated
|
43
|
+
project. If this option is unspecified, an interactive prompt
|
44
|
+
will be displayed and the answer will be saved in Bundler's
|
45
|
+
global config for future bundle gem use.
|
46
46
|
|
47
47
|
--no-coc
|
48
|
-
|
49
|
-
|
48
|
+
Do not create a CODE_OF_CONDUCT.md (overrides --coc specified in
|
49
|
+
the global config).
|
50
50
|
|
51
51
|
--ext Add boilerplate for C extension code to the generated project.
|
52
|
-
|
52
|
+
This behavior is disabled by default.
|
53
53
|
|
54
54
|
--no-ext
|
55
|
-
|
56
|
-
|
55
|
+
Do not add C extension code (overrides --ext specified in the
|
56
|
+
global config).
|
57
57
|
|
58
|
-
--mit Add an MIT license to a LICENSE.txt file
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
58
|
+
--mit Add an MIT license to a LICENSE.txt file in the root of the
|
59
|
+
generated project. Your name from the global git config is used
|
60
|
+
for the copyright statement. If this option is unspecified, an
|
61
|
+
interactive prompt will be displayed and the answer will be
|
62
|
+
saved in Bundler's global config for future bundle gem use.
|
63
63
|
|
64
64
|
--no-mit
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
-t, --test=minitest, --test=rspec
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
65
|
+
Do not create a LICENSE.txt (overrides --mit specified in the
|
66
|
+
global config).
|
67
|
+
|
68
|
+
-t, --test=minitest, --test=rspec, --test=test-unit
|
69
|
+
Specify the test framework that Bundler should use when
|
70
|
+
generating the project. Acceptable values are minitest, rspec
|
71
|
+
and test-unit. The GEM_NAME.gemspec will be configured and a
|
72
|
+
skeleton test/spec directory will be created based on this
|
73
|
+
option. Given no option is specified:
|
74
|
+
|
75
|
+
When Bundler is configured to generate tests, this defaults to
|
76
|
+
Bundler's global config setting gem.test.
|
77
|
+
|
78
|
+
When Bundler is configured to not generate tests, an interactive
|
79
|
+
prompt will be displayed and the answer will be used for the
|
80
|
+
current rubygem project.
|
81
|
+
|
82
|
+
When Bundler is unconfigured, an interactive prompt will be
|
83
|
+
displayed and the answer will be saved in Bundler's global
|
84
|
+
config for future bundle gem use.
|
85
|
+
|
86
|
+
--ci, --ci=github, --ci=travis, --ci=gitlab, --ci=circle
|
87
|
+
Specify the continuous integration service that Bundler should
|
88
|
+
use when generating the project. Acceptable values are github,
|
89
|
+
travis, gitlab and circle. A configuration file will be
|
90
|
+
generated in the project directory. Given no option is
|
91
|
+
specified:
|
92
|
+
|
93
|
+
When Bundler is configured to generate CI files, this defaults
|
94
|
+
to Bundler's global config setting gem.ci.
|
95
|
+
|
96
|
+
When Bundler is configured to not generate CI files, an
|
97
|
+
interactive prompt will be displayed and the answer will be used
|
98
|
+
for the current rubygem project.
|
99
|
+
|
100
|
+
When Bundler is unconfigured, an interactive prompt will be
|
101
|
+
displayed and the answer will be saved in Bundler's global
|
102
|
+
config for future bundle gem use.
|
77
103
|
|
78
104
|
-e, --edit[=EDITOR]
|
79
|
-
|
80
|
-
|
81
|
-
|
105
|
+
Open the resulting GEM_NAME.gemspec in EDITOR, or the default
|
106
|
+
editor if not specified. The default is $BUNDLER_EDITOR,
|
107
|
+
$VISUAL, or $EDITOR.
|
82
108
|
|
83
109
|
SEE ALSO
|
84
110
|
o bundle config(1) bundle-config.1.html
|
@@ -88,4 +114,4 @@ SEE ALSO
|
|
88
114
|
|
89
115
|
|
90
116
|
|
91
|
-
|
117
|
+
July 2020 BUNDLE-GEM(1)
|