mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
More indentation in NEWS.md [ci skip]
The current Markdown implementation of RDoc requires list contents to be indented 4 columns except for the first paragraph. Maybe fixed as other implementations in the future.
This commit is contained in:
parent
e818193784
commit
19f037e452
1 changed files with 89 additions and 89 deletions
178
NEWS.md
178
NEWS.md
|
@ -7,8 +7,8 @@ Note that each entry is kept to a minimum, see links for details.
|
||||||
|
|
||||||
## Language changes
|
## Language changes
|
||||||
|
|
||||||
* The block arguments can be now be anonymous, if the block will
|
* The block arguments can be now be anonymous, if the block will
|
||||||
only be passed to another method. [[Feature #11256]]
|
only be passed to another method. [[Feature #11256]]
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
def foo(&)
|
def foo(&)
|
||||||
|
@ -16,15 +16,15 @@ Note that each entry is kept to a minimum, see links for details.
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
* Pin operator now takes an expression. [[Feature #17411]]
|
* Pin operator now takes an expression. [[Feature #17411]]
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
Prime.each_cons(2).lazy.find_all{_1 in [n, ^(n + 2)]}.take(3).to_a
|
Prime.each_cons(2).lazy.find_all{_1 in [n, ^(n + 2)]}.take(3).to_a
|
||||||
#=> [[3, 5], [5, 7], [11, 13]]
|
#=> [[3, 5], [5, 7], [11, 13]]
|
||||||
```
|
```
|
||||||
|
|
||||||
* Pin operator now supports instance, class, and global variables.
|
* Pin operator now supports instance, class, and global variables.
|
||||||
[[Feature #17724]]
|
[[Feature #17724]]
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
@n = 5
|
@n = 5
|
||||||
|
@ -32,11 +32,11 @@ Note that each entry is kept to a minimum, see links for details.
|
||||||
#=> [3, 5]
|
#=> [3, 5]
|
||||||
```
|
```
|
||||||
|
|
||||||
* One-line pattern matching is no longer experimental.
|
* One-line pattern matching is no longer experimental.
|
||||||
|
|
||||||
* Multiple assignment evaluation order has been made consistent with
|
* Multiple assignment evaluation order has been made consistent with
|
||||||
single assignment evaluation order. With single assignment, Ruby
|
single assignment evaluation order. With single assignment, Ruby
|
||||||
uses a left-to-right evaluation order. With this code:
|
uses a left-to-right evaluation order. With this code:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
foo[0] = bar
|
foo[0] = bar
|
||||||
|
@ -78,22 +78,22 @@ Note that each entry is kept to a minimum, see links for details.
|
||||||
|
|
||||||
[[Bug #4443]]
|
[[Bug #4443]]
|
||||||
|
|
||||||
* Values in Hash literals and keyword arguments can be omitted.
|
* Values in Hash literals and keyword arguments can be omitted.
|
||||||
[[Feature #14579]]
|
[[Feature #14579]]
|
||||||
|
|
||||||
For example,
|
For example,
|
||||||
|
|
||||||
* `{x:, y:}` is a syntax sugar of `{x: x, y: y}`.
|
* `{x:, y:}` is a syntax sugar of `{x: x, y: y}`.
|
||||||
* `foo(x:, y:)` is a syntax sugar of `foo(x: x, y: y)`.
|
* `foo(x:, y:)` is a syntax sugar of `foo(x: x, y: y)`.
|
||||||
|
|
||||||
Constant names, local variable names, and method names are allowed as
|
Constant names, local variable names, and method names are allowed as
|
||||||
key names. Note that a reserved word is considered as a local
|
key names. Note that a reserved word is considered as a local
|
||||||
variable or method name even if it's a pseudo variable name such as
|
variable or method name even if it's a pseudo variable name such as
|
||||||
`self`.
|
`self`.
|
||||||
|
|
||||||
* non main-Ractors can get instance variables (ivars) of classes/modules
|
* non main-Ractors can get instance variables (ivars) of classes/modules
|
||||||
if ivars refer to shareable objects.
|
if ivars refer to shareable objects.
|
||||||
[[Feature #17592]]
|
[[Feature #17592]]
|
||||||
|
|
||||||
## Command line options
|
## Command line options
|
||||||
|
|
||||||
|
@ -259,76 +259,76 @@ Outstanding ones only.
|
||||||
|
|
||||||
## Stdlib updates
|
## Stdlib updates
|
||||||
|
|
||||||
* The following default gem are updated.
|
* The following default gem are updated.
|
||||||
* RubyGems
|
* RubyGems
|
||||||
* Bundler
|
* Bundler
|
||||||
* RDoc 6.3.2
|
* RDoc 6.3.2
|
||||||
* ReLine
|
* ReLine
|
||||||
* JSON 2.6.1
|
* JSON 2.6.1
|
||||||
* Psych 4.0.2
|
* Psych 4.0.2
|
||||||
* FileUtils 1.6.0
|
* FileUtils 1.6.0
|
||||||
* Fiddle 1.1.0
|
* Fiddle 1.1.0
|
||||||
* StringIO 3.0.1
|
* StringIO 3.0.1
|
||||||
* IO::Console 0.5.9
|
* IO::Console 0.5.9
|
||||||
* IO::Wait 0.2.0
|
* IO::Wait 0.2.0
|
||||||
* CSV 3.2.1
|
* CSV 3.2.1
|
||||||
* Etc 1.3.0
|
* Etc 1.3.0
|
||||||
* Date 3.2.0
|
* Date 3.2.0
|
||||||
* Zlib 2.1.1
|
* Zlib 2.1.1
|
||||||
* StringScanner 3.0.1
|
* StringScanner 3.0.1
|
||||||
* IpAddr 1.2.2
|
* IpAddr 1.2.2
|
||||||
* Logger 1.4.4
|
* Logger 1.4.4
|
||||||
* OStruct 0.5.0
|
* OStruct 0.5.0
|
||||||
* Irb
|
* Irb
|
||||||
* Racc 1.6.0
|
* Racc 1.6.0
|
||||||
* Delegate 0.2.0
|
* Delegate 0.2.0
|
||||||
* Benchmark 0.2.0
|
* Benchmark 0.2.0
|
||||||
* CGI 0.3.0
|
* CGI 0.3.0
|
||||||
* Readline(C-ext) 0.1.3
|
* Readline(C-ext) 0.1.3
|
||||||
* Timeout 0.2.0
|
* Timeout 0.2.0
|
||||||
* YAML 0.2.0
|
* YAML 0.2.0
|
||||||
* URI 0.11.0
|
* URI 0.11.0
|
||||||
* OpenSSL
|
* OpenSSL
|
||||||
* DidYouMean
|
* DidYouMean
|
||||||
* Weakref 0.1.1
|
* Weakref 0.1.1
|
||||||
* Tempfile 0.1.2
|
* Tempfile 0.1.2
|
||||||
* TmpDir 0.1.2
|
* TmpDir 0.1.2
|
||||||
* English 0.7.1
|
* English 0.7.1
|
||||||
* Net::Protocol 0.1.2
|
* Net::Protocol 0.1.2
|
||||||
* Net::Http 0.2.0
|
* Net::Http 0.2.0
|
||||||
* BigDecimal
|
* BigDecimal
|
||||||
* OptionParser 0.2.0
|
* OptionParser 0.2.0
|
||||||
* Set 1.0.1
|
* Set 1.0.1
|
||||||
* Find 0.1.1
|
* Find 0.1.1
|
||||||
* Rinda 0.1.1
|
* Rinda 0.1.1
|
||||||
* Erb 2.2.3
|
* Erb 2.2.3
|
||||||
* NKF 0.1.1
|
* NKF 0.1.1
|
||||||
* Base64 0.1.1
|
* Base64 0.1.1
|
||||||
* OpenUri 0.2.0
|
* OpenUri 0.2.0
|
||||||
* SecureRandom 0.1.1
|
* SecureRandom 0.1.1
|
||||||
* Resolv 0.2.1
|
* Resolv 0.2.1
|
||||||
* Resolv::Replace 0.1.0
|
* Resolv::Replace 0.1.0
|
||||||
* Time 0.2.0
|
* Time 0.2.0
|
||||||
* PP 0.2.1
|
* PP 0.2.1
|
||||||
* Prettyprint 0.1.1
|
* Prettyprint 0.1.1
|
||||||
* Drb 2.1.0
|
* Drb 2.1.0
|
||||||
* Pathname 0.2.0
|
* Pathname 0.2.0
|
||||||
* Digest 3.1.0.pre2
|
* Digest 3.1.0.pre2
|
||||||
* Un 0.2.0
|
* Un 0.2.0
|
||||||
* The following bundled gems are updated.
|
* The following bundled gems are updated.
|
||||||
* minitest 5.14.4
|
* minitest 5.14.4
|
||||||
* power_assert 2.0.1
|
* power_assert 2.0.1
|
||||||
* rake 13.0.6
|
* rake 13.0.6
|
||||||
* test-unit 3.5.0
|
* test-unit 3.5.0
|
||||||
* rbs 1.6.2
|
* rbs 1.6.2
|
||||||
* typeprof 0.20.2
|
* typeprof 0.20.2
|
||||||
* The following default gems are now bundled gems.
|
* The following default gems are now bundled gems.
|
||||||
* net-ftp
|
* net-ftp
|
||||||
* net-imap
|
* net-imap
|
||||||
* net-pop
|
* net-pop
|
||||||
* net-smtp
|
* net-smtp
|
||||||
* matrix
|
* matrix
|
||||||
* prime
|
* prime
|
||||||
|
|
||||||
## Compatibility issues
|
## Compatibility issues
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue