BigW Consortium Gitlab

Commit b5b35865 by Eric Eastwood

Regenerate emoji digests with latest gemojione

parent 27c9e835
app/assets/images/emoji/mrs_claus.png

2.15 KB | W: | H:

app/assets/images/emoji/mrs_claus.png

3.26 KB | W: | H:

app/assets/images/emoji/mrs_claus.png
app/assets/images/emoji/mrs_claus.png
app/assets/images/emoji/mrs_claus.png
app/assets/images/emoji/mrs_claus.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -22,6 +22,7 @@ const categoryLabelMap = { ...@@ -22,6 +22,7 @@ const categoryLabelMap = {
objects: 'Objects', objects: 'Objects',
symbols: 'Symbols', symbols: 'Symbols',
flags: 'Flags', flags: 'Flags',
extras: 'Extras',
}; };
const IS_VISIBLE = 'is-visible'; const IS_VISIBLE = 'is-visible';
......
...@@ -33,6 +33,7 @@ export function getEmojiCategoryMap() { ...@@ -33,6 +33,7 @@ export function getEmojiCategoryMap() {
objects: [], objects: [],
symbols: [], symbols: [],
flags: [], flags: [],
extras: [],
}; };
Object.keys(emojiMap).forEach((name) => { Object.keys(emojiMap).forEach((name) => {
const emoji = emojiMap[name]; const emoji = emojiMap[name];
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -122,6 +122,15 @@ they can be easily inspected. ...@@ -122,6 +122,15 @@ they can be easily inspected.
bundle exec rake services:doc 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 ## Updating Emoji Digests
To update the Emoji digests file (used for Emoji autocomplete) you must run the To update the Emoji digests file (used for Emoji autocomplete) you must run the
...@@ -131,6 +140,7 @@ following: ...@@ -131,6 +140,7 @@ following:
bundle exec rake gemojione:digests bundle exec rake gemojione:digests
``` ```
This will update the file `fixtures/emojis/digests.json` based on the currently This will update the file `fixtures/emojis/digests.json` based on the currently
available Emoji. available Emoji.
......
...@@ -339,6 +339,7 @@ ...@@ -339,6 +339,7 @@
"baguette_bread":"french_bread", "baguette_bread":"french_bread",
"anguished":"frowning", "anguished":"frowning",
"white_frowning_face":"frowning2", "white_frowning_face":"frowning2",
"rainbow_flag":"gay_pride_flag",
"goal_net":"goal", "goal_net":"goal",
"hammer_and_pick":"hammer_pick", "hammer_and_pick":"hammer_pick",
"raised_hand_with_fingers_splayed":"hand_splayed", "raised_hand_with_fingers_splayed":"hand_splayed",
...@@ -488,6 +489,7 @@ ...@@ -488,6 +489,7 @@
"slightly_smiling_face":"slight_smile", "slightly_smiling_face":"slight_smile",
"sneeze":"sneezing_face", "sneeze":"sneezing_face",
"speaking_head_in_silhouette":"speaking_head", "speaking_head_in_silhouette":"speaking_head",
"left_speech_bubble":"speech_left",
"sleuth_or_spy":"spy", "sleuth_or_spy":"spy",
"sleuth_or_spy_tone1":"spy_tone1", "sleuth_or_spy_tone1":"spy_tone1",
"sleuth_or_spy_tone2":"spy_tone2", "sleuth_or_spy_tone2":"spy_tone2",
......
...@@ -1478,7 +1478,7 @@ ...@@ -1478,7 +1478,7 @@
}, },
"cartwheel_tone4": { "cartwheel_tone4": {
"category": "activity", "category": "activity",
"moji": "🤸🏾,", "moji": "🤸🏾",
"description": "person doing cartwheel tone 4", "description": "person doing cartwheel tone 4",
"unicodeVersion": "9.0", "unicodeVersion": "9.0",
"digest": "8253afb672431c84e498014c30babb00b9284bec773009e79f7f06aa7108643e" "digest": "8253afb672431c84e498014c30babb00b9284bec773009e79f7f06aa7108643e"
...@@ -5375,6 +5375,13 @@ ...@@ -5375,6 +5375,13 @@
"unicodeVersion": "6.0", "unicodeVersion": "6.0",
"digest": "180e66f19d9285e02d0a5e859722c608206826e80323942b9938fc49d44973b1" "digest": "180e66f19d9285e02d0a5e859722c608206826e80323942b9938fc49d44973b1"
}, },
"gay_pride_flag": {
"category": "extras",
"moji": "🏳🌈",
"description": "gay_pride_flag",
"unicodeVersion": "6.0",
"digest": "924e668c559db61b7f4724a661223081c2fc60d55169f3fe1ad6156934d1d37f"
},
"gemini": { "gemini": {
"category": "symbols", "category": "symbols",
"moji": "♊", "moji": "♊",
...@@ -7578,7 +7585,7 @@ ...@@ -7578,7 +7585,7 @@
"moji": "🤶", "moji": "🤶",
"description": "mother christmas", "description": "mother christmas",
"unicodeVersion": "9.0", "unicodeVersion": "9.0",
"digest": "1f72f586ca75bd7ebb4150cdcc8199a930c32fa4b81510cb8d200f1b3ddd4076" "digest": "357d769371305a8584f46d6087a962d647b6af22fab363a44702f38ab7814091"
}, },
"mrs_claus_tone1": { "mrs_claus_tone1": {
"category": "people", "category": "people",
...@@ -10709,6 +10716,13 @@ ...@@ -10709,6 +10716,13 @@
"unicodeVersion": "6.0", "unicodeVersion": "6.0",
"digest": "817100d9979456e7d2f253ac22e13b7a2302dc1590566214915b003e403c53ca" "digest": "817100d9979456e7d2f253ac22e13b7a2302dc1590566214915b003e403c53ca"
}, },
"speech_left": {
"category": "symbols",
"moji": "🗨",
"description": "left speech bubble",
"unicodeVersion": "7.0",
"digest": "912797107d574f5665411498b6e349dbdec69846f085b6dc356548c4155e90b0"
},
"speedboat": { "speedboat": {
"category": "travel", "category": "travel",
"moji": "🚤", "moji": "🚤",
......
#!/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: '')
...@@ -4023,7 +4023,7 @@ ...@@ -4023,7 +4023,7 @@
], ],
"aliases_ascii": [], "aliases_ascii": [],
"keywords": [], "keywords": [],
"moji": "🤸🏾," "moji": "🤸🏾"
}, },
"cartwheel_tone5": { "cartwheel_tone5": {
"unicode": "1F938-1F3FF", "unicode": "1F938-1F3FF",
...@@ -14475,6 +14475,19 @@ ...@@ -14475,6 +14475,19 @@
], ],
"moji": "💎" "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": { "gemini": {
"unicode": "264A", "unicode": "264A",
"unicode_alternates": [ "unicode_alternates": [
...@@ -16830,7 +16843,6 @@ ...@@ -16830,7 +16843,6 @@
"0:-)", "0:-)",
"0:)", "0:)",
"0;^)", "0;^)",
"O:-)",
"O:)", "O:)",
"O;-)", "O;-)",
"O=)", "O=)",
...@@ -28506,6 +28518,21 @@ ...@@ -28506,6 +28518,21 @@
], ],
"moji": "💬" "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": { "speedboat": {
"unicode": "1F6A4", "unicode": "1F6A4",
"unicode_alternates": [], "unicode_alternates": [],
......
namespace :gemojione do namespace :gemojione do
desc 'Generates Emoji SHA256 digests' 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 task digests: ['yarn:check', 'environment'] do
require 'digest/sha2' require 'digest/sha2'
require 'json' require 'json'
...@@ -29,7 +52,6 @@ namespace :gemojione do ...@@ -29,7 +52,6 @@ namespace :gemojione do
end end
out = File.join(Rails.root, 'fixtures', 'emojis', 'digests.json') out = File.join(Rails.root, 'fixtures', 'emojis', 'digests.json')
File.open(out, 'w') do |handle| File.open(out, 'w') do |handle|
handle.write(JSON.pretty_generate(resultant_emoji_map)) handle.write(JSON.pretty_generate(resultant_emoji_map))
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment