rubygems-update 4.1.0.beta2 → 4.1.0

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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +136 -94
  3. data/Manifest.txt +1 -1
  4. data/lib/bundler/build_metadata.rb +2 -2
  5. data/lib/bundler/checksum.rb +8 -2
  6. data/lib/bundler/cli/clean.rb +19 -3
  7. data/lib/bundler/cli/exec.rb +1 -1
  8. data/lib/bundler/cli/install.rb +1 -1
  9. data/lib/bundler/cli/lock.rb +17 -1
  10. data/lib/bundler/cli/update.rb +1 -1
  11. data/lib/bundler/cli.rb +2 -0
  12. data/lib/bundler/definition.rb +170 -12
  13. data/lib/bundler/dsl.rb +40 -23
  14. data/lib/bundler/errors.rb +8 -0
  15. data/lib/bundler/fetcher/downloader.rb +15 -5
  16. data/lib/bundler/fetcher.rb +4 -1
  17. data/lib/bundler/index.rb +7 -2
  18. data/lib/bundler/inline.rb +16 -8
  19. data/lib/bundler/installer.rb +19 -0
  20. data/lib/bundler/lazy_specification.rb +42 -25
  21. data/lib/bundler/lockfile_generator.rb +27 -9
  22. data/lib/bundler/lockfile_parser.rb +38 -6
  23. data/lib/bundler/man/bundle-lock.1 +7 -1
  24. data/lib/bundler/man/bundle-lock.1.ronn +10 -0
  25. data/lib/bundler/man/bundle-plugin.1 +61 -0
  26. data/lib/bundler/man/bundle-plugin.1.ronn +84 -0
  27. data/lib/bundler/man/gemfile.5 +21 -10
  28. data/lib/bundler/man/gemfile.5.ronn +39 -17
  29. data/lib/bundler/match_platform.rb +15 -6
  30. data/lib/bundler/mirror.rb +7 -5
  31. data/lib/bundler/override.rb +60 -7
  32. data/lib/bundler/resolver.rb +3 -1
  33. data/lib/bundler/ruby_dsl.rb +2 -1
  34. data/lib/bundler/rubygems_ext.rb +56 -13
  35. data/lib/bundler/rubygems_integration.rb +2 -4
  36. data/lib/bundler/runtime.rb +24 -10
  37. data/lib/bundler/source/git/git_proxy.rb +18 -6
  38. data/lib/bundler/source/git.rb +0 -2
  39. data/lib/bundler/source/rubygems.rb +2 -2
  40. data/lib/bundler/source_map.rb +1 -1
  41. data/lib/bundler/spec_set.rb +26 -7
  42. data/lib/bundler/stub_specification.rb +4 -0
  43. data/lib/bundler/vendor/fileutils/lib/fileutils.rb +54 -29
  44. data/lib/bundler/version.rb +1 -1
  45. data/lib/bundler/worker.rb +4 -0
  46. data/lib/bundler.rb +1 -1
  47. data/lib/rubygems/available_set.rb +0 -27
  48. data/lib/rubygems/command.rb +0 -9
  49. data/lib/rubygems/commands/sources_command.rb +0 -12
  50. data/lib/rubygems/compact_index_client/http_fetcher.rb +3 -1
  51. data/lib/rubygems/compact_index_client/parser.rb +1 -0
  52. data/lib/rubygems/config_file.rb +7 -4
  53. data/lib/rubygems/content_address.rb +5 -4
  54. data/lib/rubygems/dependency_installer.rb +0 -10
  55. data/lib/rubygems/dependency_list.rb +2 -12
  56. data/lib/rubygems/ext/builder.rb +8 -4
  57. data/lib/rubygems/package.rb +3 -0
  58. data/lib/rubygems/remote_fetcher.rb +1 -1
  59. data/lib/rubygems/requirement.rb +1 -1
  60. data/lib/rubygems/resolver/dependency_request.rb +0 -8
  61. data/lib/rubygems/safe_marshal/visitors/to_ruby.rb +11 -6
  62. data/lib/rubygems/safe_yaml.rb +33 -3
  63. data/lib/rubygems/specification_policy.rb +14 -10
  64. data/lib/rubygems/uninstaller.rb +14 -2
  65. data/lib/rubygems/user_interaction.rb +6 -9
  66. data/lib/rubygems/vendor/net-http/lib/net/http/generic_request.rb +10 -1
  67. data/lib/rubygems/vendor/net-http/lib/net/http/header.rb +56 -15
  68. data/lib/rubygems/vendor/net-http/lib/net/http/request.rb +1 -0
  69. data/lib/rubygems/vendor/net-http/lib/net/http/requests.rb +59 -24
  70. data/lib/rubygems/vendor/net-http/lib/net/http/response.rb +40 -15
  71. data/lib/rubygems/vendor/net-http/lib/net/http.rb +73 -14
  72. data/lib/rubygems/vendor/net-protocol/COPYING +56 -0
  73. data/lib/rubygems/vendor/net-protocol/lib/net/protocol.rb +95 -26
  74. data/lib/rubygems/vendor/uri/lib/uri/common.rb +1 -1
  75. data/lib/rubygems/vendor/uri/lib/uri/generic.rb +15 -3
  76. data/lib/rubygems/vendor/uri/lib/uri/version.rb +1 -1
  77. data/lib/rubygems/yaml_serializer.rb +247 -137
  78. data/lib/rubygems.rb +23 -7
  79. metadata +9 -9
  80. data/lib/rubygems/vendor/net-protocol/LICENSE.txt +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92ef5aaf37fa34e9c54d4ccb621998b24ad8a17dacf8fd40c4d3431b1deadf5f
4
- data.tar.gz: b7f8ac5ccc71b284957ce258ce02c6930926da7e32d15ac1295220fd7caa6dbc
3
+ metadata.gz: 2c879666cb1c4a2400671c7cbb29953f2fbbae02e3f9eaa7a38e125727eef844
4
+ data.tar.gz: 18e7a85d0ceed52d86672bb48642d2a8cc6dec5cabf2cf16744cfc6b50e6bf31
5
5
  SHA512:
6
- metadata.gz: f27352dfa7e4d9f164444c96ee7ce41ff17dd8288ce4a7e96f3f5c4ca3452fee4427a73abb7c82f753165488880039fcef77e6d3870addf9a57d908cfe8f3810
7
- data.tar.gz: 1dcf75db4af1ac4206836b95283658481f5d70a3a049e06959a642efbcb5e7a4945067417b43daa8ac648f72aa6d7124907c31546ba82f1102fa334237426bc5
6
+ metadata.gz: c6f491d00d0e92237aec539d6bc24f49c7ccf8580266ecb721f97553965520fe90992715f11cdfc165eb35f60391043beb29a8c00e9ceb5ff1b301cafe86574f
7
+ data.tar.gz: da61e6c25fdf2e78293eb00b9afcff9dadd51d6bf49607167efcebe062b9ff82b86874548eb5c323c68fe18190b7f2a684bd77541ef4f703f19c9195e99c1219
data/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Bundler's changelog before 4.0.0, when it was versioned separately from RubyGems, is in [doc/CHANGELOG-bundler-2.x.md](https://github.com/ruby/rubygems/blob/master/doc/CHANGELOG-bundler-2.x.md).
4
4
 
5
- ## 4.1.0.beta2 / 2026-10-08
5
+ ## 4.1.0 / 2026-11-16
6
6
 
7
7
  ### RubyGems
8
8
 
@@ -12,95 +12,6 @@ Changes already released in 4.0.x are not repeated here.
12
12
 
13
13
  * Support content addressable gems in `Gem::PackageTask`. Pull request [#9897](https://github.com/ruby/rubygems/pull/9897) by Harriet Oughton, Gira Chawda and Jenny Shen
14
14
  * Add `--content-addressable` to `gem build` and make `--ruby-abi` only set the Ruby ABI. Pull request [#9906](https://github.com/ruby/rubygems/pull/9906) by Harriet Oughton
15
-
16
- #### Enhancements:
17
-
18
- * Drop setuid, setgid and sticky bits when extracting gems. Pull request [#9929](https://github.com/ruby/rubygems/pull/9929) by Hiroshi SHIBATA
19
- * Improve handling of paths with invalid Windows characters. Pull request [#9276](https://github.com/ruby/rubygems/pull/9276) by Said Kaldybaev and Hiroshi SHIBATA
20
- * Installs bundler 4.1.0.beta2 as a default gem.
21
-
22
- #### Breaking changes:
23
-
24
- * Build a platform gem with `gem build --platform` for the local platform. Pull request [#9873](https://github.com/ruby/rubygems/pull/9873) by Hiroshi SHIBATA
25
- * Fix `gem update --user-install` updating gems outside the user directory. Pull request [#9872](https://github.com/ruby/rubygems/pull/9872) by Hiroshi SHIBATA
26
-
27
- ### Bundler
28
-
29
- Changes already released in 4.0.x are not repeated here.
30
-
31
- #### Features:
32
-
33
- * Let override drop or replace one dependency of a gem. Pull request [#9935](https://github.com/ruby/rubygems/pull/9935) by Hiroshi SHIBATA
34
- * Add `sparse_checkout` option to git source. Pull request [#9295](https://github.com/ruby/rubygems/pull/9295) by Ian Ker-Seymer and Hiroshi SHIBATA
35
- * Implement `--exact-match` Flag for `bundle info` / `show` / `open`. Pull request [#9489](https://github.com/ruby/rubygems/pull/9489) by Harriet Oughton
36
-
37
- #### Bug fixes:
38
-
39
- * Respect Gemfile lockfile in `bundle lock`. Pull request [#9661](https://github.com/ruby/rubygems/pull/9661) by David Stosik and Hiroshi SHIBATA
40
-
41
- ## 4.0.22 / 2026-09-30
42
-
43
- ### RubyGems
44
-
45
- #### Enhancements:
46
-
47
- * Add --source option to gem exec command. Pull request [#9765](https://github.com/ruby/rubygems/pull/9765) by Akshay Birajdar
48
- * Keep credentials on redirects only within the same origin. Pull request [#9909](https://github.com/ruby/rubygems/pull/9909) by Hiroshi SHIBATA
49
- * Validate the version field in Gem::Installer#verify_spec. Pull request [#9890](https://github.com/ruby/rubygems/pull/9890) by Hiroshi SHIBATA
50
- * Installs bundler 4.0.22 as a default gem.
51
-
52
- #### Bug fixes:
53
-
54
- * Remove the build_info file on uninstall and stop gem build from logging unknown extensions. Pull request [#9894](https://github.com/ruby/rubygems/pull/9894) by Hiroshi SHIBATA
55
-
56
- ### Bundler
57
-
58
- #### Enhancements:
59
-
60
- * Report the effective platform in `bundle platform`. Pull request [#9898](https://github.com/ruby/rubygems/pull/9898) by Islam Elsayed
61
- * Keep credentials on redirects only within the same origin. Pull request [#9909](https://github.com/ruby/rubygems/pull/9909) by Hiroshi SHIBATA
62
- * Update Magnus version in Rust extension gem template. Pull request [#9904](https://github.com/ruby/rubygems/pull/9904) by Mat Sadler and Hiroshi SHIBATA
63
-
64
- #### Bug fixes:
65
-
66
- * Stop `Bundler.bin_path` creating the directory it reports. Pull request [#9887](https://github.com/ruby/rubygems/pull/9887) by Islam Elsayed and Hiroshi SHIBATA
67
- * Look up `bundler-<command>` executables only in PATH. Pull request [#9874](https://github.com/ruby/rubygems/pull/9874) by Hiroshi SHIBATA
68
-
69
- #### Documentation:
70
-
71
- * Describe `--major` as preferring the latest major version. Pull request [#9891](https://github.com/ruby/rubygems/pull/9891) by Hiroshi SHIBATA
72
-
73
- ## 4.0.21 / 2026-09-16
74
-
75
- ### RubyGems
76
-
77
- #### Enhancements:
78
-
79
- * Stop vendoring resolv for two regexps. Pull request [#9877](https://github.com/ruby/rubygems/pull/9877) by Hiroshi SHIBATA
80
- * Normalize absolute symlink targets during gem extraction. Pull request [#9860](https://github.com/ruby/rubygems/pull/9860) by Hiroshi SHIBATA
81
- * Installs bundler 4.0.21 as a default gem.
82
-
83
- ### Bundler
84
-
85
- #### Enhancements:
86
-
87
- * Don't update bundler to a prerelease unless asked for one. Pull request [#9869](https://github.com/ruby/rubygems/pull/9869) by Hiroshi SHIBATA
88
- * Reject Bundler redirects that downgrade https to http. Pull request [#9859](https://github.com/ruby/rubygems/pull/9859) by Hiroshi SHIBATA
89
-
90
- #### Bug fixes:
91
-
92
- * Support `safe.bareRepository=explicit` in git sources. Pull request [#9876](https://github.com/ruby/rubygems/pull/9876) by Hiroshi SHIBATA
93
- * Stop resolving locally for empty CHECKSUMS entries. Pull request [#9862](https://github.com/ruby/rubygems/pull/9862) by Hiroshi SHIBATA
94
- * Expand the git source gemspec path before the chdir. Pull request [#9845](https://github.com/ruby/rubygems/pull/9845) by Hiroshi SHIBATA
95
-
96
- ## 4.1.0.beta1 / 2026-09-09
97
-
98
- ### RubyGems
99
-
100
- Changes already released in 4.0.x are not repeated here.
101
-
102
- #### Features:
103
-
104
15
  * Add content addressable gems support. Pull request [#9773](https://github.com/ruby/rubygems/pull/9773) by Jenny Shen, Harriet Oughton and Gira Chawda
105
16
  * Let the gem and bundle cooldown settings cover each other. Pull request [#9852](https://github.com/ruby/rubygems/pull/9852) by Hiroshi SHIBATA
106
17
  * Rubygems: Add PQC ML-DSA support for cryptographically signed gems workflow. Pull request [#9697](https://github.com/ruby/rubygems/pull/9697) by Jun Aruga, Kazuki Yamaguchi and Hiroshi SHIBATA
@@ -122,15 +33,19 @@ Changes already released in 4.0.x are not repeated here.
122
33
 
123
34
  #### Performance:
124
35
 
36
+ * Fix slow and misaligned Bignum loading in Gem::SafeMarshal. Pull request [#10057](https://github.com/ruby/rubygems/pull/10057) by Hiroshi SHIBATA
37
+ * Build Gem::Requirement.default without parsing ">= 0". Pull request [#10002](https://github.com/ruby/rubygems/pull/10002) by Lawrence Lin
125
38
  * Remove `verify_gz`. Pull request [#9093](https://github.com/ruby/rubygems/pull/9093) by Eileen
126
39
 
127
40
  #### Enhancements:
128
41
 
129
- * Normalize absolute symlink targets during gem extraction. Pull request [#9860](https://github.com/ruby/rubygems/pull/9860) by Hiroshi SHIBATA
130
- * Installs bundler 4.1.0.beta1 as a default gem.
42
+ * Installs bundler 4.1.0 as a default gem.
131
43
 
132
44
  #### Breaking changes:
133
45
 
46
+ * Delete some unused internal methods. Pull request [#9827](https://github.com/ruby/rubygems/pull/9827) by Issy Long and Hiroshi SHIBATA
47
+ * Build a platform gem with `gem build --platform` for the local platform. Pull request [#9873](https://github.com/ruby/rubygems/pull/9873) by Hiroshi SHIBATA
48
+ * Fix `gem update --user-install` updating gems outside the user directory. Pull request [#9872](https://github.com/ruby/rubygems/pull/9872) by Hiroshi SHIBATA
134
49
  * Stop installing native extension build logs. Pull request [#9700](https://github.com/ruby/rubygems/pull/9700) by Hiroshi SHIBATA
135
50
  * Remove Gem::BasicSpecification#datadir and check minor-release deprecation horizons. Pull request [#9842](https://github.com/ruby/rubygems/pull/9842) by Hiroshi SHIBATA
136
51
  * Raise an error when building a gem that has a self reference. Pull request [#9392](https://github.com/ruby/rubygems/pull/9392) by Edouard CHIN
@@ -143,8 +58,15 @@ Changes already released in 4.0.x are not repeated here.
143
58
 
144
59
  #### Features:
145
60
 
61
+ * Fix regressions of bundler/inline's forked install. Pull request [#10048](https://github.com/ruby/rubygems/pull/10048) by Hiroshi SHIBATA and Samer Masry
62
+ * Rename the `from:` and `to:` keys of `override` to `in:` and `with:`. Pull request [#9979](https://github.com/ruby/rubygems/pull/9979) by Hiroshi SHIBATA
63
+ * Record overrides in Gemfile.lock (`OVERRIDES` section). Pull request [#9958](https://github.com/ruby/rubygems/pull/9958) by Ufuk Kayserilioglu
64
+ * Let override drop or replace one dependency of a gem. Pull request [#9935](https://github.com/ruby/rubygems/pull/9935) by Hiroshi SHIBATA
65
+ * Add `sparse_checkout` option to git source. Pull request [#9295](https://github.com/ruby/rubygems/pull/9295) by Ian Ker-Seymer and Hiroshi SHIBATA
66
+ * Implement `--exact-match` Flag for `bundle info` / `show` / `open`. Pull request [#9489](https://github.com/ruby/rubygems/pull/9489) by Harriet Oughton
146
67
  * Add content addressable gems support. Pull request [#9773](https://github.com/ruby/rubygems/pull/9773) by Jenny Shen, Harriet Oughton and Gira Chawda
147
68
  * Let the gem and bundle cooldown settings cover each other. Pull request [#9852](https://github.com/ruby/rubygems/pull/9852) by Hiroshi SHIBATA
69
+ * Reject created_at years outside four digits in cooldown parsing. Pull request [#9846](https://github.com/ruby/rubygems/pull/9846) by Hiroshi SHIBATA
148
70
  * Add a `prune` setting to drop rebuildable install artifacts. Pull request [#9815](https://github.com/ruby/rubygems/pull/9815) by Hiroshi SHIBATA
149
71
  * Add an opt-in OS credential store for gem and bundler credentials. Pull request [#9671](https://github.com/ruby/rubygems/pull/9671) by Hiroshi SHIBATA
150
72
  * Fetch Bundler metadata through Gem::Request instead of net-http-persistent. Pull request [#9786](https://github.com/ruby/rubygems/pull/9786) by Hiroshi SHIBATA
@@ -169,19 +91,26 @@ Changes already released in 4.0.x are not repeated here.
169
91
 
170
92
  #### Performance:
171
93
 
94
+ * Skip loading default gemspecs the bundle already has. Pull request [#10000](https://github.com/ruby/rubygems/pull/10000) by Lawrence Lin
95
+ * Add a lockfile source's spec names once, after parsing. Pull request [#10004](https://github.com/ruby/rubygems/pull/10004) by Lawrence Lin
96
+ * Look up a dependency's specs by name in SpecSet#validate_deps. Pull request [#9999](https://github.com/ruby/rubygems/pull/9999) by Lawrence Lin
97
+ * Delegate contains_requirable_file? to the stub in Bundler::StubSpecification. Pull request [#9997](https://github.com/ruby/rubygems/pull/9997) by Lawrence Lin
98
+ * Autoload the vendored FileUtils. Pull request [#10001](https://github.com/ruby/rubygems/pull/10001) by Lawrence Lin
172
99
  * Use separate Bundler download and installation workers. Pull request [#9777](https://github.com/ruby/rubygems/pull/9777) by Joshua Young
173
100
  * Cache a shared git source only once per command. Pull request [#9689](https://github.com/ruby/rubygems/pull/9689) by Hiroshi SHIBATA
174
101
 
175
102
  #### Enhancements:
176
103
 
177
- * Reject Bundler redirects that downgrade https to http. Pull request [#9859](https://github.com/ruby/rubygems/pull/9859) by Hiroshi SHIBATA
104
+ * Warn about downgrading default gems in bundle install. Pull request [#10026](https://github.com/ruby/rubygems/pull/10026) by Kazuki Yamaguchi
178
105
 
179
106
  #### Bug fixes:
180
107
 
181
- * Expand the git source gemspec path before the chdir. Pull request [#9845](https://github.com/ruby/rubygems/pull/9845) by Hiroshi SHIBATA
108
+ * Fix Bundler mirror probing with `fallback_timeout`. Pull request [#10046](https://github.com/ruby/rubygems/pull/10046) by Hiroshi SHIBATA
109
+ * Preload git sources that share a cache one after another. Pull request [#9951](https://github.com/ruby/rubygems/pull/9951) by Shai
182
110
 
183
111
  #### Breaking changes:
184
112
 
113
+ * Report permission errors from bundle clean. Pull request [#9772](https://github.com/ruby/rubygems/pull/9772) by Florian Meyer and Hiroshi SHIBATA
185
114
  * Remove external tool version checks from `bundle env`. Pull request [#9593](https://github.com/ruby/rubygems/pull/9593) by Hiroshi SHIBATA
186
115
  * Bundler: ignore patchlevel kwarg in ruby DSL. Pull request [#6023](https://github.com/ruby/rubygems/pull/6023) by Takuya N and Hiroshi SHIBATA
187
116
  * Unify RubyGems and Bundler documentation. Pull request [#9237](https://github.com/ruby/rubygems/pull/9237) by Hiroshi SHIBATA
@@ -190,6 +119,119 @@ Changes already released in 4.0.x are not repeated here.
190
119
 
191
120
  * Rename the no_prune setting to keep_outdated_cache. Pull request [#9816](https://github.com/ruby/rubygems/pull/9816) by Hiroshi SHIBATA
192
121
 
122
+ ## 4.0.24 / 2026-11-05
123
+
124
+ ### RubyGems
125
+
126
+ #### Enhancements:
127
+
128
+ * Installs bundler 4.0.24 as a default gem.
129
+
130
+ #### Bug fixes:
131
+
132
+ * Skip executable removal gracefully when the bin directory is missing. Pull request [#9963](https://github.com/ruby/rubygems/pull/9963) by Evan Li and Hiroshi SHIBATA
133
+ * Fix file locks letting multiple processes in when lock files are removed. Pull request [#9930](https://github.com/ruby/rubygems/pull/9930) by Richard Janita and Hiroshi SHIBATA
134
+ * Turn off echo before printing the password prompt. Pull request [#9969](https://github.com/ruby/rubygems/pull/9969) by Mike Dalessio
135
+
136
+ #### Documentation:
137
+
138
+ * [DOC] Fix link. Pull request [#10014](https://github.com/ruby/rubygems/pull/10014) by Burdette Lamar
139
+
140
+ ### Bundler
141
+
142
+ #### Enhancements:
143
+
144
+ * Read the Ruby version from mise's inline table form. Pull request [#9991](https://github.com/ruby/rubygems/pull/9991) by Hiroshi SHIBATA
145
+ * Report which locked gems can't be materialized for the current platform. Pull request [#9738](https://github.com/ruby/rubygems/pull/9738) by Muhammad Moussa
146
+
147
+ #### Bug fixes:
148
+
149
+ * Fix `bundle exec` with no arguments for paths containing spaces. Pull request [#9996](https://github.com/ruby/rubygems/pull/9996) by Brandon Weiss
150
+ * Respect enclosing platforms and install_if for gemspec development dependencies. Pull request [#9992](https://github.com/ruby/rubygems/pull/9992) by Hiroshi SHIBATA
151
+ * Respect enclosing group and platforms for gemspec dependencies. Pull request [#9990](https://github.com/ruby/rubygems/pull/9990) by Denis Talakevich
152
+ * Don't report locked gems in the cooldown summary. Pull request [#9981](https://github.com/ruby/rubygems/pull/9981) by Patrik Ragnarsson
153
+ * Make `Bundler::Source::Rubygems#hash` agree with `eql?`. Pull request [#9983](https://github.com/ruby/rubygems/pull/9983) by Hiroshi SHIBATA
154
+ * Add checksums after platform changes in `bundle lock`. Pull request [#9960](https://github.com/ruby/rubygems/pull/9960) by Farid Zakaria
155
+ * Apply BUNDLE_RETRY to lazy gemspec downloads. Pull request [#9868](https://github.com/ruby/rubygems/pull/9868) by Islam Elsayed
156
+ * Fix file locks letting multiple processes in when lock files are removed. Pull request [#9930](https://github.com/ruby/rubygems/pull/9930) by Richard Janita and Hiroshi SHIBATA
157
+
158
+ ## 4.0.23 / 2026-10-14
159
+
160
+ ### RubyGems
161
+
162
+ #### Enhancements:
163
+
164
+ * Update vendored gems to latest versions. Pull request [#9948](https://github.com/ruby/rubygems/pull/9948) by Hiroshi SHIBATA
165
+ * Drop setuid, setgid and sticky bits when extracting gems. Pull request [#9929](https://github.com/ruby/rubygems/pull/9929) by Hiroshi SHIBATA
166
+ * Improve handling of paths with invalid Windows characters. Pull request [#9276](https://github.com/ruby/rubygems/pull/9276) by Said Kaldybaev and Hiroshi SHIBATA
167
+ * Installs bundler 4.0.23 as a default gem.
168
+
169
+ ### Bundler
170
+
171
+ #### Enhancements:
172
+
173
+ * Update vendored gems to latest versions. Pull request [#9948](https://github.com/ruby/rubygems/pull/9948) by Hiroshi SHIBATA
174
+
175
+ #### Bug fixes:
176
+
177
+ * Stop retrying a 416 response to a request without Range. Pull request [#9938](https://github.com/ruby/rubygems/pull/9938) by Hiroshi SHIBATA
178
+ * Respect Gemfile lockfile in `bundle lock`. Pull request [#9661](https://github.com/ruby/rubygems/pull/9661) by David Stosik and Hiroshi SHIBATA
179
+
180
+ ## 4.0.22 / 2026-09-30
181
+
182
+ ### RubyGems
183
+
184
+ #### Enhancements:
185
+
186
+ * Add --source option to gem exec command. Pull request [#9765](https://github.com/ruby/rubygems/pull/9765) by Akshay Birajdar
187
+ * Keep credentials on redirects only within the same origin. Pull request [#9909](https://github.com/ruby/rubygems/pull/9909) by Hiroshi SHIBATA
188
+ * Validate the version field in Gem::Installer#verify_spec. Pull request [#9890](https://github.com/ruby/rubygems/pull/9890) by Hiroshi SHIBATA
189
+ * Installs bundler 4.0.22 as a default gem.
190
+
191
+ #### Bug fixes:
192
+
193
+ * Remove the build_info file on uninstall and stop gem build from logging unknown extensions. Pull request [#9894](https://github.com/ruby/rubygems/pull/9894) by Hiroshi SHIBATA
194
+
195
+ ### Bundler
196
+
197
+ #### Enhancements:
198
+
199
+ * Report the effective platform in `bundle platform`. Pull request [#9898](https://github.com/ruby/rubygems/pull/9898) by Islam Elsayed
200
+ * Keep credentials on redirects only within the same origin. Pull request [#9909](https://github.com/ruby/rubygems/pull/9909) by Hiroshi SHIBATA
201
+ * Update Magnus version in Rust extension gem template. Pull request [#9904](https://github.com/ruby/rubygems/pull/9904) by Mat Sadler and Hiroshi SHIBATA
202
+
203
+ #### Bug fixes:
204
+
205
+ * Stop `Bundler.bin_path` creating the directory it reports. Pull request [#9887](https://github.com/ruby/rubygems/pull/9887) by Islam Elsayed and Hiroshi SHIBATA
206
+ * Look up `bundler-<command>` executables only in PATH. Pull request [#9874](https://github.com/ruby/rubygems/pull/9874) by Hiroshi SHIBATA
207
+
208
+ #### Documentation:
209
+
210
+ * Describe `--major` as preferring the latest major version. Pull request [#9891](https://github.com/ruby/rubygems/pull/9891) by Hiroshi SHIBATA
211
+
212
+ ## 4.0.21 / 2026-09-16
213
+
214
+ ### RubyGems
215
+
216
+ #### Enhancements:
217
+
218
+ * Stop vendoring resolv for two regexps. Pull request [#9877](https://github.com/ruby/rubygems/pull/9877) by Hiroshi SHIBATA
219
+ * Normalize absolute symlink targets during gem extraction. Pull request [#9860](https://github.com/ruby/rubygems/pull/9860) by Hiroshi SHIBATA
220
+ * Installs bundler 4.0.21 as a default gem.
221
+
222
+ ### Bundler
223
+
224
+ #### Enhancements:
225
+
226
+ * Don't update bundler to a prerelease unless asked for one. Pull request [#9869](https://github.com/ruby/rubygems/pull/9869) by Hiroshi SHIBATA
227
+ * Reject Bundler redirects that downgrade https to http. Pull request [#9859](https://github.com/ruby/rubygems/pull/9859) by Hiroshi SHIBATA
228
+
229
+ #### Bug fixes:
230
+
231
+ * Support `safe.bareRepository=explicit` in git sources. Pull request [#9876](https://github.com/ruby/rubygems/pull/9876) by Hiroshi SHIBATA
232
+ * Stop resolving locally for empty CHECKSUMS entries. Pull request [#9862](https://github.com/ruby/rubygems/pull/9862) by Hiroshi SHIBATA
233
+ * Expand the git source gemspec path before the chdir. Pull request [#9845](https://github.com/ruby/rubygems/pull/9845) by Hiroshi SHIBATA
234
+
193
235
  ## 4.0.20 / 2026-09-02
194
236
 
195
237
  ### RubyGems
data/Manifest.txt CHANGED
@@ -503,7 +503,7 @@ lib/rubygems/vendor/net-http/lib/net/http/response.rb
503
503
  lib/rubygems/vendor/net-http/lib/net/http/responses.rb
504
504
  lib/rubygems/vendor/net-http/lib/net/http/status.rb
505
505
  lib/rubygems/vendor/net-http/lib/net/https.rb
506
- lib/rubygems/vendor/net-protocol/LICENSE.txt
506
+ lib/rubygems/vendor/net-protocol/COPYING
507
507
  lib/rubygems/vendor/net-protocol/lib/net/protocol.rb
508
508
  lib/rubygems/vendor/optparse/COPYING
509
509
  lib/rubygems/vendor/optparse/lib/optionparser.rb
@@ -4,8 +4,8 @@ module Bundler
4
4
  # Represents metadata from when the Bundler gem was built.
5
5
  module BuildMetadata
6
6
  # begin ivars
7
- @built_at = "2026-10-08".freeze
8
- @git_commit_sha = "f8b8b02".freeze
7
+ @built_at = "2026-11-16".freeze
8
+ @git_commit_sha = "9af9267".freeze
9
9
  # end ivars
10
10
 
11
11
  # A hash representation of the build metadata.
@@ -206,13 +206,19 @@ module Bundler
206
206
  end
207
207
 
208
208
  def missing?(spec)
209
- @store[spec.full_name].nil?
209
+ return false unless @store[spec.full_name].nil?
210
+
211
+ if spec.is_a?(LazySpecification)
212
+ spec.content_addressed_full_names.all? {|full_name| @store[full_name].nil? }
213
+ else
214
+ true
215
+ end
210
216
  end
211
217
 
212
218
  def empty?(spec)
213
219
  return false unless spec.source.is_a?(Bundler::Source::Rubygems)
214
220
 
215
- @store[spec.full_name].empty?
221
+ @store[spec.full_name]&.empty? || false
216
222
  end
217
223
 
218
224
  def register(spec, checksum)
@@ -13,13 +13,29 @@ module Bundler
13
13
  Bundler.load.clean(options[:"dry-run"])
14
14
  return if options[:"dry-run"]
15
15
 
16
- # Pruning last, because cleaning decides which cached .gem files are
17
- # stale by reading them.
18
- Bundler::CLI::Common.prune(options)
16
+ prune
17
+ rescue CleanError
18
+ # Everything that could be removed is gone, so the cache can be pruned
19
+ prune
20
+ raise
21
+ end
22
+
23
+ # Cleaning is incidental to install and update, so leftovers must not fail
24
+ # a command that installed everything it was asked to.
25
+ def run_after_install
26
+ run
27
+ rescue CleanError => e
28
+ Bundler.ui.warn e.message
19
29
  end
20
30
 
21
31
  protected
22
32
 
33
+ # Pruning last, because cleaning decides which cached .gem files are
34
+ # stale by reading them.
35
+ def prune
36
+ Bundler::CLI::Common.prune(options)
37
+ end
38
+
23
39
  def require_path_or_force
24
40
  return unless Bundler.use_system_gems? && !options[:force]
25
41
  raise InvalidOption, "Cleaning all the gems on your system is dangerous! " \
@@ -24,7 +24,7 @@ module Bundler
24
24
  kernel_load(bin_path, *args)
25
25
  else
26
26
  bin_path = explicit_path(bin_path)
27
- kernel_exec(bin_path, *args)
27
+ kernel_exec([bin_path, bin_path], *args)
28
28
  end
29
29
  else
30
30
  # exec using the given command
@@ -68,7 +68,7 @@ module Bundler
68
68
 
69
69
  if CLI::Common.clean_after_install?
70
70
  require_relative "clean"
71
- Bundler::CLI::Clean.new(options).run
71
+ Bundler::CLI::Clean.new(options).run_after_install
72
72
  else
73
73
  CLI::Common.prune(options)
74
74
  end
@@ -42,7 +42,6 @@ module Bundler
42
42
 
43
43
  Bundler.settings.temporary(frozen: false) do
44
44
  definition = Bundler.definition(update, Bundler.default_lockfile)
45
- definition.add_checksums if options["add-checksums"]
46
45
 
47
46
  Bundler::CLI::Common.configure_gem_version_promoter(definition, options) if options[:update]
48
47
 
@@ -64,6 +63,23 @@ module Bundler
64
63
  raise InvalidOption, "Removing all platforms from the bundle is not allowed"
65
64
  end
66
65
 
66
+ options["remove-ruby-abi"].flatten.each do |ruby_abi|
67
+ definition.remove_ruby_abi(ruby_abi)
68
+ end
69
+
70
+ options["add-ruby-abi"].flatten.each do |ruby_abi|
71
+ raise InvalidOption, "Expected `--add-ruby-abi` to be a Ruby ABI like `X.Y`, got #{ruby_abi.inspect}" unless Gem::ContentAddress.valid_ruby_abi?(ruby_abi)
72
+
73
+ definition.add_ruby_abi(ruby_abi)
74
+ end
75
+
76
+ # Adding checksums resolves the bundle to fetch them, so it has to
77
+ # run after every platform change above has been recorded, or the
78
+ # new platforms are listed in the lockfile without their specs.
79
+ definition.add_checksums if options["add-checksums"]
80
+
81
+ # Adding a Ruby ABI offline takes its content-addressed gems from the installed ones.
82
+ definition.with_cache! if options[:local] && options["add-ruby-abi"].any?
67
83
  definition.remotely! unless options[:local]
68
84
 
69
85
  if options["normalize-platforms"]
@@ -90,7 +90,7 @@ module Bundler
90
90
 
91
91
  if CLI::Common.clean_after_install?
92
92
  require_relative "clean"
93
- Bundler::CLI::Clean.new(options).run
93
+ Bundler::CLI::Clean.new(options).run_after_install
94
94
  else
95
95
  CLI::Common.prune(options)
96
96
  end
data/lib/bundler/cli.rb CHANGED
@@ -653,6 +653,8 @@ module Bundler
653
653
  method_option "add-platform", type: :array, default: [], repeatable: true, banner: "Add a new platform to the lockfile"
654
654
  method_option "remove-platform", type: :array, default: [], repeatable: true, banner: "Remove a platform from the lockfile"
655
655
  method_option "normalize-platforms", type: :boolean, default: false, banner: "Normalize lockfile platforms"
656
+ method_option "add-ruby-abi", type: :array, default: [], repeatable: true, banner: "Lock the content-addressed gems for a Ruby ABI (X.Y)"
657
+ method_option "remove-ruby-abi", type: :array, default: [], repeatable: true, banner: "Drop the content-addressed gems for a Ruby ABI (X.Y) from the lockfile"
656
658
  method_option "patch", type: :boolean, banner: "If updating, prefer updating only to next patch version"
657
659
  method_option "minor", type: :boolean, banner: "If updating, prefer updating only to next minor version"
658
660
  method_option "major", type: :boolean, banner: "If updating, prefer updating to latest major version (default)"