gemoji 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +10 -1
- data/images/emoji/fu.png +0 -0
- data/lib/tasks/emoji.rake +1 -0
- metadata +4 -3
data/README.md
CHANGED
@@ -17,6 +17,15 @@ gem 'gemoji'
|
|
17
17
|
|
18
18
|
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).
|
19
19
|
|
20
|
+
``` ruby
|
21
|
+
# Rakefile
|
22
|
+
load 'tasks/emoji.rake'
|
23
|
+
```
|
24
|
+
|
25
|
+
```
|
26
|
+
$ rake emoji
|
27
|
+
```
|
28
|
+
|
20
29
|
**Assets Precompiling**
|
21
30
|
|
22
31
|
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.
|
|
33
42
|
config.assets.precompile << "emoji/*.png"
|
34
43
|
```
|
35
44
|
|
36
|
-
**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
|
45
|
+
**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.
|
37
46
|
|
38
47
|
|
39
48
|
Example Rails Helper
|
data/images/emoji/fu.png
ADDED
Binary file
|
data/lib/tasks/emoji.rake
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemoji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-08 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Emoji assets
|
15
15
|
email: support@github.com
|
@@ -339,6 +339,7 @@ files:
|
|
339
339
|
- images/emoji/fries.png
|
340
340
|
- images/emoji/frog.png
|
341
341
|
- images/emoji/frowning.png
|
342
|
+
- images/emoji/fu.png
|
342
343
|
- images/emoji/fuelpump.png
|
343
344
|
- images/emoji/full_moon.png
|
344
345
|
- images/emoji/full_moon_with_face.png
|
@@ -1767,7 +1768,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1767
1768
|
version: '0'
|
1768
1769
|
requirements: []
|
1769
1770
|
rubyforge_project:
|
1770
|
-
rubygems_version: 1.8.
|
1771
|
+
rubygems_version: 1.8.23
|
1771
1772
|
signing_key:
|
1772
1773
|
specification_version: 3
|
1773
1774
|
summary: Emoji Assets
|