ruby-changes:62691
From: Yusuke <ko1@a...>
Date: Mon, 24 Aug 2020 15:38:53 +0900 (JST)
Subject: [ruby-changes:62691] 09acafaccf (master): NEWS.md: add an example, add references, and move some items
https://git.ruby-lang.org/ruby.git/commit/?id=09acafaccf From 09acafaccf35b37cd7557d783f667ae6281ce7c1 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Mon, 24 Aug 2020 15:38:03 +0900 Subject: NEWS.md: add an example, add references, and move some items diff --git a/NEWS.md b/NEWS.md index 4c9d975..7d023f3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -149,6 +149,16 @@ Outstanding ones only. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L149 the other modules and classes included or prepended the receiver. [[Feature #9573]] + +```ruby +class C; end +module M1; end +module M2; end +C.include M1 +M1.include M2 +p C.ancestors #=> [C, M1, M2, Object, Kernel, BasicObject] +``` + * Symbol * Modified method @@ -179,7 +189,7 @@ Outstanding ones only. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L189 * Net::HTTP.get, Net::HTTP.get_response, and Net::HTTP.get_print can take request headers as a Hash in the second argument when the first - argument is a URI. + argument is a URI. [[Feature #16686]] ## Compatibility issues @@ -191,13 +201,6 @@ Excluding feature bug fixes. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L201 /foo/.frozen? #=> true ``` -* Bundled gems - - * net-telnet and xmlrpc have been removed from the bundled gems. - If you are interested in maintaining them, please comment on - your plan to https://github.com/ruby/xmlrpc - or https://github.com/ruby/net-telnet. - * EXPERIMENTAL: Hash#each consistently yields a 2-element array [[Bug #12706]] * Now `{ a: 1 }.each(&->(k, v) { })` raises an ArgumentError @@ -210,15 +213,20 @@ Excluding feature bug fixes. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L213 * `TRUE`/`FALSE`/`NIL` constants are no longer defined. -* SDBM have been removed from ruby standard library. +* `Integer#zero?` overrides `Numeric#zero?` for optimization. [[Misc #16961]} - * The issues of sdbm will handle at https://github.com/ruby/sdbm +## Stdlib compatibility issues -* `Integer#zero?` overrides `Numeric#zero?` for optimization. +* Bundled gems -## Stdlib compatibility issues + * net-telnet and xmlrpc have been removed from the bundled gems. + If you are interested in maintaining them, please comment on + your plan to https://github.com/ruby/xmlrpc + or https://github.com/ruby/net-telnet. -Excluding feature bug fixes. +* SDBM have been removed from ruby standard library. [[Bug #8446]] + + * The issues of sdbm will handle at https://github.com/ruby/sdbm ## C API updates -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/