Skip to content

Commit 2fefef1

Browse files
authored
Ruby 3.4.0 Preview 2 Released (#3379)
1 parent e86e532 commit 2fefef1

File tree

3 files changed

+174
-1
lines changed

3 files changed

+174
-1
lines changed

_data/downloads.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# optional
55
preview:
66

7-
- 3.4.0-preview1
7+
- 3.4.0-preview2
88

99
stable:
1010

_data/releases.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,35 @@
2121

2222
# 3.4 series
2323

24+
- version: 3.4.0-preview2
25+
date: 2024-10-07
26+
post: /en/news/2024/10/07/ruby-3-4-0-preview2-released/
27+
tag: v3_4_0_preview2
28+
stats:
29+
files_changed: 4422
30+
insertions: 163889
31+
deletions: 243380
32+
url:
33+
gz: https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.0-preview2.tar.gz
34+
zip: https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.0-preview2.zip
35+
xz: https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.0-preview2.tar.xz
36+
size:
37+
gz: 22722332
38+
zip: 28101194
39+
xz: 16878876
40+
sha1:
41+
gz: c23265acf6c07b4c1df1e41eebf8b4cf2f25b97b
42+
zip: 479bd223bca3225fb3a15984e3eae4efb9a40189
43+
xz: dbff404b969012702dc500cac72f4d6b3822068e
44+
sha256:
45+
gz: 443cd7ec54ade4786bc974ce9f5d49f172a60f8edc84b597b7fe2bd2a94b8371
46+
zip: e00a6fbf6f9e25a725711a8aac7e38be6bed61de4db9862a405172b96bf38b5b
47+
xz: 626bf4fe952323c15ec9a8999f470ec136ef91c0fc34c484646aaaa9a0b62ca7
48+
sha512:
49+
gz: 0946d256587597bdf13437a50f7a3298c151133edea161a1c4806a04dcbd8c2e8a7fd617f3eda16c5c05f6e6346317562cc30ba67698f1fdd92237c03bdbd23e
50+
zip: 0d9ee1c41920e4d594b0f2c40d02339b4e9a2cd5232f5ee914cab5a685cb4a2279fbbfd8fbad40ef0a53866db4e1de96068c62580ede6d8fab02550393bcbe81
51+
xz: f23257896a35d3a581cbf5e8c94fe28e45725e39608a7669f47f31085338b1b4929a4db40d826d8fee628afb97b0c25b2f9e7bda4cd42e80c1208c46caf54265
52+
2453
- version: 3.4.0-preview1
2554
date: 2024-05-16
2655
post: /en/news/2024/05/16/ruby-3-4-0-preview1-released/
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
---
2+
layout: news_post
3+
title: "Ruby 3.4.0 preview2 Released"
4+
author: "naruse"
5+
translator:
6+
date: 2024-10-07 00:00:00 +0000
7+
lang: en
8+
---
9+
10+
{% assign release = site.data.releases | where: "version", "3.4.0-preview2" | first %}
11+
We are pleased to announce the release of Ruby {{ release.version }}.
12+
In
13+
14+
## Prism
15+
16+
Switch the default parser from parse.y to Prism. [[Feature #20564]]
17+
18+
## Language changes
19+
20+
* String literals in files without a `frozen_string_literal` comment now behave
21+
as if they were frozen. If they are mutated a deprecation warning is emitted.
22+
These warnings can be enabled with `-W:deprecated` or by setting `Warning[:deprecated] = true`.
23+
To disable this change, you can run Ruby with the `--disable-frozen-string-literal`
24+
command line argument. [[Feature #20205]]
25+
26+
* `it` is added to reference a block parameter. [[Feature #18980]]
27+
28+
* Keyword splatting `nil` when calling methods is now supported.
29+
`**nil` is treated similarly to `**{}`, passing no keywords,
30+
and not calling any conversion methods. [[Bug #20064]]
31+
32+
* Block passing is no longer allowed in index. [[Bug #19918]]
33+
34+
* Keyword arguments are no longer allowed in index. [[Bug #20218]]
35+
36+
## Core classes updates
37+
38+
Note: We're only listing outstanding class updates.
39+
40+
* Exception
41+
42+
* `Exception#set_backtrace` now accepts an array of `Thread::Backtrace::Location`.
43+
`Kernel#raise`, `Thread#raise` and `Fiber#raise` also accept this new format. [[Feature #13557]]
44+
45+
* Range
46+
47+
* `Range#size` now raises `TypeError` if the range is not iterable. [[Misc #18984]]
48+
49+
50+
51+
## Compatibility issues
52+
53+
Note: Excluding feature bug fixes.
54+
55+
* Error messages and backtrace displays have been changed.
56+
* Use a single quote instead of a backtick as a opening quote. [[Feature #16495]]
57+
* Display a class name before a method name (only when the class has a permanent name). [[Feature #19117]]
58+
* `Kernel#caller`, `Thread::Backtrace::Location`'s methods, etc. are also changed accordingly.
59+
```
60+
Old:
61+
test.rb:1:in `foo': undefined method `time' for an instance of Integer
62+
from test.rb:2:in `<main>'
63+
64+
New:
65+
test.rb:1:in 'Object#foo': undefined method 'time' for an instance of Integer
66+
from test.rb:2:in `<main>'
67+
```
68+
69+
70+
## C API updates
71+
72+
* `rb_newobj` and `rb_newobj_of` (and corresponding macros `RB_NEWOBJ`, `RB_NEWOBJ_OF`, `NEWOBJ`, `NEWOBJ_OF`) have been removed. [[Feature #20265]]
73+
* Removed deprecated function `rb_gc_force_recycle`. [[Feature #18290]]
74+
75+
## Implementation improvements
76+
77+
* `Array#each` is rewritten in Ruby for better performance [[Feature #20182]].
78+
79+
## Miscellaneous changes
80+
81+
* Passing a block to a method which doesn't use the passed block will show
82+
a warning on verbose mode (`-w`).
83+
[[Feature #15554]]
84+
85+
* Redefining some core methods that are specially optimized by the interpeter
86+
and JIT like `String.freeze` or `Integer#+` now emits a performance class
87+
warning (`-W:performance` or `Warning[:performance] = true`).
88+
[[Feature #20429]]
89+
90+
See GitHub releases like [Logger](https://github.com/ruby/logger/releases) or
91+
changelog for details of the default gems or bundled gems.
92+
93+
See [NEWS](https://github.com/ruby/ruby/blob/{{ release.tag }}/NEWS.md)
94+
or [commit logs](https://github.com/ruby/ruby/compare/v3_3_0...{{ release.tag }})
95+
for more details.
96+
97+
With those changes, [{{ release.stats.files_changed }} files changed, {{ release.stats.insertions }} insertions(+), {{ release.stats.deletions }} deletions(-)](https://github.com/ruby/ruby/compare/v3_3_0...{{ release.tag }}#file_bucket)
98+
since Ruby 3.3.0!
99+
100+
101+
## Download
102+
103+
* <{{ release.url.gz }}>
104+
105+
SIZE: {{ release.size.gz }}
106+
SHA1: {{ release.sha1.gz }}
107+
SHA256: {{ release.sha256.gz }}
108+
SHA512: {{ release.sha512.gz }}
109+
110+
* <{{ release.url.xz }}>
111+
112+
SIZE: {{ release.size.xz }}
113+
SHA1: {{ release.sha1.xz }}
114+
SHA256: {{ release.sha256.xz }}
115+
SHA512: {{ release.sha512.xz }}
116+
117+
* <{{ release.url.zip }}>
118+
119+
SIZE: {{ release.size.zip }}
120+
SHA1: {{ release.sha1.zip }}
121+
SHA256: {{ release.sha256.zip }}
122+
SHA512: {{ release.sha512.zip }}
123+
124+
## What is Ruby
125+
126+
Ruby was first developed by Matz (Yukihiro Matsumoto) in 1993,
127+
and is now developed as Open Source. It runs on multiple platforms
128+
and is used all over the world especially for web development.
129+
130+
[Feature #13557]: https://bugs.ruby-lang.org/issues/13557
131+
[Feature #15554]: https://bugs.ruby-lang.org/issues/15554
132+
[Feature #16495]: https://bugs.ruby-lang.org/issues/16495
133+
[Feature #18290]: https://bugs.ruby-lang.org/issues/18290
134+
[Feature #18980]: https://bugs.ruby-lang.org/issues/18980
135+
[Misc #18984]: https://bugs.ruby-lang.org/issues/18984
136+
[Feature #19117]: https://bugs.ruby-lang.org/issues/19117
137+
[Bug #19918]: https://bugs.ruby-lang.org/issues/19918
138+
[Bug #20064]: https://bugs.ruby-lang.org/issues/20064
139+
[Feature #20182]: https://bugs.ruby-lang.org/issues/20182
140+
[Feature #20205]: https://bugs.ruby-lang.org/issues/20205
141+
[Bug #20218]: https://bugs.ruby-lang.org/issues/20218
142+
[Feature #20265]: https://bugs.ruby-lang.org/issues/20265
143+
[Feature #20429]: https://bugs.ruby-lang.org/issues/20429
144+
[Feature #20564]: https://bugs.ruby-lang.org/issues/20564

0 commit comments

Comments
 (0)