Compare commits

..

93 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
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
Joshua Peek
8cca11fdb1 Gemoji 1.1.3 2012-11-12 12:50:08 -06:00
Joshua Peek
91a5a025ca Add emoji path to assets group
Closes #15
2012-11-12 12:49:29 -06:00
Joshua Peek
01e1710b79 Gemoji 1.1.2 2012-10-25 09:17:17 -05:00
Trevor Turk
2f0ad36b67 lowercase! 2012-10-24 22:40:12 -05:00
Trevor Turk
b84e5754d9 lowercase! 2012-10-24 22:34:13 -05:00
Trevor Turk
c6af1af8f6 Merge pull request #14 from github/missing-emoji
Adding missing emoji
2012-10-24 14:59:22 -07:00
Julia West
8190c65f76 Renaming tongue emojis to be consistent with official names and each other. 2012-10-24 17:07:14 -04:00
Julia West
c921ef1b5b Adding missing emoji.
- Renaming kissing_face to kissing_closed_eyes.
- Adding alias for unlinked Heavy White Check Mark.
2012-10-24 16:53:35 -04:00
Jamie Dihiansan
bfa00106fc Merge pull request #13 from github/add-bee-alias
Add bee -> honeybee alias
2012-10-17 09:47:15 -07:00
Mike Skalnik
9ee88a974d Add bee -> honeybee 2012-10-17 11:12:58 -05:00
Joshua Peek
e11d502d4d Gemoji 1.1.1 2012-10-02 17:06:00 -05:00
Joshua Peek
24cb142c5e Fix rake task path 2012-10-02 17:05:39 -05:00
Joshua Peek
42503f1dfa Gemoji 1.1.0 2012-10-02 16:45:16 -05:00
Joshua Peek
3bf04c21ab Restrict gemspec file 2012-10-02 16:32:04 -05:00
Joshua Peek
dbb7e48c66 Update bundler instructions 2012-10-02 16:30:57 -05:00
Joshua Peek
ed273dee14 Fix config paths 2012-10-02 16:28:39 -05:00
Joshua Peek
b5542d5075 Assets not, config 2012-10-02 16:24:21 -05:00
Joshua Peek
e21a63645c Add images path directly 2012-10-02 16:20:53 -05:00
Joshua Peek
c79a1d69d0 Move images into subdir 2012-10-02 16:20:53 -05:00
Joshua Peek
971bcd6236 Separate railtie file 2012-10-02 16:20:51 -05:00
Trevor Turk
d1d6d35da9 add an example to the readme 2012-10-02 15:47:15 -05:00
Joshua Peek
97f5441ada Gemoji 1.0.0 2012-10-02 15:26:33 -05:00
Trevor Turk
e43f1ac171 try to give attribution where possible 2012-10-02 15:24:13 -05:00
Trevor Turk
fc275cad0a clean up readme 2012-10-02 15:17:17 -05:00
Joshua Peek
38731ced7e Stub gemoji require 2012-10-02 15:15:41 -05:00
Joshua Peek
0e3f686bbd Rename gemspec 2012-10-02 15:15:13 -05:00
Trevor Turk
bd929a9ee0 require emoji in the task 2012-10-01 16:57:41 -05:00
Trevor Turk
436209c12f require environment instead of emoji 2012-10-01 16:51:21 -05:00
Trevor Turk
24d9881f20 move rake task so we can require it in our apps 2012-10-01 16:42:43 -05:00
Trevor Turk
74372af2f8 draft new readme 2012-10-01 11:14:45 -05:00
Jamie Dihiansan
a94b90198a Update LICENSE
Added 37signals credit.
2012-10-01 10:09:40 -05:00
Joshua Peek
25da8c9323 Add copyrights 2012-10-01 10:07:18 -05:00
Joshua Peek
da797b13e3 Emoji 0.4.0 2012-10-01 09:40:40 -05:00
Joshua Peek
9fa5dcd311 Remove gitignore 2012-10-01 09:40:01 -05:00
Joshua Peek
f2f80d4e8a Merge pull request #11 from github/improved-octocat
Know a better Octocat emoji
2012-10-01 07:38:21 -07:00
Matt Burke
315015e90e Recreate symlinks from 97709fea55 with all lowercase file names. 2012-09-30 17:30:01 -04:00
Joshua Peek
d815c7f9b7 💥
Closes #10
2012-09-29 10:18:36 -05:00
Coby Chapple
5919a89968 use a better octocat image 2012-09-29 14:54:32 +10:00
Joshua Peek
3358ffbeb4 Remove some old instructions 2012-09-28 10:05:13 -05:00
Joshua Peek
e46c8207fc Just images/emoji 2012-09-28 10:00:59 -05:00
Joshua Peek
ded4714831 Merge pull request #9 from github/cleanup
Cleanup
2012-09-28 07:58:30 -07:00
Joshua Peek
8c15ced399 Add rake copy task 2012-09-28 09:53:41 -05:00
Joshua Peek
765df113e1 Remove stuff 2012-09-28 09:36:54 -05:00
Shay Frendt
52210cece2 Merge pull request #7 from github/remove-git-from-gemspec
Update gemspec to not rely on `git` executable
2012-08-24 13:07:48 -07:00
Shay Frendt
bcf62ad7cd Update gemspec to not rely on git executable
- This prevents runtime issues when this gem is vendored in an
  application running on systems that don't have git installed
2012-08-24 14:23:58 -04:00
Trevor Turk
db6bc0fb28 todo about the problematic symlinks 2012-08-01 13:01:44 -05:00
Trevor Turk
69e7ea119c Revert "Recreate symlinks from 97709fea55c97c55c467b983b2d98c927fbb5b3f"
This reverts commit 15fd347c8e.
2012-08-01 13:00:15 -05:00
Trevor Turk
1ebc4b1f74 Emoji 0.3.4 2012-08-01 12:01:37 -05:00
Trevor Turk
a2e1d15d13 notes and todos 2012-08-01 11:53:38 -05:00
Trevor Turk
ffaef44107 use replace for sprite and emojify for images 2012-08-01 11:45:06 -05:00
Joshua Peek
10a29606b6 Emoji 0.3.3 2012-08-01 11:43:56 -05:00
Joshua Peek
2f1da81b8c Fix dir again 2012-08-01 11:43:43 -05:00
Joshua Peek
65616aa784 Emoji 0.3.2 2012-08-01 11:39:57 -05:00
Joshua Peek
092e292fd5 Use real images dir for names listing 2012-08-01 11:39:30 -05:00
2236 changed files with 660 additions and 1520 deletions

1
.gitignore vendored
View File

@@ -1 +0,0 @@
Gemfile.lock

View File

@@ -1,2 +0,0 @@
source :rubygems
gemspec

14
LICENSE Normal file
View File

@@ -0,0 +1,14 @@
octocat, squirrel, shipit
Copyright (c) 2013 GitHub Inc. 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) 2013 id Software. All rights reserved.
trollface
Copyright (c) 2013 whynne@deviantart. All rights reserved.
All other images
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

@@ -1,35 +1,67 @@
Emoji
=====
gemoji
======
Shared Emoji assets between GitHub, Campfire, and BCX.
Emoji images and names. See the LICENSE for copyright information.
Contributing
Installation
------------
### Designers
Add `gemoji` to you Gemfile.
Drop a 64x64 png into `images/` and commit it.
``` ruby
gem 'gemoji'
```
### Others
**Sync images**
Rerun `rake` to rebuild static assets and sprites. (Trying to make this step unnecessary)
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).
Deploying
---------
``` ruby
# Rakefile
load 'tasks/emoji.rake'
```
### GitHub
```
$ rake emoji
```
1. Run `rake emoji` in app root
**Assets Precompiling**
### Campfire
If you must, you can manually add all the images to your asset load path.
1. Push changes to 37signals/emoji
2. Update emoji version in config/externals.yml
3. Run `cap local externals:setup` in app root
4. Run `rake emoji` in app root
5. Run `Rails.cache.clear` in app console
``` ruby
# config/application.rb
config.assets.paths << Emoji.images_path
```
### BCX
Then have them compiled to public on deploy.
1. Push changes to 37signals/emoji
2. Run `bundle update emoji` in app root
``` 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:!`
See the [Emoji cheat sheet](http://www.emoji-cheat-sheet.com) for more examples.
```ruby
module EmojiHelper
def emojify(content)
h(content).to_str.gsub(/:([a-z0-9\+\-_]+):/) do |match|
if Emoji.names.include?($1)
'<img alt="' + $1 + '" height="20" src="' + asset_path("emoji/#{$1}.png") + '" style="vertical-align:middle" width="20" />'
else
match
end
end.html_safe if content.present?
end
end
```

View File

@@ -1,32 +1,7 @@
$:.unshift File.expand_path("../lib", __FILE__)
require 'emoji'
require 'sprockets'
require 'rake/clean'
Assets = Sprockets::Environment.new do |env|
env.append_path Emoji.path
env.append_path File.join(Emoji.path, 'assets')
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
file "lib/emoji.png" do |f|
Assets["emoji.png.erb"].write_to(f.name)
end
file "lib/emoji.js" do |f|
Assets["emoji.js.erb"].write_to(f.name)
end
file "lib/emoji.css" do |f|
Assets["emoji.css.erb"].write_to(f.name)
end
assets = [
"lib/emoji.png",
"lib/emoji.js",
"lib/emoji.css"
]
assets.each { |asset| CLOBBER.include(asset) }
task :default => [:clobber] + assets

View File

@@ -1,14 +0,0 @@
Gem::Specification.new do |s|
s.name = "emoji"
s.version = "0.3.1"
s.summary = "Emoji Assets"
s.description = "Shared Emoji assets between GitHub, Campfire, and BCX."
s.authors = ["GitHub", "37signals"]
s.email = "support@github.com"
s.homepage = "https://github.com/github/emoji"
s.files = `git ls-files`.split("\n")
s.add_development_dependency "sprockets", "~> 2.0"
end

12
gemoji.gemspec Normal file
View File

@@ -0,0 +1,12 @@
Gem::Specification.new do |s|
s.name = "gemoji"
s.version = "1.4.0"
s.summary = "Emoji Assets"
s.description = "Emoji assets"
s.authors = ["GitHub"]
s.email = "support@github.com"
s.homepage = "https://github.com/github/gemoji"
s.files = Dir["README.md", "images/**/*.png", "lib/**/*.rb", "lib/tasks/*.rake"]
end

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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