bundler 2.7.2 → 4.0.0.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +990 -917
- data/README.md +4 -4
- data/bundler.gemspec +3 -3
- data/lib/bundler/build_metadata.rb +2 -2
- data/lib/bundler/capistrano.rb +1 -19
- data/lib/bundler/cli/cache.rb +1 -11
- data/lib/bundler/cli/common.rb +20 -3
- data/lib/bundler/cli/config.rb +1 -2
- data/lib/bundler/cli/console.rb +5 -0
- data/lib/bundler/cli/exec.rb +29 -4
- data/lib/bundler/cli/gem.rb +19 -33
- data/lib/bundler/cli/install.rb +7 -82
- data/lib/bundler/cli/issue.rb +2 -2
- data/lib/bundler/cli/list.rb +33 -2
- data/lib/bundler/cli/plugin.rb +5 -1
- data/lib/bundler/cli/show.rb +1 -1
- data/lib/bundler/cli/update.rb +3 -3
- data/lib/bundler/cli.rb +75 -83
- data/lib/bundler/compact_index_client.rb +0 -1
- data/lib/bundler/current_ruby.rb +3 -15
- data/lib/bundler/definition.rb +45 -35
- data/lib/bundler/deployment.rb +1 -64
- data/lib/bundler/digest.rb +1 -1
- data/lib/bundler/dsl.rb +13 -35
- data/lib/bundler/endpoint_specification.rb +0 -22
- data/lib/bundler/errors.rb +1 -5
- data/lib/bundler/feature_flag.rb +0 -33
- data/lib/bundler/fetcher/compact_index.rb +1 -1
- data/lib/bundler/friendly_errors.rb +2 -2
- data/lib/bundler/index.rb +0 -7
- data/lib/bundler/inline.rb +1 -1
- data/lib/bundler/installer/gem_installer.rb +0 -11
- data/lib/bundler/installer.rb +0 -6
- data/lib/bundler/lockfile_generator.rb +1 -1
- data/lib/bundler/lockfile_parser.rb +2 -12
- data/lib/bundler/man/bundle-add.1 +1 -1
- data/lib/bundler/man/bundle-binstubs.1 +3 -6
- data/lib/bundler/man/bundle-binstubs.1.ronn +4 -6
- data/lib/bundler/man/bundle-cache.1 +2 -14
- data/lib/bundler/man/bundle-cache.1.ronn +1 -14
- data/lib/bundler/man/bundle-check.1 +2 -5
- data/lib/bundler/man/bundle-check.1.ronn +0 -5
- data/lib/bundler/man/bundle-clean.1 +1 -1
- data/lib/bundler/man/bundle-config.1 +6 -33
- data/lib/bundler/man/bundle-config.1.ronn +20 -55
- data/lib/bundler/man/bundle-console.1 +1 -1
- data/lib/bundler/man/bundle-doctor.1 +1 -1
- data/lib/bundler/man/bundle-env.1 +1 -1
- data/lib/bundler/man/bundle-exec.1 +2 -5
- data/lib/bundler/man/bundle-exec.1.ronn +1 -5
- data/lib/bundler/man/bundle-fund.1 +1 -1
- data/lib/bundler/man/bundle-gem.1 +3 -6
- data/lib/bundler/man/bundle-gem.1.ronn +2 -5
- data/lib/bundler/man/bundle-help.1 +1 -1
- data/lib/bundler/man/bundle-info.1 +1 -1
- data/lib/bundler/man/bundle-init.1 +1 -1
- data/lib/bundler/man/bundle-install.1 +8 -59
- data/lib/bundler/man/bundle-install.1.ronn +12 -107
- data/lib/bundler/man/bundle-issue.1 +1 -1
- data/lib/bundler/man/bundle-licenses.1 +1 -1
- data/lib/bundler/man/bundle-list.1 +6 -1
- data/lib/bundler/man/bundle-list.1.ronn +5 -0
- data/lib/bundler/man/bundle-lock.1 +1 -1
- data/lib/bundler/man/bundle-open.1 +1 -1
- data/lib/bundler/man/bundle-outdated.1 +1 -1
- data/lib/bundler/man/bundle-platform.1 +1 -1
- data/lib/bundler/man/bundle-plugin.1 +2 -9
- data/lib/bundler/man/bundle-plugin.1.ronn +0 -8
- data/lib/bundler/man/bundle-pristine.1 +1 -1
- data/lib/bundler/man/bundle-remove.1 +2 -8
- data/lib/bundler/man/bundle-remove.1.ronn +1 -8
- data/lib/bundler/man/bundle-show.1 +2 -5
- data/lib/bundler/man/bundle-show.1.ronn +0 -4
- data/lib/bundler/man/bundle-update.1 +1 -1
- data/lib/bundler/man/bundle-version.1 +1 -1
- data/lib/bundler/man/bundle.1 +1 -10
- data/lib/bundler/man/bundle.1.ronn +0 -9
- data/lib/bundler/man/gemfile.5 +1 -1
- data/lib/bundler/man/index.txt +0 -2
- data/lib/bundler/materialization.rb +1 -1
- data/lib/bundler/plugin/installer.rb +0 -10
- data/lib/bundler/plugin/source_list.rb +1 -1
- data/lib/bundler/plugin.rb +1 -1
- data/lib/bundler/resolver.rb +1 -1
- data/lib/bundler/ruby_dsl.rb +2 -0
- data/lib/bundler/ruby_version.rb +1 -3
- data/lib/bundler/rubygems_ext.rb +1 -1
- data/lib/bundler/rubygems_gem_installer.rb +1 -1
- data/lib/bundler/rubygems_integration.rb +1 -5
- data/lib/bundler/self_manager.rb +1 -1
- data/lib/bundler/settings.rb +7 -26
- data/lib/bundler/shared_helpers.rb +8 -20
- data/lib/bundler/source/git/git_proxy.rb +3 -11
- data/lib/bundler/source/git.rb +2 -3
- data/lib/bundler/source/path.rb +3 -7
- data/lib/bundler/source/rubygems.rb +11 -17
- data/lib/bundler/source.rb +1 -1
- data/lib/bundler/source_list.rb +4 -45
- data/lib/bundler/source_map.rb +2 -5
- data/lib/bundler/spec_set.rb +6 -15
- data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +7 -129
- data/lib/bundler/templates/newgem/circleci/config.yml.tt +12 -0
- data/lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +1 -1
- data/lib/bundler/templates/newgem/ext/newgem/extconf-go.rb.tt +11 -0
- data/lib/bundler/templates/newgem/ext/newgem/go.mod.tt +5 -0
- data/lib/bundler/templates/newgem/ext/newgem/newgem-go.c.tt +2 -0
- data/lib/bundler/templates/newgem/ext/newgem/newgem.go.tt +31 -0
- data/lib/bundler/templates/newgem/github/workflows/main.yml.tt +6 -0
- data/lib/bundler/templates/newgem/gitlab-ci.yml.tt +9 -0
- data/lib/bundler/templates/newgem/newgem.gemspec.tt +4 -1
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +26 -23
- data/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +1 -1
- data/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +50 -6
- data/lib/bundler/vendor/fileutils/lib/fileutils.rb +57 -52
- data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +5 -2
- data/lib/bundler/vendor/thor/lib/thor/runner.rb +1 -1
- data/lib/bundler/vendor/uri/lib/uri/common.rb +57 -15
- data/lib/bundler/vendor/uri/lib/uri/file.rb +1 -1
- data/lib/bundler/vendor/uri/lib/uri/generic.rb +34 -21
- data/lib/bundler/vendor/uri/lib/uri/http.rb +12 -0
- data/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +9 -8
- data/lib/bundler/vendor/uri/lib/uri/version.rb +2 -2
- data/lib/bundler/version.rb +1 -1
- data/lib/bundler/vlad.rb +1 -14
- data/lib/bundler.rb +6 -28
- metadata +9 -13
- data/lib/bundler/cli/inject.rb +0 -60
- data/lib/bundler/cli/viz.rb +0 -31
- data/lib/bundler/graph.rb +0 -152
- data/lib/bundler/man/bundle-inject.1 +0 -31
- data/lib/bundler/man/bundle-inject.1.ronn +0 -32
- data/lib/bundler/man/bundle-viz.1 +0 -30
- data/lib/bundler/man/bundle-viz.1.ronn +0 -36
- data/lib/bundler/similarity_detector.rb +0 -63
|
@@ -3,28 +3,18 @@ bundle-install(1) -- Install the dependencies specified in your Gemfile
|
|
|
3
3
|
|
|
4
4
|
## SYNOPSIS
|
|
5
5
|
|
|
6
|
-
`bundle install` [--
|
|
7
|
-
[--clean]
|
|
8
|
-
[--deployment]
|
|
9
|
-
[--force]
|
|
10
|
-
[--frozen]
|
|
6
|
+
`bundle install` [--force]
|
|
11
7
|
[--full-index]
|
|
12
8
|
[--gemfile=GEMFILE]
|
|
13
9
|
[--jobs=NUMBER]
|
|
14
10
|
[--local]
|
|
15
11
|
[--no-cache]
|
|
16
|
-
[--no-prune]
|
|
17
|
-
[--path PATH]
|
|
18
12
|
[--prefer-local]
|
|
19
13
|
[--quiet]
|
|
20
14
|
[--retry=NUMBER]
|
|
21
|
-
[--shebang=SHEBANG]
|
|
22
15
|
[--standalone[=GROUP[ GROUP...]]]
|
|
23
|
-
[--system]
|
|
24
16
|
[--trust-policy=TRUST-POLICY]
|
|
25
17
|
[--target-rbconfig=TARGET-RBCONFIG]
|
|
26
|
-
[--with=GROUP[ GROUP...]]
|
|
27
|
-
[--without=GROUP[ GROUP...]]
|
|
28
18
|
|
|
29
19
|
## DESCRIPTION
|
|
30
20
|
|
|
@@ -45,50 +35,9 @@ update process below under [CONSERVATIVE UPDATING][].
|
|
|
45
35
|
|
|
46
36
|
## OPTIONS
|
|
47
37
|
|
|
48
|
-
The `--clean`, `--deployment`, `--frozen`, `--no-prune`, `--path`, `--shebang`,
|
|
49
|
-
`--system`, `--without` and `--with` options are deprecated because they only
|
|
50
|
-
make sense if they are applied to every subsequent `bundle install` run
|
|
51
|
-
automatically and that requires `bundler` to silently remember them. Since
|
|
52
|
-
`bundler` will no longer remember CLI flags in future versions, `bundle config`
|
|
53
|
-
(see bundle-config(1)) should be used to apply them permanently.
|
|
54
|
-
|
|
55
|
-
* `--binstubs[=BINSTUBS]`:
|
|
56
|
-
Binstubs are scripts that wrap around executables. Bundler creates a small Ruby
|
|
57
|
-
file (a binstub) that loads Bundler, runs the command, and puts it in `bin/`.
|
|
58
|
-
This lets you link the binstub inside of an application to the exact gem
|
|
59
|
-
version the application needs.
|
|
60
|
-
|
|
61
|
-
Creates a directory (defaults to `~/bin` when the option is used without a
|
|
62
|
-
value, or to the given `<BINSTUBS>` directory otherwise) and places any
|
|
63
|
-
executables from the gem there. These executables run in Bundler's context. If
|
|
64
|
-
used, you might add this directory to your environment's `PATH` variable. For
|
|
65
|
-
instance, if the `rails` gem comes with a `rails` executable, this flag will
|
|
66
|
-
create a `bin/rails` executable that ensures that all referred dependencies
|
|
67
|
-
will be resolved using the bundled gems.
|
|
68
|
-
|
|
69
|
-
* `--clean`:
|
|
70
|
-
On finishing the installation Bundler is going to remove any gems not present
|
|
71
|
-
in the current Gemfile(5). Don't worry, gems currently in use will not be
|
|
72
|
-
removed.
|
|
73
|
-
|
|
74
|
-
This option is deprecated in favor of the `clean` setting.
|
|
75
|
-
|
|
76
|
-
* `--deployment`:
|
|
77
|
-
In [deployment mode][DEPLOYMENT MODE], Bundler will 'roll-out' the bundle for
|
|
78
|
-
production or CI use. Please check carefully if you want to have this option
|
|
79
|
-
enabled in your development environment.
|
|
80
|
-
|
|
81
|
-
This option is deprecated in favor of the `deployment` setting.
|
|
82
|
-
|
|
83
38
|
* `--force`, `--redownload`:
|
|
84
39
|
Force reinstalling every gem, even if already installed.
|
|
85
40
|
|
|
86
|
-
* `--frozen`:
|
|
87
|
-
Do not allow the Gemfile.lock to be updated after this install. Exits
|
|
88
|
-
non-zero if there are going to be changes to the Gemfile.lock.
|
|
89
|
-
|
|
90
|
-
This option is deprecated in favor of the `frozen` setting.
|
|
91
|
-
|
|
92
41
|
* `--full-index`:
|
|
93
42
|
Bundler will not call Rubygems' API endpoint (default) but download and cache
|
|
94
43
|
a (currently big) index file of all gems. Performance can be improved for
|
|
@@ -122,47 +71,18 @@ automatically and that requires `bundler` to silently remember them. Since
|
|
|
122
71
|
does not remove any gems in the cache but keeps the newly bundled gems from
|
|
123
72
|
being cached during the install.
|
|
124
73
|
|
|
125
|
-
* `--no-prune`:
|
|
126
|
-
Don't remove stale gems from the cache when the installation finishes.
|
|
127
|
-
|
|
128
|
-
This option is deprecated in favor of the `no_prune` setting.
|
|
129
|
-
|
|
130
|
-
* `--path=PATH`:
|
|
131
|
-
The location to install the specified gems to. This defaults to Rubygems'
|
|
132
|
-
setting. Bundler shares this location with Rubygems, `gem install ...` will
|
|
133
|
-
have gem installed there, too. Therefore, gems installed without a
|
|
134
|
-
`--path ...` setting will show up by calling `gem list`. Accordingly, gems
|
|
135
|
-
installed to other locations will not get listed.
|
|
136
|
-
|
|
137
|
-
This option is deprecated in favor of the `path` setting.
|
|
138
|
-
|
|
139
74
|
* `--quiet`:
|
|
140
75
|
Do not print progress information to the standard output.
|
|
141
76
|
|
|
142
77
|
* `--retry=[<number>]`:
|
|
143
78
|
Retry failed network or git requests for <number> times.
|
|
144
79
|
|
|
145
|
-
* `--shebang=SHEBANG`:
|
|
146
|
-
Uses the specified ruby executable (usually `ruby`) to execute the scripts
|
|
147
|
-
created with `--binstubs`. In addition, if you use `--binstubs` together with
|
|
148
|
-
`--shebang jruby` these executables will be changed to execute `jruby`
|
|
149
|
-
instead.
|
|
150
|
-
|
|
151
|
-
This option is deprecated in favor of the `shebang` setting.
|
|
152
|
-
|
|
153
80
|
* `--standalone[=<list>]`:
|
|
154
81
|
Makes a bundle that can work without depending on Rubygems or Bundler at
|
|
155
82
|
runtime. A space separated list of groups to install can be specified.
|
|
156
83
|
Bundler creates a directory named `bundle` and installs the bundle there. It
|
|
157
84
|
also generates a `bundle/bundler/setup.rb` file to replace Bundler's own setup
|
|
158
|
-
in the manner required.
|
|
159
|
-
[remembered option][REMEMBERED OPTIONS].
|
|
160
|
-
|
|
161
|
-
* `--system`:
|
|
162
|
-
Installs the gems specified in the bundle to the system's Rubygems location.
|
|
163
|
-
This overrides any previous configuration of `--path`.
|
|
164
|
-
|
|
165
|
-
This option is deprecated in favor of the `system` setting.
|
|
85
|
+
in the manner required.
|
|
166
86
|
|
|
167
87
|
* `--trust-policy=TRUST-POLICY`:
|
|
168
88
|
Apply the Rubygems security policy <policy>, where policy is one of
|
|
@@ -173,26 +93,11 @@ automatically and that requires `bundler` to silently remember them. Since
|
|
|
173
93
|
* `--target-rbconfig=TARGET-RBCONFIG`:
|
|
174
94
|
Path to rbconfig.rb for the deployment target platform.
|
|
175
95
|
|
|
176
|
-
* `--with=<list>`:
|
|
177
|
-
A space-separated list of groups referencing gems to install. If an
|
|
178
|
-
optional group is given it is installed. If a group is given that is
|
|
179
|
-
in the remembered list of groups given to --without, it is removed
|
|
180
|
-
from that list.
|
|
181
|
-
|
|
182
|
-
This option is deprecated in favor of the `with` setting.
|
|
183
|
-
|
|
184
|
-
* `--without=<list>`:
|
|
185
|
-
A space-separated list of groups referencing gems to skip during installation.
|
|
186
|
-
If a group is given that is in the remembered list of groups given
|
|
187
|
-
to --with, it is removed from that list.
|
|
188
|
-
|
|
189
|
-
This option is deprecated in favor of the `without` setting.
|
|
190
|
-
|
|
191
96
|
## DEPLOYMENT MODE
|
|
192
97
|
|
|
193
98
|
Bundler's defaults are optimized for development. To switch to
|
|
194
|
-
defaults optimized for deployment and for CI, use the
|
|
195
|
-
|
|
99
|
+
defaults optimized for deployment and for CI, use the `deployment`
|
|
100
|
+
setting. Do not activate deployment mode on development machines, as it
|
|
196
101
|
will cause an error when the Gemfile(5) is modified.
|
|
197
102
|
|
|
198
103
|
1. A `Gemfile.lock` is required.
|
|
@@ -224,9 +129,9 @@ will cause an error when the Gemfile(5) is modified.
|
|
|
224
129
|
gems to the system, or the web server may not have permission to
|
|
225
130
|
read them.
|
|
226
131
|
|
|
227
|
-
As a result, `bundle install
|
|
228
|
-
the `vendor/bundle` directory in the application. This may be
|
|
229
|
-
overridden using the
|
|
132
|
+
As a result, when `deployment` is configured, `bundle install` installs gems
|
|
133
|
+
to the `vendor/bundle` directory in the application. This may be
|
|
134
|
+
overridden using the `path` setting.
|
|
230
135
|
|
|
231
136
|
## INSTALLING GROUPS
|
|
232
137
|
|
|
@@ -234,12 +139,12 @@ By default, `bundle install` will install all gems in all groups
|
|
|
234
139
|
in your Gemfile(5), except those declared for a different platform.
|
|
235
140
|
|
|
236
141
|
However, you can explicitly tell Bundler to skip installing
|
|
237
|
-
certain groups with the
|
|
142
|
+
certain groups with the `without` setting. This setting takes
|
|
238
143
|
a space-separated list of groups.
|
|
239
144
|
|
|
240
|
-
While the
|
|
241
|
-
specified groups,
|
|
242
|
-
resolve the dependencies of every gem in your Gemfile(5).
|
|
145
|
+
While the `without` setting will skip _installing_ the gems in the
|
|
146
|
+
specified groups, `bundle install` will still _download_ those gems and use them
|
|
147
|
+
to resolve the dependencies of every gem in your Gemfile(5).
|
|
243
148
|
|
|
244
149
|
This is so that installing a different set of groups on another
|
|
245
150
|
machine (such as a production server) will not change the
|
|
@@ -265,7 +170,7 @@ For a simple illustration, consider the following Gemfile(5):
|
|
|
265
170
|
In this case, `sinatra` depends on any version of Rack (`>= 1.0`), while
|
|
266
171
|
`rack-perftools-profiler` depends on 1.x (`~> 1.0`).
|
|
267
172
|
|
|
268
|
-
When you
|
|
173
|
+
When you configure `bundle config without production` in development, we
|
|
269
174
|
look at the dependencies of `rack-perftools-profiler` as well. That way,
|
|
270
175
|
you do not spend all your time developing against Rack 2.0, using new
|
|
271
176
|
APIs unavailable in Rack 1.x, only to have Bundler switch to Rack 1.2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-LICENSES" "1" "
|
|
3
|
+
.TH "BUNDLE\-LICENSES" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-licenses\fR \- Print the license of all gems in the bundle
|
|
6
6
|
.SH "SYNOPSIS"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-LIST" "1" "
|
|
3
|
+
.TH "BUNDLE\-LIST" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-list\fR \- List all the gems in the bundle
|
|
6
6
|
.SH "SYNOPSIS"
|
|
@@ -19,6 +19,8 @@ bundle list \-\-without\-group test
|
|
|
19
19
|
bundle list \-\-only\-group dev
|
|
20
20
|
.P
|
|
21
21
|
bundle list \-\-only\-group dev test \-\-paths
|
|
22
|
+
.P
|
|
23
|
+
bundle list \-\-format json
|
|
22
24
|
.SH "OPTIONS"
|
|
23
25
|
.TP
|
|
24
26
|
\fB\-\-name\-only\fR
|
|
@@ -32,4 +34,7 @@ A space\-separated list of groups of gems to skip during printing\.
|
|
|
32
34
|
.TP
|
|
33
35
|
\fB\-\-only\-group=<list>\fR
|
|
34
36
|
A space\-separated list of groups of gems to print\.
|
|
37
|
+
.TP
|
|
38
|
+
\fB\-\-format=FORMAT\fR
|
|
39
|
+
Format output ('json' is the only supported format)
|
|
35
40
|
|
|
@@ -21,6 +21,8 @@ bundle list --only-group dev
|
|
|
21
21
|
|
|
22
22
|
bundle list --only-group dev test --paths
|
|
23
23
|
|
|
24
|
+
bundle list --format json
|
|
25
|
+
|
|
24
26
|
## OPTIONS
|
|
25
27
|
|
|
26
28
|
* `--name-only`:
|
|
@@ -34,3 +36,6 @@ bundle list --only-group dev test --paths
|
|
|
34
36
|
|
|
35
37
|
* `--only-group=<list>`:
|
|
36
38
|
A space-separated list of groups of gems to print.
|
|
39
|
+
|
|
40
|
+
* `--format=FORMAT`:
|
|
41
|
+
Format output ('json' is the only supported format)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-LOCK" "1" "
|
|
3
|
+
.TH "BUNDLE\-LOCK" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-lock\fR \- Creates / Updates a lockfile without installing
|
|
6
6
|
.SH "SYNOPSIS"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-OPEN" "1" "
|
|
3
|
+
.TH "BUNDLE\-OPEN" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-open\fR \- Opens the source directory for a gem in your bundle
|
|
6
6
|
.SH "SYNOPSIS"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-OUTDATED" "1" "
|
|
3
|
+
.TH "BUNDLE\-OUTDATED" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-outdated\fR \- List installed gems with newer versions available
|
|
6
6
|
.SH "SYNOPSIS"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-PLATFORM" "1" "
|
|
3
|
+
.TH "BUNDLE\-PLATFORM" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-platform\fR \- Displays platform compatibility information
|
|
6
6
|
.SH "SYNOPSIS"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-PLUGIN" "1" "
|
|
3
|
+
.TH "BUNDLE\-PLUGIN" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-plugin\fR \- Manage Bundler plugins
|
|
6
6
|
.SH "SYNOPSIS"
|
|
7
|
-
\fBbundle plugin\fR install PLUGINS [\-\-source=SOURCE] [\-\-version=VERSION] [\-\-git=GIT] [\-\-branch=BRANCH|\-\-ref=REF] [\-\-
|
|
7
|
+
\fBbundle plugin\fR install PLUGINS [\-\-source=SOURCE] [\-\-version=VERSION] [\-\-git=GIT] [\-\-branch=BRANCH|\-\-ref=REF] [\-\-path=PATH]
|
|
8
8
|
.br
|
|
9
9
|
\fBbundle plugin\fR uninstall PLUGINS [\-\-all]
|
|
10
10
|
.br
|
|
@@ -54,13 +54,6 @@ When you specify \fB\-\-git\fR, you can use \fB\-\-ref\fR to specify any tag, or
|
|
|
54
54
|
Install the plugin gem from a local path\.
|
|
55
55
|
.IP
|
|
56
56
|
Example: \fBbundle plugin install bundler\-graph \-\-path \.\./bundler\-graph\fR
|
|
57
|
-
.TP
|
|
58
|
-
\fB\-\-local\-git=LOCAL_GIT\fR
|
|
59
|
-
Install the plugin gem from a local Git repository\.
|
|
60
|
-
.IP
|
|
61
|
-
Example: \fBbundle plugin install bundler\-graph \-\-local\-git \.\./bundler\-graph\fR\.
|
|
62
|
-
.IP
|
|
63
|
-
This option is deprecated in favor of \fB\-\-git\fR\.
|
|
64
57
|
.SS "uninstall"
|
|
65
58
|
Uninstall the plugin(s) specified in PLUGINS\.
|
|
66
59
|
.P
|
|
@@ -5,7 +5,6 @@ bundle-plugin(1) -- Manage Bundler plugins
|
|
|
5
5
|
|
|
6
6
|
`bundle plugin` install PLUGINS [--source=SOURCE] [--version=VERSION]
|
|
7
7
|
[--git=GIT] [--branch=BRANCH|--ref=REF]
|
|
8
|
-
[--local-git=LOCAL_GIT]
|
|
9
8
|
[--path=PATH]<br>
|
|
10
9
|
`bundle plugin` uninstall PLUGINS [--all]<br>
|
|
11
10
|
`bundle plugin` list<br>
|
|
@@ -59,13 +58,6 @@ global source specified in Gemfile is ignored.
|
|
|
59
58
|
|
|
60
59
|
Example: `bundle plugin install bundler-graph --path ../bundler-graph`
|
|
61
60
|
|
|
62
|
-
* `--local-git=LOCAL_GIT`:
|
|
63
|
-
Install the plugin gem from a local Git repository.
|
|
64
|
-
|
|
65
|
-
Example: `bundle plugin install bundler-graph --local-git ../bundler-graph`.
|
|
66
|
-
|
|
67
|
-
This option is deprecated in favor of `--git`.
|
|
68
|
-
|
|
69
61
|
### uninstall
|
|
70
62
|
|
|
71
63
|
Uninstall the plugin(s) specified in PLUGINS.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-PRISTINE" "1" "
|
|
3
|
+
.TH "BUNDLE\-PRISTINE" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-pristine\fR \- Restores installed gems to their pristine condition
|
|
6
6
|
.SH "SYNOPSIS"
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-REMOVE" "1" "
|
|
3
|
+
.TH "BUNDLE\-REMOVE" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-remove\fR \- Removes gems from the Gemfile
|
|
6
6
|
.SH "SYNOPSIS"
|
|
7
|
-
|
|
7
|
+
`bundle remove [GEM [GEM \|\.\|\.\|\.]]
|
|
8
8
|
.SH "DESCRIPTION"
|
|
9
9
|
Removes the given gems from the Gemfile while ensuring that the resulting Gemfile is still valid\. If a gem cannot be removed, a warning is printed\. If a gem is already absent from the Gemfile, and error is raised\.
|
|
10
|
-
.SH "OPTIONS"
|
|
11
|
-
.TP
|
|
12
|
-
\fB\-\-install\fR
|
|
13
|
-
Runs \fBbundle install\fR after the given gems have been removed from the Gemfile, which ensures that both the lockfile and the installed gems on disk are also updated to remove the given gem(s)\.
|
|
14
10
|
.P
|
|
15
11
|
Example:
|
|
16
12
|
.P
|
|
17
13
|
bundle remove rails
|
|
18
14
|
.P
|
|
19
15
|
bundle remove rails rack
|
|
20
|
-
.P
|
|
21
|
-
bundle remove rails rack \-\-install
|
|
@@ -3,21 +3,14 @@ bundle-remove(1) -- Removes gems from the Gemfile
|
|
|
3
3
|
|
|
4
4
|
## SYNOPSIS
|
|
5
5
|
|
|
6
|
-
`bundle remove [GEM [GEM ...]]
|
|
6
|
+
`bundle remove [GEM [GEM ...]]
|
|
7
7
|
|
|
8
8
|
## DESCRIPTION
|
|
9
9
|
|
|
10
10
|
Removes the given gems from the Gemfile while ensuring that the resulting Gemfile is still valid. If a gem cannot be removed, a warning is printed. If a gem is already absent from the Gemfile, and error is raised.
|
|
11
11
|
|
|
12
|
-
## OPTIONS
|
|
13
|
-
|
|
14
|
-
* `--install`:
|
|
15
|
-
Runs `bundle install` after the given gems have been removed from the Gemfile, which ensures that both the lockfile and the installed gems on disk are also updated to remove the given gem(s).
|
|
16
|
-
|
|
17
12
|
Example:
|
|
18
13
|
|
|
19
14
|
bundle remove rails
|
|
20
15
|
|
|
21
16
|
bundle remove rails rack
|
|
22
|
-
|
|
23
|
-
bundle remove rails rack --install
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-SHOW" "1" "
|
|
3
|
+
.TH "BUNDLE\-SHOW" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-show\fR \- Shows all the gems in your bundle, or the path to a gem
|
|
6
6
|
.SH "SYNOPSIS"
|
|
7
|
-
\fBbundle show\fR [GEM] [\-\-paths]
|
|
7
|
+
\fBbundle show\fR [GEM] [\-\-paths]
|
|
8
8
|
.SH "DESCRIPTION"
|
|
9
9
|
Without the [GEM] option, \fBshow\fR will print a list of the names and versions of all gems that are required by your [\fBGemfile(5)\fR][Gemfile(5)], sorted by name\.
|
|
10
10
|
.P
|
|
@@ -13,7 +13,4 @@ Calling show with [GEM] will list the exact location of that gem on your machine
|
|
|
13
13
|
.TP
|
|
14
14
|
\fB\-\-paths\fR
|
|
15
15
|
List the paths of all gems that are required by your [\fBGemfile(5)\fR][Gemfile(5)], sorted by gem name\.
|
|
16
|
-
.TP
|
|
17
|
-
\fB\-\-outdated\fR
|
|
18
|
-
Show verbose output including whether gems are outdated\.
|
|
19
16
|
|
|
@@ -5,7 +5,6 @@ bundle-show(1) -- Shows all the gems in your bundle, or the path to a gem
|
|
|
5
5
|
|
|
6
6
|
`bundle show` [GEM]
|
|
7
7
|
[--paths]
|
|
8
|
-
[--outdated]
|
|
9
8
|
|
|
10
9
|
## DESCRIPTION
|
|
11
10
|
|
|
@@ -20,6 +19,3 @@ machine.
|
|
|
20
19
|
* `--paths`:
|
|
21
20
|
List the paths of all gems that are required by your [`Gemfile(5)`][Gemfile(5)],
|
|
22
21
|
sorted by gem name.
|
|
23
|
-
|
|
24
|
-
* `--outdated`:
|
|
25
|
-
Show verbose output including whether gems are outdated.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-UPDATE" "1" "
|
|
3
|
+
.TH "BUNDLE\-UPDATE" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-update\fR \- Update your gems to the latest available versions
|
|
6
6
|
.SH "SYNOPSIS"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE\-VERSION" "1" "
|
|
3
|
+
.TH "BUNDLE\-VERSION" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\-version\fR \- Prints Bundler version information
|
|
6
6
|
.SH "SYNOPSIS"
|
data/lib/bundler/man/bundle.1
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "BUNDLE" "1" "
|
|
3
|
+
.TH "BUNDLE" "1" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBbundle\fR \- Ruby Dependency Management
|
|
6
6
|
.SH "SYNOPSIS"
|
|
@@ -66,9 +66,6 @@ Open an installed gem in the editor
|
|
|
66
66
|
\fBbundle lock(1)\fR \fIbundle\-lock\.1\.html\fR
|
|
67
67
|
Generate a lockfile for your dependencies
|
|
68
68
|
.TP
|
|
69
|
-
\fBbundle viz(1)\fR \fIbundle\-viz\.1\.html\fR (deprecated)
|
|
70
|
-
Generate a visual representation of your dependencies
|
|
71
|
-
.TP
|
|
72
69
|
\fBbundle init(1)\fR \fIbundle\-init\.1\.html\fR
|
|
73
70
|
Generate a simple \fBGemfile\fR, placed in the current directory
|
|
74
71
|
.TP
|
|
@@ -94,9 +91,3 @@ Manage Bundler plugins
|
|
|
94
91
|
Prints Bundler version information
|
|
95
92
|
.SH "PLUGINS"
|
|
96
93
|
When running a command that isn't listed in PRIMARY COMMANDS or UTILITIES, Bundler will try to find an executable on your path named \fBbundler\-<command>\fR and execute it, passing down any extra arguments to it\.
|
|
97
|
-
.SH "OBSOLETE"
|
|
98
|
-
These commands are obsolete and should no longer be used:
|
|
99
|
-
.IP "\(bu" 4
|
|
100
|
-
\fBbundle inject(1)\fR
|
|
101
|
-
.IP "" 0
|
|
102
|
-
|
|
@@ -76,9 +76,6 @@ We divide `bundle` subcommands into primary commands and utilities:
|
|
|
76
76
|
* [`bundle lock(1)`](bundle-lock.1.html):
|
|
77
77
|
Generate a lockfile for your dependencies
|
|
78
78
|
|
|
79
|
-
* [`bundle viz(1)`](bundle-viz.1.html) (deprecated):
|
|
80
|
-
Generate a visual representation of your dependencies
|
|
81
|
-
|
|
82
79
|
* [`bundle init(1)`](bundle-init.1.html):
|
|
83
80
|
Generate a simple `Gemfile`, placed in the current directory
|
|
84
81
|
|
|
@@ -108,9 +105,3 @@ We divide `bundle` subcommands into primary commands and utilities:
|
|
|
108
105
|
When running a command that isn't listed in PRIMARY COMMANDS or UTILITIES,
|
|
109
106
|
Bundler will try to find an executable on your path named `bundler-<command>`
|
|
110
107
|
and execute it, passing down any extra arguments to it.
|
|
111
|
-
|
|
112
|
-
## OBSOLETE
|
|
113
|
-
|
|
114
|
-
These commands are obsolete and should no longer be used:
|
|
115
|
-
|
|
116
|
-
* `bundle inject(1)`
|
data/lib/bundler/man/gemfile.5
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.\" generated with Ronn-NG/v0.10.1
|
|
2
2
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
3
|
-
.TH "GEMFILE" "5" "
|
|
3
|
+
.TH "GEMFILE" "5" "September 2025" ""
|
|
4
4
|
.SH "NAME"
|
|
5
5
|
\fBGemfile\fR \- A format for describing gem dependencies for Ruby programs
|
|
6
6
|
.SH "SYNOPSIS"
|
data/lib/bundler/man/index.txt
CHANGED
|
@@ -15,7 +15,6 @@ bundle-gem(1) bundle-gem.1
|
|
|
15
15
|
bundle-help(1) bundle-help.1
|
|
16
16
|
bundle-info(1) bundle-info.1
|
|
17
17
|
bundle-init(1) bundle-init.1
|
|
18
|
-
bundle-inject(1) bundle-inject.1
|
|
19
18
|
bundle-install(1) bundle-install.1
|
|
20
19
|
bundle-issue(1) bundle-issue.1
|
|
21
20
|
bundle-licenses(1) bundle-licenses.1
|
|
@@ -30,4 +29,3 @@ bundle-remove(1) bundle-remove.1
|
|
|
30
29
|
bundle-show(1) bundle-show.1
|
|
31
30
|
bundle-update(1) bundle-update.1
|
|
32
31
|
bundle-version(1) bundle-version.1
|
|
33
|
-
bundle-viz(1) bundle-viz.1
|
|
@@ -43,16 +43,6 @@ module Bundler
|
|
|
43
43
|
private
|
|
44
44
|
|
|
45
45
|
def check_sources_consistency!(options)
|
|
46
|
-
if options.key?(:git) && options.key?(:local_git)
|
|
47
|
-
raise InvalidOption, "Remote and local plugin git sources can't be both specified"
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
# back-compat; local_git is an alias for git
|
|
51
|
-
if options.key?(:local_git)
|
|
52
|
-
Bundler::SharedHelpers.major_deprecation(2, "--local_git is deprecated, use --git")
|
|
53
|
-
options[:git] = options.delete(:local_git)
|
|
54
|
-
end
|
|
55
|
-
|
|
56
46
|
if (options.keys & [:source, :git, :path]).length > 1
|
|
57
47
|
raise InvalidOption, "Only one of --source, --git, or --path may be specified"
|
|
58
48
|
end
|
data/lib/bundler/plugin.rb
CHANGED
|
@@ -220,7 +220,7 @@ module Bundler
|
|
|
220
220
|
#
|
|
221
221
|
# @param [String] event
|
|
222
222
|
def hook(event, *args, &arg_blk)
|
|
223
|
-
return unless Bundler.
|
|
223
|
+
return unless Bundler.settings[:plugins]
|
|
224
224
|
unless Events.defined_event?(event)
|
|
225
225
|
raise ArgumentError, "Event '#{event}' not defined in Bundler::Plugin::Events"
|
|
226
226
|
end
|
data/lib/bundler/resolver.rb
CHANGED
|
@@ -165,7 +165,7 @@ module Bundler
|
|
|
165
165
|
PubGrub::VersionConstraint.new(package, range: range)
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
def versions_for(package, range=VersionRange.any)
|
|
168
|
+
def versions_for(package, range = VersionRange.any)
|
|
169
169
|
range.select_versions(@sorted_versions[package])
|
|
170
170
|
end
|
|
171
171
|
|
data/lib/bundler/ruby_dsl.rb
CHANGED
data/lib/bundler/ruby_version.rb
CHANGED
|
@@ -43,7 +43,6 @@ module Bundler
|
|
|
43
43
|
|
|
44
44
|
def to_s(versions = self.versions)
|
|
45
45
|
output = String.new("ruby #{versions_string(versions)}")
|
|
46
|
-
output << "p#{patchlevel}" if patchlevel && patchlevel != "-1"
|
|
47
46
|
output << " (#{engine} #{versions_string(engine_versions)})" unless engine == "ruby"
|
|
48
47
|
|
|
49
48
|
output
|
|
@@ -72,8 +71,7 @@ module Bundler
|
|
|
72
71
|
def ==(other)
|
|
73
72
|
versions == other.versions &&
|
|
74
73
|
engine == other.engine &&
|
|
75
|
-
engine_versions == other.engine_versions
|
|
76
|
-
patchlevel == other.patchlevel
|
|
74
|
+
engine_versions == other.engine_versions
|
|
77
75
|
end
|
|
78
76
|
|
|
79
77
|
def host
|
data/lib/bundler/rubygems_ext.rb
CHANGED
|
@@ -417,7 +417,7 @@ module Gem
|
|
|
417
417
|
unless Gem::NameTuple.new("a", Gem::Version.new("1"), Gem::Platform.new("x86_64-linux")).platform.is_a?(String)
|
|
418
418
|
alias_method :initialize_with_platform, :initialize
|
|
419
419
|
|
|
420
|
-
def initialize(name, version, platform=Gem::Platform::RUBY)
|
|
420
|
+
def initialize(name, version, platform = Gem::Platform::RUBY)
|
|
421
421
|
if Gem::Platform === platform
|
|
422
422
|
initialize_with_platform(name, version, platform.to_s)
|
|
423
423
|
else
|
|
@@ -69,7 +69,7 @@ module Bundler
|
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
def generate_plugins
|
|
72
|
-
return unless Gem::Installer.
|
|
72
|
+
return unless Gem::Installer.method_defined?(:generate_plugins, false)
|
|
73
73
|
|
|
74
74
|
latest = Gem::Specification.stubs_for(spec.name).first
|
|
75
75
|
return if latest && latest.version > spec.version
|
|
@@ -416,11 +416,7 @@ module Bundler
|
|
|
416
416
|
end
|
|
417
417
|
|
|
418
418
|
def all_specs
|
|
419
|
-
SharedHelpers.
|
|
420
|
-
|
|
421
|
-
Gem::Specification.stubs.map do |stub|
|
|
422
|
-
StubSpecification.from_stub(stub)
|
|
423
|
-
end
|
|
419
|
+
SharedHelpers.feature_removed! "Bundler.rubygems.all_specs has been removed in favor of Bundler.rubygems.installed_specs"
|
|
424
420
|
end
|
|
425
421
|
|
|
426
422
|
def installed_specs
|