Permalink
Browse files

Merge pull request #24 from danthompson/non_rails_support

Add non rails support
  • Loading branch information...
2 parents b67f98a + 27e6ef7 commit ece49a0f11129c82de2cf9fd49f87bfa98c14c83 @josh josh committed Jan 9, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +2 −2 lib/tasks/emoji.rake
View
@@ -15,7 +15,7 @@ gem 'gemoji'
**Sync images**
-Images can be copied to your public directory with `rake emoji` in your Rails app. This is the recommended approach since the images will be available at a consistent location. This works best with cached formatted user content generated by tools like [html-pipeline](https://github.com/jch/html-pipeline).
+Images can be copied to your public directory with `rake emoji` in your app. This is the recommended approach since the images will be available at a consistent location. This works best with cached formatted user content generated by tools like [html-pipeline](https://github.com/jch/html-pipeline).
``` ruby
# Rakefile
View
@@ -1,8 +1,8 @@
desc "Copy emoji to the Rails `public/images/emoji` directory"
-task :emoji => :environment do
+task :emoji do
require 'emoji'
- target = "#{Rails.root}/public/images/emoji"
+ target = "#{Rake.original_dir}/public/images/emoji"
mkdir_p "#{target}"
Dir["#{Emoji.images_path}/emoji/*.png"].each do |src|

0 comments on commit ece49a0

Please sign in to comment.