Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove external dependencies

  • Loading branch information...
commit 27e6ef7bc0e16abbb595bd135ad929383ee5fb0a 1 parent 808cb09
@danthompson danthompson authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/tasks/emoji.rake
View
8 lib/tasks/emoji.rake
@@ -1,12 +1,8 @@
-task :environment
-
desc "Copy emoji to the Rails `public/images/emoji` directory"
-task :emoji => :environment do
+task :emoji do
require 'emoji'
- root = defined?(Rails) ? Rails.root : Rake.original_dir
-
- target = "#{root}/public/images/emoji"
+ target = "#{Rake.original_dir}/public/images/emoji"
mkdir_p "#{target}"
Dir["#{Emoji.images_path}/emoji/*.png"].each do |src|
Please sign in to comment.
Something went wrong with that request. Please try again.