rubygems-update 3.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.
Files changed (206) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1413 -1323
  3. data/CODE_OF_CONDUCT.md +7 -129
  4. data/Manifest.txt +5 -11
  5. data/README.md +2 -2
  6. data/bundler/CHANGELOG.md +990 -917
  7. data/bundler/README.md +4 -4
  8. data/bundler/bundler.gemspec +3 -3
  9. data/bundler/lib/bundler/build_metadata.rb +2 -2
  10. data/bundler/lib/bundler/capistrano.rb +1 -19
  11. data/bundler/lib/bundler/cli/cache.rb +1 -11
  12. data/bundler/lib/bundler/cli/common.rb +20 -3
  13. data/bundler/lib/bundler/cli/config.rb +1 -2
  14. data/bundler/lib/bundler/cli/console.rb +5 -0
  15. data/bundler/lib/bundler/cli/exec.rb +29 -4
  16. data/bundler/lib/bundler/cli/gem.rb +19 -33
  17. data/bundler/lib/bundler/cli/install.rb +7 -82
  18. data/bundler/lib/bundler/cli/issue.rb +2 -2
  19. data/bundler/lib/bundler/cli/list.rb +33 -2
  20. data/bundler/lib/bundler/cli/plugin.rb +5 -1
  21. data/bundler/lib/bundler/cli/show.rb +1 -1
  22. data/bundler/lib/bundler/cli/update.rb +3 -3
  23. data/bundler/lib/bundler/cli.rb +75 -83
  24. data/bundler/lib/bundler/compact_index_client.rb +0 -1
  25. data/bundler/lib/bundler/current_ruby.rb +3 -15
  26. data/bundler/lib/bundler/definition.rb +45 -35
  27. data/bundler/lib/bundler/deployment.rb +1 -64
  28. data/bundler/lib/bundler/digest.rb +1 -1
  29. data/bundler/lib/bundler/dsl.rb +13 -35
  30. data/bundler/lib/bundler/endpoint_specification.rb +0 -22
  31. data/bundler/lib/bundler/errors.rb +1 -5
  32. data/bundler/lib/bundler/feature_flag.rb +0 -33
  33. data/bundler/lib/bundler/fetcher/compact_index.rb +1 -1
  34. data/bundler/lib/bundler/friendly_errors.rb +2 -2
  35. data/bundler/lib/bundler/index.rb +0 -7
  36. data/bundler/lib/bundler/inline.rb +1 -1
  37. data/bundler/lib/bundler/installer/gem_installer.rb +0 -11
  38. data/bundler/lib/bundler/installer.rb +0 -6
  39. data/bundler/lib/bundler/lockfile_generator.rb +1 -1
  40. data/bundler/lib/bundler/lockfile_parser.rb +2 -12
  41. data/bundler/lib/bundler/man/bundle-add.1 +1 -1
  42. data/bundler/lib/bundler/man/bundle-binstubs.1 +3 -6
  43. data/bundler/lib/bundler/man/bundle-binstubs.1.ronn +4 -6
  44. data/bundler/lib/bundler/man/bundle-cache.1 +2 -14
  45. data/bundler/lib/bundler/man/bundle-cache.1.ronn +1 -14
  46. data/bundler/lib/bundler/man/bundle-check.1 +2 -5
  47. data/bundler/lib/bundler/man/bundle-check.1.ronn +0 -5
  48. data/bundler/lib/bundler/man/bundle-clean.1 +1 -1
  49. data/bundler/lib/bundler/man/bundle-config.1 +6 -33
  50. data/bundler/lib/bundler/man/bundle-config.1.ronn +20 -55
  51. data/bundler/lib/bundler/man/bundle-console.1 +1 -1
  52. data/bundler/lib/bundler/man/bundle-doctor.1 +1 -1
  53. data/bundler/lib/bundler/man/bundle-env.1 +1 -1
  54. data/bundler/lib/bundler/man/bundle-exec.1 +2 -5
  55. data/bundler/lib/bundler/man/bundle-exec.1.ronn +1 -5
  56. data/bundler/lib/bundler/man/bundle-fund.1 +1 -1
  57. data/bundler/lib/bundler/man/bundle-gem.1 +3 -6
  58. data/bundler/lib/bundler/man/bundle-gem.1.ronn +2 -5
  59. data/bundler/lib/bundler/man/bundle-help.1 +1 -1
  60. data/bundler/lib/bundler/man/bundle-info.1 +1 -1
  61. data/bundler/lib/bundler/man/bundle-init.1 +1 -1
  62. data/bundler/lib/bundler/man/bundle-install.1 +8 -59
  63. data/bundler/lib/bundler/man/bundle-install.1.ronn +12 -107
  64. data/bundler/lib/bundler/man/bundle-issue.1 +1 -1
  65. data/bundler/lib/bundler/man/bundle-licenses.1 +1 -1
  66. data/bundler/lib/bundler/man/bundle-list.1 +6 -1
  67. data/bundler/lib/bundler/man/bundle-list.1.ronn +5 -0
  68. data/bundler/lib/bundler/man/bundle-lock.1 +1 -1
  69. data/bundler/lib/bundler/man/bundle-open.1 +1 -1
  70. data/bundler/lib/bundler/man/bundle-outdated.1 +1 -1
  71. data/bundler/lib/bundler/man/bundle-platform.1 +1 -1
  72. data/bundler/lib/bundler/man/bundle-plugin.1 +2 -9
  73. data/bundler/lib/bundler/man/bundle-plugin.1.ronn +0 -8
  74. data/bundler/lib/bundler/man/bundle-pristine.1 +1 -1
  75. data/bundler/lib/bundler/man/bundle-remove.1 +2 -8
  76. data/bundler/lib/bundler/man/bundle-remove.1.ronn +1 -8
  77. data/bundler/lib/bundler/man/bundle-show.1 +2 -5
  78. data/bundler/lib/bundler/man/bundle-show.1.ronn +0 -4
  79. data/bundler/lib/bundler/man/bundle-update.1 +1 -1
  80. data/bundler/lib/bundler/man/bundle-version.1 +1 -1
  81. data/bundler/lib/bundler/man/bundle.1 +1 -10
  82. data/bundler/lib/bundler/man/bundle.1.ronn +0 -9
  83. data/bundler/lib/bundler/man/gemfile.5 +1 -1
  84. data/bundler/lib/bundler/man/index.txt +0 -2
  85. data/bundler/lib/bundler/materialization.rb +1 -1
  86. data/bundler/lib/bundler/plugin/installer.rb +0 -10
  87. data/bundler/lib/bundler/plugin/source_list.rb +1 -1
  88. data/bundler/lib/bundler/plugin.rb +1 -1
  89. data/bundler/lib/bundler/resolver.rb +1 -1
  90. data/bundler/lib/bundler/ruby_dsl.rb +2 -0
  91. data/bundler/lib/bundler/ruby_version.rb +1 -3
  92. data/bundler/lib/bundler/rubygems_ext.rb +1 -1
  93. data/bundler/lib/bundler/rubygems_gem_installer.rb +1 -1
  94. data/bundler/lib/bundler/rubygems_integration.rb +1 -5
  95. data/bundler/lib/bundler/self_manager.rb +1 -1
  96. data/bundler/lib/bundler/settings.rb +7 -26
  97. data/bundler/lib/bundler/shared_helpers.rb +8 -20
  98. data/bundler/lib/bundler/source/git/git_proxy.rb +3 -11
  99. data/bundler/lib/bundler/source/git.rb +2 -3
  100. data/bundler/lib/bundler/source/path.rb +3 -7
  101. data/bundler/lib/bundler/source/rubygems.rb +11 -17
  102. data/bundler/lib/bundler/source.rb +1 -1
  103. data/bundler/lib/bundler/source_list.rb +4 -45
  104. data/bundler/lib/bundler/source_map.rb +2 -5
  105. data/bundler/lib/bundler/spec_set.rb +6 -15
  106. data/bundler/lib/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +7 -129
  107. data/bundler/lib/bundler/templates/newgem/circleci/config.yml.tt +12 -0
  108. data/bundler/lib/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +1 -1
  109. data/bundler/lib/bundler/templates/newgem/ext/newgem/extconf-go.rb.tt +11 -0
  110. data/bundler/lib/bundler/templates/newgem/ext/newgem/go.mod.tt +5 -0
  111. data/bundler/lib/bundler/templates/newgem/ext/newgem/newgem-go.c.tt +2 -0
  112. data/bundler/lib/bundler/templates/newgem/ext/newgem/newgem.go.tt +31 -0
  113. data/bundler/lib/bundler/templates/newgem/github/workflows/main.yml.tt +6 -0
  114. data/bundler/lib/bundler/templates/newgem/gitlab-ci.yml.tt +9 -0
  115. data/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt +4 -1
  116. data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +26 -23
  117. data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool/version.rb +1 -1
  118. data/bundler/lib/bundler/vendor/connection_pool/lib/connection_pool.rb +50 -6
  119. data/bundler/lib/bundler/vendor/fileutils/lib/fileutils.rb +57 -52
  120. data/bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +5 -2
  121. data/bundler/lib/bundler/vendor/thor/lib/thor/runner.rb +1 -1
  122. data/bundler/lib/bundler/vendor/uri/lib/uri/common.rb +57 -15
  123. data/bundler/lib/bundler/vendor/uri/lib/uri/file.rb +1 -1
  124. data/bundler/lib/bundler/vendor/uri/lib/uri/generic.rb +34 -21
  125. data/bundler/lib/bundler/vendor/uri/lib/uri/http.rb +12 -0
  126. data/bundler/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +9 -8
  127. data/bundler/lib/bundler/vendor/uri/lib/uri/version.rb +2 -2
  128. data/bundler/lib/bundler/version.rb +1 -1
  129. data/bundler/lib/bundler/vlad.rb +1 -14
  130. data/bundler/lib/bundler.rb +6 -28
  131. data/doc/MAINTAINERS.txt +0 -7
  132. data/doc/bundler/UPGRADING.md +11 -5
  133. data/doc/rubygems/CONTRIBUTING.md +1 -1
  134. data/lib/rubygems/basic_specification.rb +3 -9
  135. data/lib/rubygems/bundler_version_finder.rb +1 -0
  136. data/lib/rubygems/command.rb +1 -1
  137. data/lib/rubygems/command_manager.rb +3 -4
  138. data/lib/rubygems/commands/build_command.rb +0 -7
  139. data/lib/rubygems/commands/cert_command.rb +1 -1
  140. data/lib/rubygems/commands/install_command.rb +1 -5
  141. data/lib/rubygems/commands/setup_command.rb +5 -3
  142. data/lib/rubygems/config_file.rb +1 -1
  143. data/lib/rubygems/dependency.rb +1 -1
  144. data/lib/rubygems/dependency_installer.rb +0 -77
  145. data/lib/rubygems/dependency_list.rb +1 -2
  146. data/lib/rubygems/deprecate.rb +74 -72
  147. data/lib/rubygems/doctor.rb +1 -1
  148. data/lib/rubygems/errors.rb +1 -1
  149. data/lib/rubygems/exceptions.rb +2 -3
  150. data/lib/rubygems/ext/builder.rb +6 -2
  151. data/lib/rubygems/ext/cargo_builder.rb +2 -2
  152. data/lib/rubygems/ext/cmake_builder.rb +97 -8
  153. data/lib/rubygems/ext/configure_builder.rb +2 -2
  154. data/lib/rubygems/ext/ext_conf_builder.rb +6 -2
  155. data/lib/rubygems/ext/rake_builder.rb +2 -2
  156. data/lib/rubygems/gem_runner.rb +0 -1
  157. data/lib/rubygems/install_update_options.rb +1 -2
  158. data/lib/rubygems/installer.rb +16 -54
  159. data/lib/rubygems/name_tuple.rb +7 -1
  160. data/lib/rubygems/package/tar_header.rb +4 -4
  161. data/lib/rubygems/package/tar_reader.rb +2 -0
  162. data/lib/rubygems/package/tar_writer.rb +1 -1
  163. data/lib/rubygems/package.rb +21 -12
  164. data/lib/rubygems/platform.rb +31 -11
  165. data/lib/rubygems/remote_fetcher.rb +8 -5
  166. data/lib/rubygems/resolver/conflict.rb +1 -1
  167. data/lib/rubygems/resolver.rb +1 -1
  168. data/lib/rubygems/security/signer.rb +1 -1
  169. data/lib/rubygems/source.rb +2 -2
  170. data/lib/rubygems/spec_fetcher.rb +4 -4
  171. data/lib/rubygems/specification.rb +5 -96
  172. data/lib/rubygems/specification_policy.rb +0 -36
  173. data/lib/rubygems/specification_record.rb +1 -1
  174. data/lib/rubygems/text.rb +1 -1
  175. data/lib/rubygems/uninstaller.rb +17 -6
  176. data/lib/rubygems/user_interaction.rb +6 -9
  177. data/lib/rubygems/util.rb +0 -22
  178. data/lib/rubygems/validator.rb +1 -1
  179. data/lib/rubygems/vendor/net-http/lib/net/http/generic_request.rb +25 -9
  180. data/lib/rubygems/vendor/net-http/lib/net/http/responses.rb +2 -2
  181. data/lib/rubygems/vendor/net-http/lib/net/http.rb +14 -14
  182. data/lib/rubygems/vendor/optparse/lib/optparse.rb +82 -41
  183. data/lib/rubygems/vendor/resolv/lib/resolv.rb +1 -1
  184. data/lib/rubygems/vendor/timeout/lib/timeout.rb +4 -1
  185. data/lib/rubygems/vendor/uri/lib/uri/common.rb +57 -15
  186. data/lib/rubygems/vendor/uri/lib/uri/file.rb +1 -1
  187. data/lib/rubygems/vendor/uri/lib/uri/generic.rb +34 -21
  188. data/lib/rubygems/vendor/uri/lib/uri/http.rb +12 -0
  189. data/lib/rubygems/vendor/uri/lib/uri/rfc2396_parser.rb +9 -8
  190. data/lib/rubygems/vendor/uri/lib/uri/version.rb +2 -2
  191. data/lib/rubygems/version.rb +2 -17
  192. data/lib/rubygems/win_platform.rb +31 -0
  193. data/lib/rubygems.rb +10 -38
  194. data/rubygems-update.gemspec +4 -4
  195. metadata +10 -18
  196. data/bundler/lib/bundler/cli/inject.rb +0 -60
  197. data/bundler/lib/bundler/cli/viz.rb +0 -31
  198. data/bundler/lib/bundler/graph.rb +0 -152
  199. data/bundler/lib/bundler/man/bundle-inject.1 +0 -31
  200. data/bundler/lib/bundler/man/bundle-inject.1.ronn +0 -32
  201. data/bundler/lib/bundler/man/bundle-viz.1 +0 -30
  202. data/bundler/lib/bundler/man/bundle-viz.1.ronn +0 -36
  203. data/bundler/lib/bundler/similarity_detector.rb +0 -63
  204. data/lib/rubygems/commands/query_command.rb +0 -43
  205. data/lib/rubygems/compatibility.rb +0 -41
  206. data/lib/rubygems/install_default_message.rb +0 -13
@@ -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" "August 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" "August 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" "August 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" "August 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" "August 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" "August 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" "August 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,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" "August 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=SOURCE] [\-\-version=VERSION] [\-\-git=GIT] [\-\-branch=BRANCH|\-\-ref=REF] [\-\-local\-git=LOCAL_GIT] [\-\-path=PATH]
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" "August 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" "August 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" "August 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" "August 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" "August 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" "August 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" "August 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
@@ -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
@@ -23,7 +23,7 @@ module Bundler
23
23
 
24
24
  private
25
25
 
26
- def rubygems_aggregate_class
26
+ def source_class
27
27
  Plugin::Installer::Rubygems
28
28
  end
29
29
  end
@@ -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.feature_flag.plugins?
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
@@ -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
 
@@ -57,6 +57,8 @@ module Bundler
57
57
  else
58
58
  file_content.strip
59
59
  end
60
+ rescue Errno::ENOENT
61
+ raise GemfileError, "Could not find version file #{filename}"
60
62
  end
61
63
  end
62
64
  end
@@ -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
@@ -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.instance_methods(false).include?(:generate_plugins)
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.major_deprecation 2, "Bundler.rubygems.all_specs has been removed in favor of Bundler.rubygems.installed_specs"
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