зеркало из https://github.com/github/gemoji.git
Add new Unicode 12 emoji
This commit is contained in:
Родитель
ff9b85268e
Коммит
6f5518a9ed
|
@ -33,8 +33,8 @@ for category in categories
|
|||
output_item.update(
|
||||
aliases: [emoji_item[:description].gsub(/\W+/, '_').downcase],
|
||||
tags: [],
|
||||
unicode_version: "11.0",
|
||||
ios_version: "12.1",
|
||||
unicode_version: "12.0",
|
||||
ios_version: "13.0",
|
||||
)
|
||||
end
|
||||
output_item[:skin_tones] = true if emoji_item[:skin_tones]
|
||||
|
|
920
db/emoji.json
920
db/emoji.json
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -116,7 +116,20 @@ class EmojiTest < TestCase
|
|||
assert_equal [], missing.map(&:name), "some emoji don't have a category"
|
||||
|
||||
emoji = Emoji.find_by_alias('family_man_woman_girl')
|
||||
assert_equal 'Smileys & People', emoji.category
|
||||
assert_equal 'People & Body', emoji.category
|
||||
|
||||
categories = Emoji.all.map(&:category).uniq.compact
|
||||
assert_equal [
|
||||
"Smileys & Emotion",
|
||||
"People & Body",
|
||||
"Animals & Nature",
|
||||
"Food & Drink",
|
||||
"Travel & Places",
|
||||
"Activities",
|
||||
"Objects",
|
||||
"Symbols",
|
||||
"Flags",
|
||||
], categories
|
||||
end
|
||||
|
||||
test "emoji have description" do
|
||||
|
|
Загрузка…
Ссылка в новой задаче