Sha256: 487e92eb8ad588d5641a3c6f9bebc74c769c62237ea1c940548b700466471a7f

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 Bytes

Contents

desc "Copy emoji to the Rails `public/images/emoji` directory"
task :emoji do
  require 'emoji'

  target = "#{Rake.original_dir}/public/images/emoji"

  mkdir_p "#{target}"
  Dir["#{Emoji.images_path}/emoji/*.png"].each do |src|
    cp src, "#{target}/"
  end

  mkdir_p "#{target}/unicode"
  Dir["#{Emoji.images_path}/emoji/unicode/*.png"].each do |src|
    cp src, "#{target}/unicode/"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gemoji-1.5.0 lib/tasks/emoji.rake
gemoji-1.4.0 lib/tasks/emoji.rake