mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 04:36:11 +10:00
No reason to split it into a separate gem when the gem barely did anything. We can use gemojione directly, making updating gemojione that much easier. Also fix the Rake task and update gemojione to 2.6.1. This adds the EmojiOne Spring update. Changelog: https://github.com/jonathanwiesel/gemojione/blob/master/CHANGELOG.md
22 lines
358 B
Ruby
22 lines
358 B
Ruby
module Gitlab
|
|
module Emoji
|
|
extend self
|
|
|
|
def emojis
|
|
Gemojione.index.instance_variable_get(:@emoji_by_name)
|
|
end
|
|
|
|
def emojis_by_moji
|
|
Gemojione.index.instance_variable_get(:@emoji_by_moji)
|
|
end
|
|
|
|
def emojis_names
|
|
emojis.keys.sort
|
|
end
|
|
|
|
def emoji_filename(name)
|
|
emojis[name]["unicode"]
|
|
end
|
|
end
|
|
end
|