Compare commits

...

10 Commits

Author SHA1 Message Date
Trevor Turk
baa55a8eda Gemoji 1.3.1 2013-01-08 11:41:55 -06:00
Jamie Dihiansan
4db892b66b Changed dates to 2013 2013-01-08 08:17:28 -06:00
Jamie Dihiansan
8db84353e4 Merge pull request #25 from github/fu
added 🖕
2013-01-08 06:14:14 -08:00
Jamie Dihiansan
7f9b0eaca9 cleaned up fu image 2013-01-08 08:09:15 -06:00
Jamie Dihiansan
3e9c7cc8fb added 🖕 2013-01-07 16:23:38 -06:00
Julia West
88fce2aa9e Merge pull request #22 from danthompson/typo
Fix readme typo
2013-01-03 14:39:19 -08:00
Dan Thompson
b9fa07e0e2 Fix readme typo 2013-01-03 17:24:44 -05:00
Joshua Peek
6723776d77 Merge pull request #21 from rsenk330/rakefile-desc
Add a description to the emoji rake task.
2012-12-05 05:59:25 -08:00
Ryan Senkbeil
5179cd8159 Add a description to the emoji rake task.
This makes it show up when using `rake -T`.
2012-12-04 13:42:50 -06:00
Joshua Peek
198d829f42 Load tasks 2012-11-29 11:30:57 -06:00
5 changed files with 18 additions and 8 deletions

12
LICENSE
View File

@@ -1,14 +1,14 @@
octocat, squirrel, shipit
Copyright (c) 2012 GitHub Inc. All rights reserved.
Copyright (c) 2013 GitHub Inc. All rights reserved.
bowtie, neckbeard
Copyright (c) 2012 37signals, LLC. All rights reserved.
bowtie, neckbeard, fu
Copyright (c) 2013 37signals, LLC. All rights reserved.
feelsgood, finnadie, goberserk, godmode, hurtrealbad, rage 1-4, suspect
Copyright (c) 2012 id Software. All rights reserved.
Copyright (c) 2013 id Software. All rights reserved.
trollface
Copyright (c) 2012 whynne@deviantart. All rights reserved.
Copyright (c) 2013 whynne@deviantart. All rights reserved.
All other images
Copyright (c) 2012 Apple Inc. All rights reserved.
Copyright (c) 2013 Apple Inc. All rights reserved.

View File

@@ -17,6 +17,15 @@ gem 'gemoji'
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).
``` ruby
# Rakefile
load 'tasks/emoji.rake'
```
```
$ rake emoji
```
**Assets Precompiling**
If you must, you can manually add all the images to your asset load path.
@@ -33,7 +42,7 @@ Then have them compiled to public on deploy.
config.assets.precompile << "emoji/*.png"
```
**WARNING** Since there are a ton of images, just adding the path may slow down other lookups if you aren't using it. Compiling all the emojis on deploy will add overhead to your deploy if even the images haven't changed. Theres just so many more superfluous files to iterate over. Also, the urls will be fingerprinted which many not be ideal for referencing from cached content.
**WARNING** Since there are a ton of images, just adding the path may slow down other lookups if you aren't using it. Compiling all the emojis on deploy will add overhead to your deploy if even the images haven't changed. Theres just so many more superfluous files to iterate over. Also, the urls will be fingerprinted which may not be ideal for referencing from cached content.
Example Rails Helper

View File

@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "gemoji"
s.version = "1.3.0"
s.version = "1.3.1"
s.summary = "Emoji Assets"
s.description = "Emoji assets"

BIN
images/emoji/fu.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -1,3 +1,4 @@
desc "Copy emoji to the Rails `public/images/emoji` directory"
task :emoji => :environment do
require 'emoji'