From 9e00f8267dbc10d3e0a51a51c7f56d055949ce87 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Mon, 13 Dec 2021 09:45:29 +0100 Subject: NEWS.md document String#unpack offset and Marshal.load freeze arguments --- NEWS.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- cgit v1.2.3