|
| 1 | +--- |
| 2 | +layout: news_post |
| 3 | +title: "Ruby 2.3.0-preview2 Released" |
| 4 | +author: "naruse" |
| 5 | +translator: |
| 6 | +date: 2015-11-11 14:00:00 +0000 |
| 7 | +lang: en |
| 8 | +--- |
| 9 | + |
| 10 | +We are pleased to announce the release of Ruby 2.3.0-preview2. |
| 11 | + |
| 12 | +Ruby 2.3.0-preview2 is the first preview of Ruby 2.3.0. |
| 13 | +Many new features and improvements are included. |
| 14 | + |
| 15 | +A [Frozen String Literal Pragma](https://bugs.ruby-lang.org/issues/11473) |
| 16 | +is introduced. |
| 17 | +With Ruby 2.1, `"str".freeze` has been optimized to reduce object allocation. |
| 18 | +Ruby 2.3 introduces a new magic comment and command line option to |
| 19 | +freeze all string literals in the source files. |
| 20 | +Additionally for debugging, you can get where the object is created on |
| 21 | +`"can't modify frozen String"` error by |
| 22 | +`--enable-frozen-string-literal-debug`. |
| 23 | + |
| 24 | +A [safe navigation operator](https://bugs.ruby-lang.org/issues/11537), |
| 25 | +which already exists in C#, Groovy, and Swift, is introduced to ease |
| 26 | +`nil` handling as `obj&.foo`. `Array#dig` and `Hash#dig` are also added. |
| 27 | + |
| 28 | +The [did_you_mean gem is bundled](https://bugs.ruby-lang.org/issues/11252). |
| 29 | +The did_you_mean gem |
| 30 | +shows the candidates on the `NameError` and `NoMethodError` to ease |
| 31 | +debugging. |
| 32 | + |
| 33 | +Try and enjoy programming with Ruby 2.3.0-preview2, and report us your |
| 34 | +knowledge! |
| 35 | + |
| 36 | +## Notable Changes since 2.2 |
| 37 | + |
| 38 | +* TBD |
| 39 | + |
| 40 | +See [NEWS](https://github.com/ruby/ruby/blob/v2_3_0_preview2/NEWS) and |
| 41 | +[ChangeLog](https://github.com/ruby/ruby/blob/v2_3_0_preview2/ChangeLog) |
| 42 | +for detail. |
| 43 | + |
| 44 | +With those changes, [1036 files changed, 81312 insertions(+), 51322 deletions(-)](https://github.com/ruby/ruby/compare/v2_2_0...v2_3_0_preview2) since Ruby 2.2.0! |
| 45 | + |
| 46 | +## Download |
| 47 | + |
| 48 | +* <https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0-preview1.tar.bz2> |
| 49 | + |
| 50 | + * SIZE: 14174035 bytes |
| 51 | + * SHA1: 55ad4f04d7a33ab780458ee0999de9f6124217ea |
| 52 | + * SHA256: 42b9c9e1740a5abe2855d11803524370bd95744c8dcb0068572ed5c969ac7f0f |
| 53 | + * SHA512: ae6d46c87f59e1fd3703b76dfc45bfcf208625f95ab9f4559f0b9f7050e8681f1a6e419f5fa06b704c83e56879c3a9ff1337dba443bcfca76fadb49c97d97a93 |
| 54 | + |
| 55 | +* <https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0-preview1.tar.gz> |
| 56 | + |
| 57 | + * SIZE: 17560800 bytes |
| 58 | + * SHA1: 6249572e5dca27d8c73a0cbf036e24e5d88fe82f |
| 59 | + * SHA256: dc8f9d48392a2bb226df5f4b4fd2074d81af155cdf3f3799139a6e31e012aefe |
| 60 | + * SHA512: 58384ef6e743dde20ea263692dab86ce9d6d22d722ef4c02a84396aa3128ce06d933d9b69078a3cd666d72320a8a6ffdc93296bc0d5338595b2a44c29d4db383 |
| 61 | + |
| 62 | +* <https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0-preview1.tar.xz> |
| 63 | + |
| 64 | + * SIZE: 11225228 bytes |
| 65 | + * SHA1: 85b4f631efa4b6435b2b41df6ce6c46da294c4d4 |
| 66 | + * SHA256: a88e19d9dc001db8f49ca3986a8a4e69980affff876854585725e40de0eedcd8 |
| 67 | + * SHA512: 3be0f3ed4de73509b2f6975fe3fbe28bb4d51df87db6e2c0019e8a107edf49be60b2127ba5b18bca91f9f5964b07f1adde3042dac6327017359eeb130760672b |
| 68 | + |
| 69 | +* <https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0-preview1.zip> |
| 70 | + |
| 71 | + * SIZE: 19777010 bytes |
| 72 | + * SHA1: 3458666c250dd333ac4b537be25f1913dd311ea1 |
| 73 | + * SHA256: 0fc1d4450e9141f541038a4433f8fb49fb929e43c7bf5985685a4fa7b213a811 |
| 74 | + * SHA512: f53653cf11d8dce1d627f7db3a15acca29c74c78735406a5d64bbbdc39fac232ef63110eb4d83521bef40c6f3006d55bbeaf54d1ddab1d4b6e5a13cee9247e85 |
| 75 | + |
| 76 | +## Release Comment |
| 77 | + |
| 78 | +See also the release schedule and other information: |
| 79 | + |
| 80 | +[ReleaseEngineering23](https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/ReleaseEngineering23) |
0 commit comments