utf8_emoji 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 51e4681e5a7bef1bd8e2accd50459f8d4a0e6e06
4
+ data.tar.gz: eed2e7f45d31620065f3e7859e3a798a6143a56d
5
+ SHA512:
6
+ metadata.gz: 0a33eea50b21327800daf46e587afb38dfb9aee76fb73a2384a5616307b8ed21a78ffe1658315bfc20cf8f19f5053841d289c1a4742ed357c846a40d488a2043
7
+ data.tar.gz: 29021e2176acb75fecd273f18b5a4768c3c5be9de0a5f9e2dd0bc3870b10873fd29d7bc8efb3fa1620c3020da97bf1685facbb6fb13596a480def9e3d2dd45d2
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in utf8_emoji.gemspec
4
+ gemspec
@@ -0,0 +1,17 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ utf8_emoji (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (10.1.0)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ bundler (~> 1.3.5)
16
+ rake (~> 10.1.0)
17
+ utf8_emoji!
data/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ Copyright (c) 2012 jugyo
2
+ Copyright (c) 2013 Lucas Dohmen
3
+
4
+ MIT License
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ "Software"), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,34 @@
1
+ # UTF8 Emojis
2
+
3
+ UTF8 Emojis by their [Emoji cheat sheet](http://www.emoji-cheat-sheet.com) name. This is a fork of [named_emoji](https://github.com/jugyo/named_emoji) with a little history rewrite, where I removed all binaries to make the repository and gem much smaller. All the hard work was done by [@jugyo](https://github.com/jugyo) though.
4
+
5
+ ## Installation
6
+
7
+ $ gem install named_emoji
8
+
9
+ ## Usage
10
+
11
+ require 'utf8_emoji'
12
+ puts Utf8Emoji.emojis[:smile]
13
+ # => ������
14
+
15
+ include Utf8Emoji
16
+ emojis[:grin]
17
+ # => ������
18
+
19
+ As command line tool:
20
+
21
+ $ emoji scream
22
+ ������
23
+
24
+ List available emojis:
25
+
26
+ $ emoji -l
27
+
28
+ ## Contributing
29
+
30
+ 1. Fork it
31
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
32
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
33
+ 4. Push to the branch (`git push origin my-new-feature`)
34
+ 5. Create new Pull Request
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ unless ARGV.size == 1
4
+ abort <<-D
5
+ usage: emoji name
6
+ emoji -l
7
+ D
8
+ end
9
+
10
+ require 'utf8_emoji'
11
+
12
+ case ARGV[0]
13
+ when '-l'
14
+ max_name_size = Utf8Emoji.emojis.keys.map {|i| i.size}.max
15
+ %w(PEOPLE NATURE OBJECTS PLACES SYMBOLS).each do |category|
16
+ puts category + ":"
17
+ puts
18
+ emojis = Utf8Emoji.const_get(category.upcase)
19
+ emojis.keys.each_slice(4) do |keys|
20
+ keys.each do |key|
21
+ value = emojis[key]
22
+ print "#{value ? value : ' '} #{key.to_s.ljust(max_name_size)}"
23
+ end
24
+ puts
25
+ end
26
+ puts
27
+ end
28
+ else
29
+ if emoji = Utf8Emoji.emojis[ARGV[0].to_sym]
30
+ print emoji
31
+ else
32
+ warn "Emoji not found :("
33
+ end
34
+ end
@@ -0,0 +1,520 @@
1
+ require "utf8_emoji/version"
2
+
3
+ module Utf8Emoji
4
+ PEOPLE = {
5
+ # :'bowtie' => nil,
6
+ :'smile' => "\u{1F604}",
7
+ :'blush' => "\u{1F60A}",
8
+ :'smiley' => "\u{1F603}",
9
+ :'relaxed' => "\u{263A}",
10
+ :'smirk' => "\u{1F60F}",
11
+ :'heart_eyes' => "\u{1F60D}",
12
+ :'kissing_heart' => "\u{1F618}",
13
+ :'kissing_face' => "\u{1F61A}",
14
+ :'flushed' => "\u{1F633}",
15
+ :'relieved' => "\u{1F625}",
16
+ :'satisfied' => "\u{1F60C}",
17
+ :'grin' => "\u{1F601}",
18
+ :'wink' => "\u{1F609}",
19
+ :'wink2' => "\u{1F61C}",
20
+ :'tongue' => "\u{1F61D}",
21
+ :'unamused' => "\u{1F612}",
22
+ :'sweat' => "\u{1F613}",
23
+ :'pensive' => "\u{1F614}",
24
+ :'disappointed' => "\u{1F61E}",
25
+ :'confounded' => "\u{1F616}",
26
+ :'fearful' => "\u{1F628}",
27
+ :'cold_sweat' => "\u{1F630}",
28
+ :'persevere' => "\u{1F623}",
29
+ :'cry' => "\u{1F622}",
30
+ :'sob' => "\u{1F62D}",
31
+ :'joy' => "\u{1F602}",
32
+ :'astonished' => "\u{1F632}",
33
+ :'scream' => "\u{1F631}",
34
+ :'angry' => "\u{1F620}",
35
+ :'rage' => "\u{1F621}",
36
+ :'sleepy' => "\u{1F62A}",
37
+ :'mask' => "\u{1F637}",
38
+ :'imp' => "\u{1F47F}",
39
+ :'alien' => "\u{1F47D}",
40
+ :'yellow_heart' => "\u{1F49B}",
41
+ :'blue_heart' => "\u{1F499}",
42
+ :'purple_heart' => "\u{1F49C}",
43
+ :'heart' => "\u{2764}",
44
+ :'green_heart' => "\u{1F49A}",
45
+ :'broken_heart' => "\u{1F494}",
46
+ :'heartbeat' => "\u{1F493}",
47
+ :'heartpulse' => "\u{1F497}",
48
+ :'cupid' => "\u{1F498}",
49
+ :'sparkles' => "\u{2728}",
50
+ # :'star' => nil,
51
+ :'star2' => "\u{1F31F}",
52
+ :'anger' => "\u{1F4A2}",
53
+ # :'exclamation' => nil,
54
+ # :'question' => nil,
55
+ :'grey_exclamation' => "\u{2755}",
56
+ :'grey_question' => "\u{2754}",
57
+ :'zzz' => "\u{1F4A4}",
58
+ :'dash' => "\u{1F4A8}",
59
+ :'sweat_drops' => "\u{1F4A6}",
60
+ :'notes' => "\u{1F3B6}",
61
+ :'musical_note' => "\u{1F3B5}",
62
+ :'fire' => "\u{1F525}",
63
+ :'hankey' => "\u{1F4A9}",
64
+ :'poop' => "\u{1F4A9}",
65
+ :'shit' => "\u{1F4A9}",
66
+ :'+1' => "\u{1F44D}",
67
+ :'thumbsup' => "\u{1F44D}",
68
+ :'-1' => "\u{1F44E}",
69
+ :'thumbsdown' => "\u{1F44E}",
70
+ :'ok_hand' => "\u{1F44C}",
71
+ :'punch' => "\u{1F44A}",
72
+ :'fist' => "\u{270A}",
73
+ :'v' => "\u{270C}",
74
+ :'wave' => "\u{1F44B}",
75
+ :'hand' => "\u{270B}",
76
+ :'open_hands' => "\u{1F450}",
77
+ :'point_up' => "\u{261D}",
78
+ :'point_down' => "\u{1F447}",
79
+ :'point_left' => "\u{1F448}",
80
+ :'point_right' => "\u{1F449}",
81
+ :'raised_hands' => "\u{1F64C}",
82
+ :'pray' => "\u{1F64F}",
83
+ :'point_up_2' => "\u{1F446}",
84
+ :'clap' => "\u{1F44F}",
85
+ :'muscle' => "\u{1F4AA}",
86
+ # :'metal' => nil,
87
+ :'walking' => "\u{1F6B6}",
88
+ :'runner' => "\u{1F3C3}",
89
+ :'couple' => "\u{1F46B}",
90
+ :'dancer' => "\u{1F483}",
91
+ :'dancers' => "\u{1F46F}",
92
+ :'ok_woman' => "\u{1F646}",
93
+ :'no_good' => "\u{1F645}",
94
+ :'information_desk_person' => "\u{1F481}",
95
+ :'bow' => "\u{1F647}",
96
+ :'couplekiss' => "\u{1F48F}",
97
+ :'couple_with_heart' => "\u{1F491}",
98
+ :'massage' => "\u{1F486}",
99
+ :'haircut' => "\u{1F487}",
100
+ :'nail_care' => "\u{1F485}",
101
+ :'boy' => "\u{1F466}",
102
+ :'girl' => "\u{1F467}",
103
+ :'woman' => "\u{1F469}",
104
+ :'man' => "\u{1F468}",
105
+ :'baby' => "\u{1F476}",
106
+ :'older_woman' => "\u{1F475}",
107
+ :'older_man' => "\u{1F474}",
108
+ :'person_with_blond_hair' => "\u{1F471}",
109
+ :'man_with_gua_pi_mao' => "\u{1F472}",
110
+ :'man_with_turban' => "\u{1F473}",
111
+ :'construction_worker' => "\u{1F477}",
112
+ :'cop' => "\u{1F46E}",
113
+ :'angel' => "\u{1F47C}",
114
+ :'princess' => "\u{1F478}",
115
+ :'guardsman' => "\u{1F482}",
116
+ :'skull' => "\u{1F480}",
117
+ :'feet' => "\u{1F463}",
118
+ :'lips' => "\u{1F444}",
119
+ :'kiss' => "\u{1F48B}",
120
+ :'ear' => "\u{1F442}",
121
+ :'eyes' => "\u{1F440}",
122
+ :'nose' => "\u{1F443}",
123
+ # :'feelsgood' => nil,
124
+ # :'finnadie' => nil,
125
+ # :'goberserk' => nil,
126
+ # :'godmode' => nil,
127
+ # :'hurtrealbad' => nil,
128
+ # :'rage1' => nil,
129
+ # :'rage2' => nil,
130
+ # :'rage3' => nil,
131
+ # :'rage4' => nil,
132
+ # :'suspect' => nil,
133
+ # :'trollface' => nil,
134
+ }
135
+
136
+ NATURE = {
137
+ :'sunny' => "\u{2600}",
138
+ :'umbrella' => "\u{2614}",
139
+ :'cloud' => "\u{2601}",
140
+ :'snowman' => "\u{26C4}",
141
+ :'moon' => "\u{1F319}",
142
+ :'zap' => "\u{26A1}",
143
+ :'cyclone' => "\u{1F300}",
144
+ :'ocean' => "\u{1F30A}",
145
+ :'cat' => "\u{1F431}",
146
+ :'dog' => "\u{1F436}",
147
+ :'mouse' => "\u{1F42D}",
148
+ :'hamster' => "\u{1F439}",
149
+ :'rabbit' => "\u{1F430}",
150
+ :'wolf' => "\u{1F43A}",
151
+ :'frog' => "\u{1F438}",
152
+ :'tiger' => "\u{1F42F}",
153
+ :'koala' => "\u{1F428}",
154
+ :'bear' => "\u{1F43B}",
155
+ :'pig' => "\u{1F437}",
156
+ :'cow' => "\u{1F42E}",
157
+ :'boar' => "\u{1F417}",
158
+ :'monkey_face' => "\u{1F435}",
159
+ :'monkey' => "\u{1F412}",
160
+ :'horse' => "\u{1F434}",
161
+ :'racehorse' => "\u{1F40E}",
162
+ :'camel' => "\u{1F42B}",
163
+ :'sheep' => "\u{1F411}",
164
+ :'elephant' => "\u{1F418}",
165
+ :'snake' => "\u{1F40D}",
166
+ :'bird' => "\u{1F426}",
167
+ :'baby_chick' => "\u{1F424}",
168
+ :'chicken' => "\u{1F414}",
169
+ :'penguin' => "\u{1F427}",
170
+ :'bug' => "\u{1F41B}",
171
+ :'octopus' => "\u{1F419}",
172
+ :'tropical_fish' => "\u{1F420}",
173
+ :'fish' => "\u{1F41F}",
174
+ :'whale' => "\u{1F433}",
175
+ :'dolphin' => "\u{1F42C}",
176
+ :'bouquet' => "\u{1F490}",
177
+ :'cherry_blossom' => "\u{1F338}",
178
+ :'tulip' => "\u{1F337}",
179
+ :'four_leaf_clover' => "\u{1F340}",
180
+ :'rose' => "\u{1F339}",
181
+ :'sunflower' => "\u{1F33B}",
182
+ :'hibiscus' => "\u{1F33A}",
183
+ :'maple_leaf' => "\u{1F341}",
184
+ :'leaves' => "\u{1F343}",
185
+ :'fallen_leaf' => "\u{1F342}",
186
+ :'palm_tree' => "\u{1F334}",
187
+ :'cactus' => "\u{1F335}",
188
+ :'ear_of_rice' => "\u{1F33E}",
189
+ :'shell' => "\u{1F41A}",
190
+ :'octocat' => nil,
191
+ :'squirrel' => nil,
192
+ }
193
+
194
+ OBJECTS = {
195
+ :'bamboo' => "\u{1F38D}",
196
+ :'gift_heart' => "\u{1F49D}",
197
+ :'dolls' => "\u{1F38E}",
198
+ :'school_satchel' => "\u{1F392}",
199
+ :'mortar_board' => "\u{1F393}",
200
+ :'flags' => "\u{1F38F}",
201
+ :'fireworks' => "\u{1F386}",
202
+ :'sparkler' => "\u{1F387}",
203
+ :'wind_chime' => "\u{1F390}",
204
+ :'rice_scene' => "\u{1F391}",
205
+ :'jack_o_lantern' => "\u{1F383}",
206
+ :'ghost' => "\u{1F47B}",
207
+ :'santa' => "\u{1F385}",
208
+ :'christmas_tree' => "\u{1F384}",
209
+ :'gift' => "\u{1F381}",
210
+ :'bell' => "\u{1F514}",
211
+ :'tada' => "\u{1F389}",
212
+ :'balloon' => "\u{1F388}",
213
+ :'cd' => "\u{1F4BF}",
214
+ :'dvd' => "\u{1F4C0}",
215
+ :'camera' => "\u{1F4F7}",
216
+ :'movie_camera' => "\u{1F3A5}",
217
+ :'computer' => "\u{1F4BB}",
218
+ :'tv' => "\u{1F4FA}",
219
+ :'iphone' => "\u{1F4F1}",
220
+ :'fax' => "\u{1F4E0}",
221
+ :'phone' => "\u{260E}",
222
+ :'telephone' => "\u{260E}",
223
+ :'minidisc' => "\u{1F4BD}",
224
+ :'vhs' => "\u{1F4FC}",
225
+ :'speaker' => "\u{1F50A}",
226
+ :'loudspeaker' => "\u{1F4E2}",
227
+ :'mega' => "\u{1F4E3}",
228
+ :'radio' => "\u{1F4FB}",
229
+ :'satellite' => "\u{1F4E1}",
230
+ :'loop' => "\u{27BF}",
231
+ :'mag' => "\u{1F50D}",
232
+ :'unlock' => "\u{1F513}",
233
+ :'lock' => "\u{1F512}",
234
+ :'key' => "\u{1F511}",
235
+ :'scissors' => "\u{2702}",
236
+ :'hammer' => "\u{1F528}",
237
+ :'bulb' => "\u{1F4A1}",
238
+ :'calling' => "\u{1F4F2}",
239
+ :'email' => "\u{1F4E9}",
240
+ :'mailbox' => "\u{1F4EB}",
241
+ :'postbox' => "\u{1F4EE}",
242
+ :'bath' => "\u{1F6C0}",
243
+ :'toilet' => "\u{1F6BD}",
244
+ :'seat' => "\u{1F4BA}",
245
+ :'moneybag' => "\u{1F4B0}",
246
+ :'trident' => "\u{1F531}",
247
+ :'smoking' => "\u{1F6AC}",
248
+ :'bomb' => "\u{1F4A3}",
249
+ :'gun' => "\u{1F52B}",
250
+ :'pill' => "\u{1F48A}",
251
+ :'syringe' => "\u{1F489}",
252
+ :'football' => "\u{1F3C8}",
253
+ :'basketball' => "\u{1F3C0}",
254
+ :'soccer' => "\u{26BD}",
255
+ :'baseball' => "\u{26BE}",
256
+ :'tennis' => "\u{1F3BE}",
257
+ :'golf' => "\u{26F3}",
258
+ :'8ball' => "\u{1F3B1}",
259
+ :'swimmer' => "\u{1F3CA}",
260
+ :'surfer' => "\u{1F3C4}",
261
+ :'ski' => "\u{1F3BF}",
262
+ :'spades' => "\u{2660}",
263
+ :'hearts' => "\u{2665}",
264
+ :'clubs' => "\u{2663}",
265
+ :'diamonds' => "\u{2666}",
266
+ :'gem' => "\u{1F48E}",
267
+ :'ring' => "\u{1F48D}",
268
+ :'trophy' => "\u{1F3C6}",
269
+ :'space_invader' => "\u{1F47E}",
270
+ :'dart' => "\u{1F3AF}",
271
+ :'mahjong' => "\u{1F004}",
272
+ :'clapper' => "\u{1F3AC}",
273
+ :'memo' => "\u{1F4DD}",
274
+ :'pencil' => "\u{1F4DD}",
275
+ :'book' => "\u{1F4D6}",
276
+ :'art' => "\u{1F3A8}",
277
+ :'microphone' => "\u{1F3A4}",
278
+ :'headphones' => "\u{1F3A7}",
279
+ :'trumpet' => "\u{1F3BA}",
280
+ :'saxophone' => "\u{1F3B7}",
281
+ :'guitar' => "\u{1F3B8}",
282
+ :'part_alternation_mark' => "\u{303D}",
283
+ :'shoe' => "\u{1F45F}",
284
+ :'sandal' => "\u{1F461}",
285
+ :'high_heel' => "\u{1F460}",
286
+ :'lipstick' => "\u{1F484}",
287
+ :'boot' => "\u{1F462}",
288
+ :'shirt' => "\u{1F455}",
289
+ :'tshirt' => "\u{1F455}",
290
+ :'necktie' => "\u{1F454}",
291
+ :'dress' => "\u{1F457}",
292
+ :'kimono' => "\u{1F458}",
293
+ :'bikini' => "\u{1F459}",
294
+ :'ribbon' => "\u{1F380}",
295
+ :'tophat' => "\u{1F3A9}",
296
+ :'crown' => "\u{1F451}",
297
+ :'womans_hat' => "\u{1F452}",
298
+ :'closed_umbrella' => "\u{1F302}",
299
+ :'briefcase' => "\u{1F4BC}",
300
+ :'handbag' => "\u{1F45C}",
301
+ :'beer' => "\u{1F37A}",
302
+ :'beers' => "\u{1F37B}",
303
+ :'cocktail' => "\u{1F378}",
304
+ :'sake' => "\u{1F376}",
305
+ :'fork_and_knife' => "\u{1F374}",
306
+ :'hamburger' => "\u{1F354}",
307
+ :'fries' => "\u{1F35F}",
308
+ :'spaghetti' => "\u{1F35D}",
309
+ :'curry' => "\u{1F35B}",
310
+ :'bento' => "\u{1F371}",
311
+ :'sushi' => "\u{1F363}",
312
+ :'rice_ball' => "\u{1F359}",
313
+ :'rice_cracker' => "\u{1F358}",
314
+ :'rice' => "\u{1F35A}",
315
+ :'ramen' => "\u{1F35C}",
316
+ :'stew' => "\u{1F372}",
317
+ :'bread' => "\u{1F35E}",
318
+ :'egg' => "\u{1F373}",
319
+ :'oden' => "\u{1F362}",
320
+ :'dango' => "\u{1F361}",
321
+ :'icecream' => "\u{1F366}",
322
+ :'shaved_ice' => "\u{1F367}",
323
+ :'birthday' => "\u{1F382}",
324
+ :'cake' => "\u{1F370}",
325
+ :'apple' => "\u{1F34E}",
326
+ :'tangerine' => "\u{1F34A}",
327
+ :'watermelon' => "\u{1F349}",
328
+ :'strawberry' => "\u{1F353}",
329
+ :'eggplant' => "\u{1F346}",
330
+ :'tomato' => "\u{1F345}",
331
+ :'coffee' => "\u{2615}",
332
+ :'tea' => "\u{1F375}",
333
+ }
334
+
335
+ PLACES = {
336
+ # :'109' => nil,
337
+ :'house' => "\u{1F3E0}",
338
+ :'school' => "\u{1F3EB}",
339
+ :'office' => "\u{1F3E2}",
340
+ :'post_office' => "\u{1F3E3}",
341
+ :'hospital' => "\u{1F3E5}",
342
+ :'bank' => "\u{1F3E6}",
343
+ :'convenience_store' => "\u{1F3EA}",
344
+ :'love_hotel' => "\u{1F3E9}",
345
+ :'hotel' => "\u{1F3E8}",
346
+ :'wedding' => "\u{1F492}",
347
+ :'church' => "\u{26EA}",
348
+ :'department_store' => "\u{1F3EC}",
349
+ :'city_sunrise' => "\u{1F307}",
350
+ :'city_sunset' => "\u{1F306}",
351
+ :'japanese_castle' => "\u{1F3EF}",
352
+ :'european_castle' => "\u{1F3F0}",
353
+ :'tent' => "\u{26FA}",
354
+ :'factory' => "\u{1F3ED}",
355
+ :'tokyo_tower' => "\u{1F5FC}",
356
+ :'mount_fuji' => "\u{1F5FB}",
357
+ :'sunrise_over_mountains' => "\u{1F304}",
358
+ :'sunrise' => "\u{1F305}",
359
+ :'stars' => "\u{1F303}",
360
+ :'statue_of_liberty' => "\u{1F5FD}",
361
+ :'rainbow' => "\u{1F308}",
362
+ :'ferris_wheel' => "\u{1F3A1}",
363
+ :'fountain' => "\u{26F2}",
364
+ :'roller_coaster' => "\u{1F3A2}",
365
+ :'ship' => "\u{1F6A2}",
366
+ :'speedboat' => "\u{1F6A4}",
367
+ :'boat' => "\u{26F5}",
368
+ :'sailboat' => "\u{26F5}",
369
+ :'airplane' => "\u{2708}",
370
+ :'rocket' => "\u{1F680}",
371
+ :'bike' => "\u{1F6B2}",
372
+ :'blue_car' => "\u{1F699}",
373
+ :'car' => "\u{1F697}",
374
+ :'red_car' => "\u{1F697}",
375
+ :'taxi' => "\u{1F695}",
376
+ :'bus' => "\u{1F68C}",
377
+ :'police_car' => "\u{1F693}",
378
+ :'fire_engine' => "\u{1F692}",
379
+ :'ambulance' => "\u{1F691}",
380
+ :'truck' => "\u{1F69A}",
381
+ :'train' => "\u{1F683}",
382
+ :'station' => "\u{1F689}",
383
+ :'bullettrain_front' => "\u{1F685}",
384
+ :'bullettrain_side' => "\u{1F684}",
385
+ :'ticket' => "\u{1F3AB}",
386
+ :'fuelpump' => "\u{26FD}",
387
+ :'traffic_light' => "\u{1F6A5}",
388
+ :'warning' => "\u{26A0}",
389
+ :'construction' => "\u{1F6A7}",
390
+ :'beginner' => "\u{1F530}",
391
+ :'atm' => "\u{1F3E7}",
392
+ :'slot_machine' => "\u{1F3B0}",
393
+ :'busstop' => "\u{1F68F}",
394
+ :'barber' => "\u{1F488}",
395
+ :'hotsprings' => "\u{2668}",
396
+ :'checkered_flag' => "\u{1F3C1}",
397
+ :'crossed_flags' => "\u{1F38C}",
398
+ :'jp' => "\u{1F1EF}\u{1F1F5}",
399
+ :'kr' => "\u{1F1F0}\u{1F1F7}",
400
+ :'cn' => "\u{1F1E8}\u{1F1F3}",
401
+ :'us' => "\u{1F1FA}\u{1F1F8}",
402
+ :'fr' => "\u{1F1EB}\u{1F1F7}",
403
+ :'es' => "\u{1F1EA}\u{1F1F8}",
404
+ :'it' => "\u{1F1EE}\u{1F1F9}",
405
+ :'ru' => "\u{1F1F7}\u{1F1FA}",
406
+ :'gb' => "\u{1F1EC}\u{1F1E7}",
407
+ :'de' => "\u{1F1E9}\u{1F1EA}",
408
+ }
409
+
410
+ SYMBOLS = {
411
+ :'1' => "\u{0031}\u{20E3}",
412
+ :'2' => "\u{0032}\u{20E3}",
413
+ :'3' => "\u{0033}\u{20E3}",
414
+ :'4' => "\u{0034}\u{20E3}",
415
+ :'5' => "\u{0035}\u{20E3}",
416
+ :'6' => "\u{0036}\u{20E3}",
417
+ :'7' => "\u{0037}\u{20E3}",
418
+ :'8' => "\u{0038}\u{20E3}",
419
+ :'9' => "\u{0039}\u{20E3}",
420
+ :'0' => "\u{0030}\u{20E3}",
421
+ :'hash' => "\u{0023}\u{20E3}",
422
+ :'arrow_backward' => "\u{25C0}",
423
+ :'arrow_down' => "\u{2B07}",
424
+ :'arrow_forward' => "\u{25B6}",
425
+ :'arrow_left' => "\u{2B05}",
426
+ :'arrow_lower_left' => "\u{2199}",
427
+ :'arrow_lower_right' => "\u{2198}",
428
+ :'arrow_right' => "\u{27A1}",
429
+ :'arrow_up' => "\u{2B06}",
430
+ :'arrow_upper_left' => "\u{2196}",
431
+ :'arrow_upper_right' => "\u{2197}",
432
+ :'rewind' => "\u{23EA}",
433
+ :'fast_forward' => "\u{23E9}",
434
+ :'ok' => "\u{1F197}",
435
+ :'new' => "\u{1F195}",
436
+ :'top' => "\u{1F51D}",
437
+ :'up' => "\u{1F199}",
438
+ :'cool' => "\u{1F192}",
439
+ :'cinema' => "\u{1F3A6}",
440
+ :'koko' => "\u{1F201}",
441
+ :'signal_strength' => "\u{1F4F6}",
442
+ :'u5272' => "\u{1F239}",
443
+ :'u55b6' => "\u{1F23A}",
444
+ :'u6307' => "\u{1F22F}",
445
+ :'u6708' => "\u{1F237}",
446
+ :'u6709' => "\u{1F236}",
447
+ :'u6e80' => "\u{1F235}",
448
+ :'u7121' => "\u{1F21A}",
449
+ :'u7533' => "\u{1F238}",
450
+ :'u7a7a' => "\u{1F233}",
451
+ :'sa' => "\u{1F202}",
452
+ :'restroom' => "\u{1F6BB}",
453
+ :'mens' => "\u{1F6B9}",
454
+ :'womens' => "\u{1F6BA}",
455
+ :'baby_symbol' => "\u{1F6BC}",
456
+ :'no_smoking' => "\u{1F6AD}",
457
+ :'parking' => "\u{1F17F}",
458
+ :'wheelchair' => "\u{267F}",
459
+ :'metro' => "\u{1F687}",
460
+ :'wc' => "\u{1F6BE}",
461
+ :'secret' => "\u{3299}",
462
+ :'congratulations' => "\u{3297}",
463
+ :'ideograph_advantage' => "\u{1F250}",
464
+ :'underage' => "\u{1F51E}",
465
+ :'id' => "\u{1F194}",
466
+ :'eight_spoked_asterisk' => "\u{2733}",
467
+ :'eight_pointed_black_star' => "\u{2734}",
468
+ :'heart_decoration' => "\u{1F49F}",
469
+ :'vs' => "\u{1F19A}",
470
+ :'vibration_mode' => "\u{1F4F3}",
471
+ :'mobile_phone_off' => "\u{1F4F4}",
472
+ :'chart' => "\u{1F4B9}",
473
+ :'currency_exchange' => "\u{1F4B1}",
474
+ :'aries' => "\u{2648}",
475
+ :'taurus' => "\u{2649}",
476
+ :'gemini' => "\u{264A}",
477
+ :'cancer' => "\u{264B}",
478
+ :'leo' => "\u{264C}",
479
+ :'virgo' => "\u{264D}",
480
+ :'libra' => "\u{264E}",
481
+ :'scorpius' => "\u{264F}",
482
+ :'sagittarius' => "\u{2650}",
483
+ :'capricorn' => "\u{2651}",
484
+ :'aquarius' => "\u{2652}",
485
+ :'pisces' => "\u{2653}",
486
+ :'ophiuchus' => "\u{26CE}",
487
+ :'six_pointed_star' => "\u{1F52F}",
488
+ :'a' => "\u{1F170}",
489
+ :'b' => "\u{1F171}",
490
+ :'ab' => "\u{1F18E}",
491
+ :'o2' => "\u{1F17E}",
492
+ :'red_circle' => "\u{1F534}",
493
+ :'black_square' => "\u{1F532}",
494
+ :'white_square' => "\u{1F533}",
495
+ :'clock1' => "\u{1F550}",
496
+ :'clock10' => "\u{1F559}",
497
+ :'clock11' => "\u{1F55A}",
498
+ :'clock12' => "\u{1F55B}",
499
+ :'clock2' => "\u{1F551}",
500
+ :'clock3' => "\u{1F552}",
501
+ :'clock4' => "\u{1F553}",
502
+ :'clock5' => "\u{1F554}",
503
+ :'clock6' => "\u{1F555}",
504
+ :'clock7' => "\u{1F556}",
505
+ :'clock8' => "\u{1F557}",
506
+ :'clock9' => "\u{1F558}",
507
+ :'o' => "\u{2B55}",
508
+ :'x' => "\u{274C}",
509
+ :'copyright' => "\u{00A9}",
510
+ :'registered' => "\u{00AE}",
511
+ :'tm' => "\u{2122}",
512
+ # :'shipit' => nil,
513
+ }
514
+
515
+ def emojis
516
+ @all ||= PEOPLE.merge(NATURE).merge(OBJECTS).merge(PLACES).merge(SYMBOLS)
517
+ end
518
+
519
+ extend self
520
+ end
@@ -0,0 +1,3 @@
1
+ module Utf8Emoji
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path('../lib', __FILE__)
3
+ require 'utf8_emoji/version'
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.name = 'utf8_emoji'
7
+ gem.version = Utf8Emoji::VERSION
8
+ gem.authors = ['Lucas Dohmen']
9
+ gem.email = ['me@moonglum.net']
10
+ gem.homepage = 'https://github.com/moonglum/utf8_emoji'
11
+ gem.summary = %q{UTF8 Emojis by their Emoji-Cheat-Sheet name}
12
+ gem.description = %q{UTF8 Emojis by their Emoji-Cheat-Sheet name}
13
+ gem.license = 'MIT'
14
+
15
+ gem.files = `git ls-files`.split("\n")
16
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ gem.require_paths = ['lib']
18
+
19
+ gem.add_development_dependency 'bundler', '~> 1.3.5'
20
+ gem.add_development_dependency 'rake', '~> 10.1.0'
21
+ end
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: utf8_emoji
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Lucas Dohmen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 1.3.5
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 1.3.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 10.1.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 10.1.0
41
+ description: UTF8 Emojis by their Emoji-Cheat-Sheet name
42
+ email:
43
+ - me@moonglum.net
44
+ executables:
45
+ - emoji
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - Gemfile
50
+ - Gemfile.lock
51
+ - LICENSE
52
+ - README.md
53
+ - Rakefile
54
+ - bin/emoji
55
+ - lib/utf8_emoji.rb
56
+ - lib/utf8_emoji/version.rb
57
+ - utf8_emoji.gemspec
58
+ homepage: https://github.com/moonglum/utf8_emoji
59
+ licenses:
60
+ - MIT
61
+ metadata: {}
62
+ post_install_message:
63
+ rdoc_options: []
64
+ require_paths:
65
+ - lib
66
+ required_ruby_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ requirements: []
77
+ rubyforge_project:
78
+ rubygems_version: 2.1.1
79
+ signing_key:
80
+ specification_version: 4
81
+ summary: UTF8 Emojis by their Emoji-Cheat-Sheet name
82
+ test_files: []