From 767aa0cdb6b82beaf3ef3a51d1004812f52a72b9 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sat, 1 Jun 2024 18:14:29 +0900 Subject: [PATCH] move `Tempfile.create(anonymous: true)` entry. --- NEWS.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/NEWS.md b/NEWS.md index 0df16a4fea..ad8b53d233 100644 --- a/NEWS.md +++ b/NEWS.md @@ -40,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 @@ -89,11 +96,6 @@ The following bundled gems are promoted from default gems. See GitHub releases like [GitHub Releases of Logger](https://github.com/ruby/logger/releases) or changelog for details of the default gems or bundled gems. -* 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]] - ## Supported platforms ## Compatibility issues