Skip to content

Commit 9b85884

Browse files
committed
Added 4.0.0 release announcement
1 parent cf0d402 commit 9b85884

File tree

1 file changed

+264
-0
lines changed

1 file changed

+264
-0
lines changed
Lines changed: 264 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,264 @@
1+
---
2+
title: 4.0.0 Released
3+
layout: post
4+
author: Hiroshi SHIBATA
5+
author_email: hsbt@ruby-lang.org
6+
---
7+
8+
RubyGems 4.0.0 includes features, performance, enhancements, bug fixes, security, breaking changes, deprecations and documentation and Bundler 4.0.0 includes features, performance, enhancements, bug fixes, security, breaking changes and documentation.
9+
10+
To update to the latest RubyGems you can run:
11+
12+
gem update --system [--pre]
13+
14+
To update to the latest Bundler you can run:
15+
16+
gem install bundler [--pre]
17+
bundle update --bundler=4.0.0
18+
19+
## RubyGems Release Notes
20+
21+
22+
### Features:
23+
24+
* Undeprecate `Gem::Version.new(nil)`. Pull request
25+
[#9086](https://github.com/ruby/rubygems/pull/9086) by tenderlove
26+
* Add pattern matching support to Gem::NameTuple. Pull request
27+
[#9064](https://github.com/ruby/rubygems/pull/9064) by baweaver
28+
* Add pattern matching support to Gem::Platform. Pull request
29+
[#9062](https://github.com/ruby/rubygems/pull/9062) by baweaver
30+
31+
### Performance:
32+
33+
* Add `MAKEFLAGS=-j` by default before compiling. Pull request
34+
[#9131](https://github.com/ruby/rubygems/pull/9131) by Edouard-chin
35+
* Remove some memoization. Pull request
36+
[#9017](https://github.com/ruby/rubygems/pull/9017) by tenderlove
37+
* Pull `Gem.win_platform?` out of a hot path. Pull request
38+
[#8983](https://github.com/ruby/rubygems/pull/8983) by tenderlove
39+
* Stop trying to remove every file on extraction. Pull request
40+
[#8974](https://github.com/ruby/rubygems/pull/8974) by tenderlove
41+
* Use `IO.copy_stream` with IO object directly. Pull request
42+
[#8970](https://github.com/ruby/rubygems/pull/8970) by tenderlove
43+
* Pass a file size to `IO.copy_stream`. Pull request
44+
[#8966](https://github.com/ruby/rubygems/pull/8966) by tenderlove
45+
* Use File#chmod rather than FileUtils.chmod. Pull request
46+
[#8965](https://github.com/ruby/rubygems/pull/8965) by tenderlove
47+
48+
### Enhancements:
49+
50+
* Update all vendored libraries to latest version. Pull request
51+
[#9089](https://github.com/ruby/rubygems/pull/9089) by hsbt
52+
* Removed unused `Gem::Deprecate`. Pull request
53+
[#9090](https://github.com/ruby/rubygems/pull/9090) by hsbt
54+
* Add debug logging information to see the time it took to download and
55+
install a gem. Pull request
56+
[#9066](https://github.com/ruby/rubygems/pull/9066) by Edouard-chin
57+
* Fix constants in TAR to be frozen. Pull request
58+
[#9041](https://github.com/ruby/rubygems/pull/9041) by tenderlove
59+
* Remove open-ended and prerelease dependency warnings when building gems.
60+
Pull request [#9050](https://github.com/ruby/rubygems/pull/9050) by
61+
jeremyevans
62+
* Revamp CmakeBuilder. Pull request
63+
[#8753](https://github.com/ruby/rubygems/pull/8753) by cfis
64+
* Restrict what schemes are acceptable in the remote fetcher. Pull request
65+
[#9022](https://github.com/ruby/rubygems/pull/9022) by tenderlove
66+
* `gem sources --prepend` and `--append` allow finer grained control of
67+
sources. Pull request [#8901](https://github.com/ruby/rubygems/pull/8901)
68+
by martinemde
69+
* Improve `gem sources --remove` output. Pull request
70+
[#8909](https://github.com/ruby/rubygems/pull/8909) by deivid-rodriguez
71+
* Make `gem sources` output more clear. Pull request
72+
[#8938](https://github.com/ruby/rubygems/pull/8938) by deivid-rodriguez
73+
* Don't fail if there is no makefile, simply don't do anything. Pull
74+
request [#8879](https://github.com/ruby/rubygems/pull/8879) by ioquatix
75+
* Use IMDSv2 for S3 instance credentials. Pull request
76+
[#7709](https://github.com/ruby/rubygems/pull/7709) by folbricht-stripe
77+
* Fix regression in presence of RVM gems. Pull request
78+
[#8854](https://github.com/ruby/rubygems/pull/8854) by deivid-rodriguez
79+
* Restore parsing "--" as an unknown platform rather than crashing. Pull
80+
request [#8846](https://github.com/ruby/rubygems/pull/8846) by
81+
deivid-rodriguez
82+
* Installs bundler 4.0.0 as a default gem.
83+
84+
### Bug fixes:
85+
86+
* Fix test failure of mswin and nmake. Pull request
87+
[#9135](https://github.com/ruby/rubygems/pull/9135) by hsbt
88+
* Respect `BUNDLE_VERSION` config at Gem::BundlerVersionFinder. Pull
89+
request [#9106](https://github.com/ruby/rubygems/pull/9106) by hsbt
90+
* Fix "did you mean" suggestions for unknown commands. Pull request
91+
[#8948](https://github.com/ruby/rubygems/pull/8948) by deivid-rodriguez
92+
* Fix trailing slashes not considered by `gem sources --remove`. Pull
93+
request [#8939](https://github.com/ruby/rubygems/pull/8939) by
94+
deivid-rodriguez
95+
96+
### Security:
97+
98+
* Bump up vendored URI to 1.0.4. Pull request
99+
[#9031](https://github.com/ruby/rubygems/pull/9031) by hsbt
100+
101+
### Breaking changes:
102+
103+
* Removed deprecated `-C` option from gem build. Pull request
104+
[#9088](https://github.com/ruby/rubygems/pull/9088) by hsbt
105+
* Removed deprecated Gem::Specification#has_rdoc, has_rdoc= and has_rdoc?.
106+
Pull request [#9084](https://github.com/ruby/rubygems/pull/9084) by hsbt
107+
* Removed deprecated `gem query` command. Pull request
108+
[#9083](https://github.com/ruby/rubygems/pull/9083) by hsbt
109+
* Removed deprecated Gem::DependencyInstaller#find_gems_with_sources. Pull
110+
request [#9082](https://github.com/ruby/rubygems/pull/9082) by hsbt
111+
* Remove deprecated methods of RubyGems. Pull request
112+
[#9081](https://github.com/ruby/rubygems/pull/9081) by hsbt
113+
* Make verification methods private. Pull request
114+
[#9051](https://github.com/ruby/rubygems/pull/9051) by tenderlove
115+
* Deprecate `--default` option from install command. Pull request
116+
[#7588](https://github.com/ruby/rubygems/pull/7588) by hsbt
117+
* Removed `compatibility.rb` for RG 4.0. Pull request
118+
[#8899](https://github.com/ruby/rubygems/pull/8899) by hsbt
119+
120+
### Deprecations:
121+
122+
* Deprecate `Gem::Specification#datadir`. Pull request
123+
[#8900](https://github.com/ruby/rubygems/pull/8900) by hsbt
124+
125+
### Documentation:
126+
127+
* Unified UPGRADING.md and extract blog.rubygems.org. Pull request
128+
[#9148](https://github.com/ruby/rubygems/pull/9148) by hsbt
129+
* Remove italic formatting from changelog section headers. Pull request
130+
[#9128](https://github.com/ruby/rubygems/pull/9128) by hsbt
131+
* [DOC] Fix the location of Gem::Deprecate document. Pull request
132+
[#9065](https://github.com/ruby/rubygems/pull/9065) by nobu
133+
* Fix typo. Pull request
134+
[#9012](https://github.com/ruby/rubygems/pull/9012) by etiennebarrie
135+
* Added document for Gem::Uninstaller. Pull request
136+
[#8904](https://github.com/ruby/rubygems/pull/8904) by hsbt
137+
* Use mailto link in Code of Conduct. Pull request
138+
[#8849](https://github.com/ruby/rubygems/pull/8849) by deivid-rodriguez
139+
* Update Code of Conduct email to conduct@rubygems.org. Pull request
140+
[#8848](https://github.com/ruby/rubygems/pull/8848) by indirect
141+
142+
143+
## Bundler Release Notes
144+
145+
146+
### Features:
147+
148+
- Support bundle install --lockfile option [#9111](https://github.com/ruby/rubygems/pull/9111)
149+
- Add support for lockfile in Gemfile and bundle install --no-lock [#9059](https://github.com/ruby/rubygems/pull/9059)
150+
- Add `--ext=go` to `bundle gem` [#8183](https://github.com/ruby/rubygems/pull/8183)
151+
- Update Bundler::CurrentRuby::ALL_RUBY_VERSIONS [#9058](https://github.com/ruby/rubygems/pull/9058)
152+
- Introduce `bundle list --format=json` [#8728](https://github.com/ruby/rubygems/pull/8728)
153+
154+
### Performance:
155+
156+
- Run git operations in parallel to speed things up: [#9100](https://github.com/ruby/rubygems/pull/9100)
157+
- Replace instance method look up in plugin installer [#9094](https://github.com/ruby/rubygems/pull/9094)
158+
- Adjust the API_REQUEST_LIMIT to make less network roundtrip [#9071](https://github.com/ruby/rubygems/pull/9071)
159+
160+
### Enhancements:
161+
162+
- Make BUNDLE_LOCKFILE environment variable have precedence over lockfile method in Gemfile [#9146](https://github.com/ruby/rubygems/pull/9146)
163+
- Improve banner message for the default command [#9145](https://github.com/ruby/rubygems/pull/9145)
164+
- Introduce `install_or_cli_help` and use it default `bundle` command [#9136](https://github.com/ruby/rubygems/pull/9136)
165+
- Add go_gem/rake_task for Go native extension gem skeleton [#9105](https://github.com/ruby/rubygems/pull/9105)
166+
- Warn users that `bundle` now display the help: [#9092](https://github.com/ruby/rubygems/pull/9092)
167+
- Use DidYouMean::SpellChecker for gem suggestions in Bundler [#3857](https://github.com/ruby/rubygems/pull/3857)
168+
- Update all vendored libraries to latest version [#9089](https://github.com/ruby/rubygems/pull/9089)
169+
- We don't need to allow some warning now [#9074](https://github.com/ruby/rubygems/pull/9074)
170+
- Support to embedded Pathname [#9056](https://github.com/ruby/rubygems/pull/9056)
171+
- Enforce activation of irb when running with bundle console [#9033](https://github.com/ruby/rubygems/pull/9033)
172+
- Update Magnus version in Rust extension gem template [#9025](https://github.com/ruby/rubygems/pull/9025)
173+
- Add checksum of gems hosted on private servers: [#9004](https://github.com/ruby/rubygems/pull/9004)
174+
- Loading support on Windows [#8254](https://github.com/ruby/rubygems/pull/8254)
175+
- Improve error message when the same source is specified through `gemspec` and `path` [#8460](https://github.com/ruby/rubygems/pull/8460)
176+
- Raise an error in frozen mode if some registry gems have empty checksums [#8888](https://github.com/ruby/rubygems/pull/8888)
177+
- Bump vendored thor to 1.4.0 [#8883](https://github.com/ruby/rubygems/pull/8883)
178+
- Delay default path and global cache changes to Bundler 5 [#8867](https://github.com/ruby/rubygems/pull/8867)
179+
- Fix spacing in bundle gem newgem.gemspec.tt [#8865](https://github.com/ruby/rubygems/pull/8865)
180+
- Add some missing deprecation messages [#8844](https://github.com/ruby/rubygems/pull/8844)
181+
182+
### Bug fixes:
183+
184+
- Fixed checksums generation issue when no source is specified [#9133](https://github.com/ruby/rubygems/pull/9133)
185+
- Check for file existence before deletion from cache [#9095](https://github.com/ruby/rubygems/pull/9095)
186+
- Use method_defined?(:method, false) [#9098](https://github.com/ruby/rubygems/pull/9098)
187+
- Handle BUNDLER_VERSION being set to an empty string [#6928](https://github.com/ruby/rubygems/pull/6928)
188+
- Fix `bundle install` when the Gemfile contains "install_if" git gems: [#8992](https://github.com/ruby/rubygems/pull/8992)
189+
- Fix installation issue related to path sources and precompiled gems [#8973](https://github.com/ruby/rubygems/pull/8973)
190+
- Fix outdated lockfile during `bundle lock` when source changes [#8962](https://github.com/ruby/rubygems/pull/8962)
191+
- Raise error on missing version file [#8963](https://github.com/ruby/rubygems/pull/8963)
192+
- Fix `bundle cache --frozen` and `bundle cache --no-prune` not printing a deprecation message [#8926](https://github.com/ruby/rubygems/pull/8926)
193+
- Fix local installation incorrectly forced if there's a `vendor/cache` directory and frozen mode is set [#8925](https://github.com/ruby/rubygems/pull/8925)
194+
- Fix `bundle lock --update <gem>` with `--lockfile` flag updating all gems [#8922](https://github.com/ruby/rubygems/pull/8922)
195+
- Fix `bundle show --verbose` and recommend it as an alternative to `bundle show --outdated` [#8915](https://github.com/ruby/rubygems/pull/8915)
196+
- Fix `bundle cache --no-all` not printing a deprecation warning [#8912](https://github.com/ruby/rubygems/pull/8912)
197+
- Fix `bundle update foo` unable to update foo in an edge case [#8897](https://github.com/ruby/rubygems/pull/8897)
198+
- Fix Bundler printing more flags than actually passed in verbose mode [#8914](https://github.com/ruby/rubygems/pull/8914)
199+
- Fix bundler failing to install sorbet-static in truffleruby when there's no lockfile [#8872](https://github.com/ruby/rubygems/pull/8872)
200+
- Cancel deprecation of `--force` flag to `bundle install` and `bundle update` [#8843](https://github.com/ruby/rubygems/pull/8843)
201+
202+
### Security:
203+
204+
- Bump up vendored URI to 1.0.4 [#9031](https://github.com/ruby/rubygems/pull/9031)
205+
206+
### Breaking changes:
207+
208+
- Fix triple spacing when generating lockfile [#9076](https://github.com/ruby/rubygems/pull/9076)
209+
- Hide patchlevel from lockfile [#7772](https://github.com/ruby/rubygems/pull/7772)
210+
- Remove `bundler_4_mode` [#9038](https://github.com/ruby/rubygems/pull/9038)
211+
- Pick and add extra changes for 4.0.0 version [#9018](https://github.com/ruby/rubygems/pull/9018)
212+
- Replaced Bundler::SharedHelpers.major_deprecation to feature_removed! or feature_deprecated! [#9016](https://github.com/ruby/rubygems/pull/9016)
213+
- Removed legacy_check option from SpecSet#for [#9015](https://github.com/ruby/rubygems/pull/9015)
214+
- Make update_requires_all_flag to settings [#9011](https://github.com/ruby/rubygems/pull/9011)
215+
- Make default cli command settings [#9010](https://github.com/ruby/rubygems/pull/9010)
216+
- Make global_gem_cache flag to settings [#9009](https://github.com/ruby/rubygems/pull/9009)
217+
- Consolidate removal of `Bundler.rubygems.all_specs` [#9008](https://github.com/ruby/rubygems/pull/9008)
218+
- Consolidate removal of `Bundler::SpecSet#-` and `Bundler::SpecSet#<<` [#9007](https://github.com/ruby/rubygems/pull/9007)
219+
- Replaced Bundler.feature_flag.plugins? to Bundler.settings [#9006](https://github.com/ruby/rubygems/pull/9006)
220+
- Make `bundle show --outdated` raise an error [#8980](https://github.com/ruby/rubygems/pull/8980)
221+
- Make `--local-git` flag to `bundle plugin install` raise an error [#8979](https://github.com/ruby/rubygems/pull/8979)
222+
- Switch `cache_all` to be `true` by default [#8975](https://github.com/ruby/rubygems/pull/8975)
223+
- Completely forbid passing `--ext` to `bundle gem` without a value [#8976](https://github.com/ruby/rubygems/pull/8976)
224+
- Switch `lockfile_checksums` to be `true` by default [#8981](https://github.com/ruby/rubygems/pull/8981)
225+
- Make `bundle install --binstubs` raise an error [#8978](https://github.com/ruby/rubygems/pull/8978)
226+
- Make `bundle remove --install` raise an error [#8977](https://github.com/ruby/rubygems/pull/8977)
227+
- Remove support for multiple global sources in Gemfile & lockfile [#8968](https://github.com/ruby/rubygems/pull/8968)
228+
- Remove `allow_offline_install` setting [#8969](https://github.com/ruby/rubygems/pull/8969)
229+
- Completely remove `--rubocop` flag to `bundle gem`, and related configuration [#8967](https://github.com/ruby/rubygems/pull/8967)
230+
- Completely remove all remembered CLI flags [#8958](https://github.com/ruby/rubygems/pull/8958)
231+
- Remove implementation of `deployment`, `capistrano` and `vlad` entrypoints [#8957](https://github.com/ruby/rubygems/pull/8957)
232+
- Remove deprecated `Bundler.*clean*`, and `Bundler.environment` helpers [#8924](https://github.com/ruby/rubygems/pull/8924)
233+
- Remove deprecated `bundle viz` and `bundle inject` commands [#8923](https://github.com/ruby/rubygems/pull/8923)
234+
- Removed to workaround for Bundler 2.2 [#8903](https://github.com/ruby/rubygems/pull/8903)
235+
236+
### Documentation:
237+
238+
- Unified UPGRADING.md and extract blog.rubygems.org [#9148](https://github.com/ruby/rubygems/pull/9148)
239+
- Remove italic formatting from changelog section headers [#9128](https://github.com/ruby/rubygems/pull/9128)
240+
- Small clarifications to Bundler 4 upgrade docs [#8964](https://github.com/ruby/rubygems/pull/8964)
241+
- Improve documentation of `bundle doctor`, `bundle plugin`, and `bundle config` [#8919](https://github.com/ruby/rubygems/pull/8919)
242+
- Make sure all CLI flags and subcommands are documented [#8861](https://github.com/ruby/rubygems/pull/8861)
243+
- Clarify documentation about new default gem installation directory in Bundler 4 [#8857](https://github.com/ruby/rubygems/pull/8857)
244+
- Use mailto link in Code of Conduct [#8849](https://github.com/ruby/rubygems/pull/8849)
245+
- Update Code of Conduct email to conduct@rubygems.org [#8848](https://github.com/ruby/rubygems/pull/8848)
246+
- Add missing link to `irb` repo in DEBUGGING.md [#8842](https://github.com/ruby/rubygems/pull/8842)
247+
248+
249+
## Manual Installation
250+
251+
To install RubyGems by hand see the [Download RubyGems][download] page.
252+
253+
SHA256 Checksums:
254+
255+
* rubygems-4.0.0.tgz
256+
31ee4f84cf6d06db294f998d6028835e286847c8b3fed7b9037f9b8562abdb84
257+
* rubygems-4.0.0.zip
258+
1fd3800c4aa945a246965ca3de89e8e21dd191ece2154526694f99f49819f1cc
259+
* rubygems-update-4.0.0.gem
260+
acb143e17e81d2851ecdc0d06f9362b05d4dcf288b53775b4588fe1401f8c3a6
261+
262+
263+
[download]: https://rubygems.org/pages/download
264+

0 commit comments

Comments
 (0)