mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
NEWS.md: add an example, add references, and move some items
This commit is contained in:
parent
f292bb245e
commit
09acafaccf
1 changed files with 22 additions and 14 deletions
36
NEWS.md
36
NEWS.md
|
@ -149,6 +149,16 @@ Outstanding ones only.
|
||||||
the other modules and classes included or prepended the receiver.
|
the other modules and classes included or prepended the receiver.
|
||||||
[[Feature #9573]]
|
[[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
|
* Symbol
|
||||||
|
|
||||||
* Modified method
|
* Modified method
|
||||||
|
@ -179,7 +189,7 @@ Outstanding ones only.
|
||||||
|
|
||||||
* Net::HTTP.get, Net::HTTP.get_response, and Net::HTTP.get_print can
|
* 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
|
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
|
## Compatibility issues
|
||||||
|
|
||||||
|
@ -191,13 +201,6 @@ Excluding feature bug fixes.
|
||||||
/foo/.frozen? #=> true
|
/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]]
|
* EXPERIMENTAL: Hash#each consistently yields a 2-element array [[Bug #12706]]
|
||||||
|
|
||||||
* Now `{ a: 1 }.each(&->(k, v) { })` raises an ArgumentError
|
* Now `{ a: 1 }.each(&->(k, v) { })` raises an ArgumentError
|
||||||
|
@ -210,15 +213,20 @@ Excluding feature bug fixes.
|
||||||
|
|
||||||
* `TRUE`/`FALSE`/`NIL` constants are no longer defined.
|
* `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
|
|
||||||
|
|
||||||
* `Integer#zero?` overrides `Numeric#zero?` for optimization.
|
|
||||||
|
|
||||||
## Stdlib compatibility issues
|
## Stdlib compatibility issues
|
||||||
|
|
||||||
Excluding feature bug fixes.
|
* 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.
|
||||||
|
|
||||||
|
* 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
|
## C API updates
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue