Skip to content

Commit d3a81db

Browse files
committed
Add file URLs
1 parent 0827bdf commit d3a81db

File tree

5 files changed

+113
-34
lines changed

5 files changed

+113
-34
lines changed

_data/branches.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
# date: date of first stable release (YYYY-MM-DD)
99
# eol_date: date of EOL (YYYY-MM-DD)
1010

11+
- name: 2.7
12+
status: preview
13+
date:
14+
eol_date:
15+
1116
- name: 2.6
1217
status: normal maintenance
1318
date: 2018-12-25

_data/downloads.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# optional
55
preview:
66

7+
- 2.7.0-preview1
78

89
stable:
910

_data/releases.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,22 @@
1919
# In order to get the release listed on the downloads page,
2020
# you also need to add an entry to `_data/downloads.yml'.
2121

22+
# 2.7 series
23+
24+
- version: 2.7.0-preview1
25+
date: 2019-05-30
26+
post: /en/news/2019/05/30/ruby-2-7-0-preview1-released/
27+
url:
28+
gz: https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.tar.gz
29+
zip: https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.zip
30+
bz2: https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.tar.bz2
31+
xz: https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.tar.xz
32+
sha256:
33+
gz: b61dba9ed01e855000111964363fbd691219ab3c567455434717ecba962747ea
34+
zip: 59da2314822add396f68ce3e8e43e98843d41f4eab2354edc7f793a1ec3f3359
35+
bz2: b20c80adc1324c0ec87bf3f4a66b837771d7a30fc876d83e68e519c623cf0369
36+
xz: 540f11753f5805c1bf560c54a44d1ea04414217c7d319cac165de964e269399f
37+
2238
# 2.6 series
2339

2440
- version: 2.6.3

en/news/_posts/2019-04-20-ruby-2-7-0-preview1-released.md

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ Some multithread Ruby programs may cause memory fragmentation, leading to high m
2323

2424
The `GC.compact` method is introduced for compacting the heap. This function compacts live objects in the heap so that fewer pages may be used, and the heap may be more CoW friendly. [#15626](https://bugs.ruby-lang.org/issues/15626)
2525

26-
Known issues: It may cause segmentation faults if MJIT is enabled. Please avoid using both Compaction GC and MJIT at the same time.
27-
2826
## Pattern Matching [Experimental]
2927

3028
Pattern matching, widely used feature in functional programming languages, is introduced as an experimental feature. [#14912](https://bugs.ruby-lang.org/issues/14912)
@@ -38,26 +36,34 @@ in {name: "Alice", children: [{name: "Bob", age: age}]}
3836
end
3937
```
4038

39+
For more details, please see https://speakerdeck.com/k_tsj/pattern-matching-new-feature-in-ruby-2-dot-7.
40+
4141
## REPL improvement
4242

4343
`irb`, bundled interactive environment (REPL; Read-Eval-Print-Loop), now supports multi-line editing. It's powered by `reline`, `readline` compatible pure Ruby implementation.
44-
It also provides rdoc integration. In `irb` you now can display the reference for a given class, module, or method. [#14683](https://bugs.ruby-lang.org/issues/14683) [#14787](https://bugs.ruby-lang.org/issues/14787) [#14918](https://bugs.ruby-lang.org/issues/14918)
44+
It also provides rdoc integration. In `irb` you can display the reference for a given class, module, or method. [#14683](https://bugs.ruby-lang.org/issues/14683), [#14787](https://bugs.ruby-lang.org/issues/14787), [#14918](https://bugs.ruby-lang.org/issues/14918)
45+
Besides, source lines shown at `binding.irb` and inspect results for core-class objects are now colorized.
4546

4647
<video autoplay="autoplay" loop="loop" width="478" height="202">
47-
<source src="//ftp.ruby-lang.org/pub/media/irb_multiline.mp4" type="video/mp4">
48+
<source src="https://cache.ruby-lang.org/pub/media/irb_improved_with_key_take2.mp4" type="video/mp4">
4849
</video>
4950

5051
## Other Notable New Features
5152

52-
* A method reference operator, <code>.:</code>, is introduced as an experimental feature. [#12125]( https://bugs.ruby-lang.org/issues/12125) [#13581]( https://bugs.ruby-lang.org/issues/13581)
53+
* A method reference operator, <code>.:</code>, is introduced as an experimental feature. [#12125]( https://bugs.ruby-lang.org/issues/12125), [#13581]( https://bugs.ruby-lang.org/issues/13581)
5354

5455
* Numbered parameter as the default block parameter is introduced as an experimental feature. [#4475](https://bugs.ruby-lang.org/issues/4475)
5556

5657
* A beginless range is experimentally introduced. It might not be as useful
57-
as an endless range, but would be good for DSL purpose. [14799](https://bugs.ruby-lang.org/issues/14799)
58+
as an endless range, but would be good for DSL purpose. [#14799](https://bugs.ruby-lang.org/issues/14799)
5859

5960
ary[..3] # identical to ary[0..3]
60-
where(sales: ..100)
61+
rel.where(sales: ..100)
62+
63+
* `Enumerable#tally` is added. It counts the occurrence of each element.
64+
65+
["a", "b", "c", "b"].tally
66+
#=> {"a"=>1, "b"=>2, "c"=>1}
6167

6268
## Performance improvements
6369

@@ -73,18 +79,18 @@ It also provides rdoc integration. In `irb` you now can display the reference fo
7379

7480
## Other notable changes since 2.6
7581

76-
* Proc.new and proc with no block in a method called with a block is warned now.
82+
* `Proc.new` and `proc` with no block in a method called with a block is warned now.
7783

78-
* lambda with no block in a method called with a block errs.
84+
* `lambda` with no block in a method called with a block errs.
7985

80-
* Update Unicode version and Emoji version from 11.0.0 to 12.0.0. [Feature #15321]
86+
* Update Unicode version and Emoji version from 11.0.0 to 12.0.0. [[Feature #15321]](https://bugs.ruby-lang.org/issues/15321)
8187

82-
* Update Unicode version to 12.1.0, adding support for U+32FF SQUARE ERA NAME REIWA. [Feature #15195]
88+
* Update Unicode version to 12.1.0, adding support for U+32FF SQUARE ERA NAME REIWA. [[Feature #15195]](https://bugs.ruby-lang.org/issues/15195)
8389

84-
* Date.jisx0301, Date#jisx0301, and Date.parse provisionally support the new Japanese era as an informal extension, until the new JIS X 0301 is issued. [Feature #15742]
90+
* `Date.jisx0301`, `Date#jisx0301`, and `Date.parse` provisionally support the new Japanese era as an informal extension, until the new JIS X 0301 is issued. [[Feature #15742]](https://bugs.ruby-lang.org/issues/15742)
8591

86-
* Require compilers to support C99 [Misc #15347]
87-
* Details of our dialect: https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/C99
92+
* Require compilers to support C99 [[Misc #15347]](https://bugs.ruby-lang.org/issues/15347)
93+
* Details of our dialect: <https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/C99>
8894

8995
See [NEWS](https://github.com/ruby/ruby/blob/v2_7_0_preview1/NEWS) or [commit logs](https://github.com/ruby/ruby/compare/v2_6_0...v2_7_0_preview1) for more details.
9096

@@ -94,7 +100,30 @@ Enjoy programming with Ruby 2.7!
94100

95101
## Download
96102

97-
103+
* <https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.tar.gz>
104+
105+
SIZE: 16020966 bytes
106+
SHA1: f968d0c6117a7767af0b354458195de1df628b93
107+
SHA256: b61dba9ed01e855000111964363fbd691219ab3c567455434717ecba962747ea
108+
SHA512: 820ac03c08fd6e8283275a0d37caac9787afb85426bbb27e2105d8007bbc7ad6a35b2b40c8af81cdbb7a00347d44e92b5ff9b6e7f48f22d05584cedb85578409
109+
* <https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.zip>
110+
111+
SIZE: 20283209 bytes
112+
SHA1: fc31cb0620962f0aa73c902edfc8523ec5b2a2ec
113+
SHA256: 59da2314822add396f68ce3e8e43e98843d41f4eab2354edc7f793a1ec3f3359
114+
SHA512: e6726f21dc5e90f42e762a81cbf88caef325fe2d589d75a81d82663652695ed94b3be6e12fe238fc82e5caebb16e626456d9e9dfa4ecc6a55e532ba372b2d4de
115+
* <https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.tar.bz2>
116+
117+
SIZE: 14040553 bytes
118+
SHA1: 0a03aa856d87110e14a621d5bf7378de59a9d682
119+
SHA256: b20c80adc1324c0ec87bf3f4a66b837771d7a30fc876d83e68e519c623cf0369
120+
SHA512: 282d51ab6a76f40014e7c1738a1a02484e12bd52057db953e356b300974f5a1603a14dc23e436587870767213816c5adda335e6f8716de02c8fd853c85447250
121+
* <https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.tar.xz>
122+
123+
SIZE: 11440260 bytes
124+
SHA1: c7297e4a9e81657a9c8731da8de2e2aa4d4879c3
125+
SHA256: 540f11753f5805c1bf560c54a44d1ea04414217c7d319cac165de964e269399f
126+
SHA512: 78afd2b167658d0edb368a3f5f91446a5f6f63b451bfc1966af8964579bc74f6c6a2d227c8715ab742e97c6895ce4006b56ba0eed97b6effcd93555b43d90313
98127

99128
## What is Ruby
100129

ja/news/_posts/2019-04-20-ruby-2-7-0-preview1-released.md

Lines changed: 47 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ Ruby 2.7.0-preview1では、多くの新しい機能やパフォーマンスの
2020

2121
Ruby 2.7では`GC.compact` というメソッドを導入し、ヒープをコンパクションすることが出来るようになります。ヒープ内の生存しているオブジェクトを他のページに移動し、不要なページを解放できるようになるとともに、ヒープをCoW (Copy on Write) フレンドリーにすることが出来ます。 [#15626](https://bugs.ruby-lang.org/issues/15626)
2222

23-
既知の問題: MJITと同時に用いると Segmentation Fault を引き起こすことがあります。MJITとCompation GCを同時に使わないようにして下さい。
24-
2523
## Pattern Matching [Experimental]
2624

2725
関数型言語で広く使われているパターンマッチという機能が実験的に導入されました。
28-
渡されたオブジェクトの構造がパターンと一致するかどうかを調べ、一致した場合にその値を変数に代入するといったことができるようになります。 [#14683](https://bugs.ruby-lang.org/issues/14683) [#14787](https://bugs.ruby-lang.org/issues/14787) [#14918](https://bugs.ruby-lang.org/issues/14918)
26+
渡されたオブジェクトの構造がパターンと一致するかどうかを調べ、一致した場合にその値を変数に代入するといったことができるようになります。 [#14912](https://bugs.ruby-lang.org/issues/14912)
2927

3028
```ruby
3129
case JSON.parse('{...}', symbolize_names: true)
@@ -35,26 +33,33 @@ in {name: "Alice", children: [{name: "Bob", age: age}]}
3533
end
3634
```
3735

36+
詳細については https://speakerdeck.com/k_tsj/pattern-matching-new-feature-in-ruby-2-dot-7 を参照してください。
37+
3838
## REPL improvement
3939

4040
Ruby に添付されている REPL (Read-Eval-Print-Loop) である `irb` で、複数行編集がサポートされました。これは `reline` という `readline` 互換のピュア Ruby 実装によるものです。
41-
また、rdoc 連携も提供されるようになっています。`irb` 内で、クラス、モジュール、メソッドのリファレンスをその場で確認できるようになりました。 [#14918](https://bugs.ruby-lang.org/issues/14918)
41+
また、rdoc 連携も提供されるようになっています。`irb` 内で、クラス、モジュール、メソッドのリファレンスをその場で確認できるようになりました。 [#14683](https://bugs.ruby-lang.org/issues/14683), [#14787](https://bugs.ruby-lang.org/issues/14787), [#14918](https://bugs.ruby-lang.org/issues/14918)
42+
これに加え、`binding.irb`で表示される周辺のコードや、コアクラスのオブジェクトのinspect結果に色がつくようになっています。
4243

4344
<video autoplay="autoplay" loop="loop" width="478" height="202">
44-
<source src="//ftp.ruby-lang.org/pub/media/irb_multiline.mp4" type="video/mp4">
45+
<source src="https://cache.ruby-lang.org/pub/media/irb_improved_with_key_take2.mp4" type="video/mp4">
4546
</video>
4647

4748
## 主要な新機能
4849

49-
* メソッド参照演算子 <code>.:</code> が試験的に導入されました。[#12125]( https://bugs.ruby-lang.org/issues/12125) [#13581]( https://bugs.ruby-lang.org/issues/13581)
50+
* メソッド参照演算子 <code>.:</code> が試験的に導入されました。[#12125](https://bugs.ruby-lang.org/issues/12125), [#13581](https://bugs.ruby-lang.org/issues/13581)
5051

5152
* デフォルトのブロックの仮引数として番号指定パラメータが試験的に導入されました。[#4475](https://bugs.ruby-lang.org/issues/4475)
5253

53-
* 開始値省略範囲式が試験的に導入されました。これは終了値省略範囲式ほど有用ではないと思われますが、しかし DSL のような目的には役立つかもしれません。 [#14912](https://bugs.ruby-lang.org/issues/14912)
54+
* 開始値省略範囲式が試験的に導入されました。これは終了値省略範囲式ほど有用ではないと思われますが、しかし DSL のような目的には役立つかもしれません。 [#14799](https://bugs.ruby-lang.org/issues/14799)
5455

5556
ary[..3] # identical to ary[0..3]
56-
where(sales: ..100)
57+
rel.where(sales: ..100)
5758

59+
* `Enumerable#tally` が追加されました。各要素の出現回数を数えます。
60+
61+
["a", "b", "c", "b"].tally
62+
#=> {"a"=>1, "b"=>2, "c"=>1}
5863

5964
## パフォーマンスの改善
6065

@@ -64,33 +69,56 @@ Ruby に添付されている REPL (Read-Eval-Print-Loop) である `irb` で、
6469

6570
* あるメソッドが「純粋」であると判定された場合、メソッドのインライン化が行われるようになりました。この最適化はまだ実験的であり、また多数のメソッドが今はまだ「純粋」と判定されないままです。
6671

67-
* +--jit-min-calls+ オプションのデフォルト値が 5 から 10,000 に変更されました。
72+
* `--jit-min-calls` オプションのデフォルト値が 5 から 10,000 に変更されました。
6873

69-
* +--jit-max-cache+ オプションのデフォルト値が 1,000 から 100 に変更されました。
74+
* `--jit-max-cache` オプションのデフォルト値が 1,000 から 100 に変更されました。
7075

7176

7277
## その他の注目すべき 2.6 からの変更点
7378

74-
* ブロックを渡すメソッド呼び出し中の、ブロックを伴わない Proc.new と proc が警告されるようになりました。
79+
* ブロックを渡すメソッド呼び出し中の、ブロックを伴わない `Proc.new``proc` が警告されるようになりました。
7580

76-
* ブロックを渡すメソッド呼び出し中の、ブロックを伴わない lambda はエラーとなるようになりました。
81+
* ブロックを渡すメソッド呼び出し中の、ブロックを伴わない `lambda` はエラーとなるようになりました。
7782

78-
* Unicode および Emoji のバージョンが 11.0.0 から 12.0.0 になりました。[Feature #15321]
83+
* Unicode および Emoji のバージョンが 11.0.0 から 12.0.0 になりました。[[Feature #15321]](https://bugs.ruby-lang.org/issues/15321)
7984

80-
* Unicode のバージョンが 12.1.0 となり、新元号「令和」を表す U+32FF がサポートされました。[Feature #15195]
85+
* Unicode のバージョンが 12.1.0 となり、新元号「令和」を表す合字 U+32FF がサポートされました。[[Feature #15195]](https://bugs.ruby-lang.org/issues/15195)
8186

82-
* Date.jisx0301, Date#jisx0301, および Date.parse で非公式に新元号に仮対応しました。これは JIS X 0301 の新しい版で正式な仕様が決定されるまでの暫定的なものです。[Feature #15742]
87+
* `Date.jisx0301`, `Date#jisx0301`, および `Date.parse` で非公式に新元号に仮対応しました。これは JIS X 0301 の新しい版で正式な仕様が決定されるまでの暫定的なものです。[[Feature #15742]](https://bugs.ruby-lang.org/issues/15742)
8388

84-
* Ruby のビルドに C99 に対応したコンパイラが必要になりました。[Misc #15347]
85-
* 本件についての詳細: https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/C99
89+
* Ruby のビルドに C99 に対応したコンパイラが必要になりました。[[Misc #15347]](https://bugs.ruby-lang.org/issues/15347)
90+
* 本件についての詳細: <https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/C99>
8691

87-
なお、こうした変更により、Ruby 2.6.0 以降では [6376 個のファイルに変更が加えられ、227364 行の追加と 51599 行の削除が行われました](https://github.com/ruby/ruby/compare/v2_6_0...v2_7_0) !
92+
なお、こうした変更により、Ruby 2.6.0 以降では [6376 個のファイルに変更が加えられ、227364 行の追加と 51599 行の削除が行われました](https://github.com/ruby/ruby/compare/v2_6_0...v2_7_0_preview1) !
8893

8994
Ruby 2.7 でプログラミングをお楽しみください!
9095

9196
## Download
9297

93-
98+
* <https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.tar.gz>
99+
100+
SIZE: 16020966 bytes
101+
SHA1: f968d0c6117a7767af0b354458195de1df628b93
102+
SHA256: b61dba9ed01e855000111964363fbd691219ab3c567455434717ecba962747ea
103+
SHA512: 820ac03c08fd6e8283275a0d37caac9787afb85426bbb27e2105d8007bbc7ad6a35b2b40c8af81cdbb7a00347d44e92b5ff9b6e7f48f22d05584cedb85578409
104+
* <https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.zip>
105+
106+
SIZE: 20283209 bytes
107+
SHA1: fc31cb0620962f0aa73c902edfc8523ec5b2a2ec
108+
SHA256: 59da2314822add396f68ce3e8e43e98843d41f4eab2354edc7f793a1ec3f3359
109+
SHA512: e6726f21dc5e90f42e762a81cbf88caef325fe2d589d75a81d82663652695ed94b3be6e12fe238fc82e5caebb16e626456d9e9dfa4ecc6a55e532ba372b2d4de
110+
* <https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.tar.bz2>
111+
112+
SIZE: 14040553 bytes
113+
SHA1: 0a03aa856d87110e14a621d5bf7378de59a9d682
114+
SHA256: b20c80adc1324c0ec87bf3f4a66b837771d7a30fc876d83e68e519c623cf0369
115+
SHA512: 282d51ab6a76f40014e7c1738a1a02484e12bd52057db953e356b300974f5a1603a14dc23e436587870767213816c5adda335e6f8716de02c8fd853c85447250
116+
* <https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0-preview1.tar.xz>
117+
118+
SIZE: 11440260 bytes
119+
SHA1: c7297e4a9e81657a9c8731da8de2e2aa4d4879c3
120+
SHA256: 540f11753f5805c1bf560c54a44d1ea04414217c7d319cac165de964e269399f
121+
SHA512: 78afd2b167658d0edb368a3f5f91446a5f6f63b451bfc1966af8964579bc74f6c6a2d227c8715ab742e97c6895ce4006b56ba0eed97b6effcd93555b43d90313
94122

95123
## Ruby とは
96124

0 commit comments

Comments
 (0)