Compare commits
39 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a844c2c1f7 | ||
|
|
ece49a0f11 | ||
|
|
27e6ef7bc0 | ||
|
|
b67f98a130 | ||
|
|
282ae85ea0 | ||
|
|
baa55a8eda | ||
|
|
4db892b66b | ||
|
|
8db84353e4 | ||
|
|
7f9b0eaca9 | ||
|
|
3e9c7cc8fb | ||
|
|
808cb099de | ||
|
|
8441803d17 | ||
|
|
8781d47ddb | ||
|
|
88fce2aa9e | ||
|
|
b9fa07e0e2 | ||
|
|
6723776d77 | ||
|
|
5179cd8159 | ||
|
|
198d829f42 | ||
|
|
5446d53d36 | ||
|
|
77e1fb9e71 | ||
|
|
cf468c1cfd | ||
|
|
6d538220a2 | ||
|
|
cf1632ef7a | ||
|
|
de74b4ec57 | ||
|
|
f7af2578a1 | ||
|
|
08ddb3bd7d | ||
|
|
bde981dad7 | ||
|
|
13f9ecc764 | ||
|
|
33adca56ea | ||
|
|
3ede22022f | ||
|
|
8bf88ab86e | ||
|
|
1e9e262ddf | ||
|
|
c03becb3a0 | ||
|
|
ffcccd85c7 | ||
|
|
175fbfb2c3 | ||
|
|
a9e9415fcc | ||
|
|
892ac6274d | ||
|
|
7ffe22d83c | ||
|
|
c0c2f10406 |
12
LICENSE
12
LICENSE
@@ -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.
|
||||
|
||||
27
MAINTAINING.md
Normal file
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
|
||||
```
|
||||
37
README.md
37
README.md
@@ -5,17 +5,48 @@ 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 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.
|
||||
|
||||
``` 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 may not be ideal for referencing from cached content.
|
||||
|
||||
|
||||
Example Rails Helper
|
||||
====================
|
||||
--------------------
|
||||
|
||||
This would allow emojifying content such as: `it's raining :cats: and :dogs:!`
|
||||
|
||||
|
||||
7
Rakefile
Normal file
7
Rakefile
Normal file
@@ -0,0 +1,7 @@
|
||||
desc "Checks for missing aliases to unicode sources"
|
||||
task :unnamed do
|
||||
unicodes = Dir["./images/emoji/unicode/*.png"].map { |fn| File.basename(fn) }
|
||||
aliases = Dir["./images/emoji/*.png"].select { |fn| File.symlink?(fn) }.map { |fn| File.basename(fn) }
|
||||
used_unicodes = aliases.map { |name| File.basename(File.readlink("./images/emoji/#{name}")) }.uniq
|
||||
puts unicodes - used_unicodes
|
||||
end
|
||||
@@ -1,6 +1,6 @@
|
||||
Gem::Specification.new do |s|
|
||||
s.name = "gemoji"
|
||||
s.version = "1.1.3"
|
||||
s.version = "1.4.0"
|
||||
s.summary = "Emoji Assets"
|
||||
s.description = "Emoji assets"
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
unicode/e00e.png
|
||||
unicode/1f44d.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e421.png
|
||||
unicode/1f44e.png
|
||||
@@ -1 +0,0 @@
|
||||
unicode/e50a.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e42c.png
|
||||
unicode/1f3b1.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e532.png
|
||||
unicode/1f170.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e534.png
|
||||
unicode/1f18e.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e01d.png
|
||||
unicode/2708.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e10c.png
|
||||
unicode/1f47d.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e431.png
|
||||
unicode/1f691.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e04e.png
|
||||
unicode/1f47c.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e334.png
|
||||
unicode/1f4a2.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e059.png
|
||||
unicode/1f620.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e345.png
|
||||
unicode/1f34e.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e249.png
|
||||
unicode/2652.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e23f.png
|
||||
unicode/2648.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e23b.png
|
||||
unicode/25c0.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e233.png
|
||||
unicode/2b07.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e23a.png
|
||||
unicode/25b6.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e235.png
|
||||
unicode/2b05.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e239.png
|
||||
unicode/2199.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e238.png
|
||||
unicode/2198.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e234.png
|
||||
unicode/27a1.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e232.png
|
||||
unicode/2b06.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e237.png
|
||||
unicode/2196.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e236.png
|
||||
unicode/2197.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e502.png
|
||||
unicode/1f3a8.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e410.png
|
||||
unicode/1f632.png
|
||||
1
images/emoji/athletic_shoe.png
Symbolic link
1
images/emoji/athletic_shoe.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/1f45f.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e154.png
|
||||
unicode/1f3e7.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e533.png
|
||||
unicode/1f171.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e51a.png
|
||||
unicode/1f476.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e523.png
|
||||
unicode/1f424.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e13a.png
|
||||
unicode/1f6bc.png
|
||||
1
images/emoji/back.png
Symbolic link
1
images/emoji/back.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/1f519.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e310.png
|
||||
unicode/1f388.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e436.png
|
||||
unicode/1f38d.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e14d.png
|
||||
unicode/1f3e6.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e320.png
|
||||
unicode/1f488.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e016.png
|
||||
unicode/26be.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e42a.png
|
||||
unicode/1f3c0.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e13f.png
|
||||
unicode/1f6c0.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e051.png
|
||||
unicode/1f43b.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e047.png
|
||||
unicode/1f37a.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e30c.png
|
||||
unicode/1f37b.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e209.png
|
||||
unicode/1f530.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e325.png
|
||||
unicode/1f514.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e34c.png
|
||||
unicode/1f371.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e136.png
|
||||
unicode/1f6b2.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e322.png
|
||||
unicode/1f459.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e521.png
|
||||
unicode/1f426.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e34b.png
|
||||
unicode/1f382.png
|
||||
1
images/emoji/black_large_square.png
Symbolic link
1
images/emoji/black_large_square.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/2b1b.png
|
||||
1
images/emoji/black_medium_small_square.png
Symbolic link
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
1
images/emoji/black_medium_square.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/25fc.png
|
||||
1
images/emoji/black_small_square.png
Symbolic link
1
images/emoji/black_small_square.png
Symbolic link
@@ -0,0 +1 @@
|
||||
unicode/25aa.png
|
||||
@@ -1 +0,0 @@
|
||||
unicode/e21a.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e42e.png
|
||||
unicode/1f699.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e32a.png
|
||||
unicode/1f499.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e056.png
|
||||
unicode/1f60a.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e52f.png
|
||||
unicode/1f417.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e01c.png
|
||||
unicode/26f5.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e311.png
|
||||
unicode/1f4a3.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e148.png
|
||||
unicode/1f4d6.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e31b.png
|
||||
unicode/1f462.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e306.png
|
||||
unicode/1f490.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e426.png
|
||||
unicode/1f647.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e001.png
|
||||
unicode/1f466.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e339.png
|
||||
unicode/1f35e.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e11e.png
|
||||
unicode/1f4bc.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e023.png
|
||||
unicode/1f494.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e525.png
|
||||
unicode/1f41b.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e10f.png
|
||||
unicode/1f4a1.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e01f.png
|
||||
unicode/1f685.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e435.png
|
||||
unicode/1f684.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e159.png
|
||||
unicode/1f68c.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e150.png
|
||||
unicode/1f68f.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e308.png
|
||||
unicode/1f335.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e046.png
|
||||
unicode/1f370.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e104.png
|
||||
unicode/1f4f2.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e530.png
|
||||
unicode/1f42b.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e008.png
|
||||
unicode/1f4f7.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e242.png
|
||||
unicode/264b.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e248.png
|
||||
unicode/2651.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e01b.png
|
||||
unicode/1f697.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e04f.png
|
||||
unicode/1f431.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e126.png
|
||||
unicode/1f4bf.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e14a.png
|
||||
unicode/1f4b9.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e132.png
|
||||
unicode/1f3c1.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e030.png
|
||||
unicode/1f338.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e52e.png
|
||||
unicode/1f414.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e033.png
|
||||
unicode/1f384.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e037.png
|
||||
unicode/26ea.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e507.png
|
||||
unicode/1f3a6.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e44a.png
|
||||
unicode/1f307.png
|
||||
@@ -1 +1 @@
|
||||
unicode/e146.png
|
||||
unicode/1f306.png
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user