bundler 1.11.1 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bundler might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/CHANGELOG.md +2125 -840
- data/LICENSE.md +18 -19
- data/README.md +33 -11
- data/bundler.gemspec +34 -21
- data/exe/bundle +36 -6
- data/exe/bundler +2 -18
- data/lib/bundler.rb +435 -160
- data/lib/bundler/build_metadata.rb +45 -0
- data/lib/bundler/capistrano.rb +9 -3
- data/lib/bundler/cli.rb +550 -130
- data/lib/bundler/cli/add.rb +47 -0
- data/lib/bundler/cli/binstubs.rb +26 -10
- data/lib/bundler/cli/cache.rb +25 -17
- data/lib/bundler/cli/check.rb +8 -7
- data/lib/bundler/cli/clean.rb +8 -8
- data/lib/bundler/cli/common.rb +69 -9
- data/lib/bundler/cli/config.rb +170 -76
- data/lib/bundler/cli/console.rb +6 -1
- data/lib/bundler/cli/doctor.rb +140 -0
- data/lib/bundler/cli/exec.rb +63 -21
- data/lib/bundler/cli/fund.rb +36 -0
- data/lib/bundler/cli/gem.rb +158 -42
- data/lib/bundler/cli/info.rb +73 -0
- data/lib/bundler/cli/init.rb +22 -7
- data/lib/bundler/cli/inject.rb +38 -10
- data/lib/bundler/cli/install.rb +139 -104
- data/lib/bundler/cli/issue.rb +40 -0
- data/lib/bundler/cli/list.rb +60 -0
- data/lib/bundler/cli/lock.rb +27 -5
- data/lib/bundler/cli/open.rb +13 -5
- data/lib/bundler/cli/outdated.rb +251 -46
- data/lib/bundler/cli/platform.rb +6 -2
- data/lib/bundler/cli/plugin.rb +41 -0
- data/lib/bundler/cli/pristine.rb +52 -0
- data/lib/bundler/cli/remove.rb +18 -0
- data/lib/bundler/cli/show.rb +5 -4
- data/lib/bundler/cli/update.rb +67 -26
- data/lib/bundler/cli/viz.rb +11 -6
- data/lib/bundler/compact_index_client.rb +125 -0
- data/lib/bundler/compact_index_client/cache.rb +110 -0
- data/lib/bundler/compact_index_client/gem_parser.rb +28 -0
- data/lib/bundler/compact_index_client/updater.rb +104 -0
- data/lib/bundler/constants.rb +2 -0
- data/lib/bundler/current_ruby.rb +51 -174
- data/lib/bundler/definition.rb +533 -216
- data/lib/bundler/dep_proxy.rb +18 -8
- data/lib/bundler/dependency.rb +39 -12
- data/lib/bundler/deployment.rb +7 -0
- data/lib/bundler/deprecate.rb +31 -2
- data/lib/bundler/dsl.rb +188 -91
- data/lib/bundler/endpoint_specification.rb +51 -10
- data/lib/bundler/env.rb +116 -48
- data/lib/bundler/environment_preserver.rb +82 -0
- data/lib/bundler/errors.rb +108 -31
- data/lib/bundler/feature_flag.rb +60 -0
- data/lib/bundler/fetcher.rb +81 -52
- data/lib/bundler/fetcher/base.rb +15 -3
- data/lib/bundler/fetcher/compact_index.rb +140 -0
- data/lib/bundler/fetcher/dependency.rb +36 -42
- data/lib/bundler/fetcher/downloader.rb +39 -12
- data/lib/bundler/fetcher/index.rb +34 -9
- data/lib/bundler/friendly_errors.rb +132 -88
- data/lib/bundler/gem_helper.rb +92 -50
- data/lib/bundler/gem_helpers.rb +90 -5
- data/lib/bundler/gem_tasks.rb +3 -1
- data/lib/bundler/gem_version_promoter.rb +190 -0
- data/lib/bundler/gemdeps.rb +29 -0
- data/lib/bundler/graph.rb +20 -41
- data/lib/bundler/index.rb +74 -57
- data/lib/bundler/injector.rb +242 -31
- data/lib/bundler/inline.rb +49 -23
- data/lib/bundler/installer.rb +190 -74
- data/lib/bundler/installer/gem_installer.rb +33 -20
- data/lib/bundler/installer/parallel_installer.rb +201 -97
- data/lib/bundler/installer/standalone.rb +10 -6
- data/lib/bundler/lazy_specification.rb +74 -10
- data/lib/bundler/lockfile_generator.rb +95 -0
- data/lib/bundler/lockfile_parser.rb +126 -74
- data/lib/bundler/{ssl_certs → man}/.document +0 -0
- data/lib/bundler/man/bundle-add.1 +66 -0
- data/lib/bundler/man/bundle-add.1.ronn +46 -0
- data/lib/bundler/man/bundle-binstubs.1 +42 -0
- data/lib/bundler/man/bundle-binstubs.1.ronn +41 -0
- data/lib/bundler/man/bundle-cache.1 +55 -0
- data/{man/bundle-package.ronn → lib/bundler/man/bundle-cache.1.ronn} +22 -16
- data/lib/bundler/man/bundle-check.1 +31 -0
- data/lib/bundler/man/bundle-check.1.ronn +26 -0
- data/lib/bundler/man/bundle-clean.1 +24 -0
- data/lib/bundler/man/bundle-clean.1.ronn +18 -0
- data/lib/bundler/man/bundle-config.1 +488 -0
- data/lib/bundler/man/bundle-config.1.ronn +388 -0
- data/lib/bundler/man/bundle-doctor.1 +44 -0
- data/lib/bundler/man/bundle-doctor.1.ronn +33 -0
- data/lib/bundler/man/bundle-exec.1 +165 -0
- data/{man/bundle-exec.ronn → lib/bundler/man/bundle-exec.1.ronn} +20 -4
- data/lib/bundler/man/bundle-gem.1 +102 -0
- data/{man/bundle-gem.ronn → lib/bundler/man/bundle-gem.1.ronn} +37 -13
- data/lib/bundler/man/bundle-info.1 +20 -0
- data/lib/bundler/man/bundle-info.1.ronn +17 -0
- data/lib/bundler/man/bundle-init.1 +25 -0
- data/lib/bundler/man/bundle-init.1.ronn +29 -0
- data/lib/bundler/man/bundle-inject.1 +33 -0
- data/lib/bundler/man/bundle-inject.1.ronn +22 -0
- data/lib/bundler/man/bundle-install.1 +338 -0
- data/{man/bundle-install.ronn → lib/bundler/man/bundle-install.1.ronn} +82 -76
- data/lib/bundler/man/bundle-list.1 +50 -0
- data/lib/bundler/man/bundle-list.1.ronn +33 -0
- data/lib/bundler/man/bundle-lock.1 +84 -0
- data/{man/bundle-lock.ronn → lib/bundler/man/bundle-lock.1.ronn} +47 -0
- data/lib/bundler/man/bundle-open.1 +32 -0
- data/lib/bundler/man/bundle-open.1.ronn +19 -0
- data/lib/bundler/man/bundle-outdated.1 +155 -0
- data/lib/bundler/man/bundle-outdated.1.ronn +111 -0
- data/lib/bundler/man/bundle-platform.1 +61 -0
- data/{man/bundle-platform.ronn → lib/bundler/man/bundle-platform.1.ronn} +1 -1
- data/lib/bundler/man/bundle-pristine.1 +34 -0
- data/lib/bundler/man/bundle-pristine.1.ronn +34 -0
- data/lib/bundler/man/bundle-remove.1 +31 -0
- data/lib/bundler/man/bundle-remove.1.ronn +23 -0
- data/lib/bundler/man/bundle-show.1 +23 -0
- data/lib/bundler/man/bundle-show.1.ronn +21 -0
- data/lib/bundler/man/bundle-update.1 +394 -0
- data/lib/bundler/man/bundle-update.1.ronn +350 -0
- data/lib/bundler/man/bundle-viz.1 +39 -0
- data/lib/bundler/man/bundle-viz.1.ronn +30 -0
- data/lib/bundler/man/bundle.1 +136 -0
- data/lib/bundler/man/bundle.1.ronn +111 -0
- data/lib/bundler/man/gemfile.5 +686 -0
- data/{man → lib/bundler/man}/gemfile.5.ronn +117 -95
- data/lib/bundler/man/index.txt +25 -0
- data/lib/bundler/match_platform.rb +15 -4
- data/lib/bundler/mirror.rb +223 -0
- data/lib/bundler/plugin.rb +330 -0
- data/lib/bundler/plugin/api.rb +81 -0
- data/lib/bundler/plugin/api/source.rb +304 -0
- data/lib/bundler/plugin/dsl.rb +53 -0
- data/lib/bundler/plugin/events.rb +61 -0
- data/lib/bundler/plugin/index.rb +182 -0
- data/lib/bundler/plugin/installer.rb +109 -0
- data/lib/bundler/plugin/installer/git.rb +38 -0
- data/lib/bundler/plugin/installer/rubygems.rb +27 -0
- data/lib/bundler/plugin/source_list.rb +27 -0
- data/lib/bundler/process_lock.rb +24 -0
- data/lib/bundler/psyched_yaml.rb +2 -6
- data/lib/bundler/remote_specification.rb +42 -9
- data/lib/bundler/resolver.rb +312 -225
- data/lib/bundler/resolver/spec_group.rb +122 -0
- data/lib/bundler/retry.rb +11 -5
- data/lib/bundler/ruby_dsl.rb +9 -2
- data/lib/bundler/ruby_version.rb +84 -61
- data/lib/bundler/rubygems_ext.rb +92 -53
- data/lib/bundler/rubygems_gem_installer.rb +84 -0
- data/lib/bundler/rubygems_integration.rb +320 -395
- data/lib/bundler/runtime.rb +87 -75
- data/lib/bundler/settings.rb +297 -119
- data/lib/bundler/settings/validator.rb +102 -0
- data/lib/bundler/setup.rb +13 -12
- data/lib/bundler/shared_helpers.rb +234 -53
- data/lib/bundler/similarity_detector.rb +5 -3
- data/lib/bundler/source.rb +63 -4
- data/lib/bundler/source/gemspec.rb +18 -0
- data/lib/bundler/source/git.rb +97 -50
- data/lib/bundler/source/git/git_proxy.rb +138 -65
- data/lib/bundler/source/metadata.rb +67 -0
- data/lib/bundler/source/path.rb +83 -47
- data/lib/bundler/source/path/installer.rb +42 -11
- data/lib/bundler/source/rubygems.rb +231 -116
- data/lib/bundler/source/rubygems/remote.rb +30 -1
- data/lib/bundler/source_list.rb +103 -21
- data/lib/bundler/spec_set.rb +96 -51
- data/lib/bundler/stub_specification.rb +87 -4
- data/lib/bundler/templates/.document +1 -0
- data/lib/bundler/templates/Executable +14 -1
- data/lib/bundler/templates/Executable.bundler +114 -0
- data/lib/bundler/templates/Executable.standalone +6 -4
- data/lib/bundler/templates/Gemfile +4 -1
- data/lib/bundler/templates/gems.rb +8 -0
- data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +79 -44
- data/lib/bundler/templates/newgem/Gemfile.tt +18 -2
- data/lib/bundler/templates/newgem/LICENSE.txt.tt +1 -1
- data/lib/bundler/templates/newgem/README.md.tt +16 -10
- data/lib/bundler/templates/newgem/Rakefile.tt +22 -8
- data/lib/bundler/templates/newgem/bin/console.tt +2 -1
- data/lib/bundler/templates/newgem/circleci/config.yml.tt +13 -0
- data/lib/bundler/templates/newgem/ext/newgem/extconf.rb.tt +2 -0
- data/lib/bundler/templates/newgem/ext/newgem/newgem.c.tt +4 -4
- data/lib/bundler/templates/newgem/ext/newgem/newgem.h.tt +3 -3
- data/lib/bundler/templates/newgem/github/workflows/main.yml.tt +18 -0
- data/lib/bundler/templates/newgem/gitignore.tt +5 -1
- data/lib/bundler/templates/newgem/gitlab-ci.yml.tt +9 -0
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +9 -6
- data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +6 -4
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +27 -28
- data/lib/bundler/templates/newgem/rspec.tt +1 -0
- data/lib/bundler/templates/newgem/rubocop.yml.tt +13 -0
- data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +4 -4
- data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +15 -2
- data/lib/bundler/templates/newgem/test/{newgem_test.rb.tt → minitest/newgem_test.rb.tt} +3 -1
- data/lib/bundler/templates/newgem/test/minitest/test_helper.rb.tt +6 -0
- data/lib/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +15 -0
- data/lib/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +6 -0
- data/lib/bundler/templates/newgem/{.travis.yml.tt → travis.yml.tt} +2 -0
- data/lib/bundler/ui.rb +5 -3
- data/lib/bundler/ui/rg_proxy.rb +3 -1
- data/lib/bundler/ui/shell.rb +54 -21
- data/lib/bundler/ui/silent.rb +26 -1
- data/lib/bundler/uri_credentials_filter.rb +43 -0
- data/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +161 -0
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/monotonic_time.rb +66 -0
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +176 -0
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +3 -0
- data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1764 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo.rb +11 -5
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +57 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +81 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +113 -134
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +36 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +66 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +62 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +63 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +61 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +126 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +46 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +36 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +158 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +82 -8
- data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +4 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +2 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +6 -2
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +555 -150
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +6 -3
- data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +19 -12
- data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/persistent.rb +310 -467
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +40 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +53 -0
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +79 -0
- data/lib/bundler/vendor/thor/lib/thor.rb +58 -25
- data/lib/bundler/vendor/thor/lib/thor/actions.rb +50 -33
- data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +3 -2
- data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +5 -3
- data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +9 -19
- data/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +16 -8
- data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +79 -22
- data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +33 -20
- data/lib/bundler/vendor/thor/lib/thor/base.rb +110 -67
- data/lib/bundler/vendor/thor/lib/thor/command.rb +33 -24
- data/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +21 -1
- data/lib/bundler/vendor/thor/lib/thor/error.rb +81 -3
- data/lib/bundler/vendor/thor/lib/thor/group.rb +16 -16
- data/lib/bundler/vendor/thor/lib/thor/invocation.rb +5 -5
- data/lib/bundler/vendor/thor/lib/thor/line_editor.rb +2 -2
- data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +2 -0
- data/lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb +6 -6
- data/lib/bundler/vendor/thor/lib/thor/nested_context.rb +29 -0
- data/lib/bundler/vendor/thor/lib/thor/parser.rb +4 -4
- data/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +4 -7
- data/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +18 -18
- data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +60 -26
- data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +31 -13
- data/lib/bundler/vendor/thor/lib/thor/rake_compat.rb +1 -0
- data/lib/bundler/vendor/thor/lib/thor/runner.rb +42 -39
- data/lib/bundler/vendor/thor/lib/thor/shell.rb +5 -5
- data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +109 -39
- data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +7 -3
- data/lib/bundler/vendor/thor/lib/thor/shell/html.rb +5 -5
- data/lib/bundler/vendor/thor/lib/thor/util.rb +26 -9
- data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
- data/lib/bundler/vendor/tmpdir/lib/tmpdir.rb +154 -0
- data/lib/bundler/vendor/uri/lib/uri.rb +104 -0
- data/lib/bundler/vendor/uri/lib/uri/common.rb +744 -0
- data/lib/bundler/vendor/uri/lib/uri/file.rb +94 -0
- data/lib/bundler/vendor/uri/lib/uri/ftp.rb +267 -0
- data/lib/bundler/vendor/uri/lib/uri/generic.rb +1568 -0
- data/lib/bundler/vendor/uri/lib/uri/http.rb +88 -0
- data/lib/bundler/vendor/uri/lib/uri/https.rb +23 -0
- data/lib/bundler/vendor/uri/lib/uri/ldap.rb +261 -0
- data/lib/bundler/vendor/uri/lib/uri/ldaps.rb +21 -0
- data/lib/bundler/vendor/uri/lib/uri/mailto.rb +294 -0
- data/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +546 -0
- data/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +125 -0
- data/lib/bundler/vendor/uri/lib/uri/version.rb +6 -0
- data/lib/bundler/vendored_fileutils.rb +4 -0
- data/lib/bundler/vendored_molinillo.rb +3 -1
- data/lib/bundler/vendored_persistent.rb +45 -9
- data/lib/bundler/vendored_thor.rb +8 -3
- data/lib/bundler/vendored_tmpdir.rb +4 -0
- data/lib/bundler/vendored_uri.rb +4 -0
- data/lib/bundler/version.rb +7 -4
- data/lib/bundler/version_ranges.rb +122 -0
- data/lib/bundler/vlad.rb +8 -2
- data/lib/bundler/worker.rb +38 -6
- data/lib/bundler/yaml_serializer.rb +89 -0
- metadata +164 -158
- data/.gitignore +0 -16
- data/.rspec +0 -3
- data/.rubocop.yml +0 -105
- data/.rubocop_todo.yml +0 -120
- data/.travis.yml +0 -97
- data/CODE_OF_CONDUCT.md +0 -42
- data/CONTRIBUTING.md +0 -32
- data/DEVELOPMENT.md +0 -118
- data/ISSUES.md +0 -96
- data/Rakefile +0 -309
- data/bin/rake +0 -14
- data/bin/rspec +0 -10
- data/bin/rubocop +0 -11
- data/exe/bundle_ruby +0 -60
- data/lib/bundler/cli/package.rb +0 -45
- data/lib/bundler/environment.rb +0 -41
- data/lib/bundler/gem_path_manipulation.rb +0 -8
- data/lib/bundler/gem_remote_fetcher.rb +0 -41
- data/lib/bundler/ssl_certs/AddTrustExternalCARoot-2048.pem +0 -25
- data/lib/bundler/ssl_certs/AddTrustExternalCARoot.pem +0 -32
- data/lib/bundler/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem +0 -14
- data/lib/bundler/ssl_certs/DigiCertHighAssuranceEVRootCA.pem +0 -23
- data/lib/bundler/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem +0 -28
- data/lib/bundler/ssl_certs/GeoTrustGlobalCA.pem +0 -20
- data/lib/bundler/ssl_certs/certificate_manager.rb +0 -64
- data/lib/bundler/templates/newgem/test/test_helper.rb.tt +0 -4
- data/lib/bundler/vendor/net/http/faster.rb +0 -26
- data/lib/bundler/vendor/net/http/persistent/ssl_reuse.rb +0 -128
- data/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +0 -10
- data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +0 -98
- data/man/bundle-config.ronn +0 -187
- data/man/bundle-update.ronn +0 -188
- data/man/bundle.ronn +0 -98
- data/man/index.txt +0 -8
@@ -0,0 +1,29 @@
|
|
1
|
+
bundle-init(1) -- Generates a Gemfile into the current working directory
|
2
|
+
========================================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle init` [--gemspec=FILE]
|
7
|
+
|
8
|
+
## DESCRIPTION
|
9
|
+
|
10
|
+
Init generates a default [`Gemfile(5)`][Gemfile(5)] in the current working directory. When
|
11
|
+
adding a [`Gemfile(5)`][Gemfile(5)] to a gem with a gemspec, the `--gemspec` option will
|
12
|
+
automatically add each dependency listed in the gemspec file to the newly
|
13
|
+
created [`Gemfile(5)`][Gemfile(5)].
|
14
|
+
|
15
|
+
## OPTIONS
|
16
|
+
|
17
|
+
* `--gemspec`:
|
18
|
+
Use the specified .gemspec to create the [`Gemfile(5)`][Gemfile(5)]
|
19
|
+
|
20
|
+
## FILES
|
21
|
+
|
22
|
+
Included in the default [`Gemfile(5)`][Gemfile(5)]
|
23
|
+
generated is the line `# frozen_string_literal: true`. This is a magic comment
|
24
|
+
supported for the first time in Ruby 2.3. The presence of this line
|
25
|
+
results in all string literals in the file being implicitly frozen.
|
26
|
+
|
27
|
+
## SEE ALSO
|
28
|
+
|
29
|
+
[Gemfile(5)](https://bundler.io/man/gemfile.5.html)
|
@@ -0,0 +1,33 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "BUNDLE\-INJECT" "1" "November 2020" "" ""
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBbundle\-inject\fR \- Add named gem(s) with version requirements to Gemfile
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fBbundle inject\fR [GEM] [VERSION]
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
Adds the named gem(s) with their version requirements to the resolved [\fBGemfile(5)\fR][Gemfile(5)]\.
|
14
|
+
.
|
15
|
+
.P
|
16
|
+
This command will add the gem to both your [\fBGemfile(5)\fR][Gemfile(5)] and Gemfile\.lock if it isn\'t listed yet\.
|
17
|
+
.
|
18
|
+
.P
|
19
|
+
Example:
|
20
|
+
.
|
21
|
+
.IP "" 4
|
22
|
+
.
|
23
|
+
.nf
|
24
|
+
|
25
|
+
bundle install
|
26
|
+
bundle inject \'rack\' \'> 0\'
|
27
|
+
.
|
28
|
+
.fi
|
29
|
+
.
|
30
|
+
.IP "" 0
|
31
|
+
.
|
32
|
+
.P
|
33
|
+
This will inject the \'rack\' gem with a version greater than 0 in your [\fBGemfile(5)\fR][Gemfile(5)] and Gemfile\.lock
|
@@ -0,0 +1,22 @@
|
|
1
|
+
bundle-inject(1) -- Add named gem(s) with version requirements to Gemfile
|
2
|
+
=========================================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle inject` [GEM] [VERSION]
|
7
|
+
|
8
|
+
## DESCRIPTION
|
9
|
+
|
10
|
+
Adds the named gem(s) with their version requirements to the resolved
|
11
|
+
[`Gemfile(5)`][Gemfile(5)].
|
12
|
+
|
13
|
+
This command will add the gem to both your [`Gemfile(5)`][Gemfile(5)] and Gemfile.lock if it
|
14
|
+
isn't listed yet.
|
15
|
+
|
16
|
+
Example:
|
17
|
+
|
18
|
+
bundle install
|
19
|
+
bundle inject 'rack' '> 0'
|
20
|
+
|
21
|
+
This will inject the 'rack' gem with a version greater than 0 in your
|
22
|
+
[`Gemfile(5)`][Gemfile(5)] and Gemfile.lock
|
@@ -0,0 +1,338 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "BUNDLE\-INSTALL" "1" "November 2020" "" ""
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBbundle\-install\fR \- Install the dependencies specified in your Gemfile
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fBbundle install\fR [\-\-binstubs[=DIRECTORY]] [\-\-clean] [\-\-deployment] [\-\-frozen] [\-\-full\-index] [\-\-gemfile=GEMFILE] [\-\-jobs=NUMBER] [\-\-local] [\-\-no\-cache] [\-\-no\-prune] [\-\-path PATH] [\-\-quiet] [\-\-redownload] [\-\-retry=NUMBER] [\-\-shebang] [\-\-standalone[=GROUP[ GROUP\.\.\.]]] [\-\-system] [\-\-trust\-policy=POLICY] [\-\-with=GROUP[ GROUP\.\.\.]] [\-\-without=GROUP[ GROUP\.\.\.]]
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
Install the gems specified in your Gemfile(5)\. If this is the first time you run bundle install (and a \fBGemfile\.lock\fR does not exist), Bundler will fetch all remote sources, resolve dependencies and install all needed gems\.
|
14
|
+
.
|
15
|
+
.P
|
16
|
+
If a \fBGemfile\.lock\fR does exist, and you have not updated your Gemfile(5), Bundler will fetch all remote sources, but use the dependencies specified in the \fBGemfile\.lock\fR instead of resolving dependencies\.
|
17
|
+
.
|
18
|
+
.P
|
19
|
+
If a \fBGemfile\.lock\fR does exist, and you have updated your Gemfile(5), Bundler will use the dependencies in the \fBGemfile\.lock\fR for all gems that you did not update, but will re\-resolve the dependencies of gems that you did update\. You can find more information about this update process below under \fICONSERVATIVE UPDATING\fR\.
|
20
|
+
.
|
21
|
+
.SH "OPTIONS"
|
22
|
+
The \fB\-\-clean\fR, \fB\-\-deployment\fR, \fB\-\-frozen\fR, \fB\-\-no\-prune\fR, \fB\-\-path\fR, \fB\-\-shebang\fR, \fB\-\-system\fR, \fB\-\-without\fR and \fB\-\-with\fR options are deprecated because they only make sense if they are applied to every subsequent \fBbundle install\fR run automatically and that requires \fBbundler\fR to silently remember them\. Since \fBbundler\fR will no longer remember CLI flags in future versions, \fBbundle config\fR (see bundle\-config(1)) should be used to apply them permanently\.
|
23
|
+
.
|
24
|
+
.TP
|
25
|
+
\fB\-\-binstubs[=<directory>]\fR
|
26
|
+
Binstubs are scripts that wrap around executables\. Bundler creates a small Ruby file (a binstub) that loads Bundler, runs the command, and puts it in \fBbin/\fR\. This lets you link the binstub inside of an application to the exact gem version the application needs\.
|
27
|
+
.
|
28
|
+
.IP
|
29
|
+
Creates a directory (defaults to \fB~/bin\fR) and places any executables from the gem there\. These executables run in Bundler\'s context\. If used, you might add this directory to your environment\'s \fBPATH\fR variable\. For instance, if the \fBrails\fR gem comes with a \fBrails\fR executable, this flag will create a \fBbin/rails\fR executable that ensures that all referred dependencies will be resolved using the bundled gems\.
|
30
|
+
.
|
31
|
+
.TP
|
32
|
+
\fB\-\-clean\fR
|
33
|
+
On finishing the installation Bundler is going to remove any gems not present in the current Gemfile(5)\. Don\'t worry, gems currently in use will not be removed\.
|
34
|
+
.
|
35
|
+
.IP
|
36
|
+
This option is deprecated in favor of the \fBclean\fR setting\.
|
37
|
+
.
|
38
|
+
.TP
|
39
|
+
\fB\-\-deployment\fR
|
40
|
+
In \fIdeployment mode\fR, Bundler will \'roll\-out\' the bundle for production or CI use\. Please check carefully if you want to have this option enabled in your development environment\.
|
41
|
+
.
|
42
|
+
.IP
|
43
|
+
This option is deprecated in favor of the \fBdeployment\fR setting\.
|
44
|
+
.
|
45
|
+
.TP
|
46
|
+
\fB\-\-redownload\fR
|
47
|
+
Force download every gem, even if the required versions are already available locally\.
|
48
|
+
.
|
49
|
+
.TP
|
50
|
+
\fB\-\-frozen\fR
|
51
|
+
Do not allow the Gemfile\.lock to be updated after this install\. Exits non\-zero if there are going to be changes to the Gemfile\.lock\.
|
52
|
+
.
|
53
|
+
.IP
|
54
|
+
This option is deprecated in favor of the \fBfrozen\fR setting\.
|
55
|
+
.
|
56
|
+
.TP
|
57
|
+
\fB\-\-full\-index\fR
|
58
|
+
Bundler will not call Rubygems\' API endpoint (default) but download and cache a (currently big) index file of all gems\. Performance can be improved for large bundles that seldom change by enabling this option\.
|
59
|
+
.
|
60
|
+
.TP
|
61
|
+
\fB\-\-gemfile=<gemfile>\fR
|
62
|
+
The location of the Gemfile(5) which Bundler should use\. This defaults to a Gemfile(5) in the current working directory\. In general, Bundler will assume that the location of the Gemfile(5) is also the project\'s root and will try to find \fBGemfile\.lock\fR and \fBvendor/cache\fR relative to this location\.
|
63
|
+
.
|
64
|
+
.TP
|
65
|
+
\fB\-\-jobs=[<number>]\fR, \fB\-j[<number>]\fR
|
66
|
+
The maximum number of parallel download and install jobs\. The default is \fB1\fR\.
|
67
|
+
.
|
68
|
+
.TP
|
69
|
+
\fB\-\-local\fR
|
70
|
+
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 an appropriate platform\-specific gem exists on \fBrubygems\.org\fR it will not be found\.
|
71
|
+
.
|
72
|
+
.TP
|
73
|
+
\fB\-\-no\-cache\fR
|
74
|
+
Do not update the cache in \fBvendor/cache\fR with the newly bundled gems\. This does not remove any gems in the cache but keeps the newly bundled gems from being cached during the install\.
|
75
|
+
.
|
76
|
+
.TP
|
77
|
+
\fB\-\-no\-prune\fR
|
78
|
+
Don\'t remove stale gems from the cache when the installation finishes\.
|
79
|
+
.
|
80
|
+
.IP
|
81
|
+
This option is deprecated in favor of the \fBno_prune\fR setting\.
|
82
|
+
.
|
83
|
+
.TP
|
84
|
+
\fB\-\-path=<path>\fR
|
85
|
+
The location to install the specified gems to\. This defaults to Rubygems\' setting\. Bundler shares this location with Rubygems, \fBgem install \.\.\.\fR will have gem installed there, too\. Therefore, gems installed without a \fB\-\-path \.\.\.\fR setting will show up by calling \fBgem list\fR\. Accordingly, gems installed to other locations will not get listed\.
|
86
|
+
.
|
87
|
+
.IP
|
88
|
+
This option is deprecated in favor of the \fBpath\fR setting\.
|
89
|
+
.
|
90
|
+
.TP
|
91
|
+
\fB\-\-quiet\fR
|
92
|
+
Do not print progress information to the standard output\. Instead, Bundler will exit using a status code (\fB$?\fR)\.
|
93
|
+
.
|
94
|
+
.TP
|
95
|
+
\fB\-\-retry=[<number>]\fR
|
96
|
+
Retry failed network or git requests for \fInumber\fR times\.
|
97
|
+
.
|
98
|
+
.TP
|
99
|
+
\fB\-\-shebang=<ruby\-executable>\fR
|
100
|
+
Uses the specified ruby executable (usually \fBruby\fR) to execute the scripts created with \fB\-\-binstubs\fR\. In addition, if you use \fB\-\-binstubs\fR together with \fB\-\-shebang jruby\fR these executables will be changed to execute \fBjruby\fR instead\.
|
101
|
+
.
|
102
|
+
.IP
|
103
|
+
This option is deprecated in favor of the \fBshebang\fR setting\.
|
104
|
+
.
|
105
|
+
.TP
|
106
|
+
\fB\-\-standalone[=<list>]\fR
|
107
|
+
Makes a bundle that can work without depending on Rubygems or Bundler at runtime\. A space separated list of groups to install has to be specified\. Bundler creates a directory named \fBbundle\fR and installs the bundle there\. It also generates a \fBbundle/bundler/setup\.rb\fR file to replace Bundler\'s own setup in the manner required\. Using this option implicitly sets \fBpath\fR, which is a [remembered option][REMEMBERED OPTIONS]\.
|
108
|
+
.
|
109
|
+
.TP
|
110
|
+
\fB\-\-system\fR
|
111
|
+
Installs the gems specified in the bundle to the system\'s Rubygems location\. This overrides any previous configuration of \fB\-\-path\fR\.
|
112
|
+
.
|
113
|
+
.IP
|
114
|
+
This option is deprecated in favor of the \fBsystem\fR setting\.
|
115
|
+
.
|
116
|
+
.TP
|
117
|
+
\fB\-\-trust\-policy=[<policy>]\fR
|
118
|
+
Apply the Rubygems security policy \fIpolicy\fR, where policy is one of \fBHighSecurity\fR, \fBMediumSecurity\fR, \fBLowSecurity\fR, \fBAlmostNoSecurity\fR, or \fBNoSecurity\fR\. For more details, please see the Rubygems signing documentation linked below in \fISEE ALSO\fR\.
|
119
|
+
.
|
120
|
+
.TP
|
121
|
+
\fB\-\-with=<list>\fR
|
122
|
+
A space\-separated list of groups referencing gems to install\. If an optional group is given it is installed\. If a group is given that is in the remembered list of groups given to \-\-without, it is removed from that list\.
|
123
|
+
.
|
124
|
+
.IP
|
125
|
+
This option is deprecated in favor of the \fBwith\fR setting\.
|
126
|
+
.
|
127
|
+
.TP
|
128
|
+
\fB\-\-without=<list>\fR
|
129
|
+
A space\-separated list of groups referencing gems to skip during installation\. If a group is given that is in the remembered list of groups given to \-\-with, it is removed from that list\.
|
130
|
+
.
|
131
|
+
.IP
|
132
|
+
This option is deprecated in favor of the \fBwithout\fR setting\.
|
133
|
+
.
|
134
|
+
.SH "DEPLOYMENT MODE"
|
135
|
+
Bundler\'s defaults are optimized for development\. To switch to defaults optimized for deployment and for CI, use the \fB\-\-deployment\fR flag\. Do not activate deployment mode on development machines, as it will cause an error when the Gemfile(5) is modified\.
|
136
|
+
.
|
137
|
+
.IP "1." 4
|
138
|
+
A \fBGemfile\.lock\fR is required\.
|
139
|
+
.
|
140
|
+
.IP
|
141
|
+
To ensure that the same versions of the gems you developed with and tested with are also used in deployments, a \fBGemfile\.lock\fR is required\.
|
142
|
+
.
|
143
|
+
.IP
|
144
|
+
This is mainly to ensure that you remember to check your \fBGemfile\.lock\fR into version control\.
|
145
|
+
.
|
146
|
+
.IP "2." 4
|
147
|
+
The \fBGemfile\.lock\fR must be up to date
|
148
|
+
.
|
149
|
+
.IP
|
150
|
+
In development, you can modify your Gemfile(5) and re\-run \fBbundle install\fR to \fIconservatively update\fR your \fBGemfile\.lock\fR snapshot\.
|
151
|
+
.
|
152
|
+
.IP
|
153
|
+
In deployment, your \fBGemfile\.lock\fR should be up\-to\-date with changes made in your Gemfile(5)\.
|
154
|
+
.
|
155
|
+
.IP "3." 4
|
156
|
+
Gems are installed to \fBvendor/bundle\fR not your default system location
|
157
|
+
.
|
158
|
+
.IP
|
159
|
+
In development, it\'s convenient to share the gems used in your application with other applications and other scripts that run on the system\.
|
160
|
+
.
|
161
|
+
.IP
|
162
|
+
In deployment, isolation is a more important default\. In addition, the user deploying the application may not have permission to install gems to the system, or the web server may not have permission to read them\.
|
163
|
+
.
|
164
|
+
.IP
|
165
|
+
As a result, \fBbundle install \-\-deployment\fR installs gems to the \fBvendor/bundle\fR directory in the application\. This may be overridden using the \fB\-\-path\fR option\.
|
166
|
+
.
|
167
|
+
.IP "" 0
|
168
|
+
.
|
169
|
+
.SH "SUDO USAGE"
|
170
|
+
By default, Bundler installs gems to the same location as \fBgem install\fR\.
|
171
|
+
.
|
172
|
+
.P
|
173
|
+
In some cases, that location may not be writable by your Unix user\. In that case, Bundler will stage everything in a temporary directory, then ask you for your \fBsudo\fR password in order to copy the gems into their system location\.
|
174
|
+
.
|
175
|
+
.P
|
176
|
+
From your perspective, this is identical to installing the gems directly into the system\.
|
177
|
+
.
|
178
|
+
.P
|
179
|
+
You should never use \fBsudo bundle install\fR\. This is because several other steps in \fBbundle install\fR must be performed as the current user:
|
180
|
+
.
|
181
|
+
.IP "\(bu" 4
|
182
|
+
Updating your \fBGemfile\.lock\fR
|
183
|
+
.
|
184
|
+
.IP "\(bu" 4
|
185
|
+
Updating your \fBvendor/cache\fR, if necessary
|
186
|
+
.
|
187
|
+
.IP "\(bu" 4
|
188
|
+
Checking out private git repositories using your user\'s SSH keys
|
189
|
+
.
|
190
|
+
.IP "" 0
|
191
|
+
.
|
192
|
+
.P
|
193
|
+
Of these three, the first two could theoretically be performed by \fBchown\fRing the resulting files to \fB$SUDO_USER\fR\. The third, however, can only be performed by invoking the \fBgit\fR command as the current user\. Therefore, git gems are downloaded and installed into \fB~/\.bundle\fR rather than $GEM_HOME or $BUNDLE_PATH\.
|
194
|
+
.
|
195
|
+
.P
|
196
|
+
As a result, you should run \fBbundle install\fR as the current user, and Bundler will ask for your password if it is needed to put the gems into their final location\.
|
197
|
+
.
|
198
|
+
.SH "INSTALLING GROUPS"
|
199
|
+
By default, \fBbundle install\fR will install all gems in all groups in your Gemfile(5), except those declared for a different platform\.
|
200
|
+
.
|
201
|
+
.P
|
202
|
+
However, you can explicitly tell Bundler to skip installing certain groups with the \fB\-\-without\fR option\. This option takes a space\-separated list of groups\.
|
203
|
+
.
|
204
|
+
.P
|
205
|
+
While the \fB\-\-without\fR option will skip \fIinstalling\fR the gems in the specified groups, it will still \fIdownload\fR those gems and use them to resolve the dependencies of every gem in your Gemfile(5)\.
|
206
|
+
.
|
207
|
+
.P
|
208
|
+
This is so that installing a different set of groups on another machine (such as a production server) will not change the gems and versions that you have already developed and tested against\.
|
209
|
+
.
|
210
|
+
.P
|
211
|
+
\fBBundler offers a rock\-solid guarantee that the third\-party code you are running in development and testing is also the third\-party code you are running in production\. You can choose to exclude some of that code in different environments, but you will never be caught flat\-footed by different versions of third\-party code being used in different environments\.\fR
|
212
|
+
.
|
213
|
+
.P
|
214
|
+
For a simple illustration, consider the following Gemfile(5):
|
215
|
+
.
|
216
|
+
.IP "" 4
|
217
|
+
.
|
218
|
+
.nf
|
219
|
+
|
220
|
+
source \'https://rubygems\.org\'
|
221
|
+
|
222
|
+
gem \'sinatra\'
|
223
|
+
|
224
|
+
group :production do
|
225
|
+
gem \'rack\-perftools\-profiler\'
|
226
|
+
end
|
227
|
+
.
|
228
|
+
.fi
|
229
|
+
.
|
230
|
+
.IP "" 0
|
231
|
+
.
|
232
|
+
.P
|
233
|
+
In this case, \fBsinatra\fR depends on any version of Rack (\fB>= 1\.0\fR), while \fBrack\-perftools\-profiler\fR depends on 1\.x (\fB~> 1\.0\fR)\.
|
234
|
+
.
|
235
|
+
.P
|
236
|
+
When you run \fBbundle install \-\-without production\fR in development, we look at the dependencies of \fBrack\-perftools\-profiler\fR as well\. That way, you do not spend all your time developing against Rack 2\.0, using new APIs unavailable in Rack 1\.x, only to have Bundler switch to Rack 1\.2 when the \fBproduction\fR group \fIis\fR used\.
|
237
|
+
.
|
238
|
+
.P
|
239
|
+
This should not cause any problems in practice, because we do not attempt to \fBinstall\fR the gems in the excluded groups, and only evaluate as part of the dependency resolution process\.
|
240
|
+
.
|
241
|
+
.P
|
242
|
+
This also means that you cannot include different versions of the same gem in different groups, because doing so would result in different sets of dependencies used in development and production\. Because of the vagaries of the dependency resolution process, this usually affects more than the gems you list in your Gemfile(5), and can (surprisingly) radically change the gems you are using\.
|
243
|
+
.
|
244
|
+
.SH "THE GEMFILE\.LOCK"
|
245
|
+
When you run \fBbundle install\fR, Bundler will persist the full names and versions of all gems that you used (including dependencies of the gems specified in the Gemfile(5)) into a file called \fBGemfile\.lock\fR\.
|
246
|
+
.
|
247
|
+
.P
|
248
|
+
Bundler uses this file in all subsequent calls to \fBbundle install\fR, which guarantees that you always use the same exact code, even as your application moves across machines\.
|
249
|
+
.
|
250
|
+
.P
|
251
|
+
Because of the way dependency resolution works, even a seemingly small change (for instance, an update to a point\-release of a dependency of a gem in your Gemfile(5)) can result in radically different gems being needed to satisfy all dependencies\.
|
252
|
+
.
|
253
|
+
.P
|
254
|
+
As a result, you \fBSHOULD\fR check your \fBGemfile\.lock\fR into version control, in both applications and gems\. If you do not, every machine that checks out your repository (including your production server) will resolve all dependencies again, which will result in different versions of third\-party code being used if \fBany\fR of the gems in the Gemfile(5) or any of their dependencies have been updated\.
|
255
|
+
.
|
256
|
+
.P
|
257
|
+
When Bundler first shipped, the \fBGemfile\.lock\fR was included in the \fB\.gitignore\fR file included with generated gems\. Over time, however, it became clear that this practice forces the pain of broken dependencies onto new contributors, while leaving existing contributors potentially unaware of the problem\. Since \fBbundle install\fR is usually the first step towards a contribution, the pain of broken dependencies would discourage new contributors from contributing\. As a result, we have revised our guidance for gem authors to now recommend checking in the lock for gems\.
|
258
|
+
.
|
259
|
+
.SH "CONSERVATIVE UPDATING"
|
260
|
+
When you make a change to the Gemfile(5) and then run \fBbundle install\fR, Bundler will update only the gems that you modified\.
|
261
|
+
.
|
262
|
+
.P
|
263
|
+
In other words, if a gem that you \fBdid not modify\fR worked before you called \fBbundle install\fR, it will continue to use the exact same versions of all dependencies as it used before the update\.
|
264
|
+
.
|
265
|
+
.P
|
266
|
+
Let\'s take a look at an example\. Here\'s your original Gemfile(5):
|
267
|
+
.
|
268
|
+
.IP "" 4
|
269
|
+
.
|
270
|
+
.nf
|
271
|
+
|
272
|
+
source \'https://rubygems\.org\'
|
273
|
+
|
274
|
+
gem \'actionpack\', \'2\.3\.8\'
|
275
|
+
gem \'activemerchant\'
|
276
|
+
.
|
277
|
+
.fi
|
278
|
+
.
|
279
|
+
.IP "" 0
|
280
|
+
.
|
281
|
+
.P
|
282
|
+
In this case, both \fBactionpack\fR and \fBactivemerchant\fR depend on \fBactivesupport\fR\. The \fBactionpack\fR gem depends on \fBactivesupport 2\.3\.8\fR and \fBrack ~> 1\.1\.0\fR, while the \fBactivemerchant\fR gem depends on \fBactivesupport >= 2\.3\.2\fR, \fBbraintree >= 2\.0\.0\fR, and \fBbuilder >= 2\.0\.0\fR\.
|
283
|
+
.
|
284
|
+
.P
|
285
|
+
When the dependencies are first resolved, Bundler will select \fBactivesupport 2\.3\.8\fR, which satisfies the requirements of both gems in your Gemfile(5)\.
|
286
|
+
.
|
287
|
+
.P
|
288
|
+
Next, you modify your Gemfile(5) to:
|
289
|
+
.
|
290
|
+
.IP "" 4
|
291
|
+
.
|
292
|
+
.nf
|
293
|
+
|
294
|
+
source \'https://rubygems\.org\'
|
295
|
+
|
296
|
+
gem \'actionpack\', \'3\.0\.0\.rc\'
|
297
|
+
gem \'activemerchant\'
|
298
|
+
.
|
299
|
+
.fi
|
300
|
+
.
|
301
|
+
.IP "" 0
|
302
|
+
.
|
303
|
+
.P
|
304
|
+
The \fBactionpack 3\.0\.0\.rc\fR gem has a number of new dependencies, and updates the \fBactivesupport\fR dependency to \fB= 3\.0\.0\.rc\fR and the \fBrack\fR dependency to \fB~> 1\.2\.1\fR\.
|
305
|
+
.
|
306
|
+
.P
|
307
|
+
When you run \fBbundle install\fR, Bundler notices that you changed the \fBactionpack\fR gem, but not the \fBactivemerchant\fR gem\. It evaluates the gems currently being used to satisfy its requirements:
|
308
|
+
.
|
309
|
+
.TP
|
310
|
+
\fBactivesupport 2\.3\.8\fR
|
311
|
+
also used to satisfy a dependency in \fBactivemerchant\fR, which is not being updated
|
312
|
+
.
|
313
|
+
.TP
|
314
|
+
\fBrack ~> 1\.1\.0\fR
|
315
|
+
not currently being used to satisfy another dependency
|
316
|
+
.
|
317
|
+
.P
|
318
|
+
Because you did not explicitly ask to update \fBactivemerchant\fR, you would not expect it to suddenly stop working after updating \fBactionpack\fR\. However, satisfying the new \fBactivesupport 3\.0\.0\.rc\fR dependency of actionpack requires updating one of its dependencies\.
|
319
|
+
.
|
320
|
+
.P
|
321
|
+
Even though \fBactivemerchant\fR declares a very loose dependency that theoretically matches \fBactivesupport 3\.0\.0\.rc\fR, Bundler treats gems in your Gemfile(5) that have not changed as an atomic unit together with their dependencies\. In this case, the \fBactivemerchant\fR dependency is treated as \fBactivemerchant 1\.7\.1 + activesupport 2\.3\.8\fR, so \fBbundle install\fR will report that it cannot update \fBactionpack\fR\.
|
322
|
+
.
|
323
|
+
.P
|
324
|
+
To explicitly update \fBactionpack\fR, including its dependencies which other gems in the Gemfile(5) still depend on, run \fBbundle update actionpack\fR (see \fBbundle update(1)\fR)\.
|
325
|
+
.
|
326
|
+
.P
|
327
|
+
\fBSummary\fR: In general, after making a change to the Gemfile(5) , you should first try to run \fBbundle install\fR, which will guarantee that no other gem in the Gemfile(5) is impacted by the change\. If that does not work, run bundle update(1) \fIbundle\-update\.1\.html\fR\.
|
328
|
+
.
|
329
|
+
.SH "SEE ALSO"
|
330
|
+
.
|
331
|
+
.IP "\(bu" 4
|
332
|
+
Gem install docs \fIhttp://guides\.rubygems\.org/rubygems\-basics/#installing\-gems\fR
|
333
|
+
.
|
334
|
+
.IP "\(bu" 4
|
335
|
+
Rubygems signing docs \fIhttp://guides\.rubygems\.org/security/\fR
|
336
|
+
.
|
337
|
+
.IP "" 0
|
338
|
+
|
@@ -5,23 +5,24 @@ bundle-install(1) -- Install the dependencies specified in your Gemfile
|
|
5
5
|
|
6
6
|
`bundle install` [--binstubs[=DIRECTORY]]
|
7
7
|
[--clean]
|
8
|
+
[--deployment]
|
9
|
+
[--frozen]
|
8
10
|
[--full-index]
|
9
11
|
[--gemfile=GEMFILE]
|
10
12
|
[--jobs=NUMBER]
|
11
13
|
[--local]
|
12
|
-
[--deployment]
|
13
|
-
[--force]
|
14
14
|
[--no-cache]
|
15
15
|
[--no-prune]
|
16
16
|
[--path PATH]
|
17
|
-
[--system]
|
18
17
|
[--quiet]
|
18
|
+
[--redownload]
|
19
19
|
[--retry=NUMBER]
|
20
20
|
[--shebang]
|
21
21
|
[--standalone[=GROUP[ GROUP...]]]
|
22
|
+
[--system]
|
22
23
|
[--trust-policy=POLICY]
|
23
|
-
[--without=GROUP[ GROUP...]]
|
24
24
|
[--with=GROUP[ GROUP...]]
|
25
|
+
[--without=GROUP[ GROUP...]]
|
25
26
|
|
26
27
|
## DESCRIPTION
|
27
28
|
|
@@ -42,8 +43,20 @@ update process below under [CONSERVATIVE UPDATING][].
|
|
42
43
|
|
43
44
|
## OPTIONS
|
44
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
|
+
|
45
53
|
* `--binstubs[=<directory>]`:
|
46
|
-
|
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
|
47
60
|
gem there. These executables run in Bundler's context. If used, you might add
|
48
61
|
this directory to your environment's `PATH` variable. For instance, if the
|
49
62
|
`rails` gem comes with a `rails` executable, this flag will create a
|
@@ -55,10 +68,29 @@ update process below under [CONSERVATIVE UPDATING][].
|
|
55
68
|
in the current Gemfile(5). Don't worry, gems currently in use will not be
|
56
69
|
removed.
|
57
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
|
+
|
58
90
|
* `--full-index`:
|
59
91
|
Bundler will not call Rubygems' API endpoint (default) but download and cache
|
60
92
|
a (currently big) index file of all gems. Performance can be improved for
|
61
|
-
large bundles that
|
93
|
+
large bundles that seldom change by enabling this option.
|
62
94
|
|
63
95
|
* `--gemfile=<gemfile>`:
|
64
96
|
The location of the Gemfile(5) which Bundler should use. This defaults
|
@@ -67,29 +99,16 @@ update process below under [CONSERVATIVE UPDATING][].
|
|
67
99
|
root and will try to find `Gemfile.lock` and `vendor/cache` relative
|
68
100
|
to this location.
|
69
101
|
|
70
|
-
* `--jobs=[<number>]`:
|
102
|
+
* `--jobs=[<number>]`, `-j[<number>]`:
|
71
103
|
The maximum number of parallel download and install jobs. The default
|
72
104
|
is `1`.
|
73
105
|
|
74
106
|
* `--local`:
|
75
107
|
Do not attempt to connect to `rubygems.org`. Instead, Bundler will use the
|
76
|
-
gems already present in Rubygems' cache or in `vendor/cache`. Note that if
|
108
|
+
gems already present in Rubygems' cache or in `vendor/cache`. Note that if an
|
77
109
|
appropriate platform-specific gem exists on `rubygems.org` it will not be
|
78
110
|
found.
|
79
111
|
|
80
|
-
* `--deployment`:
|
81
|
-
In [deployment mode][DEPLOYMENT MODE], Bundler will 'roll-out' the bundle for
|
82
|
-
production or CI use. Please check carefully if you want to have this option
|
83
|
-
enabled in your development environment.
|
84
|
-
|
85
|
-
* `--force`:
|
86
|
-
Force download every gem, even if the required versions are already available
|
87
|
-
locally.
|
88
|
-
|
89
|
-
* `--system`:
|
90
|
-
Installs the gems specified in the bundle to the system's Rubygems location.
|
91
|
-
This overrides any previous [remembered][REMEMBERED OPTIONS] use of `--path`.
|
92
|
-
|
93
112
|
* `--no-cache`:
|
94
113
|
Do not update the cache in `vendor/cache` with the newly bundled gems. This
|
95
114
|
does not remove any gems in the cache but keeps the newly bundled gems from
|
@@ -98,13 +117,16 @@ update process below under [CONSERVATIVE UPDATING][].
|
|
98
117
|
* `--no-prune`:
|
99
118
|
Don't remove stale gems from the cache when the installation finishes.
|
100
119
|
|
120
|
+
This option is deprecated in favor of the `no_prune` setting.
|
121
|
+
|
101
122
|
* `--path=<path>`:
|
102
123
|
The location to install the specified gems to. This defaults to Rubygems'
|
103
124
|
setting. Bundler shares this location with Rubygems, `gem install ...` will
|
104
125
|
have gem installed there, too. Therefore, gems installed without a
|
105
|
-
`--path ...` setting will show up by calling `gem list`.
|
106
|
-
installed to other locations will not get listed.
|
107
|
-
|
126
|
+
`--path ...` setting will show up by calling `gem list`. Accordingly, gems
|
127
|
+
installed to other locations will not get listed.
|
128
|
+
|
129
|
+
This option is deprecated in favor of the `path` setting.
|
108
130
|
|
109
131
|
* `--quiet`:
|
110
132
|
Do not print progress information to the standard output. Instead, Bundler
|
@@ -119,6 +141,8 @@ update process below under [CONSERVATIVE UPDATING][].
|
|
119
141
|
`--shebang jruby` these executables will be changed to execute `jruby`
|
120
142
|
instead.
|
121
143
|
|
144
|
+
This option is deprecated in favor of the `shebang` setting.
|
145
|
+
|
122
146
|
* `--standalone[=<list>]`:
|
123
147
|
Makes a bundle that can work without depending on Rubygems or Bundler at
|
124
148
|
runtime. A space separated list of groups to install has to be specified.
|
@@ -127,24 +151,32 @@ update process below under [CONSERVATIVE UPDATING][].
|
|
127
151
|
in the manner required. Using this option implicitly sets `path`, which is a
|
128
152
|
[remembered option][REMEMBERED OPTIONS].
|
129
153
|
|
154
|
+
* `--system`:
|
155
|
+
Installs the gems specified in the bundle to the system's Rubygems location.
|
156
|
+
This overrides any previous configuration of `--path`.
|
157
|
+
|
158
|
+
This option is deprecated in favor of the `system` setting.
|
159
|
+
|
130
160
|
* `--trust-policy=[<policy>]`:
|
131
161
|
Apply the Rubygems security policy <policy>, where policy is one of
|
132
162
|
`HighSecurity`, `MediumSecurity`, `LowSecurity`, `AlmostNoSecurity`, or
|
133
163
|
`NoSecurity`. For more details, please see the Rubygems signing documentation
|
134
164
|
linked below in [SEE ALSO][].
|
135
165
|
|
136
|
-
* `--without=<list>`:
|
137
|
-
A space-separated list of groups referencing gems to skip during installation.
|
138
|
-
If a group is given that is in the remembered list of groups given
|
139
|
-
to --with, it is removed from that list.
|
140
|
-
This is a [remembered option][REMEMBERED OPTIONS].
|
141
|
-
|
142
166
|
* `--with=<list>`:
|
143
167
|
A space-separated list of groups referencing gems to install. If an
|
144
168
|
optional group is given it is installed. If a group is given that is
|
145
169
|
in the remembered list of groups given to --without, it is removed
|
146
|
-
from that list.
|
170
|
+
from that list.
|
171
|
+
|
172
|
+
This option is deprecated in favor of the `with` setting.
|
173
|
+
|
174
|
+
* `--without=<list>`:
|
175
|
+
A space-separated list of groups referencing gems to skip during installation.
|
176
|
+
If a group is given that is in the remembered list of groups given
|
177
|
+
to --with, it is removed from that list.
|
147
178
|
|
179
|
+
This option is deprecated in favor of the `without` setting.
|
148
180
|
|
149
181
|
## DEPLOYMENT MODE
|
150
182
|
|
@@ -174,7 +206,7 @@ will cause an error when the Gemfile(5) is modified.
|
|
174
206
|
3. Gems are installed to `vendor/bundle` not your default system location
|
175
207
|
|
176
208
|
In development, it's convenient to share the gems used in your
|
177
|
-
application with other applications and other scripts run on
|
209
|
+
application with other applications and other scripts that run on
|
178
210
|
the system.
|
179
211
|
|
180
212
|
In deployment, isolation is a more important default. In addition,
|
@@ -195,7 +227,7 @@ that case, Bundler will stage everything in a temporary directory,
|
|
195
227
|
then ask you for your `sudo` password in order to copy the gems into
|
196
228
|
their system location.
|
197
229
|
|
198
|
-
From your perspective, this is identical to installing
|
230
|
+
From your perspective, this is identical to installing the gems
|
199
231
|
directly into the system.
|
200
232
|
|
201
233
|
You should never use `sudo bundle install`. This is because several
|
@@ -207,7 +239,7 @@ other steps in `bundle install` must be performed as the current user:
|
|
207
239
|
|
208
240
|
Of these three, the first two could theoretically be performed by
|
209
241
|
`chown`ing the resulting files to `$SUDO_USER`. The third, however,
|
210
|
-
can only be performed by
|
242
|
+
can only be performed by invoking the `git` command as
|
211
243
|
the current user. Therefore, git gems are downloaded and installed
|
212
244
|
into `~/.bundle` rather than $GEM_HOME or $BUNDLE_PATH.
|
213
245
|
|
@@ -266,44 +298,9 @@ This also means that you cannot include different versions of the same
|
|
266
298
|
gem in different groups, because doing so would result in different
|
267
299
|
sets of dependencies used in development and production. Because of
|
268
300
|
the vagaries of the dependency resolution process, this usually
|
269
|
-
affects more than
|
301
|
+
affects more than the gems you list in your Gemfile(5), and can
|
270
302
|
(surprisingly) radically change the gems you are using.
|
271
303
|
|
272
|
-
## REMEMBERED OPTIONS
|
273
|
-
|
274
|
-
Some options (marked above in the [OPTIONS][] section) are remembered
|
275
|
-
between calls to `bundle install`, and by the Bundler runtime.
|
276
|
-
|
277
|
-
For instance, if you run `bundle install --without test`, a subsequent
|
278
|
-
call to `bundle install` that does not include a `--without` flag will
|
279
|
-
remember your previous choice.
|
280
|
-
|
281
|
-
In addition, a call to `Bundler.setup` will not attempt to make the
|
282
|
-
gems in those groups available on the Ruby load path, as they were
|
283
|
-
not installed.
|
284
|
-
|
285
|
-
The settings that are remembered are:
|
286
|
-
|
287
|
-
* `--deployment`:
|
288
|
-
At runtime, this remembered setting will also result in Bundler
|
289
|
-
raising an exception if the `Gemfile.lock` is out of date.
|
290
|
-
|
291
|
-
* `--path`:
|
292
|
-
Subsequent calls to `bundle install` will install gems to the
|
293
|
-
directory originally passed to `--path`. The Bundler runtime
|
294
|
-
will look for gems in that location. You can revert this
|
295
|
-
option by running `bundle install --system`.
|
296
|
-
|
297
|
-
* `--binstubs`:
|
298
|
-
Bundler will update the executables every subsequent call to
|
299
|
-
`bundle install`.
|
300
|
-
|
301
|
-
* `--without`:
|
302
|
-
As described above, Bundler will skip the gems specified by
|
303
|
-
`--without` in subsequent calls to `bundle install`. The
|
304
|
-
Bundler runtime will also not try to make the gems in the
|
305
|
-
skipped groups available.
|
306
|
-
|
307
304
|
## THE GEMFILE.LOCK
|
308
305
|
|
309
306
|
When you run `bundle install`, Bundler will persist the full names
|
@@ -320,12 +317,21 @@ of a dependency of a gem in your Gemfile(5)) can result in radically
|
|
320
317
|
different gems being needed to satisfy all dependencies.
|
321
318
|
|
322
319
|
As a result, you `SHOULD` check your `Gemfile.lock` into version
|
323
|
-
control. If you do not, every machine that
|
324
|
-
repository (including your production server) will resolve all
|
320
|
+
control, in both applications and gems. If you do not, every machine that
|
321
|
+
checks out your repository (including your production server) will resolve all
|
325
322
|
dependencies again, which will result in different versions of
|
326
323
|
third-party code being used if `any` of the gems in the Gemfile(5)
|
327
324
|
or any of their dependencies have been updated.
|
328
325
|
|
326
|
+
When Bundler first shipped, the `Gemfile.lock` was included in the `.gitignore`
|
327
|
+
file included with generated gems. Over time, however, it became clear that
|
328
|
+
this practice forces the pain of broken dependencies onto new contributors,
|
329
|
+
while leaving existing contributors potentially unaware of the problem. Since
|
330
|
+
`bundle install` is usually the first step towards a contribution, the pain of
|
331
|
+
broken dependencies would discourage new contributors from contributing. As a
|
332
|
+
result, we have revised our guidance for gem authors to now recommend checking
|
333
|
+
in the lock for gems.
|
334
|
+
|
329
335
|
## CONSERVATIVE UPDATING
|
330
336
|
|
331
337
|
When you make a change to the Gemfile(5) and then run `bundle install`,
|
@@ -390,10 +396,10 @@ which other gems in the Gemfile(5) still depend on, run
|
|
390
396
|
|
391
397
|
`Summary`: In general, after making a change to the Gemfile(5) , you
|
392
398
|
should first try to run `bundle install`, which will guarantee that no
|
393
|
-
other
|
394
|
-
does not work, run [bundle update(1)]
|
399
|
+
other gem in the Gemfile(5) is impacted by the change. If that
|
400
|
+
does not work, run [bundle update(1)](bundle-update.1.html).
|
395
401
|
|
396
402
|
## SEE ALSO
|
397
403
|
|
398
|
-
* Gem install docs
|
399
|
-
* Rubygems signing docs
|
404
|
+
* [Gem install docs](http://guides.rubygems.org/rubygems-basics/#installing-gems)
|
405
|
+
* [Rubygems signing docs](http://guides.rubygems.org/security/)
|