aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorFumiaki MATSUSHIMA <mtsmfm@gmail.com>2017-01-26 18:15:37 +0900
committerFumiaki MATSUSHIMA <mtsmfm@gmail.com>2017-01-28 16:57:36 +0900
commitbdcfdef21444b03413213c69035f0fac8feedffb (patch)
treec3ac443862c6e0c7858b0be3eed5802296613b79 /activesupport/CHANGELOG.md
parent05112b21310c3ea04026176a5f7ca11040454ac1 (diff)
downloadrails-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.md16
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.