Compare commits

...

21 Commits

Author SHA1 Message Date
Joshua Peek
5446d53d36 Gemoji 1.3.0 2012-11-29 11:08:46 -06:00
Joshua Peek
77e1fb9e71 Editing 2012-11-29 10:45:33 -06:00
Joshua Peek
cf468c1cfd Fix syntax error 2012-11-29 10:44:29 -06:00
Joshua Peek
6d538220a2 🔥 railtie 2012-11-29 10:42:52 -06:00
Joshua Peek
cf1632ef7a railtie 2012-11-29 10:23:41 -06:00
Joshua Peek
de74b4ec57 Merge pull request #20 from lautis/flags
Correct UTF-8 code points for flags
2012-11-29 08:18:03 -08:00
Ville Lautanala
f7af2578a1 Correct UTF-8 code points for flags
Flags are rendered in place of country's ISO 3166 code, encoded using "regional indicator symbols".
2012-11-29 13:00:29 +02:00
Joshua Peek
08ddb3bd7d Fix syntax 2012-11-16 13:17:54 -06:00
Joshua Peek
bde981dad7 emoji -> gemoji 2012-11-16 13:11:28 -06:00
Joshua Peek
13f9ecc764 Merge branch 'master' of https://github.com/github/gemoji 2012-11-16 13:09:43 -06:00
Joshua Peek
33adca56ea Add maintainer release notes 2012-11-16 13:09:29 -06:00
Julia West
3ede22022f Gemoji 1.2.1 2012-11-16 14:07:08 -05:00
Julia West
8bf88ab86e Merge pull request #17 from github/more-missing-emoji
Adding missing squares, 'sparkle', 'package', and 'back'.
2012-11-16 10:34:42 -08:00
Julia West
1e9e262ddf Adding missing squares, sparkle, package, and back.
- Renaming existing squares for consistency with sized naming convention.
2012-11-16 11:31:26 -05:00
Joshua Peek
c03becb3a0 Gemoji 1.2.0 2012-11-15 00:14:54 -06:00
Joshua Peek
ffcccd85c7 More corrections 2012-11-15 00:10:52 -06:00
Joshua Peek
175fbfb2c3 Fix miss named emoji 2012-11-14 23:50:28 -06:00
Joshua Peek
a9e9415fcc Merge pull request #16 from github/updated-code-points
Updated the 1st-gen emoji code points
2012-11-14 16:08:03 -08:00
Joshua Peek
892ac6274d Copy unicode images too 2012-11-14 17:50:21 -06:00
Joshua Peek
7ffe22d83c Add task to find unnamed images 2012-11-14 17:38:51 -06:00
Julia West
c0c2f10406 Recoding 1st-gen emoji. 2012-11-14 17:53:42 -05:00
989 changed files with 574 additions and 502 deletions

27
MAINTAINING.md Normal file
View 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
```

View File

@@ -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:!`

7
Rakefile Normal file
View 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

View File

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

View File

@@ -1 +1 @@
unicode/e00e.png
unicode/1f44d.png

View File

@@ -1 +1 @@
unicode/e421.png
unicode/1f44e.png

View File

@@ -1 +0,0 @@
unicode/e50a.png

View File

@@ -1 +1 @@
unicode/e42c.png
unicode/1f3b1.png

View File

@@ -1 +1 @@
unicode/e532.png
unicode/1f170.png

View File

@@ -1 +1 @@
unicode/e534.png
unicode/1f18e.png

View File

@@ -1 +1 @@
unicode/e01d.png
unicode/2708.png

View File

@@ -1 +1 @@
unicode/e10c.png
unicode/1f47d.png

View File

@@ -1 +1 @@
unicode/e431.png
unicode/1f691.png

View File

@@ -1 +1 @@
unicode/e04e.png
unicode/1f47c.png

View File

@@ -1 +1 @@
unicode/e334.png
unicode/1f4a2.png

View File

@@ -1 +1 @@
unicode/e059.png
unicode/1f620.png

View File

@@ -1 +1 @@
unicode/e345.png
unicode/1f34e.png

View File

@@ -1 +1 @@
unicode/e249.png
unicode/2652.png

View File

@@ -1 +1 @@
unicode/e23f.png
unicode/2648.png

View File

@@ -1 +1 @@
unicode/e23b.png
unicode/25c0.png

View File

@@ -1 +1 @@
unicode/e233.png
unicode/2b07.png

View File

@@ -1 +1 @@
unicode/e23a.png
unicode/25b6.png

View File

@@ -1 +1 @@
unicode/e235.png
unicode/2b05.png

View File

@@ -1 +1 @@
unicode/e239.png
unicode/2199.png

View File

@@ -1 +1 @@
unicode/e238.png
unicode/2198.png

View File

@@ -1 +1 @@
unicode/e234.png
unicode/27a1.png

View File

@@ -1 +1 @@
unicode/e232.png
unicode/2b06.png

View File

@@ -1 +1 @@
unicode/e237.png
unicode/2196.png

View File

@@ -1 +1 @@
unicode/e236.png
unicode/2197.png

View File

@@ -1 +1 @@
unicode/e502.png
unicode/1f3a8.png

View File

@@ -1 +1 @@
unicode/e410.png
unicode/1f632.png

View File

@@ -0,0 +1 @@
unicode/1f45f.png

View File

@@ -1 +1 @@
unicode/e154.png
unicode/1f3e7.png

View File

@@ -1 +1 @@
unicode/e533.png
unicode/1f171.png

View File

@@ -1 +1 @@
unicode/e51a.png
unicode/1f476.png

View File

@@ -1 +1 @@
unicode/e523.png
unicode/1f424.png

View File

@@ -1 +1 @@
unicode/e13a.png
unicode/1f6bc.png

1
images/emoji/back.png Symbolic link
View File

@@ -0,0 +1 @@
unicode/1f519.png

View File

@@ -1 +1 @@
unicode/e310.png
unicode/1f388.png

View File

@@ -1 +1 @@
unicode/e436.png
unicode/1f38d.png

View File

@@ -1 +1 @@
unicode/e14d.png
unicode/1f3e6.png

View File

@@ -1 +1 @@
unicode/e320.png
unicode/1f488.png

View File

@@ -1 +1 @@
unicode/e016.png
unicode/26be.png

View File

@@ -1 +1 @@
unicode/e42a.png
unicode/1f3c0.png

View File

@@ -1 +1 @@
unicode/e13f.png
unicode/1f6c0.png

View File

@@ -1 +1 @@
unicode/e051.png
unicode/1f43b.png

View File

@@ -1 +1 @@
unicode/e047.png
unicode/1f37a.png

View File

@@ -1 +1 @@
unicode/e30c.png
unicode/1f37b.png

View File

@@ -1 +1 @@
unicode/e209.png
unicode/1f530.png

View File

@@ -1 +1 @@
unicode/e325.png
unicode/1f514.png

View File

@@ -1 +1 @@
unicode/e34c.png
unicode/1f371.png

View File

@@ -1 +1 @@
unicode/e136.png
unicode/1f6b2.png

View File

@@ -1 +1 @@
unicode/e322.png
unicode/1f459.png

View File

@@ -1 +1 @@
unicode/e521.png
unicode/1f426.png

View File

@@ -1 +1 @@
unicode/e34b.png
unicode/1f382.png

View File

@@ -0,0 +1 @@
unicode/2b1b.png

View File

@@ -0,0 +1 @@
unicode/25fe.png

View File

@@ -0,0 +1 @@
unicode/25fc.png

View File

@@ -0,0 +1 @@
unicode/25aa.png

View File

@@ -1 +0,0 @@
unicode/e21a.png

View File

@@ -1 +1 @@
unicode/e42e.png
unicode/1f699.png

View File

@@ -1 +1 @@
unicode/e32a.png
unicode/1f499.png

View File

@@ -1 +1 @@
unicode/e056.png
unicode/1f60a.png

View File

@@ -1 +1 @@
unicode/e52f.png
unicode/1f417.png

View File

@@ -1 +1 @@
unicode/e01c.png
unicode/26f5.png

View File

@@ -1 +1 @@
unicode/e311.png
unicode/1f4a3.png

View File

@@ -1 +1 @@
unicode/e148.png
unicode/1f4d6.png

View File

@@ -1 +1 @@
unicode/e31b.png
unicode/1f462.png

View File

@@ -1 +1 @@
unicode/e306.png
unicode/1f490.png

View File

@@ -1 +1 @@
unicode/e426.png
unicode/1f647.png

View File

@@ -1 +1 @@
unicode/e001.png
unicode/1f466.png

View File

@@ -1 +1 @@
unicode/e339.png
unicode/1f35e.png

View File

@@ -1 +1 @@
unicode/e11e.png
unicode/1f4bc.png

View File

@@ -1 +1 @@
unicode/e023.png
unicode/1f494.png

View File

@@ -1 +1 @@
unicode/e525.png
unicode/1f41b.png

View File

@@ -1 +1 @@
unicode/e10f.png
unicode/1f4a1.png

View File

@@ -1 +1 @@
unicode/e01f.png
unicode/1f685.png

View File

@@ -1 +1 @@
unicode/e435.png
unicode/1f684.png

View File

@@ -1 +1 @@
unicode/e159.png
unicode/1f68c.png

View File

@@ -1 +1 @@
unicode/e150.png
unicode/1f68f.png

View File

@@ -1 +1 @@
unicode/e308.png
unicode/1f335.png

View File

@@ -1 +1 @@
unicode/e046.png
unicode/1f370.png

View File

@@ -1 +1 @@
unicode/e104.png
unicode/1f4f2.png

View File

@@ -1 +1 @@
unicode/e530.png
unicode/1f42b.png

View File

@@ -1 +1 @@
unicode/e008.png
unicode/1f4f7.png

View File

@@ -1 +1 @@
unicode/e242.png
unicode/264b.png

View File

@@ -1 +1 @@
unicode/e248.png
unicode/2651.png

View File

@@ -1 +1 @@
unicode/e01b.png
unicode/1f697.png

View File

@@ -1 +1 @@
unicode/e04f.png
unicode/1f431.png

View File

@@ -1 +1 @@
unicode/e126.png
unicode/1f4bf.png

View File

@@ -1 +1 @@
unicode/e14a.png
unicode/1f4b9.png

View File

@@ -1 +1 @@
unicode/e132.png
unicode/1f3c1.png

View File

@@ -1 +1 @@
unicode/e030.png
unicode/1f338.png

View File

@@ -1 +1 @@
unicode/e52e.png
unicode/1f414.png

View File

@@ -1 +1 @@
unicode/e033.png
unicode/1f384.png

View File

@@ -1 +1 @@
unicode/e037.png
unicode/26ea.png

View File

@@ -1 +1 @@
unicode/e507.png
unicode/1f3a6.png

View File

@@ -1 +1 @@
unicode/e44a.png
unicode/1f307.png

View File

@@ -1 +1 @@
unicode/e146.png
unicode/1f306.png

View File

@@ -1 +1 @@
unicode/e41f.png
unicode/1f44f.png

Some files were not shown because too many files have changed in this diff Show More