rubygems-update 2.6.8 → 2.6.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rubygems-update might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +9 -6
- data/CODE_OF_CONDUCT.md +36 -33
- data/History.txt +16 -0
- data/Manifest.txt +5 -3
- data/Rakefile +5 -0
- data/bundler/CHANGELOG.md +72 -0
- data/bundler/DEVELOPMENT.md +2 -2
- data/bundler/README.md +5 -0
- data/bundler/lib/bundler.rb +1 -1
- data/bundler/lib/bundler/cli.rb +42 -29
- data/bundler/lib/bundler/cli/common.rb +17 -0
- data/bundler/lib/bundler/cli/exec.rb +6 -0
- data/bundler/lib/bundler/cli/gem.rb +16 -3
- data/bundler/lib/bundler/cli/install.rb +7 -20
- data/bundler/lib/bundler/cli/lock.rb +1 -1
- data/bundler/lib/bundler/cli/open.rb +2 -1
- data/bundler/lib/bundler/cli/outdated.rb +91 -43
- data/bundler/lib/bundler/cli/update.rb +3 -10
- data/bundler/lib/bundler/compact_index_client.rb +7 -1
- data/bundler/lib/bundler/current_ruby.rb +1 -0
- data/bundler/lib/bundler/definition.rb +9 -5
- data/bundler/lib/bundler/dependency.rb +12 -0
- data/bundler/lib/bundler/env.rb +25 -20
- data/bundler/lib/bundler/errors.rb +21 -0
- data/bundler/lib/bundler/fetcher.rb +2 -2
- data/bundler/lib/bundler/fetcher/compact_index.rb +15 -3
- data/bundler/lib/bundler/friendly_errors.rb +23 -7
- data/bundler/lib/bundler/index.rb +9 -4
- data/bundler/lib/bundler/inline.rb +1 -1
- data/bundler/lib/bundler/installer.rb +1 -1
- data/bundler/lib/bundler/installer/gem_installer.rb +2 -2
- data/bundler/lib/bundler/installer/parallel_installer.rb +40 -9
- data/bundler/lib/bundler/lockfile_parser.rb +0 -1
- data/bundler/lib/bundler/match_platform.rb +12 -4
- data/bundler/lib/bundler/plugin/api.rb +2 -1
- data/bundler/lib/bundler/plugin/api/source.rb +1 -1
- data/bundler/lib/bundler/postit_trampoline.rb +3 -3
- data/bundler/lib/bundler/resolver.rb +6 -1
- data/bundler/lib/bundler/retry.rb +4 -1
- data/bundler/lib/bundler/rubygems_gem_installer.rb +18 -6
- data/bundler/lib/bundler/rubygems_integration.rb +16 -3
- data/bundler/lib/bundler/settings.rb +8 -3
- data/bundler/lib/bundler/shared_helpers.rb +15 -12
- data/bundler/lib/bundler/source.rb +4 -0
- data/bundler/lib/bundler/source/git/git_proxy.rb +2 -1
- data/bundler/lib/bundler/source/rubygems.rb +9 -0
- data/bundler/lib/bundler/spec_set.rb +4 -0
- data/bundler/lib/bundler/templates/newgem/gitignore.tt +5 -0
- data/bundler/lib/bundler/templates/newgem/spec/newgem_spec.rb.tt +1 -1
- data/bundler/lib/bundler/templates/newgem/spec/spec_helper.rb.tt +10 -1
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph.rb +10 -1
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +1 -1
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +2 -2
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +2 -2
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +62 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +10 -3
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +12 -1
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +2 -2
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +2 -2
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +2 -0
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/gem_metadata.rb +1 -1
- data/bundler/lib/bundler/vendor/molinillo/lib/molinillo/resolution.rb +27 -19
- data/bundler/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/faster.rb +1 -0
- data/bundler/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/persistent.rb +24 -23
- data/bundler/lib/bundler/vendor/{net → net-http-persistent/lib/net}/http/persistent/ssl_reuse.rb +2 -1
- data/bundler/lib/bundler/vendored_persistent.rb +9 -4
- data/bundler/lib/bundler/version.rb +1 -1
- data/bundler/lib/bundler/worker.rb +27 -5
- data/bundler/man/bundle-config.ronn +28 -1
- data/bundler/man/bundle-install.ronn +1 -1
- data/bundler/man/bundle-lock.ronn +47 -0
- data/bundler/man/bundle-outdated.ronn +107 -0
- data/bundler/man/bundle-update.ronn +152 -3
- data/bundler/man/bundle.ronn +22 -4
- data/bundler/man/gemfile.5.ronn +16 -0
- data/lib/rubygems.rb +1 -1
- data/lib/rubygems/ext/ext_conf_builder.rb +5 -3
- data/lib/rubygems/ext/rake_builder.rb +1 -1
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph.rb +3 -1
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +9 -2
- data/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb +2 -0
- data/lib/rubygems/resolver/molinillo/lib/molinillo/gem_metadata.rb +1 -1
- data/lib/rubygems/resolver/molinillo/lib/molinillo/resolution.rb +17 -17
- data/lib/rubygems/server.rb +11 -4
- data/lib/rubygems/stub_specification.rb +6 -1
- data/lib/rubygems/version.rb +6 -2
- data/test/rubygems/test_gem.rb +2 -0
- data/test/rubygems/test_gem_ext_ext_conf_builder.rb +23 -0
- data/test/rubygems/test_gem_ext_rake_builder.rb +34 -17
- data/test/rubygems/test_gem_server.rb +16 -0
- data/test/rubygems/test_gem_specification.rb +1 -1
- data/test/rubygems/test_gem_stub_specification.rb +61 -0
- data/test/rubygems/test_gem_version.rb +6 -0
- data/util/ci +5 -5
- metadata +31 -29
@@ -110,7 +110,7 @@ time `bundle install` is run, use `bundle config` (see bundle-config(1)).
|
|
110
110
|
The location to install the specified gems to. This defaults to Rubygems'
|
111
111
|
setting. Bundler shares this location with Rubygems, `gem install ...` will
|
112
112
|
have gem installed there, too. Therefore, gems installed without a
|
113
|
-
`--path ...` setting will show up by calling `gem list`.
|
113
|
+
`--path ...` setting will show up by calling `gem list`. Accordingly, gems
|
114
114
|
installed to other locations will not get listed.
|
115
115
|
|
116
116
|
* `--quiet`:
|
@@ -7,6 +7,14 @@ bundle-lock(1) -- Creates / Updates a lockfile without installing
|
|
7
7
|
[--local]
|
8
8
|
[--print]
|
9
9
|
[--lockfile=PATH]
|
10
|
+
[--full-index]
|
11
|
+
[--add-platform]
|
12
|
+
[--remove-platform]
|
13
|
+
[--patch]
|
14
|
+
[--minor]
|
15
|
+
[--major]
|
16
|
+
[--strict]
|
17
|
+
[--conservative]
|
10
18
|
|
11
19
|
## DESCRIPTION
|
12
20
|
|
@@ -30,6 +38,31 @@ Lock the gems specified in Gemfile.
|
|
30
38
|
* `--lockfile=<path>`:
|
31
39
|
The path where the lockfile should be written to.
|
32
40
|
|
41
|
+
* `--full-index`:
|
42
|
+
Fall back to using the single-file index of all gems.
|
43
|
+
|
44
|
+
* `--add-platform`:
|
45
|
+
Add a new platform to the lockfile, re-resolving for the addition of that
|
46
|
+
platform.
|
47
|
+
|
48
|
+
* `--remove-platform`:
|
49
|
+
Remove a platform from the lockfile.
|
50
|
+
|
51
|
+
* `--patch`:
|
52
|
+
If updating, prefer updating only to next patch version.
|
53
|
+
|
54
|
+
* `--minor`:
|
55
|
+
If updating, prefer updating only to next minor version.
|
56
|
+
|
57
|
+
* `--major`:
|
58
|
+
If updating, prefer updating to next major version (default).
|
59
|
+
|
60
|
+
* `--strict`:
|
61
|
+
If updating, do not allow any gem to be updated past latest --patch | --minor | --major.
|
62
|
+
|
63
|
+
* `--conservative`:
|
64
|
+
If updating, use bundle install conservative update behavior and do not allow shared dependencies to be updated.
|
65
|
+
|
33
66
|
## UPDATING ALL GEMS
|
34
67
|
|
35
68
|
If you run `bundle lock` with `--update` option without list of gems, bundler will
|
@@ -45,3 +78,17 @@ For instance, you only want to update `nokogiri`, run `bundle lock --update noko
|
|
45
78
|
|
46
79
|
Bundler will update `nokogiri` and any of its dependencies, but leave the rest of the
|
47
80
|
gems that you specified locked to the versions in the `Gemfile.lock`.
|
81
|
+
|
82
|
+
## SUPPORTING OTHER PLATFORMS
|
83
|
+
|
84
|
+
If you want your bundle to support platforms other than the one you're running
|
85
|
+
locally, you can run `bundle lock --add-platform PLATFORM` to add PLATFORM to
|
86
|
+
the lockfile, force bundler to re-resolve and consider the new platform when
|
87
|
+
picking gems, all without needing to have a machine that matches PLATFORM handy
|
88
|
+
to install those platform-specific gems on.
|
89
|
+
|
90
|
+
For a full explanation of gem platforms, see `gem help platform`.
|
91
|
+
|
92
|
+
## PATCH LEVEL OPTIONS
|
93
|
+
|
94
|
+
See [bundle update(1)][bundle-update] for details.
|
@@ -0,0 +1,107 @@
|
|
1
|
+
bundle-outdated(1) -- List installed gems with newer versions available
|
2
|
+
=======================================================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
`bundle outdated` [GEM] [--local]
|
7
|
+
[--pre]
|
8
|
+
[--source]
|
9
|
+
[--strict]
|
10
|
+
[--parseable | --porcelain]
|
11
|
+
[--group=GROUP]
|
12
|
+
[--groups]
|
13
|
+
[--update-strict]
|
14
|
+
[--patch|--minor|--major]
|
15
|
+
[--filter-major]
|
16
|
+
[--filter-minor]
|
17
|
+
[--filter-patch]
|
18
|
+
|
19
|
+
## DESCRIPTION
|
20
|
+
|
21
|
+
Outdated lists the names and versions of gems that have a newer version available
|
22
|
+
in the given source. Calling outdated with [GEM [GEM]] will only check for newer
|
23
|
+
versions of the given gems. Prerelease gems are ignored by default. If your gems
|
24
|
+
are up to date, Bundler will exit with a status of 0. Otherwise, it will exit 1.
|
25
|
+
|
26
|
+
## OPTIONS
|
27
|
+
|
28
|
+
* `--local`:
|
29
|
+
Do not attempt to fetch gems remotely and use the gem cache instead.
|
30
|
+
|
31
|
+
* `--pre`:
|
32
|
+
Check for newer pre-release gems.
|
33
|
+
|
34
|
+
* `--source`:
|
35
|
+
Check against a specific source.
|
36
|
+
|
37
|
+
* `--strict`:
|
38
|
+
Only list newer versions allowed by your Gemfile requirements.
|
39
|
+
|
40
|
+
* `--parseable`:
|
41
|
+
Use minimal formatting for more parseable output.
|
42
|
+
|
43
|
+
* `--group`:
|
44
|
+
List gems from a specific group.
|
45
|
+
|
46
|
+
* `--groups`:
|
47
|
+
List gems organized by groups.
|
48
|
+
|
49
|
+
* `--update-strict`:
|
50
|
+
Strict conservative resolution, do not allow any gem to be updated past latest --patch | --minor| --major.
|
51
|
+
|
52
|
+
* `--minor`:
|
53
|
+
Prefer updating only to next minor version.
|
54
|
+
|
55
|
+
* `--major`:
|
56
|
+
Prefer updating to next major version (default).
|
57
|
+
|
58
|
+
* `--patch`:
|
59
|
+
Prefer updating only to next patch version.
|
60
|
+
|
61
|
+
* `--filter-major`:
|
62
|
+
Only list major newer versions.
|
63
|
+
|
64
|
+
* `--filter-minor`:
|
65
|
+
Only list minor newer versions.
|
66
|
+
|
67
|
+
* `--filter-patch`:
|
68
|
+
Only list patch newer versions.
|
69
|
+
|
70
|
+
## PATCH LEVEL OPTIONS
|
71
|
+
|
72
|
+
See [bundle update(1)][bundle-update] for details.
|
73
|
+
|
74
|
+
One difference between the patch level options in `bundle update` and here is the `--strict` option.
|
75
|
+
`--strict` was already an option on outdated before the patch level options were added. `--strict`
|
76
|
+
wasn't altered, and the `--update-strict` option on `outdated` reflects what `--strict` does on
|
77
|
+
`bundle update`.
|
78
|
+
|
79
|
+
## FILTERING OUTPUT
|
80
|
+
|
81
|
+
The 3 filtering options do not affect the resolution of versions, merely what versions are shown
|
82
|
+
in the output.
|
83
|
+
|
84
|
+
If the regular output shows the following:
|
85
|
+
|
86
|
+
* faker (newest 1.6.6, installed 1.6.5, requested ~> 1.4) in groups "development, test"
|
87
|
+
* hashie (newest 3.4.6, installed 1.2.0, requested = 1.2.0) in groups "default"
|
88
|
+
* headless (newest 2.3.1, installed 2.2.3) in groups "test"
|
89
|
+
|
90
|
+
`--filter-major` would only show:
|
91
|
+
|
92
|
+
* hashie (newest 3.4.6, installed 1.2.0, requested = 1.2.0) in groups "default"
|
93
|
+
|
94
|
+
`--filter-minor` would only show:
|
95
|
+
|
96
|
+
* headless (newest 2.3.1, installed 2.2.3) in groups "test"
|
97
|
+
|
98
|
+
`--filter-patch` would only show:
|
99
|
+
|
100
|
+
* faker (newest 1.6.6, installed 1.6.5, requested ~> 1.4) in groups "development, test"
|
101
|
+
|
102
|
+
Filter options can be combined. `--filter-minor` and `--filter-patch` would show:
|
103
|
+
|
104
|
+
* faker (newest 1.6.6, installed 1.6.5, requested ~> 1.4) in groups "development, test"
|
105
|
+
* headless (newest 2.3.1, installed 2.2.3) in groups "test"
|
106
|
+
|
107
|
+
Combining all three `filter` options would be the same result as providing none of them.
|
@@ -3,7 +3,18 @@ bundle-update(1) -- Update your gems to the latest available versions
|
|
3
3
|
|
4
4
|
## SYNOPSIS
|
5
5
|
|
6
|
-
`bundle update` <*gems> [--group=NAME]
|
6
|
+
`bundle update` <*gems> [--group=NAME]
|
7
|
+
[--source=NAME]
|
8
|
+
[--local]
|
9
|
+
[--ruby]
|
10
|
+
[--bundler[=VERSION]]
|
11
|
+
[--full-index]
|
12
|
+
[--jobs=JOBS]
|
13
|
+
[--quiet]
|
14
|
+
[--force]
|
15
|
+
[--patch|--minor|--major]
|
16
|
+
[--strict]
|
17
|
+
[--conservative]
|
7
18
|
|
8
19
|
## DESCRIPTION
|
9
20
|
|
@@ -37,6 +48,33 @@ gem.
|
|
37
48
|
* `--bundler`:
|
38
49
|
Update the locked version of bundler to the invoked bundler version.
|
39
50
|
|
51
|
+
* `--full-index`:
|
52
|
+
Fall back to using the single-file index of all gems.
|
53
|
+
|
54
|
+
* `--jobs`:
|
55
|
+
Specify the number of jobs to run in parallel.
|
56
|
+
|
57
|
+
* `--quiet`:
|
58
|
+
Only output warnings and errors.
|
59
|
+
|
60
|
+
* `--force`:
|
61
|
+
Force downloading every gem.
|
62
|
+
|
63
|
+
* `--patch`:
|
64
|
+
Prefer updating only to next patch version.
|
65
|
+
|
66
|
+
* `--minor`:
|
67
|
+
Prefer updating only to next minor version.
|
68
|
+
|
69
|
+
* `--major`:
|
70
|
+
Prefer updating to next major version (default).
|
71
|
+
|
72
|
+
* `--strict`:
|
73
|
+
Do not allow any gem to be updated past latest `--patch` | `--minor` | `--major`.
|
74
|
+
|
75
|
+
* `--conservative`:
|
76
|
+
Use bundle install conservative update behavior and do not allow shared dependencies to be updated.
|
77
|
+
|
40
78
|
## UPDATING ALL GEMS
|
41
79
|
|
42
80
|
If you run `bundle update` with no parameters, bundler will ignore
|
@@ -146,14 +184,125 @@ In this case, the two gems have their own set of dependencies, but they share
|
|
146
184
|
`bundle update thin` will update `rack` even though it's _also_ a dependency of
|
147
185
|
`rack-perftools_profiler`.
|
148
186
|
|
149
|
-
|
150
|
-
dependencies of that gem, including those that are also dependencies
|
187
|
+
In short, by default, when you update a gem using `bundle update`, bundler will
|
188
|
+
update all dependencies of that gem, including those that are also dependencies
|
189
|
+
of another gem.
|
190
|
+
|
191
|
+
To prevent updating shared dependencies, prior to version 1.14 the only option
|
192
|
+
was the `CONSERVATIVE UPDATING` behavior in [bundle install(1)][bundle-install]:
|
151
193
|
|
152
194
|
In this scenario, updating the `thin` version manually in the Gemfile(5),
|
153
195
|
and then running [bundle install(1)][bundle-install] will only update `daemons` and `eventmachine`,
|
154
196
|
but not `rack`. For more information, see the `CONSERVATIVE UPDATING` section
|
155
197
|
of [bundle install(1)][bundle-install].
|
156
198
|
|
199
|
+
Starting with 1.14, specifying the `--conservative` option will also prevent shared
|
200
|
+
dependencies from being updated.
|
201
|
+
|
202
|
+
## PATCH LEVEL OPTIONS
|
203
|
+
|
204
|
+
Version 1.14 introduced 4 patch-level options that will influence how gem
|
205
|
+
versions are resolved. One of the following options can be used: `--patch`,
|
206
|
+
`--minor` or `--major`. `--strict` can be added to further influence resolution.
|
207
|
+
|
208
|
+
* `--patch`:
|
209
|
+
Prefer updating only to next patch version.
|
210
|
+
|
211
|
+
* `--minor`:
|
212
|
+
Prefer updating only to next minor version.
|
213
|
+
|
214
|
+
* `--major`:
|
215
|
+
Prefer updating to next major version (default).
|
216
|
+
|
217
|
+
* `--strict`:
|
218
|
+
Do not allow any gem to be updated past latest `--patch` | `--minor` | `--major`.
|
219
|
+
|
220
|
+
When Bundler is resolving what versions to use to satisfy declared
|
221
|
+
requirements in the Gemfile or in parent gems, it looks up all
|
222
|
+
available versions, filters out any versions that don't satisfy
|
223
|
+
the requirement, and then, by default, sorts them from newest to
|
224
|
+
oldest, considering them in that order.
|
225
|
+
|
226
|
+
Providing one of the patch level options (e.g. `--patch`) changes the
|
227
|
+
sort order of the satisfying versions, causing Bundler to consider the
|
228
|
+
latest `--patch` or `--minor` version available before other versions.
|
229
|
+
Note that versions outside the stated patch level could still be
|
230
|
+
resolved to if necessary to find a suitable dependency graph.
|
231
|
+
|
232
|
+
For example, if gem 'foo' is locked at 1.0.2, with no gem requirement
|
233
|
+
defined in the Gemfile, and versions 1.0.3, 1.0.4, 1.1.0, 1.1.1, 2.0.0
|
234
|
+
all exist, the default order of preference by default (`--major`) will
|
235
|
+
be "2.0.0, 1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2".
|
236
|
+
|
237
|
+
If the `--patch` option is used, the order of preference will change to
|
238
|
+
"1.0.4, 1.0.3, 1.0.2, 1.1.1, 1.1.0, 2.0.0".
|
239
|
+
|
240
|
+
If the `--minor` option is used, the order of preference will change to
|
241
|
+
"1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 2.0.0".
|
242
|
+
|
243
|
+
Combining the `--strict` option with any of the patch level options
|
244
|
+
will remove any versions beyond the scope of the patch level option,
|
245
|
+
to ensure that no gem is updated that far.
|
246
|
+
|
247
|
+
To continue the previous example, if both `--patch` and `--strict`
|
248
|
+
options are used, the available versions for resolution would be
|
249
|
+
"1.0.4, 1.0.3, 1.0.2". If `--minor` and `--strict` are used, it would
|
250
|
+
be "1.1.1, 1.1.0, 1.0.4, 1.0.3, 1.0.2".
|
251
|
+
|
252
|
+
Gem requirements as defined in the Gemfile will still be the first
|
253
|
+
determining factor for what versions are available. If the gem
|
254
|
+
requirement for `foo` in the Gemfile is '~> 1.0', that will accomplish
|
255
|
+
the same thing as providing the `--minor` and `--strict` options.
|
256
|
+
|
257
|
+
## PATCH LEVEL EXAMPLES
|
258
|
+
|
259
|
+
Given the following gem specifications:
|
260
|
+
|
261
|
+
foo 1.4.3, requires: ~> bar 2.0
|
262
|
+
foo 1.4.4, requires: ~> bar 2.0
|
263
|
+
foo 1.4.5, requires: ~> bar 2.1
|
264
|
+
foo 1.5.0, requires: ~> bar 2.1
|
265
|
+
foo 1.5.1, requires: ~> bar 3.0
|
266
|
+
bar with versions 2.0.3, 2.0.4, 2.1.0, 2.1.1, 3.0.0
|
267
|
+
|
268
|
+
Gemfile:
|
269
|
+
|
270
|
+
gem 'foo'
|
271
|
+
|
272
|
+
Gemfile.lock:
|
273
|
+
|
274
|
+
foo (1.4.3)
|
275
|
+
bar (~> 2.0)
|
276
|
+
bar (2.0.3)
|
277
|
+
|
278
|
+
Cases:
|
279
|
+
|
280
|
+
# Command Line Result
|
281
|
+
------------------------------------------------------------
|
282
|
+
1 bundle update --patch 'foo 1.4.5', 'bar 2.1.1'
|
283
|
+
2 bundle update --patch foo 'foo 1.4.5', 'bar 2.1.1'
|
284
|
+
3 bundle update --minor 'foo 1.5.1', 'bar 3.0.0'
|
285
|
+
4 bundle update --minor --strict 'foo 1.5.0', 'bar 2.1.1'
|
286
|
+
5 bundle update --patch --strict 'foo 1.4.4', 'bar 2.0.4'
|
287
|
+
|
288
|
+
In case 1, bar is upgraded to 2.1.1, a minor version increase, because
|
289
|
+
the dependency from foo 1.4.5 required it.
|
290
|
+
|
291
|
+
In case 2, only foo is requested to be unlocked, but bar is also
|
292
|
+
allowed to move because it's not a declared dependency in the Gemfile.
|
293
|
+
|
294
|
+
In case 3, bar goes up a whole major release, because a minor increase
|
295
|
+
is preferred now for foo, and when it goes to 1.5.1, it requires 3.0.0
|
296
|
+
of bar.
|
297
|
+
|
298
|
+
In case 4, foo is preferred up to a minor version, but 1.5.1 won't work
|
299
|
+
because the --strict flag removes bar 3.0.0 from consideration since
|
300
|
+
it's a major increment.
|
301
|
+
|
302
|
+
In case 5, both foo and bar have any minor or major increments removed
|
303
|
+
from consideration because of the --strict flag, so the most they can
|
304
|
+
move is up to 1.4.4 and 2.0.4.
|
305
|
+
|
157
306
|
## RECOMMENDED WORKFLOW
|
158
307
|
|
159
308
|
In general, when working with an application managed with bundler, you should
|
data/bundler/man/bundle.ronn
CHANGED
@@ -55,7 +55,7 @@ We divide `bundle` subcommands into primary commands and utilities.
|
|
55
55
|
* `bundle show(1)`:
|
56
56
|
Show the source location of a particular gem in the bundle
|
57
57
|
|
58
|
-
* `bundle outdated(1)
|
58
|
+
* [`bundle outdated(1)`][bundle-outdated]:
|
59
59
|
Show all of the outdated gems in the current bundle
|
60
60
|
|
61
61
|
* `bundle console(1)`:
|
@@ -64,7 +64,7 @@ We divide `bundle` subcommands into primary commands and utilities.
|
|
64
64
|
* `bundle open(1)`:
|
65
65
|
Open an installed gem in the editor
|
66
66
|
|
67
|
-
* `bundle lock(1)
|
67
|
+
* [`bundle lock(1)`][bundle-lock]:
|
68
68
|
Generate a lockfile for your dependencies
|
69
69
|
|
70
70
|
* `bundle viz(1)`:
|
@@ -73,10 +73,10 @@ We divide `bundle` subcommands into primary commands and utilities.
|
|
73
73
|
* `bundle init(1)`:
|
74
74
|
Generate a simple `Gemfile`, placed in the current directory
|
75
75
|
|
76
|
-
* [bundle gem(1)][bundle-gem]:
|
76
|
+
* [`bundle gem(1)`][bundle-gem]:
|
77
77
|
Create a simple gem, suitable for development with bundler
|
78
78
|
|
79
|
-
* [bundle platform(1)][bundle-platform]:
|
79
|
+
* [`bundle platform(1)`][bundle-platform]:
|
80
80
|
Display platform compatibility information
|
81
81
|
|
82
82
|
* `bundle clean(1)`:
|
@@ -91,6 +91,24 @@ When running a command that isn't listed in PRIMARY COMMANDS or UTILITIES,
|
|
91
91
|
Bundler will try to find an executable on your path named `bundler-<command>`
|
92
92
|
and execute it, passing down any extra arguments to it.
|
93
93
|
|
94
|
+
## BUNDLER TRAMPOLINING
|
95
|
+
|
96
|
+
Bundler includes a feature called trampolining, designed to allow a single
|
97
|
+
developer to work on multiple projects, each on different Bundler versions.
|
98
|
+
The trampoline will infer the correct version of Bundler to use for each project
|
99
|
+
and load that version instead of the version directly invoked (which is almost
|
100
|
+
always the newest version installed locally).
|
101
|
+
|
102
|
+
Bundler by default will use the Bundler version in the current directory to
|
103
|
+
determine the version to trampoline to, reading from the `BUNDLED WITH` section.
|
104
|
+
However, if the `BUNDLER_VERSION` environment variable is set, that version will
|
105
|
+
override the lockfile inference and can be used in directories without a
|
106
|
+
lockfile.
|
107
|
+
|
108
|
+
Until the target version is Bundler 2 or later, `BUNDLE_TRAMPOLINE_FORCE` must
|
109
|
+
be set for the trampoline to be used. Additionally, `BUNDLE_TRAMPOLINE_DISABLE` can
|
110
|
+
be set to completely disable the trampoline.
|
111
|
+
|
94
112
|
## OBSOLETE
|
95
113
|
|
96
114
|
These commands are obsolete and should no longer be used
|
data/bundler/man/gemfile.5.ronn
CHANGED
@@ -185,6 +185,10 @@ There are a number of `Gemfile` platforms:
|
|
185
185
|
_ruby_ `AND` version 2.2
|
186
186
|
* `ruby_23`:
|
187
187
|
_ruby_ `AND` version 2.3
|
188
|
+
* `ruby_24`:
|
189
|
+
_ruby_ `AND` version 2.4
|
190
|
+
* `ruby_25`:
|
191
|
+
_ruby_ `AND` version 2.5
|
188
192
|
* `mri`:
|
189
193
|
Same as _ruby_, but not Rubinius
|
190
194
|
* `mri_18`:
|
@@ -199,6 +203,10 @@ There are a number of `Gemfile` platforms:
|
|
199
203
|
_mri_ `AND` version 2.2
|
200
204
|
* `mri_23`:
|
201
205
|
_mri_ `AND` version 2.3
|
206
|
+
* `mri_24`:
|
207
|
+
_mri_ `AND` version 2.4
|
208
|
+
* `mri_25`:
|
209
|
+
_mri_ `AND` version 2.5
|
202
210
|
* `rbx`:
|
203
211
|
Same as _ruby_, but only Rubinius (not MRI)
|
204
212
|
* `jruby`:
|
@@ -219,6 +227,10 @@ There are a number of `Gemfile` platforms:
|
|
219
227
|
_mingw_ `AND` version 2.2
|
220
228
|
* `mingw_23`:
|
221
229
|
_mingw_ `AND` version 2.3
|
230
|
+
* `mingw_24`:
|
231
|
+
_mingw_ `AND` version 2.4
|
232
|
+
* `mingw_25`:
|
233
|
+
_mingw_ `AND` version 2.5
|
222
234
|
* `x64_mingw`:
|
223
235
|
Windows 64 bit 'mingw32' platform (aka RubyInstaller x64)
|
224
236
|
* `x64_mingw_20`:
|
@@ -229,6 +241,10 @@ There are a number of `Gemfile` platforms:
|
|
229
241
|
_x64_mingw_ `AND` version 2.2
|
230
242
|
* `x64_mingw_23`:
|
231
243
|
_x64_mingw_ `AND` version 2.3
|
244
|
+
* `x64_mingw_24`:
|
245
|
+
_x64_mingw_ `AND` version 2.4
|
246
|
+
* `x64_mingw_25`:
|
247
|
+
_x64_mingw_ `AND` version 2.5
|
232
248
|
|
233
249
|
As with groups, you can specify one or more platforms:
|
234
250
|
|