|
2 | 2 | title: Ruby 2.7 changes |
3 | 3 | prev: 3.0 |
4 | 4 | next: 2.6 |
| 5 | +description: Ruby 2.7 full and annotated changelog |
5 | 6 | --- |
6 | 7 |
|
7 | 8 | # Ruby 2.7 |
8 | 9 |
|
9 | 10 | * **Released at:** Dec 25, 2019 (<a class="github" href="https://github.com/ruby/ruby/blob/ruby_2_7/NEWS">NEWS</a> file) |
10 | | -* **Status (as of Feb 16, 2022):** 2.7.5 is current _stable_ |
| 11 | +* **Status (as of Jul 09, 2022):** 2.7.6 is current _stable_ |
11 | 12 | * **This document first published:** Dec 27, 2019 |
12 | | -* **Last change to this document:** Feb 16, 2022 |
| 13 | +* **Last change to this document:** Jul 09, 2022 |
13 | 14 |
|
14 | 15 | <!-- TODO: all links to docs should be replaced with /2.7.0/ suffix instead of /master/ when 2.7.0 would be published --> |
15 | 16 |
|
@@ -72,7 +73,7 @@ In block without explicitly specified parameters, variables `_1` through `_9` ca |
72 | 73 | * <a class="tracker feature" href="https://bugs.ruby-lang.org/issues/4475">Feature #4475</a> (initial discussion, started 9 years ago, and finished with accepting of `@0`—`@9`), |
73 | 74 | * <a class="tracker misc" href="https://bugs.ruby-lang.org/issues/15723">Misc #15723</a> (change to `_0`—`_9`), |
74 | 75 | * <a class="tracker bug" href="https://bugs.ruby-lang.org/issues/16178">Bug #16178</a> (dropping of `_0`, and changing semantics of `_1`) |
75 | | -* **Documentation:** [Proc#Numbered parameters](https://docs.rubocop.org/en/stable/cops_layout/) |
| 76 | +* **Documentation:** <a class="ruby-doc" href="https://docs.ruby-lang.org/en/2.7.0/Proc.html#class-Proc-label-Numbered+parameters">Proc#Numbered parameters</a> |
76 | 77 | * **Code:** |
77 | 78 | ```ruby |
78 | 79 | # Simplest usage: |
@@ -1041,7 +1042,7 @@ Allows to emit/suppress separate categories of warnings. |
1041 | 1042 |
|
1042 | 1043 | ## Standard library[](#standard-library) |
1043 | 1044 |
|
1044 | | -* `Date` supports [new Japanese era](https://en.wikipedia.org/wiki/Reiwa) in parsing and rendering dates (generic <a class="ruby-doc" href="https://ruby-doc.org/stdlib-2.7.0/libdoc/date/rdoc/Date.html#method-c-parse"><code>Date.parse</code></a> and <a class="ruby-doc" href="https://ruby-doc.org/stdlib-2.7.0/libdoc/date/rdoc/Date.html#method-i-jisx0301"><code>.jisx0301](https://ruby-doc.org/stdlib-2.7.0/libdoc/date/rdoc/Date.html#method-c-jisx0301)/[#jisx0301</code></a>). Discussion: <a class="tracker feature" href="https://bugs.ruby-lang.org/issues/15742">Feature #15742</a> |
| 1045 | +* `Date` supports [new Japanese era](https://en.wikipedia.org/wiki/Reiwa) in parsing and rendering dates (generic <a class="ruby-doc" href="https://ruby-doc.org/stdlib-2.7.0/libdoc/date/rdoc/Date.html#method-c-parse"><code>Date.parse</code></a> and <a class="ruby-doc" href="https://ruby-doc.org/stdlib-2.7.0/libdoc/date/rdoc/Date.html#method-c-jisx0301"><code>.jisx0301</code></a>/<a class="ruby-doc" href="https://ruby-doc.org/stdlib-2.7.0/libdoc/date/rdoc/Date.html#method-i-jisx0301"><code>#jisx0301</code></a>). Discussion: <a class="tracker feature" href="https://bugs.ruby-lang.org/issues/15742">Feature #15742</a> |
1045 | 1046 | * <a class="ruby-doc" href="https://docs.ruby-lang.org/en/master/Object.html#method-i-DelegateClass"><code>DelegateClass()</code></a> accepts a block to define delegates behavior on-the-fly. |
1046 | 1047 | * <a class="ruby-doc" href="https://ruby-doc.org/stdlib-2.7.0/libdoc/pathname/rdoc/Pathname.html#method-c-glob"><code>Pathname.glob</code></a> passes third argument, if provided, to `Dir.glob`, allowing to specify `base:` for globbing. |
1047 | 1048 | * <a class="ruby-doc" href="https://ruby-doc.org/stdlib-2.7.0/libdoc/pathname/rdoc/Kernel.html#method-i-Pathname"><code>Pathname()</code></a> method doesn't duplicates argument, if it was already a `Pathname` |
|
0 commit comments