bundler 2.7.1 → 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.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1001 -902
  3. data/README.md +4 -4
  4. data/bundler.gemspec +3 -3
  5. data/lib/bundler/build_metadata.rb +2 -2
  6. data/lib/bundler/capistrano.rb +1 -19
  7. data/lib/bundler/checksum.rb +6 -0
  8. data/lib/bundler/cli/cache.rb +1 -12
  9. data/lib/bundler/cli/common.rb +21 -4
  10. data/lib/bundler/cli/config.rb +1 -2
  11. data/lib/bundler/cli/console.rb +5 -0
  12. data/lib/bundler/cli/exec.rb +29 -4
  13. data/lib/bundler/cli/gem.rb +19 -33
  14. data/lib/bundler/cli/install.rb +7 -84
  15. data/lib/bundler/cli/issue.rb +2 -2
  16. data/lib/bundler/cli/list.rb +33 -2
  17. data/lib/bundler/cli/lock.rb +5 -5
  18. data/lib/bundler/cli/plugin.rb +5 -1
  19. data/lib/bundler/cli/show.rb +3 -7
  20. data/lib/bundler/cli/update.rb +3 -3
  21. data/lib/bundler/cli.rb +97 -95
  22. data/lib/bundler/compact_index_client.rb +0 -1
  23. data/lib/bundler/current_ruby.rb +3 -15
  24. data/lib/bundler/definition.rb +122 -95
  25. data/lib/bundler/deployment.rb +1 -64
  26. data/lib/bundler/digest.rb +1 -1
  27. data/lib/bundler/dsl.rb +14 -36
  28. data/lib/bundler/endpoint_specification.rb +0 -22
  29. data/lib/bundler/errors.rb +1 -5
  30. data/lib/bundler/feature_flag.rb +0 -33
  31. data/lib/bundler/fetcher/compact_index.rb +1 -1
  32. data/lib/bundler/friendly_errors.rb +2 -2
  33. data/lib/bundler/index.rb +0 -7
  34. data/lib/bundler/inline.rb +1 -1
  35. data/lib/bundler/installer/gem_installer.rb +0 -11
  36. data/lib/bundler/installer.rb +0 -6
  37. data/lib/bundler/lockfile_generator.rb +1 -1
  38. data/lib/bundler/lockfile_parser.rb +2 -12
  39. data/lib/bundler/man/bundle-add.1 +1 -1
  40. data/lib/bundler/man/bundle-binstubs.1 +3 -6
  41. data/lib/bundler/man/bundle-binstubs.1.ronn +4 -6
  42. data/lib/bundler/man/bundle-cache.1 +2 -14
  43. data/lib/bundler/man/bundle-cache.1.ronn +1 -14
  44. data/lib/bundler/man/bundle-check.1 +2 -5
  45. data/lib/bundler/man/bundle-check.1.ronn +0 -5
  46. data/lib/bundler/man/bundle-clean.1 +1 -1
  47. data/lib/bundler/man/bundle-config.1 +36 -46
  48. data/lib/bundler/man/bundle-config.1.ronn +69 -75
  49. data/lib/bundler/man/bundle-console.1 +1 -1
  50. data/lib/bundler/man/bundle-doctor.1 +4 -4
  51. data/lib/bundler/man/bundle-doctor.1.ronn +4 -4
  52. data/lib/bundler/man/bundle-env.1 +1 -1
  53. data/lib/bundler/man/bundle-exec.1 +2 -5
  54. data/lib/bundler/man/bundle-exec.1.ronn +1 -5
  55. data/lib/bundler/man/bundle-fund.1 +1 -1
  56. data/lib/bundler/man/bundle-gem.1 +3 -6
  57. data/lib/bundler/man/bundle-gem.1.ronn +2 -5
  58. data/lib/bundler/man/bundle-help.1 +1 -1
  59. data/lib/bundler/man/bundle-info.1 +1 -1
  60. data/lib/bundler/man/bundle-init.1 +1 -1
  61. data/lib/bundler/man/bundle-install.1 +8 -59
  62. data/lib/bundler/man/bundle-install.1.ronn +12 -107
  63. data/lib/bundler/man/bundle-issue.1 +1 -1
  64. data/lib/bundler/man/bundle-licenses.1 +1 -1
  65. data/lib/bundler/man/bundle-list.1 +6 -1
  66. data/lib/bundler/man/bundle-list.1.ronn +5 -0
  67. data/lib/bundler/man/bundle-lock.1 +1 -1
  68. data/lib/bundler/man/bundle-open.1 +1 -1
  69. data/lib/bundler/man/bundle-outdated.1 +1 -1
  70. data/lib/bundler/man/bundle-platform.1 +1 -1
  71. data/lib/bundler/man/bundle-plugin.1 +33 -15
  72. data/lib/bundler/man/bundle-plugin.1.ronn +36 -15
  73. data/lib/bundler/man/bundle-pristine.1 +1 -1
  74. data/lib/bundler/man/bundle-remove.1 +2 -8
  75. data/lib/bundler/man/bundle-remove.1.ronn +1 -8
  76. data/lib/bundler/man/bundle-show.1 +2 -5
  77. data/lib/bundler/man/bundle-show.1.ronn +0 -4
  78. data/lib/bundler/man/bundle-update.1 +1 -1
  79. data/lib/bundler/man/bundle-version.1 +1 -1
  80. data/lib/bundler/man/bundle.1 +1 -10
  81. data/lib/bundler/man/bundle.1.ronn +0 -9
  82. data/lib/bundler/man/gemfile.5 +1 -1
  83. data/lib/bundler/man/index.txt +0 -2
  84. data/lib/bundler/materialization.rb +1 -1
  85. data/lib/bundler/plugin/installer.rb +0 -10
  86. data/lib/bundler/plugin/source_list.rb +1 -1
  87. data/lib/bundler/plugin.rb +1 -1
  88. data/lib/bundler/resolver/package.rb +1 -0
  89. data/lib/bundler/resolver.rb +1 -1
  90. data/lib/bundler/ruby_dsl.rb +2 -0
  91. data/lib/bundler/ruby_version.rb +1 -3
  92. data/lib/bundler/rubygems_ext.rb +1 -1
  93. data/lib/bundler/rubygems_gem_installer.rb +1 -1
  94. data/lib/bundler/rubygems_integration.rb +1 -5
  95. data/lib/bundler/self_manager.rb +1 -1
  96. data/lib/bundler/settings.rb +8 -27
  97. data/lib/bundler/shared_helpers.rb +8 -20
  98. data/lib/bundler/source/gemspec.rb +4 -0
  99. data/lib/bundler/source/git/git_proxy.rb +3 -11
  100. data/lib/bundler/source/git.rb +2 -3
  101. data/lib/bundler/source/path.rb +5 -7
  102. data/lib/bundler/source/rubygems.rb +11 -17
  103. data/lib/bundler/source.rb +1 -1
  104. data/lib/bundler/source_list.rb +4 -45
  105. data/lib/bundler/source_map.rb +2 -5
  106. data/lib/bundler/spec_set.rb +6 -15
  107. data/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +7 -129
  108. data/lib/bundler/templates/newgem/circleci/config.yml.tt +12 -0
  109. data/lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +1 -1
  110. data/lib/bundler/templates/newgem/ext/newgem/extconf-go.rb.tt +11 -0
  111. data/lib/bundler/templates/newgem/ext/newgem/go.mod.tt +5 -0
  112. data/lib/bundler/templates/newgem/ext/newgem/newgem-go.c.tt +2 -0
  113. data/lib/bundler/templates/newgem/ext/newgem/newgem.go.tt +31 -0
  114. data/lib/bundler/templates/newgem/github/workflows/main.yml.tt +6 -0
  115. data/lib/bundler/templates/newgem/gitlab-ci.yml.tt +9 -0
  116. data/lib/bundler/templates/newgem/newgem.gemspec.tt +7 -4
  117. data/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +26 -23
  118. data/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +1 -1
  119. data/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +50 -6
  120. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +57 -52
  121. data/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +5 -2
  122. data/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +42 -6
  123. data/lib/bundler/vendor/thor/lib/thor/parser/options.rb +1 -1
  124. data/lib/bundler/vendor/thor/lib/thor/runner.rb +2 -2
  125. data/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +3 -7
  126. data/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
  127. data/lib/bundler/vendor/uri/lib/uri/common.rb +57 -15
  128. data/lib/bundler/vendor/uri/lib/uri/file.rb +1 -1
  129. data/lib/bundler/vendor/uri/lib/uri/generic.rb +34 -21
  130. data/lib/bundler/vendor/uri/lib/uri/http.rb +12 -0
  131. data/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +9 -8
  132. data/lib/bundler/vendor/uri/lib/uri/version.rb +2 -2
  133. data/lib/bundler/version.rb +1 -1
  134. data/lib/bundler/vlad.rb +1 -14
  135. data/lib/bundler.rb +6 -28
  136. metadata +9 -13
  137. data/lib/bundler/cli/inject.rb +0 -60
  138. data/lib/bundler/cli/viz.rb +0 -31
  139. data/lib/bundler/graph.rb +0 -152
  140. data/lib/bundler/man/bundle-inject.1 +0 -31
  141. data/lib/bundler/man/bundle-inject.1.ronn +0 -32
  142. data/lib/bundler/man/bundle-viz.1 +0 -30
  143. data/lib/bundler/man/bundle-viz.1.ronn +0 -36
  144. 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` [--binstubs[=DIRECTORY]]
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. Using this option implicitly sets `path`, which is a
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 `--deployment`
195
- flag. Do not activate deployment mode on development machines, as it
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 --deployment` installs gems to
228
- the `vendor/bundle` directory in the application. This may be
229
- overridden using the `--path` option.
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 `--without` option. This option takes
142
+ certain groups with the `without` setting. This setting takes
238
143
  a space-separated list of groups.
239
144
 
240
- While the `--without` option will skip _installing_ the gems in the
241
- specified groups, it will still _download_ those gems and use them to
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 run `bundle install --without production` in development, we
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\-ISSUE" "1" "July 2025" ""
3
+ .TH "BUNDLE\-ISSUE" "1" "September 2025" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\-issue\fR \- Get help reporting Bundler issues
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\-LICENSES" "1" "July 2025" ""
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" "July 2025" ""
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" "July 2025" ""
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" "July 2025" ""
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" "July 2025" ""
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" "July 2025" ""
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,12 +1,12 @@
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" "July 2025" ""
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=\fISOURCE\fR] [\-\-version=\fIversion\fR] [\-\-git=\fIgit\-url\fR] [\-\-branch=\fIbranch\fR|\-\-ref=\fIrev\fR] [\-\-path=\fIpath\fR]
7
+ \fBbundle plugin\fR install PLUGINS [\-\-source=SOURCE] [\-\-version=VERSION] [\-\-git=GIT] [\-\-branch=BRANCH|\-\-ref=REF] [\-\-path=PATH]
8
8
  .br
9
- \fBbundle plugin\fR uninstall PLUGINS
9
+ \fBbundle plugin\fR uninstall PLUGINS [\-\-all]
10
10
  .br
11
11
  \fBbundle plugin\fR list
12
12
  .br
@@ -16,18 +16,23 @@ You can install, uninstall, and list plugin(s) with this command to extend funct
16
16
  .SH "SUB\-COMMANDS"
17
17
  .SS "install"
18
18
  Install the given plugin(s)\.
19
+ .P
20
+ For example, \fBbundle plugin install bundler\-graph\fR will install bundler\-graph gem from globally configured sources (defaults to RubyGems\.org)\. Note that the global source specified in Gemfile is ignored\.
21
+ .P
22
+ \fBOPTIONS\fR
19
23
  .TP
20
- \fBbundle plugin install bundler\-graph\fR
21
- Install bundler\-graph gem from globally configured sources (defaults to RubyGems\.org)\. The global source, specified in source in Gemfile is ignored\.
22
- .TP
23
- \fBbundle plugin install bundler\-graph \-\-source https://example\.com\fR
24
- Install bundler\-graph gem from example\.com\. The global source, specified in source in Gemfile is not considered\.
24
+ \fB\-\-source=SOURCE\fR
25
+ Install the plugin gem from a specific source, rather than from globally configured sources\.
26
+ .IP
27
+ Example: \fBbundle plugin install bundler\-graph \-\-source https://example\.com\fR
25
28
  .TP
26
- \fBbundle plugin install bundler\-graph \-\-version 0\.2\.1\fR
27
- You can specify the version of the gem via \fB\-\-version\fR\.
29
+ \fB\-\-version=VERSION\fR
30
+ Specify a version of the plugin gem to install via \fB\-\-version\fR\.
31
+ .IP
32
+ Example: \fBbundle plugin install bundler\-graph \-\-version 0\.2\.1\fR
28
33
  .TP
29
- \fBbundle plugin install bundler\-graph \-\-git https://github\.com/rubygems/bundler\-graph\fR
30
- Install bundler\-graph gem from Git repository\. You can use standard Git URLs like:
34
+ \fB\-\-git=GIT\fR
35
+ Install the plugin gem from a Git repository\. You can use standard Git URLs like:
31
36
  .IP
32
37
  \fBssh://[user@]host\.xz[:port]/path/to/repo\.git\fR
33
38
  .br
@@ -37,12 +42,25 @@ Install bundler\-graph gem from Git repository\. You can use standard Git URLs l
37
42
  .br
38
43
  \fBfile:///path/to/repo\fR
39
44
  .IP
40
- When you specify \fB\-\-git\fR, you can use \fB\-\-branch\fR or \fB\-\-ref\fR to specify any branch, tag, or commit hash (revision) to use\.
45
+ Example: \fBbundle plugin install bundler\-graph \-\-git https://github\.com/rubygems/bundler\-graph\fR
41
46
  .TP
42
- \fBbundle plugin install bundler\-graph \-\-path \.\./bundler\-graph\fR
43
- Install bundler\-graph gem from a local path\.
47
+ \fB\-\-branch=BRANCH\fR
48
+ When you specify \fB\-\-git\fR, you can use \fB\-\-branch\fR to use\.
49
+ .TP
50
+ \fB\-\-ref=REF\fR
51
+ When you specify \fB\-\-git\fR, you can use \fB\-\-ref\fR to specify any tag, or commit hash (revision) to use\.
52
+ .TP
53
+ \fB\-\-path=PATH\fR
54
+ Install the plugin gem from a local path\.
55
+ .IP
56
+ Example: \fBbundle plugin install bundler\-graph \-\-path \.\./bundler\-graph\fR
44
57
  .SS "uninstall"
45
58
  Uninstall the plugin(s) specified in PLUGINS\.
59
+ .P
60
+ \fBOPTIONS\fR
61
+ .TP
62
+ \fB\-\-all\fR
63
+ Uninstall all the installed plugins\. If no plugin is installed, then it does nothing\.
46
64
  .SS "list"
47
65
  List the installed plugins and available commands\.
48
66
  .P
@@ -3,10 +3,10 @@ bundle-plugin(1) -- Manage Bundler plugins
3
3
 
4
4
  ## SYNOPSIS
5
5
 
6
- `bundle plugin` install PLUGINS [--source=<SOURCE>] [--version=<version>]
7
- [--git=<git-url>] [--branch=<branch>|--ref=<rev>]
8
- [--path=<path>]<br>
9
- `bundle plugin` uninstall PLUGINS<br>
6
+ `bundle plugin` install PLUGINS [--source=SOURCE] [--version=VERSION]
7
+ [--git=GIT] [--branch=BRANCH|--ref=REF]
8
+ [--path=PATH]<br>
9
+ `bundle plugin` uninstall PLUGINS [--all]<br>
10
10
  `bundle plugin` list<br>
11
11
  `bundle plugin` help [COMMAND]
12
12
 
@@ -20,32 +20,53 @@ You can install, uninstall, and list plugin(s) with this command to extend funct
20
20
 
21
21
  Install the given plugin(s).
22
22
 
23
- * `bundle plugin install bundler-graph`:
24
- Install bundler-graph gem from globally configured sources (defaults to RubyGems.org). The global source, specified in source in Gemfile is ignored.
23
+ For example, `bundle plugin install bundler-graph` will install bundler-graph
24
+ gem from globally configured sources (defaults to RubyGems.org). Note that the
25
+ global source specified in Gemfile is ignored.
25
26
 
26
- * `bundle plugin install bundler-graph --source https://example.com`:
27
- Install bundler-graph gem from example.com. The global source, specified in source in Gemfile is not considered.
27
+ **OPTIONS**
28
28
 
29
- * `bundle plugin install bundler-graph --version 0.2.1`:
30
- You can specify the version of the gem via `--version`.
29
+ * `--source=SOURCE`:
30
+ Install the plugin gem from a specific source, rather than from globally configured sources.
31
31
 
32
- * `bundle plugin install bundler-graph --git https://github.com/rubygems/bundler-graph`:
33
- Install bundler-graph gem from Git repository. You can use standard Git URLs like:
32
+ Example: `bundle plugin install bundler-graph --source https://example.com`
33
+
34
+ * `--version=VERSION`:
35
+ Specify a version of the plugin gem to install via `--version`.
36
+
37
+ Example: `bundle plugin install bundler-graph --version 0.2.1`
38
+
39
+ * `--git=GIT`:
40
+ Install the plugin gem from a Git repository. You can use standard Git URLs like:
34
41
 
35
42
  `ssh://[user@]host.xz[:port]/path/to/repo.git`<br>
36
43
  `http[s]://host.xz[:port]/path/to/repo.git`<br>
37
44
  `/path/to/repo`<br>
38
45
  `file:///path/to/repo`
39
46
 
40
- When you specify `--git`, you can use `--branch` or `--ref` to specify any branch, tag, or commit hash (revision) to use.
47
+ Example: `bundle plugin install bundler-graph --git https://github.com/rubygems/bundler-graph`
48
+
49
+ * `--branch=BRANCH`:
50
+ When you specify `--git`, you can use `--branch` to use.
41
51
 
42
- * `bundle plugin install bundler-graph --path ../bundler-graph`:
43
- Install bundler-graph gem from a local path.
52
+ * `--ref=REF`:
53
+ When you specify `--git`, you can use `--ref` to specify any tag, or commit
54
+ hash (revision) to use.
55
+
56
+ * `--path=PATH`:
57
+ Install the plugin gem from a local path.
58
+
59
+ Example: `bundle plugin install bundler-graph --path ../bundler-graph`
44
60
 
45
61
  ### uninstall
46
62
 
47
63
  Uninstall the plugin(s) specified in PLUGINS.
48
64
 
65
+ **OPTIONS**
66
+
67
+ * `--all`:
68
+ Uninstall all the installed plugins. If no plugin is installed, then it does nothing.
69
+
49
70
  ### list
50
71
 
51
72
  List the installed plugins and available commands.
@@ -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" "July 2025" ""
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" "July 2025" ""
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
- \fBbundle remove [GEM [GEM \|\.\|\.\|\.]] [\-\-install]\fR
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 ...]] [--install]`
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" "July 2025" ""
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] [\-\-outdated]
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" "July 2025" ""
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" "July 2025" ""
3
+ .TH "BUNDLE\-VERSION" "1" "September 2025" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\-version\fR \- Prints Bundler version information
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" "1" "July 2025" ""
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)`
@@ -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" "July 2025" ""
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"
@@ -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
@@ -29,7 +29,7 @@ module Bundler
29
29
  end
30
30
 
31
31
  def dependencies
32
- specs.first.runtime_dependencies.map {|d| [d, platform] }
32
+ (materialized_spec || specs.first).runtime_dependencies.map {|d| [d, platform] }
33
33
  end
34
34
 
35
35
  def materialized_spec