rubygems-update 3.5.23 → 3.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +74 -0
  3. data/Manifest.txt +23 -16
  4. data/README.md +15 -10
  5. data/bundler/CHANGELOG.md +66 -0
  6. data/bundler/bundler.gemspec +2 -2
  7. data/bundler/lib/bundler/build_metadata.rb +2 -2
  8. data/bundler/lib/bundler/cli/console.rb +0 -4
  9. data/bundler/lib/bundler/cli/doctor.rb +4 -4
  10. data/bundler/lib/bundler/cli/exec.rb +1 -0
  11. data/bundler/lib/bundler/cli/gem.rb +1 -1
  12. data/bundler/lib/bundler/cli/info.rb +2 -2
  13. data/bundler/lib/bundler/cli/inject.rb +1 -1
  14. data/bundler/lib/bundler/cli/install.rb +4 -0
  15. data/bundler/lib/bundler/cli/lock.rb +20 -1
  16. data/bundler/lib/bundler/cli/pristine.rb +1 -1
  17. data/bundler/lib/bundler/cli/show.rb +2 -2
  18. data/bundler/lib/bundler/cli.rb +22 -53
  19. data/bundler/lib/bundler/compact_index_client/cache_file.rb +0 -5
  20. data/bundler/lib/bundler/compact_index_client/updater.rb +0 -11
  21. data/bundler/lib/bundler/definition.rb +155 -74
  22. data/bundler/lib/bundler/dependency.rb +1 -1
  23. data/bundler/lib/bundler/dsl.rb +2 -13
  24. data/bundler/lib/bundler/endpoint_specification.rb +10 -1
  25. data/bundler/lib/bundler/errors.rb +10 -0
  26. data/bundler/lib/bundler/feature_flag.rb +1 -0
  27. data/bundler/lib/bundler/fetcher/compact_index.rb +1 -1
  28. data/bundler/lib/bundler/fetcher.rb +10 -3
  29. data/bundler/lib/bundler/gem_helpers.rb +21 -5
  30. data/bundler/lib/bundler/injector.rb +2 -2
  31. data/bundler/lib/bundler/installer/standalone.rb +2 -2
  32. data/bundler/lib/bundler/installer.rb +4 -38
  33. data/bundler/lib/bundler/lazy_specification.rb +65 -24
  34. data/bundler/lib/bundler/lockfile_parser.rb +9 -1
  35. data/bundler/lib/bundler/man/bundle-add.1 +13 -10
  36. data/bundler/lib/bundler/man/bundle-add.1.ronn +12 -9
  37. data/bundler/lib/bundler/man/bundle-binstubs.1 +7 -4
  38. data/bundler/lib/bundler/man/bundle-binstubs.1.ronn +6 -3
  39. data/bundler/lib/bundler/man/bundle-cache.1 +30 -2
  40. data/bundler/lib/bundler/man/bundle-cache.1.ronn +31 -2
  41. data/bundler/lib/bundler/man/bundle-check.1 +3 -3
  42. data/bundler/lib/bundler/man/bundle-check.1.ronn +4 -2
  43. data/bundler/lib/bundler/man/bundle-clean.1 +1 -1
  44. data/bundler/lib/bundler/man/bundle-config.1 +3 -1
  45. data/bundler/lib/bundler/man/bundle-config.1.ronn +2 -0
  46. data/bundler/lib/bundler/man/bundle-console.1 +2 -4
  47. data/bundler/lib/bundler/man/bundle-console.1.ronn +2 -7
  48. data/bundler/lib/bundler/man/bundle-doctor.1 +2 -2
  49. data/bundler/lib/bundler/man/bundle-doctor.1.ronn +1 -1
  50. data/bundler/lib/bundler/man/bundle-env.1 +9 -0
  51. data/bundler/lib/bundler/man/bundle-env.1.ronn +10 -0
  52. data/bundler/lib/bundler/man/bundle-exec.1 +5 -2
  53. data/bundler/lib/bundler/man/bundle-exec.1.ronn +4 -1
  54. data/bundler/lib/bundler/man/bundle-fund.1 +22 -0
  55. data/bundler/lib/bundler/man/bundle-fund.1.ronn +25 -0
  56. data/bundler/lib/bundler/man/bundle-gem.1 +17 -5
  57. data/bundler/lib/bundler/man/bundle-gem.1.ronn +27 -6
  58. data/bundler/lib/bundler/man/bundle-help.1 +1 -1
  59. data/bundler/lib/bundler/man/bundle-info.1 +5 -2
  60. data/bundler/lib/bundler/man/bundle-info.1.ronn +6 -2
  61. data/bundler/lib/bundler/man/bundle-init.1 +3 -3
  62. data/bundler/lib/bundler/man/bundle-init.1.ronn +3 -2
  63. data/bundler/lib/bundler/man/bundle-inject.1 +10 -2
  64. data/bundler/lib/bundler/man/bundle-inject.1.ronn +9 -1
  65. data/bundler/lib/bundler/man/bundle-install.1 +14 -11
  66. data/bundler/lib/bundler/man/bundle-install.1.ronn +21 -16
  67. data/bundler/lib/bundler/man/bundle-issue.1 +45 -0
  68. data/bundler/lib/bundler/man/bundle-issue.1.ronn +37 -0
  69. data/bundler/lib/bundler/man/bundle-licenses.1 +9 -0
  70. data/bundler/lib/bundler/man/bundle-licenses.1.ronn +10 -0
  71. data/bundler/lib/bundler/man/bundle-list.1 +1 -1
  72. data/bundler/lib/bundler/man/bundle-list.1.ronn +4 -1
  73. data/bundler/lib/bundler/man/bundle-lock.1 +21 -6
  74. data/bundler/lib/bundler/man/bundle-lock.1.ronn +25 -4
  75. data/bundler/lib/bundler/man/bundle-open.1 +2 -2
  76. data/bundler/lib/bundler/man/bundle-open.1.ronn +2 -1
  77. data/bundler/lib/bundler/man/bundle-outdated.1 +8 -5
  78. data/bundler/lib/bundler/man/bundle-outdated.1.ronn +8 -4
  79. data/bundler/lib/bundler/man/bundle-platform.1 +1 -1
  80. data/bundler/lib/bundler/man/bundle-plugin.1 +1 -1
  81. data/bundler/lib/bundler/man/bundle-pristine.1 +1 -1
  82. data/bundler/lib/bundler/man/bundle-pristine.1.ronn +1 -1
  83. data/bundler/lib/bundler/man/bundle-remove.1 +1 -1
  84. data/bundler/lib/bundler/man/bundle-remove.1.ronn +1 -1
  85. data/bundler/lib/bundler/man/bundle-show.1 +5 -2
  86. data/bundler/lib/bundler/man/bundle-show.1.ronn +4 -0
  87. data/bundler/lib/bundler/man/bundle-update.1 +13 -7
  88. data/bundler/lib/bundler/man/bundle-update.1.ronn +14 -6
  89. data/bundler/lib/bundler/man/bundle-version.1 +1 -1
  90. data/bundler/lib/bundler/man/bundle-viz.1 +4 -4
  91. data/bundler/lib/bundler/man/bundle-viz.1.ronn +7 -3
  92. data/bundler/lib/bundler/man/bundle.1 +1 -1
  93. data/bundler/lib/bundler/man/gemfile.5 +1 -1
  94. data/bundler/lib/bundler/man/index.txt +4 -0
  95. data/bundler/lib/bundler/materialization.rb +59 -0
  96. data/bundler/lib/bundler/plugin/events.rb +24 -0
  97. data/bundler/lib/bundler/plugin/installer.rb +1 -1
  98. data/bundler/lib/bundler/process_lock.rb +1 -1
  99. data/bundler/lib/bundler/remote_specification.rb +6 -1
  100. data/bundler/lib/bundler/resolver/base.rb +2 -6
  101. data/bundler/lib/bundler/resolver/candidate.rb +2 -2
  102. data/bundler/lib/bundler/resolver/spec_group.rb +4 -3
  103. data/bundler/lib/bundler/resolver.rb +5 -5
  104. data/bundler/lib/bundler/rubygems_ext.rb +28 -28
  105. data/bundler/lib/bundler/rubygems_gem_installer.rb +0 -1
  106. data/bundler/lib/bundler/rubygems_integration.rb +21 -11
  107. data/bundler/lib/bundler/runtime.rb +27 -7
  108. data/bundler/lib/bundler/self_manager.rb +2 -3
  109. data/bundler/lib/bundler/settings.rb +1 -0
  110. data/bundler/lib/bundler/shared_helpers.rb +2 -2
  111. data/bundler/lib/bundler/source/git/git_proxy.rb +0 -6
  112. data/bundler/lib/bundler/source/git.rb +56 -31
  113. data/bundler/lib/bundler/source/path.rb +2 -2
  114. data/bundler/lib/bundler/source_list.rb +1 -1
  115. data/bundler/lib/bundler/spec_set.rb +81 -56
  116. data/bundler/lib/bundler/stub_specification.rb +8 -0
  117. data/bundler/lib/bundler/templates/newgem/README.md.tt +1 -1
  118. data/bundler/lib/bundler/uri_credentials_filter.rb +1 -1
  119. data/bundler/lib/bundler/vendor/fileutils/COPYING +56 -0
  120. data/bundler/lib/bundler/vendor/fileutils/lib/fileutils.rb +15 -13
  121. data/bundler/lib/bundler/vendor/securerandom/COPYING +56 -0
  122. data/bundler/lib/bundler/vendor/securerandom/lib/securerandom.rb +11 -5
  123. data/bundler/lib/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +3 -5
  124. data/bundler/lib/bundler/vendor/thor/lib/thor/group.rb +11 -0
  125. data/bundler/lib/bundler/vendor/thor/lib/thor/parser/argument.rb +1 -4
  126. data/bundler/lib/bundler/vendor/thor/lib/thor/parser/option.rb +2 -2
  127. data/bundler/lib/bundler/vendor/thor/lib/thor/parser/options.rb +2 -1
  128. data/bundler/lib/bundler/vendor/thor/lib/thor/shell/basic.rb +9 -9
  129. data/bundler/lib/bundler/vendor/thor/lib/thor/shell/html.rb +1 -1
  130. data/bundler/lib/bundler/vendor/thor/lib/thor/shell/table_printer.rb +5 -21
  131. data/bundler/lib/bundler/vendor/thor/lib/thor/util.rb +1 -1
  132. data/bundler/lib/bundler/vendor/thor/lib/thor/version.rb +1 -1
  133. data/bundler/lib/bundler/vendor/thor/lib/thor.rb +11 -0
  134. data/bundler/lib/bundler/vendor/uri/COPYING +56 -0
  135. data/bundler/lib/bundler/vendor/uri/lib/uri/common.rb +37 -16
  136. data/bundler/lib/bundler/vendor/uri/lib/uri/file.rb +3 -3
  137. data/bundler/lib/bundler/vendor/uri/lib/uri/ftp.rb +1 -1
  138. data/bundler/lib/bundler/vendor/uri/lib/uri/generic.rb +16 -26
  139. data/bundler/lib/bundler/vendor/uri/lib/uri/http.rb +2 -2
  140. data/bundler/lib/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +10 -3
  141. data/bundler/lib/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +26 -3
  142. data/bundler/lib/bundler/vendor/uri/lib/uri/version.rb +1 -1
  143. data/bundler/lib/bundler/vendor/uri/lib/uri.rb +9 -9
  144. data/bundler/lib/bundler/vendored_securerandom.rb +0 -2
  145. data/bundler/lib/bundler/version.rb +1 -1
  146. data/bundler/lib/bundler.rb +37 -13
  147. data/{CONTRIBUTING.md → doc/rubygems/CONTRIBUTING.md} +9 -9
  148. data/{POLICIES.md → doc/rubygems/POLICIES.md} +11 -11
  149. data/lib/rubygems/basic_specification.rb +5 -4
  150. data/lib/rubygems/commands/cleanup_command.rb +2 -2
  151. data/lib/rubygems/commands/contents_command.rb +4 -4
  152. data/lib/rubygems/commands/exec_command.rb +3 -0
  153. data/lib/rubygems/commands/pristine_command.rb +2 -2
  154. data/lib/rubygems/commands/push_command.rb +29 -5
  155. data/lib/rubygems/commands/rdoc_command.rb +2 -2
  156. data/lib/rubygems/commands/rebuild_command.rb +0 -2
  157. data/lib/rubygems/commands/setup_command.rb +1 -16
  158. data/lib/rubygems/commands/unpack_command.rb +0 -6
  159. data/lib/rubygems/commands/update_command.rb +2 -8
  160. data/lib/rubygems/config_file.rb +12 -0
  161. data/lib/rubygems/core_ext/kernel_warn.rb +2 -6
  162. data/lib/rubygems/defaults.rb +1 -1
  163. data/lib/rubygems/exceptions.rb +0 -6
  164. data/lib/rubygems/ext/builder.rb +6 -4
  165. data/lib/rubygems/ext/cargo_builder.rb +7 -4
  166. data/lib/rubygems/ext/cmake_builder.rb +7 -2
  167. data/lib/rubygems/ext/configure_builder.rb +7 -2
  168. data/lib/rubygems/ext/ext_conf_builder.rb +9 -5
  169. data/lib/rubygems/ext/rake_builder.rb +6 -1
  170. data/lib/rubygems/install_update_options.rb +5 -0
  171. data/lib/rubygems/installer.rb +2 -2
  172. data/lib/rubygems/platform.rb +4 -3
  173. data/lib/rubygems/psych_tree.rb +4 -0
  174. data/lib/rubygems/query_utils.rb +1 -1
  175. data/lib/rubygems/request_set/gem_dependency_api.rb +1 -1
  176. data/lib/rubygems/requirement.rb +0 -4
  177. data/lib/rubygems/resolver/composed_set.rb +3 -3
  178. data/lib/rubygems/resolver/git_set.rb +0 -1
  179. data/lib/rubygems/resolver/index_set.rb +2 -2
  180. data/lib/rubygems/resolver.rb +3 -3
  181. data/lib/rubygems/source/git.rb +13 -10
  182. data/lib/rubygems/spec_fetcher.rb +16 -5
  183. data/lib/rubygems/specification.rb +37 -31
  184. data/lib/rubygems/target_rbconfig.rb +50 -0
  185. data/lib/rubygems/uri.rb +1 -1
  186. data/lib/rubygems/util/licenses.rb +10 -1
  187. data/lib/rubygems/vendor/net-http/COPYING +56 -0
  188. data/lib/rubygems/vendor/net-http/lib/net/http/header.rb +1 -1
  189. data/lib/rubygems/vendor/net-http/lib/net/http/requests.rb +5 -0
  190. data/lib/rubygems/vendor/net-http/lib/net/http.rb +120 -36
  191. data/lib/rubygems/vendor/optparse/lib/optparse/ac.rb +16 -0
  192. data/lib/rubygems/vendor/optparse/lib/optparse/kwargs.rb +8 -3
  193. data/lib/rubygems/vendor/optparse/lib/optparse/version.rb +9 -0
  194. data/lib/rubygems/vendor/optparse/lib/optparse.rb +147 -51
  195. data/lib/rubygems/vendor/resolv/COPYING +56 -0
  196. data/lib/rubygems/vendor/resolv/lib/resolv.rb +50 -37
  197. data/lib/rubygems/vendor/securerandom/COPYING +56 -0
  198. data/lib/rubygems/vendor/securerandom/lib/securerandom.rb +11 -5
  199. data/lib/rubygems/vendor/timeout/COPYING +56 -0
  200. data/lib/rubygems/vendor/timeout/lib/timeout.rb +9 -10
  201. data/lib/rubygems/vendor/uri/COPYING +56 -0
  202. data/lib/rubygems/vendor/uri/lib/uri/common.rb +37 -16
  203. data/lib/rubygems/vendor/uri/lib/uri/file.rb +3 -3
  204. data/lib/rubygems/vendor/uri/lib/uri/ftp.rb +1 -1
  205. data/lib/rubygems/vendor/uri/lib/uri/generic.rb +16 -26
  206. data/lib/rubygems/vendor/uri/lib/uri/http.rb +2 -2
  207. data/lib/rubygems/vendor/uri/lib/uri/rfc2396_parser.rb +10 -3
  208. data/lib/rubygems/vendor/uri/lib/uri/rfc3986_parser.rb +26 -3
  209. data/lib/rubygems/vendor/uri/lib/uri/version.rb +1 -1
  210. data/lib/rubygems/vendor/uri/lib/uri.rb +9 -9
  211. data/lib/rubygems/vendored_securerandom.rb +0 -1
  212. data/lib/rubygems/version.rb +0 -4
  213. data/lib/rubygems.rb +30 -21
  214. data/rubygems-update.gemspec +5 -5
  215. data/setup.rb +1 -1
  216. metadata +36 -27
  217. data/bundler/lib/bundler/vendor/fileutils/LICENSE.txt +0 -22
  218. data/bundler/lib/bundler/vendor/securerandom/LICENSE.txt +0 -22
  219. data/bundler/lib/bundler/vendor/securerandom/lib/random/formatter.rb +0 -373
  220. data/bundler/lib/bundler/vendor/uri/LICENSE.txt +0 -22
  221. data/lib/rubygems/vendor/net-http/LICENSE.txt +0 -22
  222. data/lib/rubygems/vendor/net-http/lib/net/http/backward.rb +0 -40
  223. data/lib/rubygems/vendor/resolv/LICENSE.txt +0 -22
  224. data/lib/rubygems/vendor/securerandom/LICENSE.txt +0 -22
  225. data/lib/rubygems/vendor/securerandom/lib/random/formatter.rb +0 -373
  226. data/lib/rubygems/vendor/timeout/LICENSE.txt +0 -22
  227. data/lib/rubygems/vendor/uri/LICENSE.txt +0 -22
  228. /data/{MAINTAINERS.txt → doc/MAINTAINERS.txt} +0 -0
  229. /data/{bundler → doc/bundler}/UPGRADING.md +0 -0
  230. /data/{UPGRADING.md → doc/rubygems/UPGRADING.md} +0 -0
@@ -5,6 +5,7 @@ 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]
8
9
 
9
10
  ## DESCRIPTION
10
11
 
@@ -19,3 +20,6 @@ machine.
19
20
  * `--paths`:
20
21
  List the paths of all gems that are required by your [`Gemfile(5)`][Gemfile(5)],
21
22
  sorted by gem name.
23
+
24
+ * `--outdated`:
25
+ Show verbose output including whether gems are outdated.
@@ -1,10 +1,10 @@
1
1
  .\" generated with nRonn/v0.11.1
2
2
  .\" https://github.com/n-ronn/nronn/tree/0.11.1
3
- .TH "BUNDLE\-UPDATE" "1" "October 2024" ""
3
+ .TH "BUNDLE\-UPDATE" "1" "December 2024" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\-update\fR \- Update your gems to the latest available versions
6
6
  .SH "SYNOPSIS"
7
- \fBbundle update\fR \fI*gems\fR [\-\-all] [\-\-group=NAME] [\-\-source=NAME] [\-\-local] [\-\-ruby] [\-\-bundler[=VERSION]] [\-\-full\-index] [\-\-jobs=JOBS] [\-\-quiet] [\-\-patch|\-\-minor|\-\-major] [\-\-redownload] [\-\-strict] [\-\-conservative]
7
+ \fBbundle update\fR \fI*gems\fR [\-\-all] [\-\-group=NAME] [\-\-source=NAME] [\-\-local] [\-\-ruby] [\-\-bundler[=VERSION]] [\-\-full\-index] [\-\-gemfile=GEMFILE] [\-\-jobs=NUMBER] [\-\-quiet] [\-\-patch|\-\-minor|\-\-major] [\-\-pre] [\-\-redownload] [\-\-strict] [\-\-conservative]
8
8
  .SH "DESCRIPTION"
9
9
  Update the gems specified (all gems, if \fB\-\-all\fR flag is used), ignoring the previously installed gems specified in the \fBGemfile\.lock\fR\. In general, you should use bundle install(1) \fIbundle\-install\.1\.html\fR to install the same exact gems and versions across machines\.
10
10
  .P
@@ -14,10 +14,10 @@ You would use \fBbundle update\fR to explicitly update the version of a gem\.
14
14
  \fB\-\-all\fR
15
15
  Update all gems specified in Gemfile\.
16
16
  .TP
17
- \fB\-\-group=<name>\fR, \fB\-g=[<name>]\fR
17
+ \fB\-\-group=<list>\fR, \fB\-g=<list>\fR
18
18
  Only update the gems in the specified group\. For instance, you can update all gems in the development group with \fBbundle update \-\-group development\fR\. You can also call \fBbundle update rails \-\-group test\fR to update the rails gem and all gems in the test group, for example\.
19
19
  .TP
20
- \fB\-\-source=<name>\fR
20
+ \fB\-\-source=<list>\fR
21
21
  The name of a \fB:git\fR or \fB:path\fR source used in the Gemfile(5)\. For instance, with a \fB:git\fR source of \fBhttp://github\.com/rails/rails\.git\fR, you would call \fBbundle update \-\-source rails\fR
22
22
  .TP
23
23
  \fB\-\-local\fR
@@ -26,13 +26,16 @@ Do not attempt to fetch gems remotely and use the gem cache instead\.
26
26
  \fB\-\-ruby\fR
27
27
  Update the locked version of Ruby to the current version of Ruby\.
28
28
  .TP
29
- \fB\-\-bundler\fR
29
+ \fB\-\-bundler[=BUNDLER]\fR
30
30
  Update the locked version of bundler to the invoked bundler version\.
31
31
  .TP
32
32
  \fB\-\-full\-index\fR
33
33
  Fall back to using the single\-file index of all gems\.
34
34
  .TP
35
- \fB\-\-jobs=[<number>]\fR, \fB\-j[<number>]\fR
35
+ \fB\-\-gemfile=GEMFILE\fR
36
+ Use the specified gemfile instead of [\fBGemfile(5)\fR][Gemfile(5)]\.
37
+ .TP
38
+ \fB\-\-jobs=<number>\fR, \fB\-j=<number>\fR
36
39
  Specify the number of jobs to run in parallel\. The default is the number of available processors\.
37
40
  .TP
38
41
  \fB\-\-retry=[<number>]\fR
@@ -41,7 +44,7 @@ Retry failed network or git requests for \fInumber\fR times\.
41
44
  \fB\-\-quiet\fR
42
45
  Only output warnings and errors\.
43
46
  .TP
44
- \fB\-\-redownload\fR
47
+ \fB\-\-redownload\fR, \fB\-\-force\fR
45
48
  Force downloading every gem\.
46
49
  .TP
47
50
  \fB\-\-patch\fR
@@ -53,6 +56,9 @@ Prefer updating only to next minor version\.
53
56
  \fB\-\-major\fR
54
57
  Prefer updating to next major version (default)\.
55
58
  .TP
59
+ \fB\-\-pre\fR
60
+ Always choose the highest allowed version, regardless of prerelease status\.
61
+ .TP
56
62
  \fB\-\-strict\fR
57
63
  Do not allow any gem to be updated past latest \fB\-\-patch\fR | \fB\-\-minor\fR | \fB\-\-major\fR\.
58
64
  .TP
@@ -10,9 +10,11 @@ bundle-update(1) -- Update your gems to the latest available versions
10
10
  [--ruby]
11
11
  [--bundler[=VERSION]]
12
12
  [--full-index]
13
- [--jobs=JOBS]
13
+ [--gemfile=GEMFILE]
14
+ [--jobs=NUMBER]
14
15
  [--quiet]
15
16
  [--patch|--minor|--major]
17
+ [--pre]
16
18
  [--redownload]
17
19
  [--strict]
18
20
  [--conservative]
@@ -32,13 +34,13 @@ gem.
32
34
  * `--all`:
33
35
  Update all gems specified in Gemfile.
34
36
 
35
- * `--group=<name>`, `-g=[<name>]`:
37
+ * `--group=<list>`, `-g=<list>`:
36
38
  Only update the gems in the specified group. For instance, you can update all gems
37
39
  in the development group with `bundle update --group development`. You can also
38
40
  call `bundle update rails --group test` to update the rails gem and all gems in
39
41
  the test group, for example.
40
42
 
41
- * `--source=<name>`:
43
+ * `--source=<list>`:
42
44
  The name of a `:git` or `:path` source used in the Gemfile(5). For
43
45
  instance, with a `:git` source of `http://github.com/rails/rails.git`,
44
46
  you would call `bundle update --source rails`
@@ -49,13 +51,16 @@ gem.
49
51
  * `--ruby`:
50
52
  Update the locked version of Ruby to the current version of Ruby.
51
53
 
52
- * `--bundler`:
54
+ * `--bundler[=BUNDLER]`:
53
55
  Update the locked version of bundler to the invoked bundler version.
54
56
 
55
57
  * `--full-index`:
56
58
  Fall back to using the single-file index of all gems.
57
59
 
58
- * `--jobs=[<number>]`, `-j[<number>]`:
60
+ * `--gemfile=GEMFILE`:
61
+ Use the specified gemfile instead of [`Gemfile(5)`][Gemfile(5)].
62
+
63
+ * `--jobs=<number>`, `-j=<number>`:
59
64
  Specify the number of jobs to run in parallel. The default is the number of
60
65
  available processors.
61
66
 
@@ -65,7 +70,7 @@ gem.
65
70
  * `--quiet`:
66
71
  Only output warnings and errors.
67
72
 
68
- * `--redownload`:
73
+ * `--redownload`, `--force`:
69
74
  Force downloading every gem.
70
75
 
71
76
  * `--patch`:
@@ -77,6 +82,9 @@ gem.
77
82
  * `--major`:
78
83
  Prefer updating to next major version (default).
79
84
 
85
+ * `--pre`:
86
+ Always choose the highest allowed version, regardless of prerelease status.
87
+
80
88
  * `--strict`:
81
89
  Do not allow any gem to be updated past latest `--patch` | `--minor` | `--major`.
82
90
 
@@ -1,6 +1,6 @@
1
1
  .\" generated with nRonn/v0.11.1
2
2
  .\" https://github.com/n-ronn/nronn/tree/0.11.1
3
- .TH "BUNDLE\-VERSION" "1" "October 2024" ""
3
+ .TH "BUNDLE\-VERSION" "1" "December 2024" ""
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 nRonn/v0.11.1
2
2
  .\" https://github.com/n-ronn/nronn/tree/0.11.1
3
- .TH "BUNDLE\-VIZ" "1" "October 2024" ""
3
+ .TH "BUNDLE\-VIZ" "1" "December 2024" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\-viz\fR \- Generates a visual dependency graph for your Gemfile
6
6
  .SH "SYNOPSIS"
@@ -13,10 +13,10 @@ The associated gems must also be installed via \fBbundle install(1)\fR \fIbundle
13
13
  \fBviz\fR command was deprecated in Bundler 2\.2\. Use bundler\-graph plugin \fIhttps://github\.com/rubygems/bundler\-graph\fR instead\.
14
14
  .SH "OPTIONS"
15
15
  .TP
16
- \fB\-\-file\fR, \fB\-f\fR
16
+ \fB\-\-file=FILE\fR, \fB\-f=FILE\fR
17
17
  The name to use for the generated file\. See \fB\-\-format\fR option
18
18
  .TP
19
- \fB\-\-format\fR, \fB\-F\fR
19
+ \fB\-\-format=FORMAT\fR, \fB\-F=FORMAT\fR
20
20
  This is output format option\. Supported format is png, jpg, svg, dot \|\.\|\.\|\.
21
21
  .TP
22
22
  \fB\-\-requirements\fR, \fB\-R\fR
@@ -25,6 +25,6 @@ Set to show the version of each required dependency\.
25
25
  \fB\-\-version\fR, \fB\-v\fR
26
26
  Set to show each gem version\.
27
27
  .TP
28
- \fB\-\-without\fR, \fB\-W\fR
28
+ \fB\-\-without=<list>\fR, \fB\-W=<list>\fR
29
29
  Exclude gems that are part of the specified named group\.
30
30
 
@@ -20,13 +20,17 @@ The associated gems must also be installed via [`bundle install(1)`](bundle-inst
20
20
 
21
21
  ## OPTIONS
22
22
 
23
- * `--file`, `-f`:
23
+ * `--file=FILE`, `-f=FILE`:
24
24
  The name to use for the generated file. See `--format` option
25
- * `--format`, `-F`:
25
+
26
+ * `--format=FORMAT`, `-F=FORMAT`:
26
27
  This is output format option. Supported format is png, jpg, svg, dot ...
28
+
27
29
  * `--requirements`, `-R`:
28
30
  Set to show the version of each required dependency.
31
+
29
32
  * `--version`, `-v`:
30
33
  Set to show each gem version.
31
- * `--without`, `-W`:
34
+
35
+ * `--without=<list>`, `-W=<list>`:
32
36
  Exclude gems that are part of the specified named group.
@@ -1,6 +1,6 @@
1
1
  .\" generated with nRonn/v0.11.1
2
2
  .\" https://github.com/n-ronn/nronn/tree/0.11.1
3
- .TH "BUNDLE" "1" "October 2024" ""
3
+ .TH "BUNDLE" "1" "December 2024" ""
4
4
  .SH "NAME"
5
5
  \fBbundle\fR \- Ruby Dependency Management
6
6
  .SH "SYNOPSIS"
@@ -1,6 +1,6 @@
1
1
  .\" generated with nRonn/v0.11.1
2
2
  .\" https://github.com/n-ronn/nronn/tree/0.11.1
3
- .TH "GEMFILE" "5" "October 2024" ""
3
+ .TH "GEMFILE" "5" "December 2024" ""
4
4
  .SH "NAME"
5
5
  \fBGemfile\fR \- A format for describing gem dependencies for Ruby programs
6
6
  .SH "SYNOPSIS"
@@ -8,13 +8,17 @@ bundle-clean(1) bundle-clean.1
8
8
  bundle-config(1) bundle-config.1
9
9
  bundle-console(1) bundle-console.1
10
10
  bundle-doctor(1) bundle-doctor.1
11
+ bundle-env(1) bundle-env.1
11
12
  bundle-exec(1) bundle-exec.1
13
+ bundle-fund(1) bundle-fund.1
12
14
  bundle-gem(1) bundle-gem.1
13
15
  bundle-help(1) bundle-help.1
14
16
  bundle-info(1) bundle-info.1
15
17
  bundle-init(1) bundle-init.1
16
18
  bundle-inject(1) bundle-inject.1
17
19
  bundle-install(1) bundle-install.1
20
+ bundle-issue(1) bundle-issue.1
21
+ bundle-licenses(1) bundle-licenses.1
18
22
  bundle-list(1) bundle-list.1
19
23
  bundle-lock(1) bundle-lock.1
20
24
  bundle-open(1) bundle-open.1
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bundler
4
+ #
5
+ # This class materializes a set of resolved specifications (`LazySpecification`)
6
+ # for a given gem into the most appropriate real specifications
7
+ # (`StubSepecification`, `EndpointSpecification`, etc), given a dependency and a
8
+ # target platform.
9
+ #
10
+ class Materialization
11
+ def initialize(dep, platform, candidates:)
12
+ @dep = dep
13
+ @platform = platform
14
+ @candidates = candidates
15
+ end
16
+
17
+ def complete?
18
+ specs.any?
19
+ end
20
+
21
+ def specs
22
+ @specs ||= if @candidates.nil?
23
+ []
24
+ elsif platform
25
+ GemHelpers.select_best_platform_match(@candidates, platform, force_ruby: dep.force_ruby_platform)
26
+ else
27
+ GemHelpers.select_best_local_platform_match(@candidates, force_ruby: dep.force_ruby_platform || dep.default_force_ruby_platform)
28
+ end
29
+ end
30
+
31
+ def dependencies
32
+ specs.first.runtime_dependencies.map {|d| [d, platform] }
33
+ end
34
+
35
+ def materialized_spec
36
+ specs.reject(&:missing?).first&.materialization
37
+ end
38
+
39
+ def completely_missing_specs
40
+ return [] unless specs.all?(&:missing?)
41
+
42
+ specs
43
+ end
44
+
45
+ def partially_missing_specs
46
+ specs.select(&:missing?)
47
+ end
48
+
49
+ def incomplete_specs
50
+ return [] if complete?
51
+
52
+ @candidates || LazySpecification.new(dep.name, nil, nil)
53
+ end
54
+
55
+ private
56
+
57
+ attr_reader :dep, :platform
58
+ end
59
+ end
@@ -56,6 +56,30 @@ module Bundler
56
56
  # Includes an Array of Bundler::Dependency objects
57
57
  # GEM_AFTER_INSTALL_ALL = "after-install-all"
58
58
  define :GEM_AFTER_INSTALL_ALL, "after-install-all"
59
+
60
+ # @!parse
61
+ # A hook called before each individual gem is required
62
+ # Includes a Bundler::Dependency.
63
+ # GEM_BEFORE_REQUIRE = "before-require"
64
+ define :GEM_BEFORE_REQUIRE, "before-require"
65
+
66
+ # @!parse
67
+ # A hook called after each individual gem is required
68
+ # Includes a Bundler::Dependency.
69
+ # GEM_AFTER_REQUIRE = "after-require"
70
+ define :GEM_AFTER_REQUIRE, "after-require"
71
+
72
+ # @!parse
73
+ # A hook called before any gems require
74
+ # Includes an Array of Bundler::Dependency objects.
75
+ # GEM_BEFORE_REQUIRE_ALL = "before-require-all"
76
+ define :GEM_BEFORE_REQUIRE_ALL, "before-require-all"
77
+
78
+ # @!parse
79
+ # A hook called after all gems required
80
+ # Includes an Array of Bundler::Dependency objects.
81
+ # GEM_AFTER_REQUIRE_ALL = "after-require-all"
82
+ define :GEM_AFTER_REQUIRE_ALL, "after-require-all"
59
83
  end
60
84
  end
61
85
  end
@@ -34,7 +34,7 @@ module Bundler
34
34
  # @return [Hash] map of names to their specs they are installed with
35
35
  def install_definition(definition)
36
36
  def definition.lock(*); end
37
- definition.resolve_remotely!
37
+ definition.remotely!
38
38
  specs = definition.specs
39
39
 
40
40
  install_from_specs specs
@@ -6,7 +6,7 @@ module Bundler
6
6
  lock_file_path = File.join(bundle_path, "bundler.lock")
7
7
  base_lock_file_path = lock_file_path.delete_suffix(".lock")
8
8
 
9
- require "fileutils" if Bundler.rubygems.provides?("< 3.5.23")
9
+ require "fileutils" if Bundler.rubygems.provides?("< 3.6.0")
10
10
 
11
11
  begin
12
12
  SharedHelpers.filesystem_access(lock_file_path, :write) do
@@ -12,7 +12,7 @@ module Bundler
12
12
 
13
13
  attr_reader :name, :version, :platform
14
14
  attr_writer :dependencies
15
- attr_accessor :source, :remote
15
+ attr_accessor :source, :remote, :locked_platform
16
16
 
17
17
  def initialize(name, version, platform, spec_fetcher)
18
18
  @name = name
@@ -21,6 +21,11 @@ module Bundler
21
21
  @platform = Gem::Platform.new(platform)
22
22
  @spec_fetcher = spec_fetcher
23
23
  @dependencies = nil
24
+ @locked_platform = nil
25
+ end
26
+
27
+ def insecurely_materialized?
28
+ @locked_platform.to_s != @platform.to_s
24
29
  end
25
30
 
26
31
  # Needed before installs, since the arch matters then and quick
@@ -16,7 +16,7 @@ module Bundler
16
16
  hash[name] = Package.new(name, platforms, **options)
17
17
  end
18
18
 
19
- @requirements = dependencies.map do |dep|
19
+ @requirements = dependencies.filter_map do |dep|
20
20
  dep_platforms = dep.gem_platforms(platforms)
21
21
 
22
22
  # Dependencies scoped to external platforms are ignored
@@ -27,11 +27,7 @@ module Bundler
27
27
  @packages[name] = Package.new(name, dep_platforms, **options.merge(dependency: dep))
28
28
 
29
29
  dep
30
- end.compact
31
- end
32
-
33
- def specs_compatible_with(result)
34
- @base.specs_compatible_with(result)
30
+ end
35
31
  end
36
32
 
37
33
  def [](name)
@@ -34,10 +34,10 @@ module Bundler
34
34
  @spec_group.dependencies
35
35
  end
36
36
 
37
- def to_specs(package)
37
+ def to_specs(package, most_specific_locked_platform)
38
38
  return [] if package.meta?
39
39
 
40
- @spec_group.to_specs(package.force_ruby_platform?)
40
+ @spec_group.to_specs(package.force_ruby_platform?, most_specific_locked_platform)
41
41
  end
42
42
 
43
43
  def prerelease?
@@ -25,10 +25,11 @@ module Bundler
25
25
  @source ||= exemplary_spec.source
26
26
  end
27
27
 
28
- def to_specs(force_ruby_platform)
28
+ def to_specs(force_ruby_platform, most_specific_locked_platform)
29
29
  @specs.map do |s|
30
30
  lazy_spec = LazySpecification.from_spec(s)
31
31
  lazy_spec.force_ruby_platform = force_ruby_platform
32
+ lazy_spec.most_specific_locked_platform = most_specific_locked_platform
32
33
  lazy_spec
33
34
  end
34
35
  end
@@ -38,9 +39,9 @@ module Bundler
38
39
  end
39
40
 
40
41
  def dependencies
41
- @dependencies ||= @specs.map do |spec|
42
+ @dependencies ||= @specs.flat_map do |spec|
42
43
  __dependencies(spec) + metadata_dependencies(spec)
43
- end.flatten.uniq.sort
44
+ end.uniq.sort
44
45
  end
45
46
 
46
47
  def ==(other)
@@ -15,10 +15,11 @@ module Bundler
15
15
 
16
16
  include GemHelpers
17
17
 
18
- def initialize(base, gem_version_promoter)
18
+ def initialize(base, gem_version_promoter, most_specific_locked_platform = nil)
19
19
  @source_requirements = base.source_requirements
20
20
  @base = base
21
21
  @gem_version_promoter = gem_version_promoter
22
+ @most_specific_locked_platform = most_specific_locked_platform
22
23
  end
23
24
 
24
25
  def start
@@ -79,8 +80,7 @@ module Bundler
79
80
  def solve_versions(root:, logger:)
80
81
  solver = PubGrub::VersionSolver.new(source: self, root: root, logger: logger)
81
82
  result = solver.solve
82
- resolved_specs = result.map {|package, version| version.to_specs(package) }.flatten
83
- resolved_specs |= @base.specs_compatible_with(SpecSet.new(resolved_specs))
83
+ result.flat_map {|package, version| version.to_specs(package, @most_specific_locked_platform) }
84
84
  rescue PubGrub::SolveFailure => e
85
85
  incompatibility = e.incompatibility
86
86
 
@@ -417,7 +417,7 @@ module Bundler
417
417
  end
418
418
 
419
419
  def prepare_dependencies(requirements, packages)
420
- to_dependency_hash(requirements, packages).map do |dep_package, dep_constraint|
420
+ to_dependency_hash(requirements, packages).filter_map do |dep_package, dep_constraint|
421
421
  name = dep_package.name
422
422
 
423
423
  next [dep_package, dep_constraint] if name == "bundler"
@@ -443,7 +443,7 @@ module Bundler
443
443
  next unless dep_package.current_platform?
444
444
 
445
445
  raise_not_found!(dep_package)
446
- end.compact.to_h
446
+ end.to_h
447
447
  end
448
448
 
449
449
  def select_sorted_versions(package, range)
@@ -79,14 +79,18 @@ module Gem
79
79
  include ::Bundler::MatchMetadata
80
80
  include ::Bundler::MatchPlatform
81
81
 
82
- attr_accessor :remote, :location, :relative_loaded_from
82
+ attr_accessor :remote, :relative_loaded_from
83
83
 
84
- remove_method :source
85
- attr_writer :source
86
- def source
87
- (defined?(@source) && @source) || Gem::Source::Installed.new
84
+ module AllowSettingSource
85
+ attr_writer :source
86
+
87
+ def source
88
+ (defined?(@source) && @source) || super
89
+ end
88
90
  end
89
91
 
92
+ prepend AllowSettingSource
93
+
90
94
  alias_method :rg_full_gem_path, :full_gem_path
91
95
  alias_method :rg_loaded_from, :loaded_from
92
96
 
@@ -122,7 +126,9 @@ module Gem
122
126
  end
123
127
  end
124
128
 
125
- remove_method :gem_dir
129
+ # Can be removed once RubyGems 3.5.21 support is dropped
130
+ remove_method :gem_dir if method_defined?(:gem_dir, false)
131
+
126
132
  def gem_dir
127
133
  full_gem_path
128
134
  end
@@ -144,6 +150,10 @@ module Gem
144
150
  end
145
151
  end
146
152
 
153
+ def insecurely_materialized?
154
+ false
155
+ end
156
+
147
157
  def groups
148
158
  @groups ||= []
149
159
  end
@@ -278,23 +288,6 @@ module Gem
278
288
  end
279
289
  end
280
290
 
281
- # Requirements using lambda operator differentiate trailing zeros since rubygems 3.2.6
282
- if Gem::Requirement.new("~> 2.0").hash == Gem::Requirement.new("~> 2.0.0").hash
283
- class Requirement
284
- module CorrectHashForLambdaOperator
285
- def hash
286
- if requirements.any? {|r| r.first == "~>" }
287
- requirements.map {|r| r.first == "~>" ? [r[0], r[1].to_s] : r }.sort.hash
288
- else
289
- super
290
- end
291
- end
292
- end
293
-
294
- prepend CorrectHashForLambdaOperator
295
- end
296
- end
297
-
298
291
  require "rubygems/platform"
299
292
 
300
293
  class Platform
@@ -344,10 +337,6 @@ module Gem
344
337
  without_gnu_nor_abi_modifiers
345
338
  end
346
339
  end
347
-
348
- if RUBY_ENGINE == "truffleruby" && !defined?(REUSE_AS_BINARY_ON_TRUFFLERUBY)
349
- REUSE_AS_BINARY_ON_TRUFFLERUBY = %w[libv8 libv8-node sorbet-static].freeze
350
- end
351
340
  end
352
341
 
353
342
  Platform.singleton_class.module_eval do
@@ -453,7 +442,7 @@ module Gem
453
442
  end
454
443
  end
455
444
 
456
- unless Gem.rubygems_version >= Gem::Version.new("3.5.23")
445
+ if Gem.rubygems_version < Gem::Version.new("3.6.0")
457
446
  class Package; end
458
447
  require "rubygems/package/tar_reader"
459
448
  require "rubygems/package/tar_reader/entry"
@@ -466,4 +455,15 @@ module Gem
466
455
 
467
456
  Package::TarReader::Entry.prepend(FixFullNameEncoding)
468
457
  end
458
+
459
+ require "rubygems/uri"
460
+
461
+ # Can be removed once RubyGems 3.3.15 support is dropped
462
+ unless Gem::Uri.respond_to?(:redact)
463
+ class Uri
464
+ def self.redact(uri)
465
+ new(uri).redacted
466
+ end
467
+ end
468
+ end
469
469
  end
@@ -147,7 +147,6 @@ module Bundler
147
147
  SharedHelpers.filesystem_access(extension_dir, :create) do
148
148
  FileUtils.mkdir_p extension_dir
149
149
  end
150
- require "shellwords" unless Bundler.rubygems.provides?(">= 3.2.25")
151
150
  end
152
151
 
153
152
  def strict_rm_rf(dir)
@@ -20,10 +20,6 @@ module Bundler
20
20
  Gem::Requirement.new(req_str).satisfied_by?(version)
21
21
  end
22
22
 
23
- def supports_bundler_trampolining?
24
- provides?(">= 3.3.0.a")
25
- end
26
-
27
23
  def build_args
28
24
  require "rubygems/command"
29
25
  Gem::Command.build_args
@@ -34,6 +30,10 @@ module Bundler
34
30
  Gem::Command.build_args = args
35
31
  end
36
32
 
33
+ def set_target_rbconfig(path)
34
+ Gem.set_target_rbconfig(path)
35
+ end
36
+
37
37
  def loaded_specs(name)
38
38
  Gem.loaded_specs[name]
39
39
  end
@@ -134,6 +134,18 @@ module Bundler
134
134
  loaded_gem_paths.flatten
135
135
  end
136
136
 
137
+ def load_plugins
138
+ Gem.load_plugins
139
+ end
140
+
141
+ def load_plugin_files(plugin_files)
142
+ Gem.load_plugin_files(plugin_files)
143
+ end
144
+
145
+ def load_env_plugins
146
+ Gem.load_env_plugins
147
+ end
148
+
137
149
  def ui=(obj)
138
150
  Gem::DefaultUserInteraction.ui = obj
139
151
  end
@@ -304,11 +316,7 @@ module Bundler
304
316
  @replaced_methods.each do |(sym, klass), method|
305
317
  redefine_method(klass, sym, method)
306
318
  end
307
- if Binding.public_method_defined?(:source_location)
308
- post_reset_hooks.reject! {|proc| proc.binding.source_location[0] == __FILE__ }
309
- else
310
- post_reset_hooks.reject! {|proc| proc.binding.eval("__FILE__") == __FILE__ }
311
- end
319
+ post_reset_hooks.reject! {|proc| proc.binding.source_location[0] == __FILE__ }
312
320
  @replaced_methods.clear
313
321
  end
314
322
 
@@ -385,7 +393,9 @@ module Bundler
385
393
  def download_gem(spec, uri, cache_dir, fetcher)
386
394
  require "rubygems/remote_fetcher"
387
395
  uri = Bundler.settings.mirror_for(uri)
388
- Bundler::Retry.new("download gem from #{uri}").attempts do
396
+ redacted_uri = Gem::Uri.redact(uri)
397
+
398
+ Bundler::Retry.new("download gem from #{redacted_uri}").attempts do
389
399
  gem_file_name = spec.file_name
390
400
  local_gem_path = File.join cache_dir, gem_file_name
391
401
  return if File.exist? local_gem_path
@@ -407,7 +417,7 @@ module Bundler
407
417
  end
408
418
  end
409
419
  rescue Gem::RemoteFetcher::FetchError => e
410
- raise Bundler::HTTPError, "Could not download gem from #{uri} due to underlying error <#{e.message}>"
420
+ raise Bundler::HTTPError, "Could not download gem from #{redacted_uri} due to underlying error <#{e.message}>"
411
421
  end
412
422
 
413
423
  def build(spec, skip_validation = false)