summaryrefslogtreecommitdiff
path: root/lib/banzai/filter/emoji_filter.rb
diff options
context:
space:
mode:
authorConnor Shea <connor.james.shea@gmail.com>2016-06-25 15:48:12 -0600
committerConnor Shea <connor.james.shea@gmail.com>2016-06-29 14:53:09 -0600
commitf31f78cea32b1650d5cb0a7784a28848b8446e89 (patch)
tree07996228b1a7fd9e3335a0be680a55c6dc010997 /lib/banzai/filter/emoji_filter.rb
parent84113d7e725dcf6f9a3945853475f0cede957fec (diff)
downloadgitlab-ce-f31f78cea32b1650d5cb0a7784a28848b8446e89.tar.gz
Add emoji.rb in lib/gitlab instead of using the gitlab_emoji gem.update-gemoji
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
Diffstat (limited to 'lib/banzai/filter/emoji_filter.rb')
-rw-r--r--lib/banzai/filter/emoji_filter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/banzai/filter/emoji_filter.rb b/lib/banzai/filter/emoji_filter.rb
index d25de900674..ae7d31cf191 100644
--- a/lib/banzai/filter/emoji_filter.rb
+++ b/lib/banzai/filter/emoji_filter.rb
@@ -61,7 +61,7 @@ module Banzai
# Build a regexp that matches all valid :emoji: names.
def self.emoji_pattern
- @emoji_pattern ||= /:(#{Emoji.emojis_names.map { |name| Regexp.escape(name) }.join('|')}):/
+ @emoji_pattern ||= /:(#{Gitlab::Emoji.emojis_names.map { |name| Regexp.escape(name) }.join('|')}):/
end
def emoji_pattern
@@ -69,7 +69,7 @@ module Banzai
end
def emoji_filename(name)
- "#{Emoji.emoji_filename(name)}.png"
+ "#{Gitlab::Emoji.emoji_filename(name)}.png"
end
end
end