Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a844c2c1f7 | ||
|
|
ece49a0f11 | ||
|
|
27e6ef7bc0 | ||
|
|
b67f98a130 | ||
|
|
282ae85ea0 | ||
|
|
808cb099de | ||
|
|
8441803d17 | ||
|
|
8781d47ddb |
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Gem::Specification.new do |s|
|
||||
s.name = "gemoji"
|
||||
s.version = "1.3.1"
|
||||
s.version = "1.4.0"
|
||||
s.summary = "Emoji Assets"
|
||||
s.description = "Emoji assets"
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user