Commit 3403bdc5 authored by Eric Eastwood's avatar Eric Eastwood
parent d20a6033
Pipeline #6899788 passed with stages
in 92 minutes and 16 seconds
This diff is collapsed.
......@@ -31,7 +31,7 @@ module Gitlab
def emoji_unicode_version(name)
@emoji_unicode_versions_by_name ||= JSON.parse('node_modules', 'emoji-unicode-version', 'emoji-unicode-version-map.json')))
@emoji_unicode_versions_by_name ||= JSON.parse('fixtures', 'emojis', 'emoji-unicode-version-map.json')))
namespace :gemojione do
desc 'Generates Emoji SHA256 digests'
task digests: :environment do
task digests: ['yarn:check', 'environment'] do
require 'digest/sha2'
require 'json'
# We don't have `node_modules` available in built versions of GitLab
FileUtils.cp_r(Rails.root.join('node_modules', 'emoji-unicode-version', 'emoji-unicode-version-map.json'), File.join(Rails.root, 'fixtures', 'emojis'))
dir = Gemojione.images_path
resultant_emoji_map = {}
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