Compare commits

...

29 Commits

Author SHA1 Message Date
Joshua Peek
a844c2c1f7 Gemoji 1.4.0 2013-01-14 22:07:39 -08:00
Joshua Peek
ece49a0f11 Merge pull request #24 from danthompson/non_rails_support
Add non rails support
2013-01-09 13:39:39 -08:00
Dan Thompson
27e6ef7bc0 Remove external dependencies 2013-01-09 16:25:21 -05:00
Jamie Dihiansan
b67f98a130 Merge branch 'master' of https://github.com/github/gemoji 2013-01-08 13:29:03 -06:00
Jamie Dihiansan
282ae85ea0 updated 🖕 to be more explicit 2013-01-08 13:28:49 -06:00
Trevor Turk
baa55a8eda Gemoji 1.3.1 2013-01-08 11:41:55 -06:00
Jamie Dihiansan
4db892b66b Changed dates to 2013 2013-01-08 08:17:28 -06:00
Jamie Dihiansan
8db84353e4 Merge pull request #25 from github/fu
added 🖕
2013-01-08 06:14:14 -08:00
Jamie Dihiansan
7f9b0eaca9 cleaned up fu image 2013-01-08 08:09:15 -06:00
Jamie Dihiansan
3e9c7cc8fb added 🖕 2013-01-07 16:23:38 -06:00
Dan Thompson
808cb099de Remove 'Rails' as rake task no longer requires it 2013-01-07 10:03:43 -05:00
Dan Thompson
8441803d17 Update target path to not rely on Rails constant 2013-01-07 09:57:37 -05:00
Dan Thompson
8781d47ddb add environment task
appends to or creates when not already present (no-op)
2013-01-07 09:41:40 -05:00
Julia West
88fce2aa9e Merge pull request #22 from danthompson/typo
Fix readme typo
2013-01-03 14:39:19 -08:00
Dan Thompson
b9fa07e0e2 Fix readme typo 2013-01-03 17:24:44 -05:00
Joshua Peek
6723776d77 Merge pull request #21 from rsenk330/rakefile-desc
Add a description to the emoji rake task.
2012-12-05 05:59:25 -08:00
Ryan Senkbeil
5179cd8159 Add a description to the emoji rake task.
This makes it show up when using `rake -T`.
2012-12-04 13:42:50 -06:00
Joshua Peek
198d829f42 Load tasks 2012-11-29 11:30:57 -06:00
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
28 changed files with 87 additions and 36 deletions

12
LICENSE
View File

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

View File

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

View File

@@ -1 +1 @@
unicode/1f1e8.png
unicode/1f1e8-1f1f3.png

View File

@@ -1 +1 @@
unicode/1f1e9.png
unicode/1f1e9-1f1ea.png

View File

@@ -1 +1 @@
unicode/1f1ea.png
unicode/1f1ea-1f1f8.png

View File

@@ -1 +1 @@
unicode/1f1eb.png
unicode/1f1eb-1f1f7.png

BIN
images/emoji/fu.png Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -1 +1 @@
unicode/1f1ec.png
unicode/1f1ec-1f1e7.png

View File

@@ -1 +1 @@
unicode/1f1ee.png
unicode/1f1ee-1f1f9.png

View File

@@ -1 +1 @@
unicode/1f1ef.png
unicode/1f1ef-1f1f5.png

View File

@@ -1 +1 @@
unicode/1f1f0.png
unicode/1f1f0-1f1f7.png

View File

@@ -1 +1 @@
unicode/1f1f7.png
unicode/1f1f7-1f1fa.png

View File

@@ -1 +1 @@
unicode/1f1ec.png
unicode/1f1ec-1f1e7.png

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@@ -1 +1 @@
unicode/1f1fa.png
unicode/1f1fa-1f1f8.png

View File

@@ -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.

View File

@@ -1,7 +1,8 @@
task :emoji => :environment do
desc "Copy emoji to the Rails `public/images/emoji` directory"
task :emoji do
require 'emoji'
target = "#{Rails.root}/public/images/emoji"
target = "#{Rake.original_dir}/public/images/emoji"
mkdir_p "#{target}"
Dir["#{Emoji.images_path}/emoji/*.png"].each do |src|