gemoji 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -5,17 +5,39 @@ Emoji images and names. See the LICENSE for copyright information.
5
5
 
6
6
 
7
7
  Installation
8
- ============
8
+ ------------
9
9
 
10
10
  Add `gemoji` to you Gemfile.
11
11
 
12
12
  ``` ruby
13
- gem 'gemoji', :require => 'emoji/railtie'
13
+ gem 'gemoji'
14
14
  ```
15
15
 
16
+ **Sync images**
17
+
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
+
20
+ **Assets Precompiling**
21
+
22
+ If you must, you can manually add all the images to your asset load path.
23
+
24
+ ``` ruby
25
+ # config/application.rb
26
+ config.assets.paths << Emoji.images_path
27
+ ```
28
+
29
+ Then have them compiled to public on deploy.
30
+
31
+ ``` ruby
32
+ # config/application.rb
33
+ config.assets.precompile << "emoji/*.png"
34
+ ```
35
+
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 many not be ideal for referencing from cached content.
37
+
16
38
 
17
39
  Example Rails Helper
18
- ====================
40
+ --------------------
19
41
 
20
42
  This would allow emojifying content such as: `it's raining :cats: and :dogs:!`
21
43
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/emoji/railtie.rb CHANGED
@@ -1,14 +1,6 @@
1
- require 'emoji'
2
- require 'rails'
1
+ warn "requiring 'emoji/railtie' is deprecated. " +
2
+ "Please manually add Emoji.images_path to your config.assets.paths."
3
3
 
4
- module Emoji
5
- class Engine < Rails::Engine
6
- rake_tasks do
7
- load "tasks/emoji.rake"
8
- end
9
-
10
- initializer :emoji, :group => :assets do |app|
11
- app.config.assets.paths << Emoji.images_path
12
- end
13
- end
14
- end
4
+ # Automatic path configuration via a railtie is intentionally removed.
5
+ # Please see the README for details. Any patches to readded it by a
6
+ # non-repo collab will be closed without comment.
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.2.1
4
+ version: 1.3.0
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: 2012-11-16 00:00:00.000000000 Z
12
+ date: 2012-11-29 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Emoji assets
15
15
  email: support@github.com
@@ -876,16 +876,16 @@ files:
876
876
  - images/emoji/unicode/1f198.png
877
877
  - images/emoji/unicode/1f199.png
878
878
  - images/emoji/unicode/1f19a.png
879
- - images/emoji/unicode/1f1e8.png
880
- - images/emoji/unicode/1f1e9.png
881
- - images/emoji/unicode/1f1ea.png
882
- - images/emoji/unicode/1f1eb.png
883
- - images/emoji/unicode/1f1ec.png
884
- - images/emoji/unicode/1f1ee.png
885
- - images/emoji/unicode/1f1ef.png
886
- - images/emoji/unicode/1f1f0.png
887
- - images/emoji/unicode/1f1f7.png
888
- - images/emoji/unicode/1f1fa.png
879
+ - images/emoji/unicode/1f1e8-1f1f3.png
880
+ - images/emoji/unicode/1f1e9-1f1ea.png
881
+ - images/emoji/unicode/1f1ea-1f1f8.png
882
+ - images/emoji/unicode/1f1eb-1f1f7.png
883
+ - images/emoji/unicode/1f1ec-1f1e7.png
884
+ - images/emoji/unicode/1f1ee-1f1f9.png
885
+ - images/emoji/unicode/1f1ef-1f1f5.png
886
+ - images/emoji/unicode/1f1f0-1f1f7.png
887
+ - images/emoji/unicode/1f1f7-1f1fa.png
888
+ - images/emoji/unicode/1f1fa-1f1f8.png
889
889
  - images/emoji/unicode/1f201.png
890
890
  - images/emoji/unicode/1f202.png
891
891
  - images/emoji/unicode/1f21a.png