unicode-emoji 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +6 -1
- data/README.md +4 -4
- data/data/emoji.marshal.gz +0 -0
- data/lib/unicode/emoji.rb +3 -1
- data/lib/unicode/emoji/constants.rb +2 -5
- data/unicode-emoji.gemspec +2 -0
- metadata +18 -5
- data/lib/unicode/.emoji.rb.swp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b594f6df1c8a1a6689e0b97cab1cf6d3e7d6ba7b94b615a8e3c57fe8304ab4af
|
4
|
+
data.tar.gz: 85555249c2b4855c8c90bca7c5a52130fb179ff1bd79e96f001185a462654525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d50d3efc9762038e778ab90d94911b252c1349659fcb638d2a73de6d016fba871922687d000a622da0cd65057553c6d0cde9c7295f3a0b749b63a9f593fa60c6
|
7
|
+
data.tar.gz: 5ff906f0cf45a194c938a2021371b5a0b4ba6f4e757bc4b0957f936c45f8b83e970924deecb28d2c1a4987c73c961d7664648417fd37bb61d43a551f856eea08
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
# Unicode::Emoji [![[version]](https://badge.fury.io/rb/unicode-emoji.svg)](https://badge.fury.io/rb/unicode-emoji) [![[travis]](https://travis-ci.org/janlelis/unicode-emoji.svg)](https://travis-ci.org/janlelis/unicode-emoji)
|
2
2
|
|
3
|
-
|
3
|
+
Provides Unicode Emoji data and regexes, incorporating the latest Unicode and Emoji standards.
|
4
4
|
|
5
5
|
Also includes a categorized list of recommended Emoji.
|
6
6
|
|
7
7
|
Emoji version: **13.0** (January 2019)
|
8
8
|
|
9
|
-
CLDR version (used for sub-region flags): **
|
9
|
+
CLDR version (used for sub-region flags): **37** (April 2020)
|
10
10
|
|
11
|
-
Supported Rubies: **2.7**, **2.6**, **2.5
|
11
|
+
Supported Rubies: **2.7**, **2.6**, **2.5**
|
12
12
|
|
13
|
-
No longer supported Rubies, but might still work: **2.3**
|
13
|
+
No longer supported Rubies, but might still work: **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
|
|
data/data/emoji.marshal.gz
CHANGED
Binary file
|
data/lib/unicode/emoji.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "unicode/version"
|
4
|
+
|
3
5
|
require_relative "emoji/constants"
|
4
6
|
require_relative "emoji/index"
|
5
7
|
|
@@ -47,7 +49,7 @@ module Unicode
|
|
47
49
|
join = -> (*strings){ "(?:" + strings.join("|") + ")" }
|
48
50
|
pack_and_join = ->(ords){ join[*ords.map{ |ord| pack[ord] }] }
|
49
51
|
|
50
|
-
if
|
52
|
+
if EMOJI_VERSION == Unicode::Version.emoji_version
|
51
53
|
emoji_character = "\\p{Emoji}"
|
52
54
|
emoji_modifier = "\\p{Emoji Modifier}"
|
53
55
|
emoji_modifier_base = "\\p{Emoji Modifier Base}"
|
@@ -2,14 +2,11 @@
|
|
2
2
|
|
3
3
|
module Unicode
|
4
4
|
module Emoji
|
5
|
-
VERSION = "2.
|
5
|
+
VERSION = "2.5.0"
|
6
6
|
EMOJI_VERSION = "13.0"
|
7
|
-
CLDR_VERSION = "
|
7
|
+
CLDR_VERSION = "37"
|
8
8
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
|
9
9
|
INDEX_FILENAME = (DATA_DIRECTORY + "/emoji.marshal.gz").freeze
|
10
|
-
|
11
|
-
ENABLE_NATIVE_EMOJI_UNICODE_PROPERTIES = false
|
12
|
-
# As of Ruby 2.7.0, Emoji version 12.1 is included
|
13
10
|
end
|
14
11
|
end
|
15
12
|
|
data/unicode-emoji.gemspec
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-emoji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.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: 2020-
|
12
|
-
dependencies:
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: unicode-version
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
13
27
|
description: "[Emoji 13.0] A small Ruby library which provides Unicode Emoji data
|
14
28
|
and regexes, incorporating the latest Unicode and Emoji standards. Includes a categorized
|
15
29
|
list of recommended Emoji."
|
@@ -29,7 +43,6 @@ files:
|
|
29
43
|
- README.md
|
30
44
|
- Rakefile
|
31
45
|
- data/emoji.marshal.gz
|
32
|
-
- lib/unicode/.emoji.rb.swp
|
33
46
|
- lib/unicode/emoji.rb
|
34
47
|
- lib/unicode/emoji/constants.rb
|
35
48
|
- lib/unicode/emoji/index.rb
|
@@ -54,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
67
|
- !ruby/object:Gem::Version
|
55
68
|
version: '0'
|
56
69
|
requirements: []
|
57
|
-
rubygems_version: 3.
|
70
|
+
rubygems_version: 3.0.8
|
58
71
|
signing_key:
|
59
72
|
specification_version: 4
|
60
73
|
summary: Retrieve Emoji data about Unicode codepoints.
|
data/lib/unicode/.emoji.rb.swp
DELETED
Binary file
|