bundler 1.13.6 → 1.17.3
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 +554 -9
- data/README.md +28 -5
- data/bundler.gemspec +40 -11
- data/exe/bundle +4 -8
- data/exe/bundle_ruby +4 -3
- data/lib/bundler.rb +162 -68
- data/lib/bundler/build_metadata.rb +53 -0
- data/lib/bundler/capistrano.rb +5 -0
- data/lib/bundler/cli.rb +360 -118
- data/lib/bundler/cli/add.rb +35 -0
- data/lib/bundler/cli/binstubs.rb +18 -10
- data/lib/bundler/cli/cache.rb +6 -5
- data/lib/bundler/cli/check.rb +4 -6
- data/lib/bundler/cli/clean.rb +6 -7
- data/lib/bundler/cli/common.rb +47 -1
- data/lib/bundler/cli/config.rb +26 -7
- data/lib/bundler/cli/console.rb +2 -1
- data/lib/bundler/cli/doctor.rb +63 -18
- data/lib/bundler/cli/exec.rb +12 -5
- data/lib/bundler/cli/gem.rb +59 -21
- data/lib/bundler/cli/info.rb +50 -0
- data/lib/bundler/cli/init.rb +21 -7
- data/lib/bundler/cli/inject.rb +13 -4
- data/lib/bundler/cli/install.rb +72 -101
- data/lib/bundler/cli/issue.rb +40 -0
- data/lib/bundler/cli/list.rb +58 -0
- data/lib/bundler/cli/lock.rb +9 -6
- data/lib/bundler/cli/open.rb +4 -3
- data/lib/bundler/cli/outdated.rb +175 -60
- data/lib/bundler/cli/package.rb +9 -6
- data/lib/bundler/cli/platform.rb +2 -1
- data/lib/bundler/cli/plugin.rb +1 -0
- data/lib/bundler/cli/pristine.rb +47 -0
- data/lib/bundler/cli/remove.rb +18 -0
- data/lib/bundler/cli/show.rb +2 -2
- data/lib/bundler/cli/update.rb +44 -34
- data/lib/bundler/cli/viz.rb +5 -1
- data/lib/bundler/compact_index_client.rb +109 -0
- data/lib/bundler/compact_index_client/cache.rb +118 -0
- data/lib/bundler/compact_index_client/updater.rb +116 -0
- data/lib/bundler/compatibility_guard.rb +14 -0
- data/lib/bundler/constants.rb +1 -0
- data/lib/bundler/current_ruby.rb +17 -8
- data/lib/bundler/definition.rb +353 -182
- data/lib/bundler/dep_proxy.rb +3 -1
- data/lib/bundler/dependency.rb +22 -10
- data/lib/bundler/deployment.rb +1 -1
- data/lib/bundler/deprecate.rb +15 -3
- data/lib/bundler/dsl.rb +122 -64
- data/lib/bundler/endpoint_specification.rb +13 -3
- data/lib/bundler/env.rb +110 -38
- data/lib/bundler/environment_preserver.rb +27 -6
- data/lib/bundler/errors.rb +24 -0
- data/lib/bundler/feature_flag.rb +74 -0
- data/lib/bundler/fetcher.rb +18 -11
- data/lib/bundler/fetcher/base.rb +1 -0
- data/lib/bundler/fetcher/compact_index.rb +7 -5
- data/lib/bundler/fetcher/dependency.rb +3 -2
- data/lib/bundler/fetcher/downloader.rb +25 -7
- data/lib/bundler/fetcher/index.rb +3 -2
- data/lib/bundler/friendly_errors.rb +33 -7
- data/lib/bundler/gem_helper.rb +25 -11
- data/lib/bundler/gem_helpers.rb +70 -1
- data/lib/bundler/gem_remote_fetcher.rb +1 -0
- data/lib/bundler/gem_tasks.rb +1 -0
- data/lib/bundler/gem_version_promoter.rb +17 -2
- data/lib/bundler/gemdeps.rb +29 -0
- data/lib/bundler/graph.rb +1 -0
- data/lib/bundler/index.rb +28 -15
- data/lib/bundler/injector.rb +216 -33
- data/lib/bundler/inline.rb +12 -12
- data/lib/bundler/installer.rb +139 -53
- data/lib/bundler/installer/gem_installer.rb +15 -5
- data/lib/bundler/installer/parallel_installer.rb +113 -28
- data/lib/bundler/installer/standalone.rb +1 -0
- data/lib/bundler/lazy_specification.rb +31 -3
- data/lib/bundler/lockfile_generator.rb +95 -0
- data/lib/bundler/lockfile_parser.rb +50 -37
- data/lib/bundler/match_platform.rb +13 -3
- data/lib/bundler/mirror.rb +10 -5
- data/lib/bundler/plugin.rb +22 -8
- data/lib/bundler/plugin/api.rb +2 -1
- data/lib/bundler/plugin/api/source.rb +17 -4
- data/lib/bundler/plugin/events.rb +61 -0
- data/lib/bundler/plugin/index.rb +9 -2
- data/lib/bundler/plugin/installer.rb +7 -6
- data/lib/bundler/plugin/source_list.rb +7 -8
- data/lib/bundler/process_lock.rb +24 -0
- data/lib/bundler/psyched_yaml.rb +10 -0
- data/lib/bundler/remote_specification.rb +30 -1
- data/lib/bundler/resolver.rb +187 -194
- data/lib/bundler/resolver/spec_group.rb +106 -0
- data/lib/bundler/retry.rb +5 -1
- data/lib/bundler/ruby_dsl.rb +1 -0
- data/lib/bundler/ruby_version.rb +12 -2
- data/lib/bundler/rubygems_ext.rb +23 -8
- data/lib/bundler/rubygems_gem_installer.rb +90 -0
- data/lib/bundler/rubygems_integration.rb +193 -70
- data/lib/bundler/runtime.rb +39 -22
- data/lib/bundler/settings.rb +245 -85
- data/lib/bundler/settings/validator.rb +102 -0
- data/lib/bundler/setup.rb +4 -7
- data/lib/bundler/shared_helpers.rb +183 -40
- data/lib/bundler/similarity_detector.rb +1 -0
- data/lib/bundler/source.rb +58 -1
- data/lib/bundler/source/gemspec.rb +1 -0
- data/lib/bundler/source/git.rb +52 -23
- data/lib/bundler/source/git/git_proxy.rb +30 -14
- data/lib/bundler/source/metadata.rb +62 -0
- data/lib/bundler/source/path.rb +42 -16
- data/lib/bundler/source/path/installer.rb +4 -2
- data/lib/bundler/source/rubygems.rb +171 -82
- data/lib/bundler/source/rubygems/remote.rb +12 -2
- data/lib/bundler/source_list.rb +75 -15
- data/lib/bundler/spec_set.rb +67 -32
- data/lib/bundler/ssl_certs/certificate_manager.rb +2 -1
- data/lib/bundler/stub_specification.rb +86 -2
- data/lib/bundler/templates/.document +1 -0
- data/lib/bundler/templates/Executable +13 -1
- data/lib/bundler/templates/Executable.bundler +105 -0
- data/lib/bundler/templates/Executable.standalone +5 -5
- data/lib/bundler/templates/Gemfile +3 -0
- data/lib/bundler/templates/gems.rb +8 -0
- data/lib/bundler/templates/newgem/Gemfile.tt +4 -2
- data/lib/bundler/templates/newgem/LICENSE.txt.tt +1 -1
- data/lib/bundler/templates/newgem/README.md.tt +14 -8
- data/lib/bundler/templates/newgem/Rakefile.tt +5 -5
- data/lib/bundler/templates/newgem/bin/console.tt +1 -1
- 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/gitignore.tt +5 -1
- data/lib/bundler/templates/newgem/lib/newgem.rb.tt +7 -6
- data/lib/bundler/templates/newgem/lib/newgem/version.rb.tt +4 -4
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +21 -12
- data/lib/bundler/templates/newgem/rspec.tt +1 -0
- data/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +1 -3
- data/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +13 -1
- data/lib/bundler/templates/newgem/test/newgem_test.rb.tt +1 -1
- data/lib/bundler/templates/newgem/test/test_helper.rb.tt +3 -3
- data/lib/bundler/templates/newgem/{.travis.yml.tt → travis.yml.tt} +2 -0
- data/lib/bundler/ui.rb +1 -0
- data/lib/bundler/ui/rg_proxy.rb +1 -0
- data/lib/bundler/ui/shell.rb +30 -10
- data/lib/bundler/ui/silent.rb +21 -1
- data/lib/bundler/uri_credentials_filter.rb +1 -0
- data/lib/bundler/vendor/fileutils/lib/fileutils.rb +1638 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo.rb +2 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb +26 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +7 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +26 -6
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +2 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +12 -4
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +3 -2
- 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 +11 -3
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +13 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +3 -2
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +3 -2
- data/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +18 -5
- data/lib/bundler/vendor/molinillo/lib/molinillo/errors.rb +75 -7
- data/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +2 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/modules/ui.rb +3 -1
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +499 -128
- data/lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb +1 -0
- data/lib/bundler/vendor/molinillo/lib/molinillo/state.rb +8 -4
- data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/faster.rb +1 -0
- data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/persistent.rb +27 -24
- data/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/persistent/ssl_reuse.rb +2 -1
- data/lib/bundler/vendor/thor/lib/thor.rb +46 -21
- data/lib/bundler/vendor/thor/lib/thor/actions.rb +24 -22
- data/lib/bundler/vendor/thor/lib/thor/actions/create_file.rb +2 -1
- data/lib/bundler/vendor/thor/lib/thor/actions/create_link.rb +2 -1
- data/lib/bundler/vendor/thor/lib/thor/actions/directory.rb +2 -2
- data/lib/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +16 -8
- data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +66 -18
- data/lib/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +17 -15
- data/lib/bundler/vendor/thor/lib/thor/base.rb +55 -32
- data/lib/bundler/vendor/thor/lib/thor/command.rb +13 -11
- data/lib/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +21 -1
- data/lib/bundler/vendor/thor/lib/thor/core_ext/io_binary_read.rb +7 -5
- data/lib/bundler/vendor/thor/lib/thor/core_ext/ordered_hash.rb +94 -63
- data/lib/bundler/vendor/thor/lib/thor/error.rb +3 -3
- data/lib/bundler/vendor/thor/lib/thor/group.rb +13 -13
- data/lib/bundler/vendor/thor/lib/thor/invocation.rb +4 -5
- data/lib/bundler/vendor/thor/lib/thor/line_editor/basic.rb +2 -0
- data/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +4 -7
- data/lib/bundler/vendor/thor/lib/thor/parser/arguments.rb +16 -16
- data/lib/bundler/vendor/thor/lib/thor/parser/option.rb +42 -21
- data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +13 -10
- data/lib/bundler/vendor/thor/lib/thor/runner.rb +31 -29
- data/lib/bundler/vendor/thor/lib/thor/shell.rb +1 -1
- data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +49 -33
- data/lib/bundler/vendor/thor/lib/thor/shell/color.rb +1 -1
- data/lib/bundler/vendor/thor/lib/thor/shell/html.rb +4 -4
- data/lib/bundler/vendor/thor/lib/thor/util.rb +8 -7
- data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
- data/lib/bundler/vendored_fileutils.rb +9 -0
- data/lib/bundler/vendored_molinillo.rb +1 -0
- data/lib/bundler/vendored_persistent.rb +43 -3
- data/lib/bundler/vendored_thor.rb +6 -2
- data/lib/bundler/version.rb +19 -2
- data/lib/bundler/version_ranges.rb +76 -0
- data/lib/bundler/vlad.rb +5 -0
- data/lib/bundler/worker.rb +30 -6
- data/lib/bundler/yaml_serializer.rb +4 -4
- data/man/bundle-add.1 +58 -0
- data/man/bundle-add.1.txt +52 -0
- data/man/bundle-add.ronn +40 -0
- data/{lib/bundler/man/bundle-binstubs → man/bundle-binstubs.1} +11 -1
- data/man/bundle-binstubs.1.txt +48 -0
- data/man/bundle-binstubs.ronn +15 -1
- data/man/bundle-check.1 +31 -0
- data/man/bundle-check.1.txt +33 -0
- data/man/bundle-check.ronn +26 -0
- data/man/bundle-clean.1 +24 -0
- data/man/bundle-clean.1.txt +26 -0
- data/man/bundle-clean.ronn +18 -0
- data/man/bundle-config.1 +497 -0
- data/man/bundle-config.1.txt +529 -0
- data/man/bundle-config.ronn +233 -61
- data/man/bundle-doctor.1 +44 -0
- data/man/bundle-doctor.1.txt +44 -0
- data/man/bundle-doctor.ronn +33 -0
- data/{lib/bundler/man/bundle-exec → man/bundle-exec.1} +6 -3
- data/man/bundle-exec.1.txt +178 -0
- data/man/bundle-exec.ronn +10 -3
- data/{lib/bundler/man/bundle-gem → man/bundle-gem.1} +4 -4
- data/man/bundle-gem.1.txt +91 -0
- data/man/bundle-gem.ronn +3 -2
- data/man/bundle-info.1 +20 -0
- data/man/bundle-info.1.txt +21 -0
- data/man/bundle-info.ronn +17 -0
- data/man/bundle-init.1 +25 -0
- data/man/bundle-init.1.txt +34 -0
- data/man/bundle-init.ronn +29 -0
- data/man/bundle-inject.1 +33 -0
- data/man/bundle-inject.1.txt +32 -0
- data/man/bundle-inject.ronn +22 -0
- data/{lib/bundler/man/bundle-install → man/bundle-install.1} +32 -29
- data/man/bundle-install.1.txt +396 -0
- data/man/bundle-install.ronn +45 -36
- data/man/bundle-list.1 +50 -0
- data/man/bundle-list.1.txt +43 -0
- data/man/bundle-list.ronn +33 -0
- data/{lib/bundler/man/bundle-lock → man/bundle-lock.1} +43 -2
- data/man/bundle-lock.1.txt +93 -0
- data/man/bundle-lock.ronn +47 -0
- data/man/bundle-open.1 +32 -0
- data/man/bundle-open.1.txt +29 -0
- data/man/bundle-open.ronn +19 -0
- data/man/bundle-outdated.1 +155 -0
- data/man/bundle-outdated.1.txt +131 -0
- data/man/bundle-outdated.ronn +111 -0
- data/{lib/bundler/man/bundle-package → man/bundle-package.1} +6 -3
- data/man/bundle-package.1.txt +79 -0
- data/man/bundle-package.ronn +7 -2
- data/{lib/bundler/man/bundle-platform → man/bundle-platform.1} +1 -1
- data/man/bundle-platform.1.txt +57 -0
- data/man/bundle-pristine.1 +34 -0
- data/man/bundle-pristine.1.txt +44 -0
- data/man/bundle-pristine.ronn +34 -0
- data/man/bundle-remove.1 +31 -0
- data/man/bundle-remove.1.txt +34 -0
- data/man/bundle-remove.ronn +23 -0
- data/man/bundle-show.1 +23 -0
- data/man/bundle-show.1.txt +27 -0
- data/man/bundle-show.ronn +21 -0
- data/man/bundle-update.1 +394 -0
- data/man/bundle-update.1.txt +391 -0
- data/man/bundle-update.ronn +172 -16
- data/man/bundle-viz.1 +39 -0
- data/man/bundle-viz.1.txt +39 -0
- data/man/bundle-viz.ronn +30 -0
- data/{lib/bundler/man/bundle → man/bundle.1} +44 -28
- data/man/bundle.1.txt +116 -0
- data/man/bundle.ronn +39 -27
- data/{lib/bundler/man → man}/gemfile.5 +67 -84
- data/man/gemfile.5.ronn +77 -55
- data/man/gemfile.5.txt +653 -0
- data/man/index.txt +25 -8
- metadata +118 -58
- data/.codeclimate.yml +0 -25
- data/.gitignore +0 -16
- data/.rspec +0 -3
- data/.rubocop.yml +0 -128
- data/.rubocop_todo.yml +0 -248
- data/.travis.yml +0 -108
- data/CODE_OF_CONDUCT.md +0 -42
- data/CONTRIBUTING.md +0 -36
- data/DEVELOPMENT.md +0 -148
- data/ISSUES.md +0 -100
- data/Rakefile +0 -333
- data/bin/rake +0 -19
- data/bin/rspec +0 -15
- data/bin/rubocop +0 -17
- data/bin/with_rubygems +0 -39
- data/lib/bundler/man/bundle-binstubs.txt +0 -33
- data/lib/bundler/man/bundle-config +0 -254
- data/lib/bundler/man/bundle-config.txt +0 -282
- data/lib/bundler/man/bundle-exec.txt +0 -171
- data/lib/bundler/man/bundle-gem.txt +0 -90
- data/lib/bundler/man/bundle-install.txt +0 -385
- data/lib/bundler/man/bundle-lock.txt +0 -52
- data/lib/bundler/man/bundle-package.txt +0 -74
- data/lib/bundler/man/bundle-platform.txt +0 -57
- data/lib/bundler/man/bundle-update +0 -221
- data/lib/bundler/man/bundle-update.txt +0 -227
- data/lib/bundler/man/bundle.txt +0 -104
- data/lib/bundler/man/gemfile.5.txt +0 -636
- data/lib/bundler/postit_trampoline.rb +0 -68
- data/lib/bundler/vendor/compact_index_client/lib/compact_index_client.rb +0 -79
- data/lib/bundler/vendor/compact_index_client/lib/compact_index_client/cache.rb +0 -112
- data/lib/bundler/vendor/compact_index_client/lib/compact_index_client/updater.rb +0 -80
- data/lib/bundler/vendor/compact_index_client/lib/compact_index_client/version.rb +0 -4
- data/lib/bundler/vendor/postit/lib/postit.rb +0 -15
- data/lib/bundler/vendor/postit/lib/postit/environment.rb +0 -44
- data/lib/bundler/vendor/postit/lib/postit/installer.rb +0 -28
- data/lib/bundler/vendor/postit/lib/postit/parser.rb +0 -21
- data/lib/bundler/vendor/postit/lib/postit/setup.rb +0 -12
- data/lib/bundler/vendor/postit/lib/postit/version.rb +0 -3
data/man/bundle-config.ronn
CHANGED
@@ -7,10 +7,14 @@ bundle-config(1) -- Set bundler configuration options
|
|
7
7
|
|
8
8
|
## DESCRIPTION
|
9
9
|
|
10
|
-
This command allows you to interact with
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
This command allows you to interact with Bundler's configuration system.
|
11
|
+
|
12
|
+
Bundler loads configuration settings in this order:
|
13
|
+
|
14
|
+
1. Local config (`app/.bundle/config`)
|
15
|
+
2. Environmental variables (`ENV`)
|
16
|
+
3. Global config (`~/.bundle/config`)
|
17
|
+
4. Bundler default config
|
14
18
|
|
15
19
|
Executing `bundle config` with no parameters will print a list of all
|
16
20
|
bundler configuration for the current bundle, and where that configuration
|
@@ -48,32 +52,35 @@ If these options must be remembered,they must be set using `bundle config`
|
|
48
52
|
|
49
53
|
The options that can be configured are:
|
50
54
|
|
51
|
-
* `
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
55
|
+
* `bin`:
|
56
|
+
Creates a directory (defaults to `~/bin`) and place any executables from the
|
57
|
+
gem there. These executables run in Bundler's context. If used, you might add
|
58
|
+
this directory to your environment's `PATH` variable. For instance, if the
|
59
|
+
`rails` gem comes with a `rails` executable, this flag will create a
|
60
|
+
`bin/rails` executable that ensures that all referred dependencies will be
|
61
|
+
resolved using the bundled gems.
|
58
62
|
|
59
63
|
* `deployment`:
|
60
|
-
|
61
|
-
|
62
|
-
|
64
|
+
In deployment mode, Bundler will 'roll-out' the bundle for
|
65
|
+
`production` use. Please check carefully if you want to have this option
|
66
|
+
enabled in `development` or `test` environments.
|
63
67
|
|
64
68
|
* `path`:
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
69
|
+
The location to install the specified gems to. This defaults to Rubygems'
|
70
|
+
setting. Bundler shares this location with Rubygems, `gem install ...` will
|
71
|
+
have gem installed there, too. Therefore, gems installed without a
|
72
|
+
`--path ...` setting will show up by calling `gem list`. Accordingly, gems
|
73
|
+
installed to other locations will not get listed.
|
70
74
|
|
71
75
|
* `without`:
|
72
|
-
|
76
|
+
A space-separated list of groups referencing gems to skip during installation.
|
77
|
+
|
78
|
+
* `with`:
|
79
|
+
A space-separated list of groups referencing gems to include during installation.
|
73
80
|
|
74
81
|
## BUILD OPTIONS
|
75
82
|
|
76
|
-
You can use `bundle config` to give
|
83
|
+
You can use `bundle config` to give Bundler the flags to pass to the gem
|
77
84
|
installer every time bundler tries to install a particular gem.
|
78
85
|
|
79
86
|
A very common example, the `mysql` gem, requires Snow Leopard users to
|
@@ -95,12 +102,12 @@ After running this command, every time bundler needs to install the
|
|
95
102
|
Configuration keys in bundler have two forms: the canonical form and the
|
96
103
|
environment variable form.
|
97
104
|
|
98
|
-
For instance, passing the `--without` flag to [bundle install(1)]
|
105
|
+
For instance, passing the `--without` flag to [bundle install(1)](bundle-install.1.html)
|
99
106
|
prevents Bundler from installing certain groups specified in the Gemfile(5). Bundler
|
100
107
|
persists this value in `app/.bundle/config` so that calls to `Bundler.setup`
|
101
108
|
do not try to find gems from the `Gemfile` that you didn't install. Additionally,
|
102
|
-
subsequent calls to [bundle install(1)]
|
103
|
-
groups.
|
109
|
+
subsequent calls to [bundle install(1)](bundle-install.1.html) remember this setting
|
110
|
+
and skip those groups.
|
104
111
|
|
105
112
|
The canonical form of this configuration is `"without"`. To convert the canonical
|
106
113
|
form to the environment variable form, capitalize it, and prepend `BUNDLE_`. The
|
@@ -113,51 +120,175 @@ the environment variable `BUNDLE_LOCAL__RACK`.
|
|
113
120
|
## LIST OF AVAILABLE KEYS
|
114
121
|
|
115
122
|
The following is a list of all configuration keys and their purpose. You can
|
116
|
-
learn more about their operation in [bundle install(1)]
|
117
|
-
|
118
|
-
* `
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
* `
|
127
|
-
|
123
|
+
learn more about their operation in [bundle install(1)](bundle-install.1.html).
|
124
|
+
|
125
|
+
* `allow_bundler_dependency_conflicts` (`BUNDLE_ALLOW_BUNDLER_DEPENDENCY_CONFLICTS`):
|
126
|
+
Allow resolving to specifications that have dependencies on `bundler` that
|
127
|
+
are incompatible with the running Bundler version.
|
128
|
+
* `allow_deployment_source_credential_changes` (`BUNDLE_ALLOW_DEPLOYMENT_SOURCE_CREDENTIAL_CHANGES`):
|
129
|
+
When in deployment mode, allow changing the credentials to a gem's source.
|
130
|
+
Ex: `https://some.host.com/gems/path/` -> `https://user_name:password@some.host.com/gems/path`
|
131
|
+
* `allow_offline_install` (`BUNDLE_ALLOW_OFFLINE_INSTALL`):
|
132
|
+
Allow Bundler to use cached data when installing without network access.
|
133
|
+
* `auto_clean_without_path` (`BUNDLE_AUTO_CLEAN_WITHOUT_PATH`):
|
134
|
+
Automatically run `bundle clean` after installing when an explicit `path`
|
135
|
+
has not been set and Bundler is not installing into the system gems.
|
136
|
+
* `auto_install` (`BUNDLE_AUTO_INSTALL`):
|
137
|
+
Automatically run `bundle install` when gems are missing.
|
128
138
|
* `bin` (`BUNDLE_BIN`):
|
129
|
-
|
130
|
-
|
139
|
+
Install executables from gems in the bundle to the specified directory.
|
140
|
+
Defaults to `false`.
|
141
|
+
* `cache_all` (`BUNDLE_CACHE_ALL`):
|
142
|
+
Cache all gems, including path and git gems.
|
143
|
+
* `cache_all_platforms` (`BUNDLE_CACHE_ALL_PLATFORMS`):
|
144
|
+
Cache gems for all platforms.
|
145
|
+
* `cache_path` (`BUNDLE_CACHE_PATH`):
|
146
|
+
The directory that bundler will place cached gems in when running
|
147
|
+
<code>bundle package</code>, and that bundler will look in when installing gems.
|
148
|
+
Defaults to `vendor/bundle`.
|
149
|
+
* `clean` (`BUNDLE_CLEAN`):
|
150
|
+
Whether Bundler should run `bundle clean` automatically after
|
151
|
+
`bundle install`.
|
152
|
+
* `console` (`BUNDLE_CONSOLE`):
|
153
|
+
The console that `bundle console` starts. Defaults to `irb`.
|
154
|
+
* `default_install_uses_path` (`BUNDLE_DEFAULT_INSTALL_USES_PATH`):
|
155
|
+
Whether a `bundle install` without an explicit `--path` argument defaults
|
156
|
+
to installing gems in `.bundle`.
|
157
|
+
* `deployment` (`BUNDLE_DEPLOYMENT`):
|
158
|
+
Disallow changes to the `Gemfile`. When the `Gemfile` is changed and the
|
159
|
+
lockfile has not been updated, running Bundler commands will be blocked.
|
160
|
+
* `disable_checksum_validation` (`BUNDLE_DISABLE_CHECKSUM_VALIDATION`):
|
161
|
+
Allow installing gems even if they do not match the checksum provided by
|
162
|
+
RubyGems.
|
163
|
+
* `disable_exec_load` (`BUNDLE_DISABLE_EXEC_LOAD`):
|
164
|
+
Stop Bundler from using `load` to launch an executable in-process in
|
165
|
+
`bundle exec`.
|
166
|
+
* `disable_local_branch_check` (`BUNDLE_DISABLE_LOCAL_BRANCH_CHECK`):
|
167
|
+
Allow Bundler to use a local git override without a branch specified in the
|
168
|
+
Gemfile.
|
169
|
+
* `disable_multisource` (`BUNDLE_DISABLE_MULTISOURCE`):
|
170
|
+
When set, Gemfiles containing multiple sources will produce errors
|
171
|
+
instead of warnings.
|
172
|
+
Use `bundle config --delete disable_multisource` to unset.
|
173
|
+
* `disable_platform_warnings` (`BUNDLE_DISABLE_PLATFORM_WARNINGS`):
|
174
|
+
Disable warnings during bundle install when a dependency is unused on the current platform.
|
175
|
+
* `disable_shared_gems` (`BUNDLE_DISABLE_SHARED_GEMS`):
|
176
|
+
Stop Bundler from accessing gems installed to RubyGems' normal location.
|
177
|
+
* `disable_version_check` (`BUNDLE_DISABLE_VERSION_CHECK`):
|
178
|
+
Stop Bundler from checking if a newer Bundler version is available on
|
179
|
+
rubygems.org.
|
180
|
+
* `error_on_stderr` (`BUNDLE_ERROR_ON_STDERR`):
|
181
|
+
Print Bundler errors to stderr.
|
182
|
+
* `force_ruby_platform` (`BUNDLE_FORCE_RUBY_PLATFORM`):
|
183
|
+
Ignore the current machine's platform and install only `ruby` platform gems.
|
184
|
+
As a result, gems with native extensions will be compiled from source.
|
185
|
+
* `frozen` (`BUNDLE_FROZEN`):
|
186
|
+
Disallow changes to the `Gemfile`. When the `Gemfile` is changed and the
|
187
|
+
lockfile has not been updated, running Bundler commands will be blocked.
|
188
|
+
Defaults to `true` when `--deployment` is used.
|
189
|
+
* `gem.push_key` (`BUNDLE_GEM__PUSH_KEY`):
|
190
|
+
Sets the `--key` parameter for `gem push` when using the `rake release`
|
191
|
+
command with a private gemstash server.
|
131
192
|
* `gemfile` (`BUNDLE_GEMFILE`):
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
* `
|
138
|
-
|
139
|
-
|
140
|
-
* `
|
141
|
-
|
142
|
-
|
143
|
-
* `cache_path` (`BUNDLE_CACHE_PATH`): The directory that bundler will place
|
144
|
-
cached gems in when running <code>bundle package</code>, and that bundler
|
145
|
-
will look in when installing gems.
|
146
|
-
* `disable_multisource` (`BUNDLE_DISABLE_MULTISOURCE`): When set, Gemfiles
|
147
|
-
containing multiple sources will produce errors instead of warnings. Use
|
148
|
-
`bundle config --delete disable_multisource` to unset.
|
193
|
+
The name of the file that bundler should use as the `Gemfile`. This location
|
194
|
+
of this file also sets the root of the project, which is used to resolve
|
195
|
+
relative paths in the `Gemfile`, among other things. By default, bundler
|
196
|
+
will search up from the current working directory until it finds a
|
197
|
+
`Gemfile`.
|
198
|
+
* `global_gem_cache` (`BUNDLE_GLOBAL_GEM_CACHE`):
|
199
|
+
Whether Bundler should cache all gems globally, rather than locally to the
|
200
|
+
installing Ruby installation.
|
201
|
+
* `global_path_appends_ruby_scope` (`BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE`):
|
202
|
+
Whether Bundler should append the Ruby scope (e.g. engine and ABI version)
|
203
|
+
to a globally-configured path.
|
149
204
|
* `ignore_messages` (`BUNDLE_IGNORE_MESSAGES`): When set, no post install
|
150
|
-
|
151
|
-
|
152
|
-
* `
|
153
|
-
|
205
|
+
messages will be printed. To silence a single gem, use dot notation like
|
206
|
+
`ignore_messages.httparty true`.
|
207
|
+
* `init_gems_rb` (`BUNDLE_INIT_GEMS_RB`)
|
208
|
+
Generate a `gems.rb` instead of a `Gemfile` when running `bundle init`.
|
209
|
+
* `jobs` (`BUNDLE_JOBS`):
|
210
|
+
The number of gems Bundler can install in parallel. Defaults to 1.
|
211
|
+
* `list_command` (`BUNDLE_LIST_COMMAND`)
|
212
|
+
Enable new list command feature
|
213
|
+
* `major_deprecations` (`BUNDLE_MAJOR_DEPRECATIONS`):
|
214
|
+
Whether Bundler should print deprecation warnings for behavior that will
|
215
|
+
be changed in the next major version.
|
216
|
+
* `no_install` (`BUNDLE_NO_INSTALL`):
|
217
|
+
Whether `bundle package` should skip installing gems.
|
218
|
+
* `no_prune` (`BUNDLE_NO_PRUNE`):
|
219
|
+
Whether Bundler should leave outdated gems unpruned when caching.
|
220
|
+
* `only_update_to_newer_versions` (`BUNDLE_ONLY_UPDATE_TO_NEWER_VERSIONS`):
|
221
|
+
During `bundle update`, only resolve to newer versions of the gems in the
|
222
|
+
lockfile.
|
223
|
+
* `path` (`BUNDLE_PATH`):
|
224
|
+
The location on disk where all gems in your bundle will be located regardless
|
225
|
+
of `$GEM_HOME` or `$GEM_PATH` values. Bundle gems not found in this location
|
226
|
+
will be installed by `bundle install`. Defaults to `Gem.dir`. When --deployment
|
227
|
+
is used, defaults to vendor/bundle.
|
228
|
+
* `path.system` (`BUNDLE_PATH__SYSTEM`):
|
229
|
+
Whether Bundler will install gems into the default system path (`Gem.dir`).
|
230
|
+
* `path_relative_to_cwd` (`PATH_RELATIVE_TO_CWD`)
|
231
|
+
Makes `--path` relative to the CWD instead of the `Gemfile`.
|
232
|
+
* `plugins` (`BUNDLE_PLUGINS`):
|
233
|
+
Enable Bundler's experimental plugin system.
|
234
|
+
* `prefer_gems_rb` (`BUNDLE_PREFER_GEMS_RB`)
|
235
|
+
Prefer `gems.rb` to `Gemfile` when Bundler is searching for a Gemfile.
|
236
|
+
* `print_only_version_number` (`BUNDLE_PRINT_ONLY_VERSION_NUMBER`)
|
237
|
+
Print only version number from `bundler --version`.
|
154
238
|
* `redirect` (`BUNDLE_REDIRECT`):
|
155
239
|
The number of redirects allowed for network requests. Defaults to `5`.
|
240
|
+
* `retry` (`BUNDLE_RETRY`):
|
241
|
+
The number of times to retry failed network requests. Defaults to `3`.
|
242
|
+
* `setup_makes_kernel_gem_public` (`BUNDLE_SETUP_MAKES_KERNEL_GEM_PUBLIC`):
|
243
|
+
Have `Bundler.setup` make the `Kernel#gem` method public, even though
|
244
|
+
RubyGems declares it as private.
|
245
|
+
* `shebang` (`BUNDLE_SHEBANG`):
|
246
|
+
The program name that should be invoked for generated binstubs. Defaults to
|
247
|
+
the ruby install name used to generate the binstub.
|
248
|
+
* `silence_root_warning` (`BUNDLE_SILENCE_ROOT_WARNING`):
|
249
|
+
Silence the warning Bundler prints when installing gems as root.
|
250
|
+
* `skip_default_git_sources` (`BUNDLE_SKIP_DEFAULT_GIT_SOURCES`):
|
251
|
+
Whether Bundler should skip adding default git source shortcuts to the
|
252
|
+
Gemfile DSL.
|
253
|
+
* `specific_platform` (`BUNDLE_SPECIFIC_PLATFORM`):
|
254
|
+
Allow bundler to resolve for the specific running platform and store it in
|
255
|
+
the lockfile, instead of only using a generic platform.
|
256
|
+
A specific platform is the exact platform triple reported by
|
257
|
+
`Gem::Platform.local`, such as `x86_64-darwin-16` or `universal-java-1.8`.
|
258
|
+
On the other hand, generic platforms are those such as `ruby`, `mswin`, or
|
259
|
+
`java`. In this example, `x86_64-darwin-16` would map to `ruby` and
|
260
|
+
`universal-java-1.8` to `java`.
|
261
|
+
* `ssl_ca_cert` (`BUNDLE_SSL_CA_CERT`):
|
262
|
+
Path to a designated CA certificate file or folder containing multiple
|
263
|
+
certificates for trusted CAs in PEM format.
|
264
|
+
* `ssl_client_cert` (`BUNDLE_SSL_CLIENT_CERT`):
|
265
|
+
Path to a designated file containing a X.509 client certificate
|
266
|
+
and key in PEM format.
|
267
|
+
* `ssl_verify_mode` (`BUNDLE_SSL_VERIFY_MODE`):
|
268
|
+
The SSL verification mode Bundler uses when making HTTPS requests.
|
269
|
+
Defaults to verify peer.
|
270
|
+
* `suppress_install_using_messages` (`BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES`):
|
271
|
+
Avoid printing `Using ...` messages during installation when the version of
|
272
|
+
a gem has not changed.
|
273
|
+
* `system_bindir` (`BUNDLE_SYSTEM_BINDIR`):
|
274
|
+
The location where RubyGems installs binstubs. Defaults to `Gem.bindir`.
|
156
275
|
* `timeout` (`BUNDLE_TIMEOUT`):
|
157
276
|
The seconds allowed before timing out for network requests. Defaults to `10`.
|
277
|
+
* `unlock_source_unlocks_spec` (`BUNDLE_UNLOCK_SOURCE_UNLOCKS_SPEC`):
|
278
|
+
Whether running `bundle update --source NAME` unlocks a gem with the given
|
279
|
+
name. Defaults to `true`.
|
280
|
+
* `update_requires_all_flag` (`BUNDLE_UPDATE_REQUIRES_ALL_FLAG`)
|
281
|
+
Require passing `--all` to `bundle update` when everything should be updated,
|
282
|
+
and disallow passing no options to `bundle update`.
|
283
|
+
* `user_agent` (`BUNDLE_USER_AGENT`):
|
284
|
+
The custom user agent fragment Bundler includes in API requests.
|
285
|
+
* `with` (`BUNDLE_WITH`):
|
286
|
+
A `:`-separated list of groups whose gems bundler should install.
|
287
|
+
* `without` (`BUNDLE_WITHOUT`):
|
288
|
+
A `:`-separated list of groups whose gems bundler should not install.
|
158
289
|
|
159
290
|
In general, you should set these settings per-application by using the applicable
|
160
|
-
flag to the [bundle install(1)]
|
291
|
+
flag to the [bundle install(1)](bundle-install.1.html) or [bundle package(1)](bundle-package.1.html) command.
|
161
292
|
|
162
293
|
You can set them globally either via environment variables or `bundle config`,
|
163
294
|
whichever is preferable for your setup. If you use both, environment variables
|
@@ -183,6 +314,7 @@ revision in the `Gemfile.lock` to the local git repo revision. This
|
|
183
314
|
requires the same attention as git submodules. Before pushing to
|
184
315
|
the remote, you need to ensure the local override was pushed, otherwise
|
185
316
|
you may point to a commit that only exists in your local machine.
|
317
|
+
You'll also need to CGI escape your usernames and passwords as well.
|
186
318
|
|
187
319
|
Bundler does many checks to ensure a developer won't work with
|
188
320
|
invalid references. Particularly, we force a developer to specify
|
@@ -204,10 +336,23 @@ mirror to fetch gems.
|
|
204
336
|
|
205
337
|
bundle config mirror.SOURCE_URL MIRROR_URL
|
206
338
|
|
207
|
-
For example, to use a mirror of rubygems.org hosted at
|
339
|
+
For example, to use a mirror of rubygems.org hosted at rubygems-mirror.org:
|
208
340
|
|
209
341
|
bundle config mirror.http://rubygems.org http://rubygems-mirror.org
|
210
342
|
|
343
|
+
Each mirror also provides a fallback timeout setting. If the mirror does not
|
344
|
+
respond within the fallback timeout, Bundler will try to use the original
|
345
|
+
server instead of the mirror.
|
346
|
+
|
347
|
+
bundle config mirror.SOURCE_URL.fallback_timeout TIMEOUT
|
348
|
+
|
349
|
+
For example, to fall back to rubygems.org after 3 seconds:
|
350
|
+
|
351
|
+
bundle config mirror.https://rubygems.org.fallback_timeout 3
|
352
|
+
|
353
|
+
The default fallback timeout is 0.1 seconds, but the setting can currently
|
354
|
+
only accept whole seconds (for example, 1, 15, or 30).
|
355
|
+
|
211
356
|
## CREDENTIALS FOR GEM SOURCES
|
212
357
|
|
213
358
|
Bundler allows you to configure credentials for any gem source, which allows
|
@@ -223,3 +368,30 @@ For example, to save the credentials of user `claudette` for the gem source at
|
|
223
368
|
Or you can set the credentials as an environment variable like this:
|
224
369
|
|
225
370
|
export BUNDLE_GEMS__LONGEROUS__COM="claudette:s00pers3krit"
|
371
|
+
|
372
|
+
For gems with a git source with HTTP(S) URL you can specify credentials like so:
|
373
|
+
|
374
|
+
bundle config https://github.com/bundler/bundler.git username:password
|
375
|
+
|
376
|
+
Or you can set the credentials as an environment variable like so:
|
377
|
+
|
378
|
+
export BUNDLE_GITHUB__COM=username:password
|
379
|
+
|
380
|
+
This is especially useful for private repositories on hosts such as Github,
|
381
|
+
where you can use personal OAuth tokens:
|
382
|
+
|
383
|
+
export BUNDLE_GITHUB__COM=abcd0123generatedtoken:x-oauth-basic
|
384
|
+
|
385
|
+
|
386
|
+
## CONFIGURE BUNDLER DIRECTORIES
|
387
|
+
|
388
|
+
Bundler's home, config, cache and plugin directories are able to be configured
|
389
|
+
through environment variables. The default location for Bundler's home directory is
|
390
|
+
`~/.bundle`, which all directories inherit from by default. The following
|
391
|
+
outlines the available environment variables and their default values
|
392
|
+
|
393
|
+
BUNDLE_USER_HOME : $HOME/.bundle
|
394
|
+
BUNDLE_USER_CACHE : $BUNDLE_USER_HOME/cache
|
395
|
+
BUNDLE_USER_CONFIG : $BUNDLE_USER_HOME/config
|
396
|
+
BUNDLE_USER_PLUGIN : $BUNDLE_USER_HOME/plugin
|
397
|
+
|
data/man/bundle-doctor.1
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
.\" generated with Ronn/v0.7.3
|
2
|
+
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
|
+
.
|
4
|
+
.TH "BUNDLE\-DOCTOR" "1" "November 2018" "" ""
|
5
|
+
.
|
6
|
+
.SH "NAME"
|
7
|
+
\fBbundle\-doctor\fR \- Checks the bundle for common problems
|
8
|
+
.
|
9
|
+
.SH "SYNOPSIS"
|
10
|
+
\fBbundle doctor\fR [\-\-quiet] [\-\-gemfile=GEMFILE]
|
11
|
+
.
|
12
|
+
.SH "DESCRIPTION"
|
13
|
+
Checks your Gemfile and gem environment for common problems\. If issues are detected, Bundler prints them and exits status 1\. Otherwise, Bundler prints a success message and exits status 0\.
|
14
|
+
.
|
15
|
+
.P
|
16
|
+
Examples of common problems caught by bundle\-doctor include:
|
17
|
+
.
|
18
|
+
.IP "\(bu" 4
|
19
|
+
Invalid Bundler settings
|
20
|
+
.
|
21
|
+
.IP "\(bu" 4
|
22
|
+
Mismatched Ruby versions
|
23
|
+
.
|
24
|
+
.IP "\(bu" 4
|
25
|
+
Mismatched platforms
|
26
|
+
.
|
27
|
+
.IP "\(bu" 4
|
28
|
+
Uninstalled gems
|
29
|
+
.
|
30
|
+
.IP "\(bu" 4
|
31
|
+
Missing dependencies
|
32
|
+
.
|
33
|
+
.IP "" 0
|
34
|
+
.
|
35
|
+
.SH "OPTIONS"
|
36
|
+
.
|
37
|
+
.TP
|
38
|
+
\fB\-\-quiet\fR
|
39
|
+
Only output warnings and errors\.
|
40
|
+
.
|
41
|
+
.TP
|
42
|
+
\fB\-\-gemfile=<gemfile>\fR
|
43
|
+
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\.
|
44
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
BUNDLE-DOCTOR(1) BUNDLE-DOCTOR(1)
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
NAME
|
6
|
+
bundle-doctor - Checks the bundle for common problems
|
7
|
+
|
8
|
+
SYNOPSIS
|
9
|
+
bundle doctor [--quiet] [--gemfile=GEMFILE]
|
10
|
+
|
11
|
+
DESCRIPTION
|
12
|
+
Checks your Gemfile and gem environment for common problems. If issues
|
13
|
+
are detected, Bundler prints them and exits status 1. Otherwise,
|
14
|
+
Bundler prints a success message and exits status 0.
|
15
|
+
|
16
|
+
Examples of common problems caught by bundle-doctor include:
|
17
|
+
|
18
|
+
o Invalid Bundler settings
|
19
|
+
|
20
|
+
o Mismatched Ruby versions
|
21
|
+
|
22
|
+
o Mismatched platforms
|
23
|
+
|
24
|
+
o Uninstalled gems
|
25
|
+
|
26
|
+
o Missing dependencies
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
OPTIONS
|
31
|
+
--quiet
|
32
|
+
Only output warnings and errors.
|
33
|
+
|
34
|
+
--gemfile=<gemfile>
|
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
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
November 2018 BUNDLE-DOCTOR(1)
|