diff options
author | Fumiaki MATSUSHIMA <mtsmfm@gmail.com> | 2017-01-26 18:15:37 +0900 |
---|---|---|
committer | Fumiaki MATSUSHIMA <mtsmfm@gmail.com> | 2017-01-28 16:57:36 +0900 |
commit | bdcfdef21444b03413213c69035f0fac8feedffb (patch) | |
tree | c3ac443862c6e0c7858b0be3eed5802296613b79 /activesupport/CHANGELOG.md | |
parent | 05112b21310c3ea04026176a5f7ca11040454ac1 (diff) | |
download | rails-bdcfdef21444b03413213c69035f0fac8feedffb.tar.gz rails-bdcfdef21444b03413213c69035f0fac8feedffb.tar.bz2 rails-bdcfdef21444b03413213c69035f0fac8feedffb.zip |
Update Unicode Version to 9.0.0
9.0.0 was released on June 21, 2016
http://blog.unicode.org/2016/06/announcing-unicode-standard-version-90.html
http://www.unicode.org/versions/Unicode9.0.0/
There are some changes about grapheme cluster in Unicode 9.0.0:
http://unicode.org/reports/tr29/#Grapheme_Cluster_Boundary_Rules
------------
I noticed that `unpack_graphemes` returns [Other] when the argument is Other รท Prepend
(it must be [Other, Prepend]).
But in [Unicode 8.0.0's Prepend has no characters](http://www.unicode.org/reports/tr29/tr29-27.html#Prepend)
so we don't have to backport following patch:
```diff
should_break =
+ if pos == eoc
+ true
```
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r-- | activesupport/CHANGELOG.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index 5207194fba..5af97e3d37 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,3 +1,19 @@ +* Updated Unicode version to 9.0.0 + + Now we can handle new emojis such like "๐ฉโ๐ฉโ๐งโ๐ฆ" ("\u{1F469}\u{200D}\u{1F469}\u{200D}\u{1F467}\u{200D}\u{1F466}"). + + version 8.0.0 + + "๐ฉโ๐ฉโ๐งโ๐ฆ".mb_chars.grapheme_length # => 4 + "๐ฉโ๐ฉโ๐งโ๐ฆ".mb_chars.reverse # => "๐ฆ๐งโ๐ฉโ๐ฉโ" + + version 9.0.0 + + "๐ฉโ๐ฉโ๐งโ๐ฆ".mb_chars.grapheme_length # => 1 + "๐ฉโ๐ฉโ๐งโ๐ฆ".mb_chars.reverse # => "๐ฉโ๐ฉโ๐งโ๐ฆ" + + *Fumiaki MATSUSHIMA* + * Changed `ActiveSupport::Inflector#transliterate` to raise `ArgumentError` when it receives anything except a string. |