gemoji 3.0.0.rc1 → 3.0.0.rc2
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/README.md +1 -1
- data/db/Category-Emoji.json +8 -8
- data/db/emoji.json +3143 -1757
- data/lib/emoji.rb +6 -1
- metadata +2 -2
data/lib/emoji.rb
CHANGED
@@ -104,7 +104,9 @@ module Emoji
|
|
104
104
|
next unless raw
|
105
105
|
no_gender = raw.sub(/(#{VARIATION_SELECTOR_16})?#{ZERO_WIDTH_JOINER}(#{FEMALE_SYMBOL}|#{MALE_SYMBOL})/, '')
|
106
106
|
next unless $2
|
107
|
-
|
107
|
+
emoji = find_by_unicode(no_gender)
|
108
|
+
next unless emoji
|
109
|
+
edit_emoji(emoji) do
|
108
110
|
emoji.add_unicode_alias(
|
109
111
|
$2 == FEMALE_SYMBOL ?
|
110
112
|
raw.sub(FEMALE_SYMBOL, MALE_SYMBOL) :
|
@@ -124,3 +126,6 @@ module Emoji
|
|
124
126
|
@unicodes_index
|
125
127
|
end
|
126
128
|
end
|
129
|
+
|
130
|
+
# Preload emoji into memory
|
131
|
+
Emoji.all
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemoji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Character information and metadata for standard and custom emoji.
|
14
14
|
email: support@github.com
|