Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5446d53d36 | ||
|
|
77e1fb9e71 | ||
|
|
cf468c1cfd | ||
|
|
6d538220a2 | ||
|
|
cf1632ef7a | ||
|
|
de74b4ec57 | ||
|
|
f7af2578a1 | ||
|
|
08ddb3bd7d | ||
|
|
bde981dad7 | ||
|
|
13f9ecc764 | ||
|
|
33adca56ea | ||
|
|
3ede22022f | ||
|
|
8bf88ab86e | ||
|
|
1e9e262ddf |
27
MAINTAINING.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Maintainers
|
||||
|
||||
## Releasing a new gem
|
||||
|
||||
If you are just adding new emoji or making a small fix, only increment the patch level "1.0.x". If you need to rename a ton of emojis or making any other radical (but still mostly backwards compatible changes), bump the minor version "1.x.x".
|
||||
|
||||
### Make a release commit
|
||||
|
||||
To prepare the release commit, edit the [gemoji.gemspec](https://github.com/github/gemoji/blob/master/gemoji.gemspec) `version` value. Then make a single commit with the description as "Gemoji 1.x.x". Finally, tag the commit with `v1.x.x`.
|
||||
|
||||
Example commit https://github.com/github/gemoji/commit/v1.0.0
|
||||
|
||||
```
|
||||
$ git ci -m "Gemoji 1.0.0"
|
||||
$ git tag v1.0.0
|
||||
$ git push
|
||||
$ git push --tags
|
||||
```
|
||||
|
||||
### Publish the gem
|
||||
|
||||
Build and push the new gem with
|
||||
|
||||
```
|
||||
$ gem build gemoji.gemspec
|
||||
$ gem push gemoji-1.0.0.gem
|
||||
```
|
||||
28
README.md
@@ -5,17 +5,39 @@ Emoji images and names. See the LICENSE for copyright information.
|
||||
|
||||
|
||||
Installation
|
||||
============
|
||||
------------
|
||||
|
||||
Add `gemoji` to you Gemfile.
|
||||
|
||||
``` ruby
|
||||
gem 'gemoji', :require => 'emoji/railtie'
|
||||
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).
|
||||
|
||||
**Assets Precompiling**
|
||||
|
||||
If you must, you can manually add all the images to your asset load path.
|
||||
|
||||
``` ruby
|
||||
# config/application.rb
|
||||
config.assets.paths << Emoji.images_path
|
||||
```
|
||||
|
||||
Then have them compiled to public on deploy.
|
||||
|
||||
``` ruby
|
||||
# config/application.rb
|
||||
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.
|
||||
|
||||
|
||||
Example Rails Helper
|
||||
====================
|
||||
--------------------
|
||||
|
||||
This would allow emojifying content such as: `it's raining :cats: and :dogs:!`
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Gem::Specification.new do |s|
|
||||
s.name = "gemoji"
|
||||
s.version = "1.2.0"
|
||||
s.version = "1.3.0"
|
||||
s.summary = "Emoji Assets"
|
||||
s.description = "Emoji assets"
|
||||
|
||||
|
||||
1
images/emoji/back.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/1f519.png
|
||||
1
images/emoji/black_medium_small_square.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/25fe.png
|
||||
1
images/emoji/black_medium_square.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/25fc.png
|
||||
1
images/emoji/black_small_square.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/25aa.png
|
||||
@@ -1 +1 @@
|
||||
unicode/1f1e8.png
|
||||
unicode/1f1e8-1f1f3.png
|
||||
@@ -1 +1 @@
|
||||
unicode/1f1e9.png
|
||||
unicode/1f1e9-1f1ea.png
|
||||
@@ -1 +1 @@
|
||||
unicode/1f1ea.png
|
||||
unicode/1f1ea-1f1f8.png
|
||||
@@ -1 +1 @@
|
||||
unicode/1f1eb.png
|
||||
unicode/1f1eb-1f1f7.png
|
||||
@@ -1 +1 @@
|
||||
unicode/1f1ec.png
|
||||
unicode/1f1ec-1f1e7.png
|
||||
@@ -1 +1 @@
|
||||
unicode/1f1ee.png
|
||||
unicode/1f1ee-1f1f9.png
|
||||
@@ -1 +1 @@
|
||||
unicode/1f1ef.png
|
||||
unicode/1f1ef-1f1f5.png
|
||||
@@ -1 +1 @@
|
||||
unicode/1f1f0.png
|
||||
unicode/1f1f0-1f1f7.png
|
||||
1
images/emoji/package.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/1f4e6.png
|
||||
@@ -1 +1 @@
|
||||
unicode/1f1f7.png
|
||||
unicode/1f1f7-1f1fa.png
|
||||
1
images/emoji/sparkle.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/2747.png
|
||||
@@ -1 +1 @@
|
||||
unicode/1f1ec.png
|
||||
unicode/1f1ec-1f1e7.png
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
BIN
images/emoji/unicode/1f4e6.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
images/emoji/unicode/1f519.png
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
BIN
images/emoji/unicode/25aa.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
images/emoji/unicode/25ab.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
images/emoji/unicode/25fb.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
images/emoji/unicode/25fc.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
images/emoji/unicode/25fd.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
images/emoji/unicode/25fe.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
images/emoji/unicode/2747.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
@@ -1 +1 @@
|
||||
unicode/1f1fa.png
|
||||
unicode/1f1fa-1f1f8.png
|
||||
1
images/emoji/white_medium_small_square.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/25fd.png
|
||||
1
images/emoji/white_medium_square.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/25fb.png
|
||||
1
images/emoji/white_small_square.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/25ab.png
|
||||
@@ -1,14 +1,6 @@
|
||||
require 'emoji'
|
||||
require 'rails'
|
||||
warn "requiring 'emoji/railtie' is deprecated. " +
|
||||
"Please manually add Emoji.images_path to your config.assets.paths."
|
||||
|
||||
module Emoji
|
||||
class Engine < Rails::Engine
|
||||
rake_tasks do
|
||||
load "tasks/emoji.rake"
|
||||
end
|
||||
|
||||
initializer :emoji, :group => :assets do |app|
|
||||
app.config.assets.paths << Emoji.images_path
|
||||
end
|
||||
end
|
||||
end
|
||||
# Automatic path configuration via a railtie is intentionally removed.
|
||||
# Please see the README for details. Any patches to readded it by a
|
||||
# non-repo collab will be closed without comment.
|
||||
|
||||