summaryrefslogtreecommitdiff
path: root/NEWS.md
diff options
context:
space:
mode:
Diffstat (limited to 'NEWS.md')
-rw-r--r--NEWS.md37
1 files changed, 24 insertions, 13 deletions
diff --git a/NEWS.md b/NEWS.md
index aec92fffb1..38afa0982b 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -7,8 +7,8 @@ Note that each entry is kept to a minimum, see links for details.
## Language changes
-* String literals in files without a `frozen_string_literal` comment now behave
- as if they were frozen. If they are mutated a deprecation warning is emitted.
+* String literals in files without a `frozen_string_literal` comment now emit a deprecation warning
+ when they are mutated.
These warnings can be enabled with `-W:deprecated` or by setting `Warning[:deprecated] = true`.
To disable this change, you can run Ruby with the `--disable-frozen-string-literal`
command line argument. [[Feature #20205]]
@@ -19,9 +19,11 @@ Note that each entry is kept to a minimum, see links for details.
`**nil` is treated similarly to `**{}`, passing no keywords,
and not calling any conversion methods. [[Bug #20064]]
-* Block passing is no longer allowed in index. [[Bug #19918]]
+* Block passing is no longer allowed in index assignment
+ (e.g. `a[0, &b] = 1`). [[Bug #19918]]
-* Keyword arguments are no longer allowed in index. [[Bug #20218]]
+* Keyword arguments are no longer allowed in index assignment
+ (e.g. `a[0, kw: 1] = 2`). [[Bug #20218]]
## Core classes updates
@@ -38,6 +40,13 @@ Note: We're only listing outstanding class updates.
## Stdlib updates
+* Tempfile
+
+ * The keyword argument `anonymous: true` is implemented for `Tempfile.create`.
+ `Tempfile.create(anonymous: true)` removes the created temporary file immediately.
+ So applications don't need to remove the file.
+ [[Feature #20497]]
+
The following default gems are updated.
* RubyGems 3.6.0.dev
@@ -45,35 +54,37 @@ The following default gems are updated.
* erb 4.0.4
* fiddle 1.1.3
* io-console 0.7.2
-* irb 1.12.0
+* irb 1.13.1
* json 2.7.2
* net-http 0.4.1
* optparse 0.5.0
-* prism 0.27.0
-* rdoc 6.6.3.1
-* reline 0.5.3
+* prism 0.29.0
+* rdoc 6.7.0
+* reline 0.5.8
* resolv 0.4.0
* stringio 3.1.1
* strscan 3.1.1
The following bundled gems are updated.
-* minitest 5.22.3
+* minitest 5.23.1
* rake 13.2.1
* test-unit 3.6.2
-* net-ftp 0.3.4
-* net-imap 0.4.10
+* rexml 3.2.8
+* net-ftp 0.3.5
+* net-imap 0.4.12
* net-smtp 0.5.0
* rbs 3.4.4
* typeprof 0.21.11
* debug 1.9.2
+* racc 1.8.0
The following bundled gems are promoted from default gems.
* mutex_m 0.2.0
* getoptlong 0.2.1
* base64 0.2.0
-* bigdecimal 3.1.7
+* bigdecimal 3.1.8
* observer 0.1.2
* abbrev 0.1.2
* resolv-replace 0.1.1
@@ -122,7 +133,7 @@ See GitHub releases like [GitHub Releases of Logger](https://github.com/ruby/log
a warning on verbose mode (`-w`).
[[Feature #15554]]
-* Redefining some core methods that are specially optimized by the interpeter
+* Redefining some core methods that are specially optimized by the interpreter
and JIT like `String.freeze` or `Integer#+` now emits a performance class
warning (`-W:performance` or `Warning[:performance] = true`).
[[Feature #20429]]