Skip to content

Commit

Permalink
NEWS.md document String#unpack offset and Marshal.load freeze arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Dec 14, 2021
1 parent 0e7d073 commit 9e00f82
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions NEWS.md
Expand Up @@ -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]]
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9e00f82

Please sign in to comment.