Regenerate emoji digests with latest gemojione

This commit is contained in:
Eric Eastwood 2017-11-14 15:32:45 -06:00
parent 27c9e83573
commit b5b3586543
14 changed files with 1111 additions and 1050 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

View File

@ -22,6 +22,7 @@ const categoryLabelMap = {
objects: 'Objects',
symbols: 'Symbols',
flags: 'Flags',
extras: 'Extras',
};
const IS_VISIBLE = 'is-visible';

View File

@ -33,6 +33,7 @@ export function getEmojiCategoryMap() {
objects: [],
symbols: [],
flags: [],
extras: [],
};
Object.keys(emojiMap).forEach((name) => {
const emoji = emojiMap[name];

File diff suppressed because it is too large Load Diff

View File

@ -122,6 +122,15 @@ they can be easily inspected.
bundle exec rake services:doc
```
## Updating Emoji Aliases
To update the Emoji aliases file (used for Emoji autocomplete) you must run the
following:
```
bundle exec rake gemojione:aliases
```
## Updating Emoji Digests
To update the Emoji digests file (used for Emoji autocomplete) you must run the
@ -131,6 +140,7 @@ following:
bundle exec rake gemojione:digests
```
This will update the file `fixtures/emojis/digests.json` based on the currently
available Emoji.

View File

@ -339,6 +339,7 @@
"baguette_bread":"french_bread",
"anguished":"frowning",
"white_frowning_face":"frowning2",
"rainbow_flag":"gay_pride_flag",
"goal_net":"goal",
"hammer_and_pick":"hammer_pick",
"raised_hand_with_fingers_splayed":"hand_splayed",
@ -488,6 +489,7 @@
"slightly_smiling_face":"slight_smile",
"sneeze":"sneezing_face",
"speaking_head_in_silhouette":"speaking_head",
"left_speech_bubble":"speech_left",
"sleuth_or_spy":"spy",
"sleuth_or_spy_tone1":"spy_tone1",
"sleuth_or_spy_tone2":"spy_tone2",
@ -537,4 +539,4 @@
"wrestling_tone4":"wrestlers_tone4",
"wrestling_tone5":"wrestlers_tone5",
"zipper_mouth_face":"zipper_mouth"
}
}

View File

@ -1478,7 +1478,7 @@
},
"cartwheel_tone4": {
"category": "activity",
"moji": "🤸🏾,",
"moji": "🤸🏾",
"description": "person doing cartwheel tone 4",
"unicodeVersion": "9.0",
"digest": "8253afb672431c84e498014c30babb00b9284bec773009e79f7f06aa7108643e"
@ -5375,6 +5375,13 @@
"unicodeVersion": "6.0",
"digest": "180e66f19d9285e02d0a5e859722c608206826e80323942b9938fc49d44973b1"
},
"gay_pride_flag": {
"category": "extras",
"moji": "🏳🌈",
"description": "gay_pride_flag",
"unicodeVersion": "6.0",
"digest": "924e668c559db61b7f4724a661223081c2fc60d55169f3fe1ad6156934d1d37f"
},
"gemini": {
"category": "symbols",
"moji": "♊",
@ -7578,7 +7585,7 @@
"moji": "🤶",
"description": "mother christmas",
"unicodeVersion": "9.0",
"digest": "1f72f586ca75bd7ebb4150cdcc8199a930c32fa4b81510cb8d200f1b3ddd4076"
"digest": "357d769371305a8584f46d6087a962d647b6af22fab363a44702f38ab7814091"
},
"mrs_claus_tone1": {
"category": "people",
@ -10709,6 +10716,13 @@
"unicodeVersion": "6.0",
"digest": "817100d9979456e7d2f253ac22e13b7a2302dc1590566214915b003e403c53ca"
},
"speech_left": {
"category": "symbols",
"moji": "🗨",
"description": "left speech bubble",
"unicodeVersion": "7.0",
"digest": "912797107d574f5665411498b6e349dbdec69846f085b6dc356548c4155e90b0"
},
"speedboat": {
"category": "travel",
"moji": "🚤",

View File

@ -1,18 +0,0 @@
#!/usr/bin/env ruby
require 'json'
aliases = {}
index_file = File.expand_path("./index.json")
index = JSON.parse(File.read(index_file))
index.each_pair do |key, data|
data['aliases'].each do |a|
a.tr!(':', '')
aliases[a] = key
end
end
puts JSON.pretty_generate(aliases, indent: ' ', space: '', space_before: '')

View File

@ -4023,7 +4023,7 @@
],
"aliases_ascii": [],
"keywords": [],
"moji": "🤸🏾,"
"moji": "🤸🏾"
},
"cartwheel_tone5": {
"unicode": "1F938-1F3FF",
@ -14475,6 +14475,19 @@
],
"moji": "💎"
},
"gay_pride_flag": {
"unicode": "1F3F3-1F308",
"unicode_alternates": [],
"name": "gay_pride_flag",
"shortname": ":gay_pride_flag:",
"category": "extras",
"aliases": [
":rainbow_flag:"
],
"aliases_ascii": [],
"keywords": [],
"moji": "🏳🌈"
},
"gemini": {
"unicode": "264A",
"unicode_alternates": [
@ -16830,7 +16843,6 @@
"0:-)",
"0:)",
"0;^)",
"O:-)",
"O:)",
"O;-)",
"O=)",
@ -28506,6 +28518,21 @@
],
"moji": "💬"
},
"speech_left": {
"unicode": "1F5E8",
"unicode_alternates": [
"1F5E8-FE0F"
],
"name": "left speech bubble",
"shortname": ":speech_left:",
"category": "symbols",
"aliases": [
":left_speech_bubble:"
],
"aliases_ascii": [],
"keywords": [],
"moji": "🗨"
},
"speedboat": {
"unicode": "1F6A4",
"unicode_alternates": [],
@ -33477,4 +33504,4 @@
],
"moji": "💤"
}
}
}

View File

@ -1,5 +1,28 @@
namespace :gemojione do
desc 'Generates Emoji SHA256 digests'
task aliases: ['yarn:check', 'environment'] do
require 'json'
aliases = {}
index_file = File.join(Rails.root, 'fixtures', 'emojis', 'index.json')
index = JSON.parse(File.read(index_file))
index.each_pair do |key, data|
data['aliases'].each do |a|
a.tr!(':', '')
aliases[a] = key
end
end
out = File.join(Rails.root, 'fixtures', 'emojis', 'aliases.json')
File.open(out, 'w') do |handle|
handle.write(JSON.pretty_generate(aliases, indent: ' ', space: '', space_before: ''))
end
end
task digests: ['yarn:check', 'environment'] do
require 'digest/sha2'
require 'json'
@ -29,7 +52,6 @@ namespace :gemojione do
end
out = File.join(Rails.root, 'fixtures', 'emojis', 'digests.json')
File.open(out, 'w') do |handle|
handle.write(JSON.pretty_generate(resultant_emoji_map))
end