unicode-emoji 2.6.0 β 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/Gemfile.lock +2 -2
- data/MIT-LICENSE.txt +1 -1
- data/README.md +7 -7
- data/Rakefile +1 -1
- data/data/emoji.marshal.gz +0 -0
- data/lib/unicode/emoji/constants.rb +3 -3
- data/spec/unicode_emoji_spec.rb +5 -0
- data/unicode-emoji.gemspec +1 -1
- metadata +8 -6
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06ae1680808ba5598860f0f4b0f64b968af2aaed1a1e96b1ab4fc2ca5099d376
|
4
|
+
data.tar.gz: 7b7444bd720d5db58bcaaa4cced183eb2305509bfb9f743c8117343979368e0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '088d0efe6451f2992fde8aa399571f7ae355bda7ad7b4824bbdf3a533760c9e17e278c7e1ff32758e4daea80f65171bedd4f936a420a66b1d4d00af93a33b6be'
|
7
|
+
data.tar.gz: 3ae0ecb947e8ba6c357396dcc778cfc8e9e68f0f629dbb13a93a0099467b6e4da144aed767f9e0ee95d894372d0d1680f01c9414d604f58fa1cecea682547be0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
## CHANGELOG
|
2
2
|
|
3
|
+
### 2.9.0
|
4
|
+
|
5
|
+
- Emoji 14.0
|
6
|
+
|
7
|
+
### 2.8.0
|
8
|
+
|
9
|
+
- Update valid subdivisions to CLDR 39
|
10
|
+
|
11
|
+
### 2.7.1
|
12
|
+
|
13
|
+
- Update valid subdivisions to CLDR 38.1
|
14
|
+
|
15
|
+
### 2.7.0
|
16
|
+
|
17
|
+
- Update valid subdivisions to CLDR 38
|
18
|
+
- Loosen Ruby dependency to allow Ruby 3.0
|
19
|
+
|
3
20
|
### 2.6.0
|
4
21
|
|
5
22
|
- Emoji 13.1
|
data/Gemfile.lock
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Unicode::Emoji [![[version]](https://badge.fury.io/rb/unicode-emoji.svg)](https://badge.fury.io/rb/unicode-emoji) [![[
|
1
|
+
# Unicode::Emoji [![[version]](https://badge.fury.io/rb/unicode-emoji.svg)](https://badge.fury.io/rb/unicode-emoji) [![[ci]](https://github.com/janlelis/unicode-emoji/workflows/Test/badge.svg)](https://github.com/janlelis/unicode-emoji/actions?query=workflow%3ATest)
|
2
2
|
|
3
3
|
Provides Unicode Emoji data and regexes, incorporating the latest Unicode and Emoji standards.
|
4
4
|
|
@@ -6,11 +6,11 @@ Also includes a categorized list of recommended Emoji.
|
|
6
6
|
|
7
7
|
Emoji version: **13.1** (September 2020)
|
8
8
|
|
9
|
-
CLDR version (used for sub-region flags): **
|
9
|
+
CLDR version (used for sub-region flags): **39** (April 2021)
|
10
10
|
|
11
|
-
Supported Rubies: **
|
11
|
+
Supported Rubies: **3.0**, **2.7**
|
12
12
|
|
13
|
-
No longer supported Rubies, but might still work: **2.4**, **2.3**
|
13
|
+
No longer supported Rubies, but might still work: **2.6**, **2.5**, **2.4**, **2.3**
|
14
14
|
|
15
15
|
If you are stuck on an older Ruby version, checkout the latest [0.9 version](https://rubygems.org/gems/unicode-emoji/versions/0.9.3) of this gem.
|
16
16
|
|
@@ -60,7 +60,7 @@ Regex | Description | Example Matches | Example Non-Matc
|
|
60
60
|
- If you want broader matching (e.g. more sub-regions), choose `REGEX_VALID`
|
61
61
|
- If you even want to match for invalid sequences, too, use `REGEX_WELL_FORMED`
|
62
62
|
|
63
|
-
Please see [the standard](
|
63
|
+
Please see [the standard](https://www.unicode.org/reports/tr51/#Emoji_Sets) for details.
|
64
64
|
|
65
65
|
Property | `REGEX` (RGI / Recommended) | `REGEX_VALID` (Valid) | `REGEX_WELL_FORMED` (Well-formed)
|
66
66
|
---------|-----------------------------|-----------------------|----------------------------------
|
@@ -72,7 +72,7 @@ Tag Sequence "π΄σ §σ ’σ ‘σ ‘σ ‘σ Ώ" | No | No | Yes
|
|
72
72
|
ZWJ Sequence "π€Ύπ½ββοΈ" | Yes | Yes | Yes
|
73
73
|
ZWJ Sequence "π€ βπ€’" | No | Yes | Yes
|
74
74
|
|
75
|
-
More info about valid vs. recommended Emoji in this [blog article on Emojipedia](
|
75
|
+
More info about valid vs. recommended Emoji in this [blog article on Emojipedia](https://blog.emojipedia.org/unicode-behind-the-curtain/).
|
76
76
|
|
77
77
|
#### Singleton Regexes
|
78
78
|
|
@@ -148,5 +148,5 @@ Unicode::Emoji.properties "β" # => ["Emoji", "Emoji_Modifier_Base"]
|
|
148
148
|
|
149
149
|
## MIT
|
150
150
|
|
151
|
-
- Copyright (C) 2017-
|
151
|
+
- Copyright (C) 2017-2021 Jan Lelis <https://janlelis.com>. Released under the MIT license.
|
152
152
|
- Unicode data: https://www.unicode.org/copyright.html#Exhibit1
|
data/Rakefile
CHANGED
data/data/emoji.marshal.gz
CHANGED
Binary file
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
module Unicode
|
4
4
|
module Emoji
|
5
|
-
VERSION = "2.
|
6
|
-
EMOJI_VERSION = "
|
7
|
-
CLDR_VERSION = "
|
5
|
+
VERSION = "2.9.0"
|
6
|
+
EMOJI_VERSION = "14.0"
|
7
|
+
CLDR_VERSION = "39"
|
8
8
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
|
9
9
|
INDEX_FILENAME = (DATA_DIRECTORY + "/emoji.marshal.gz").freeze
|
10
10
|
end
|
data/spec/unicode_emoji_spec.rb
CHANGED
@@ -103,6 +103,11 @@ describe Unicode::Emoji do
|
|
103
103
|
"β€οΈβπ₯ heart on fire" =~ Unicode::Emoji::REGEX
|
104
104
|
assert_equal "β€οΈβπ₯", $&
|
105
105
|
end
|
106
|
+
|
107
|
+
it "matches 14.0 emoji" do
|
108
|
+
"πͺΊ nest with eggs" =~ Unicode::Emoji::REGEX
|
109
|
+
assert_equal "πͺΊ", $&
|
110
|
+
end
|
106
111
|
end
|
107
112
|
|
108
113
|
describe "REGEX_VALID" do
|
data/unicode-emoji.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.required_ruby_version = "
|
20
|
+
gem.required_ruby_version = ">= 2.3", "< 4.0"
|
21
21
|
|
22
22
|
gem.add_dependency "unicode-version", "~> 1.0"
|
23
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-emoji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unicode-version
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
|
-
description: "[Emoji
|
27
|
+
description: "[Emoji 14.0] A small Ruby library which provides Unicode Emoji data
|
28
28
|
and regexes, incorporating the latest Unicode and Emoji standards. Includes a categorized
|
29
29
|
list of recommended Emoji."
|
30
30
|
email:
|
@@ -34,7 +34,6 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- ".gitignore"
|
37
|
-
- ".travis.yml"
|
38
37
|
- CHANGELOG.md
|
39
38
|
- CODE_OF_CONDUCT.md
|
40
39
|
- Gemfile
|
@@ -58,16 +57,19 @@ require_paths:
|
|
58
57
|
- lib
|
59
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
59
|
requirements:
|
61
|
-
- - "
|
60
|
+
- - ">="
|
62
61
|
- !ruby/object:Gem::Version
|
63
62
|
version: '2.3'
|
63
|
+
- - "<"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '4.0'
|
64
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
67
|
requirements:
|
66
68
|
- - ">="
|
67
69
|
- !ruby/object:Gem::Version
|
68
70
|
version: '0'
|
69
71
|
requirements: []
|
70
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.3
|
71
73
|
signing_key:
|
72
74
|
specification_version: 4
|
73
75
|
summary: Retrieve Emoji data about Unicode codepoints.
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
|
4
|
-
rvm:
|
5
|
-
- 2.7
|
6
|
-
- 2.6
|
7
|
-
- 2.5
|
8
|
-
- 2.4
|
9
|
-
- 2.3
|
10
|
-
- ruby-head
|
11
|
-
- jruby-9.2.11.1
|
12
|
-
- truffleruby-20.2.0
|
13
|
-
|
14
|
-
matrix:
|
15
|
-
allow_failures:
|
16
|
-
- rvm: 2.4
|
17
|
-
- rvm: 2.3
|
18
|
-
- rvm: ruby-head
|
19
|
-
- rvm: truffleruby-20.2.0
|
20
|
-
# fast_finish: true
|