summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2021-12-13 09:45:29 +0100
committerJean Boussier <jean.boussier@gmail.com>2021-12-14 16:42:53 +0100
commit9e00f8267dbc10d3e0a51a51c7f56d055949ce87 (patch)
treec3ba5987be41b56206c414b553297d3ec4f96dc8
parent0e7d07391433a4407edc14391352dcda5672c05c (diff)
NEWS.md document String#unpack offset and Marshal.load freeze arguments
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5256
-rw-r--r--NEWS.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index 7da190b215..d42f927c77 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -193,6 +193,12 @@ Outstanding ones only.
and will load the file using the given module as the top
level module. [[Feature #6210]]
+* Marshal
+
+ * Marshal.load now accepts a `freeze: true` option.
+ All returned objects are frozen except for `Class` and
+ `Module` instances. Strings are deduplicated. [[Feature #18148]]
+
* MatchData
* MatchData#match is added [[Feature #18172]]
@@ -239,6 +245,11 @@ Outstanding ones only.
* Update Unicode version to 13.0.0 [[Feature #17750]]
and Emoji version to 13.0 [[Feature #18029]]
+ * String#unpack and String#unpack1 now accepts an `offset:` keyword
+ argument to start the unpacking after an arbitrary number of bytes
+ have been skipped. If `offset` is outside of the string bounds
+ `ArgumentError` is raised. [[Feature #18254]]
+
* Queue
* Queue#initialize now accepts an Enumerable of initial values.
@@ -563,13 +574,16 @@ See [the repository](https://github.com/ruby/error_highlight) in detail.
[Feature #18020]: https://bugs.ruby-lang.org/issues/18020
[Feature #18029]: https://bugs.ruby-lang.org/issues/18029
[Feature #18045]: https://bugs.ruby-lang.org/issues/18045
+[Feature #18148]: https://bugs.ruby-lang.org/issues/18148
[Feature #18172]: https://bugs.ruby-lang.org/issues/18172
[Feature #18176]: https://bugs.ruby-lang.org/issues/18176
[Feature #18190]: https://bugs.ruby-lang.org/issues/18190
[Feature #18229]: https://bugs.ruby-lang.org/issues/18229
[Feature #18239]: https://bugs.ruby-lang.org/issues/18239
+[Feature #18254]: https://bugs.ruby-lang.org/issues/18254
[Feature #18273]: https://bugs.ruby-lang.org/issues/18273
[Feature #18290]: https://bugs.ruby-lang.org/issues/18290
+
[GH-1509]: https://github.com/ruby/ruby/pull/1509
[GH-4815]: https://github.com/ruby/ruby/pull/4815
[GH-5112]: https://github.com/ruby/ruby/pull/5112