diff options
author | Victor Shepelev <[email protected]> | 2023-12-21 23:12:36 +0200 |
---|---|---|
committer | <[email protected]> | 2023-12-21 23:12:36 +0200 |
commit | fc549b2b3a65a95a734ee8679293a30284f84622 () | |
tree | ffde91f2cecb0a823543db6569a49cd85d707aa6 | |
parent | e04197aba74e62aae163f0cdc7058861047045a2 (diff) |
[DOC] Improve NEWS.md rendering and add missing features (#9308)
* Fix rendering of the file on docs.ruby-lang.org: * More indentation for code; * Properly qualified methods to link to docs; * Add two minor yet notable changes: * Time.new stricter parsing of strings; * NoMethodError rendering logic change.
-rw-r--r-- | NEWS.md | 70 |
1 files changed, 45 insertions, 25 deletions
@@ -36,26 +36,27 @@ Note: We're only listing outstanding class updates. * Encoding - * Encoding#replicate has been removed, it was already deprecated. [[Feature #18949]] * Fiber * Introduce Fiber#kill. [[Bug #595]] - ```ruby - fiber = Fiber.new do - while true - puts "Yielding..." - Fiber.yield end - ensure - puts "Exiting..." - end - fiber.resume - # Yielding... - fiber.kill - # Exiting... - ``` * MatchData @@ -75,7 +76,7 @@ Note: We're only listing outstanding class updates. * ObjectSpace::WeakMap - * `ObjectSpace::WeakMap#delete` was added to eagerly clear weak map entries. [[Feature #19561]] * Proc @@ -84,7 +85,7 @@ Note: We're only listing outstanding class updates. * Process - * New `Process.warmup` method that notify the Ruby virtual machine that the boot sequence is finished, and that now is a good time to optimize the application. This is useful for long-running applications. The actual optimizations performed are entirely implementation-specific and may change in the future without notice. [[Feature #18885]] @@ -93,10 +94,6 @@ Note: We're only listing outstanding class updates. * Process::Status#& and Process::Status#>> are deprecated. [[Bug #19868]] -* Queue - - * Queue#freeze now raises TypeError. [[Bug #17146]] - * Range * Range#reverse_each can now process beginless ranges with an Integer endpoint. [[Feature #18515]] @@ -109,16 +106,29 @@ Note: We're only listing outstanding class updates. Refinement#refined_class is deprecated and will be removed in Ruby 3.4. [[Feature #19714]] -* SizedQueue - - * SizedQueue#freeze now raises TypeError. [[Bug #17146]] - * String * String#unpack now raises ArgumentError for unknown directives. [[Bug #19150]] * String#bytesplice now accepts new arguments index/length or range of the source string to be copied. [[Feature #19314]] * TracePoint * TracePoint supports `rescue` event. When the raised exception was rescued, @@ -150,7 +160,7 @@ Note: We're only listing outstanding class updates. connections. Socket#recvmsg and Socket#recvmsg_nonblock returns `nil` instead of an empty packet on closed connections. [[Bug #19012]] -* Name resolution such as `Socket.getaddrinfo`, `Socket.getnameinfo`, `Addrinfo.getaddrinfo`, etc. can now be interrupted. [[Feature #19965]] * Random::Formatter#alphanumeric is extended to accept optional `chars` @@ -290,6 +300,14 @@ changelog for details of the default gems or bundled gems. deprecated. `it` will be a reference to the first block parameter in Ruby 3.4. [[Feature #18980]] ## Stdlib compatibility issues * `racc` is promoted to bundled gems. @@ -456,6 +474,7 @@ changelog for details of the default gems or bundled gems. [Feature #10602]: https://bugs.ruby-lang.org/issues/10602 [Bug #17146]: https://bugs.ruby-lang.org/issues/17146 [Feature #18183]: https://bugs.ruby-lang.org/issues/18183 [Feature #18498]: https://bugs.ruby-lang.org/issues/18498 [Feature #18515]: https://bugs.ruby-lang.org/issues/18515 [Feature #18551]: https://bugs.ruby-lang.org/issues/18551 @@ -465,6 +484,7 @@ changelog for details of the default gems or bundled gems. [Bug #19012]: https://bugs.ruby-lang.org/issues/19012 [Feature #19057]: https://bugs.ruby-lang.org/issues/19057 [Bug #19150]: https://bugs.ruby-lang.org/issues/19150 [Feature #19314]: https://bugs.ruby-lang.org/issues/19314 [Feature #19347]: https://bugs.ruby-lang.org/issues/19347 [Feature #19351]: https://bugs.ruby-lang.org/issues/19351 |