somemoji 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a5968df8d5cdd9d90f4ed13049765d15d1bc98df
4
- data.tar.gz: 3809aa17d978c8a7569d03a3675833d5619b4de4
3
+ metadata.gz: cb1681fec88ea7e3b58928b814d378e6357b6a20
4
+ data.tar.gz: 38f29985aed875e1746835c0f394b1901c0e8468
5
5
  SHA512:
6
- metadata.gz: ecf472874f03a6319c174b0e0366bae4e202014198ac0d3bac0f5e9ebbdd80cf8f49481da7dcab5b84519753340f4000a31edd4083d0248a9145009b5e6a52e5
7
- data.tar.gz: 0bcd7d90ac15d8e35feb063e5e3b27e51ce8b9165de952f2f251f25bc5744269495b5f7f3157eaafb83db454370a3ee5e23a0e3a17854153b760a39920164c9f
6
+ metadata.gz: c46370c047b7bf0a952a05ad4477843874c48f63c01ddf9e7ffd7b07c0e59407b6134592f7bfb10aa42aa8952f6829214f1156e32733be83924b19b821a6b9d8
7
+ data.tar.gz: d2659e21660c34e5f85087fb1c780f0efca2e1298f4c2ea4d05a76a5389f0633041e455d3aa50b1ea4ad9050874427ce26ef409646a5cd58ce63c01bdb7a0a61
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.4.1
2
+
3
+ - Add more available emojis on Noto emojis
4
+
1
5
  ## v0.4.0
2
6
 
3
7
  - Add `somemoji` executable to extract emoji images
data/README.md CHANGED
@@ -8,10 +8,10 @@ A grand unified emoji mapper for some emoji providers.
8
8
 
9
9
  ## Supported emoji
10
10
 
11
- - [Apple Emoji](https://support.apple.com/en-us/HT202332)
12
- - [EmojiOne](https://github.com/Ranks/emojione)
13
- - [Noto Emoji](https://github.com/googlei18n/noto-emoji)
14
- - [Twemoji](https://github.com/twitter/twemoji)
11
+ - [Apple Emoji](https://support.apple.com/en-us/HT202332) (Licensed by Apple Inc.)
12
+ - [EmojiOne](https://github.com/Ranks/emojione) (CC-BY 4.0)
13
+ - [Noto Emoji](https://github.com/googlei18n/noto-emoji) (SIL Open Font License 1.1)
14
+ - [Twemoji](https://github.com/twitter/twemoji) (CC-BY 4.0)
15
15
 
16
16
  ## Installation
17
17
 
@@ -47,7 +47,7 @@ Usage: somemoji extract [options]
47
47
  -h, --help Display this help message
48
48
  ```
49
49
 
50
- To extract emojis from Twemoji to ./images/emoji directory, execute:
50
+ e.g. To extract emojis from Twemoji into ./images/emoji directory, execute:
51
51
 
52
52
  ```bash
53
53
  somemoji extract --provider=twemoji --destination=./images/emoji
@@ -59,18 +59,18 @@ somemoji extract --provider=twemoji --destination=./images/emoji
59
59
 
60
60
  ```ruby
61
61
  Somemoji.emoji_one_emoji_collection.replace_code("I :heart: Emoji") do |emoji|
62
- %(<img alt="#{emoji.character}" class="emoji" src="/assets/emoji/#{emoji.base_path}.png">)
62
+ %(<img alt="#{emoji.character}" class="emoji" src="/images/emoji/#{emoji.base_path}.png">)
63
63
  end
64
- #=> 'I <img alt="❤" class="emoji" src="/assets/emoji/unicode/2764.png"> Emoji'
64
+ #=> 'I <img alt="❤" class="emoji" src="/images/emoji/unicode/2764.png"> Emoji'
65
65
  ```
66
66
 
67
67
  ### Replace emoji characters
68
68
 
69
69
  ```ruby
70
70
  Somemoji.noto_emoji_collection.replace_character("I 💗 Emoji") do |emoji|
71
- %(<img alt="#{emoji.character}" class="emoji" src="/assets/emoji/#{emoji.base_path}.png">)
71
+ %(<img alt="#{emoji.character}" class="emoji" src="/images/emoji/#{emoji.base_path}.png">)
72
72
  end
73
- #=> 'I <img alt="💗" class="emoji" src="/assets/emoji/unicode/1f497.png"> Emoji'
73
+ #=> 'I <img alt="💗" class="emoji" src="/images/emoji/unicode/1f497.png"> Emoji'
74
74
  ```
75
75
 
76
76
  ### Custom emojis
@@ -86,8 +86,8 @@ custom_emoji_collection.find_by_code("foo").class #=> Somemoji::Emoji
86
86
  custom_emoji_collection.find_by_code("bar").class #=> Somemoji::Emoji
87
87
  custom_emoji_collection.find_by_code("100").class #=> Somemoji::Emoji
88
88
  custom_emoji_collection.replace_code("I :bar: Emoji") do |emoji|
89
- %(<img alt="#{emoji.character || emoji.code}" class="emoji" src="/assets/emoji/#{emoji.base_path}.png">)
90
- end #=> 'I <img alt="bar" class="emoji" src="/assets/emoji/bar.png"> Emoji'
89
+ %(<img alt="#{emoji.character || emoji.code}" class="emoji" src="/images/emoji/#{emoji.base_path}.png">)
90
+ end #=> 'I <img alt="bar" class="emoji" src="/images/emoji/bar.png"> Emoji'
91
91
  ```
92
92
 
93
93
  ### HTML::Pipeline integration
@@ -25,6 +25,199 @@
25
25
  "9⃣",
26
26
  "©",
27
27
  "®",
28
+ "‼",
29
+ "⁉",
30
+ "⃣",
31
+ "™",
32
+ "ℹ",
33
+ "↔",
34
+ "↕",
35
+ "↖",
36
+ "↗",
37
+ "↘",
38
+ "↙",
39
+ "↩",
40
+ "↪",
41
+ "⌚",
42
+ "⌛",
43
+ "⌨",
44
+ "⏏",
45
+ "⏩",
46
+ "⏪",
47
+ "⏫",
48
+ "⏬",
49
+ "⏭",
50
+ "⏮",
51
+ "⏯",
52
+ "⏰",
53
+ "⏱",
54
+ "⏲",
55
+ "⏳",
56
+ "⏸",
57
+ "⏹",
58
+ "⏺",
59
+ "Ⓜ",
60
+ "▪",
61
+ "▫",
62
+ "▶",
63
+ "◀",
64
+ "◻",
65
+ "◼",
66
+ "◽",
67
+ "◾",
68
+ "☀",
69
+ "☁",
70
+ "☂",
71
+ "☃",
72
+ "☄",
73
+ "☎",
74
+ "☑",
75
+ "☔",
76
+ "☕",
77
+ "☘",
78
+ "☝",
79
+ "☝🏻",
80
+ "☝🏼",
81
+ "☝🏽",
82
+ "☝🏾",
83
+ "☝🏿",
84
+ "☠",
85
+ "☢",
86
+ "☣",
87
+ "☦",
88
+ "☪",
89
+ "☮",
90
+ "☯",
91
+ "☸",
92
+ "☹",
93
+ "☺",
94
+ "♈",
95
+ "♉",
96
+ "♊",
97
+ "♋",
98
+ "♌",
99
+ "♍",
100
+ "♎",
101
+ "♏",
102
+ "♐",
103
+ "♑",
104
+ "♒",
105
+ "♓",
106
+ "♠",
107
+ "♣",
108
+ "♥",
109
+ "♦",
110
+ "♨",
111
+ "♻",
112
+ "♿",
113
+ "⚒",
114
+ "⚓",
115
+ "⚔",
116
+ "⚖",
117
+ "⚗",
118
+ "⚙",
119
+ "⚛",
120
+ "⚜",
121
+ "⚠",
122
+ "⚡",
123
+ "⚪",
124
+ "⚫",
125
+ "⚰",
126
+ "⚱",
127
+ "⚽",
128
+ "⚾",
129
+ "⛄",
130
+ "⛅",
131
+ "⛈",
132
+ "⛎",
133
+ "⛏",
134
+ "⛑",
135
+ "⛓",
136
+ "⛔",
137
+ "⛩",
138
+ "⛪",
139
+ "⛰",
140
+ "⛱",
141
+ "⛲",
142
+ "⛳",
143
+ "⛴",
144
+ "⛵",
145
+ "⛷",
146
+ "⛸",
147
+ "⛹",
148
+ "⛹🏻",
149
+ "⛹🏼",
150
+ "⛹🏽",
151
+ "⛹🏾",
152
+ "⛹🏿",
153
+ "⛺",
154
+ "⛽",
155
+ "✂",
156
+ "✅",
157
+ "✈",
158
+ "✉",
159
+ "✊",
160
+ "✊🏻",
161
+ "✊🏼",
162
+ "✊🏽",
163
+ "✊🏾",
164
+ "✊🏿",
165
+ "✋",
166
+ "✋🏻",
167
+ "✋🏼",
168
+ "✋🏽",
169
+ "✋🏾",
170
+ "✋🏿",
171
+ "✌",
172
+ "✌🏻",
173
+ "✌🏼",
174
+ "✌🏽",
175
+ "✌🏾",
176
+ "✌🏿",
177
+ "✍",
178
+ "✍🏻",
179
+ "✍🏼",
180
+ "✍🏽",
181
+ "✍🏾",
182
+ "✍🏿",
183
+ "✏",
184
+ "✒",
185
+ "✔",
186
+ "✖",
187
+ "✝",
188
+ "✡",
189
+ "✨",
190
+ "✳",
191
+ "✴",
192
+ "❄",
193
+ "❇",
194
+ "❌",
195
+ "❎",
196
+ "❓",
197
+ "❔",
198
+ "❕",
199
+ "❗",
200
+ "❣",
201
+ "❤",
202
+ "➕",
203
+ "➖",
204
+ "➗",
205
+ "➡",
206
+ "➰",
207
+ "➿",
208
+ "⤴",
209
+ "⤵",
210
+ "⬅",
211
+ "⬆",
212
+ "⬇",
213
+ "⬛",
214
+ "⬜",
215
+ "⭐",
216
+ "⭕",
217
+ "〰",
218
+ "〽",
219
+ "㊗",
220
+ "㊙",
28
221
  "🀄",
29
222
  "🃏",
30
223
  "🅰",
@@ -998,5 +1191,393 @@
998
1191
  "😕",
999
1192
  "😖",
1000
1193
  "😗",
1001
- "😘"
1002
- ]
1194
+ "😘",
1195
+ "😙",
1196
+ "😚",
1197
+ "😛",
1198
+ "😜",
1199
+ "😝",
1200
+ "😞",
1201
+ "😟",
1202
+ "😠",
1203
+ "😡",
1204
+ "😢",
1205
+ "😣",
1206
+ "😤",
1207
+ "😥",
1208
+ "😦",
1209
+ "😧",
1210
+ "😨",
1211
+ "😩",
1212
+ "😪",
1213
+ "😫",
1214
+ "😬",
1215
+ "😭",
1216
+ "😮",
1217
+ "😯",
1218
+ "😰",
1219
+ "😱",
1220
+ "😲",
1221
+ "😳",
1222
+ "😴",
1223
+ "😵",
1224
+ "😶",
1225
+ "😷",
1226
+ "😸",
1227
+ "😹",
1228
+ "😺",
1229
+ "😻",
1230
+ "😼",
1231
+ "😽",
1232
+ "😾",
1233
+ "😿",
1234
+ "🙀",
1235
+ "🙁",
1236
+ "🙂",
1237
+ "🙃",
1238
+ "🙄",
1239
+ "🙅",
1240
+ "🙅🏻",
1241
+ "🙅🏼",
1242
+ "🙅🏽",
1243
+ "🙅🏾",
1244
+ "🙅🏿",
1245
+ "🙆",
1246
+ "🙆🏻",
1247
+ "🙆🏼",
1248
+ "🙆🏽",
1249
+ "🙆🏾",
1250
+ "🙆🏿",
1251
+ "🙇",
1252
+ "🙇🏻",
1253
+ "🙇🏼",
1254
+ "🙇🏽",
1255
+ "🙇🏾",
1256
+ "🙇🏿",
1257
+ "🙈",
1258
+ "🙉",
1259
+ "🙊",
1260
+ "🙋",
1261
+ "🙋🏻",
1262
+ "🙋🏼",
1263
+ "🙋🏽",
1264
+ "🙋🏾",
1265
+ "🙋🏿",
1266
+ "🙌",
1267
+ "🙌🏻",
1268
+ "🙌🏼",
1269
+ "🙌🏽",
1270
+ "🙌🏾",
1271
+ "🙌🏿",
1272
+ "🙍",
1273
+ "🙍🏻",
1274
+ "🙍🏼",
1275
+ "🙍🏽",
1276
+ "🙍🏾",
1277
+ "🙍🏿",
1278
+ "🙎",
1279
+ "🙎🏻",
1280
+ "🙎🏼",
1281
+ "🙎🏽",
1282
+ "🙎🏾",
1283
+ "🙎🏿",
1284
+ "🙏",
1285
+ "🙏🏻",
1286
+ "🙏🏼",
1287
+ "🙏🏽",
1288
+ "🙏🏾",
1289
+ "🙏🏿",
1290
+ "🚀",
1291
+ "🚁",
1292
+ "🚂",
1293
+ "🚃",
1294
+ "🚄",
1295
+ "🚅",
1296
+ "🚆",
1297
+ "🚇",
1298
+ "🚈",
1299
+ "🚉",
1300
+ "🚊",
1301
+ "🚋",
1302
+ "🚌",
1303
+ "🚍",
1304
+ "🚎",
1305
+ "🚏",
1306
+ "🚐",
1307
+ "🚑",
1308
+ "🚒",
1309
+ "🚓",
1310
+ "🚔",
1311
+ "🚕",
1312
+ "🚖",
1313
+ "🚗",
1314
+ "🚘",
1315
+ "🚙",
1316
+ "🚚",
1317
+ "🚛",
1318
+ "🚜",
1319
+ "🚝",
1320
+ "🚞",
1321
+ "🚟",
1322
+ "🚠",
1323
+ "🚡",
1324
+ "🚢",
1325
+ "🚣",
1326
+ "🚣🏻",
1327
+ "🚣🏼",
1328
+ "🚣🏽",
1329
+ "🚣🏾",
1330
+ "🚣🏿",
1331
+ "🚤",
1332
+ "🚥",
1333
+ "🚦",
1334
+ "🚧",
1335
+ "🚨",
1336
+ "🚩",
1337
+ "🚪",
1338
+ "🚫",
1339
+ "🚬",
1340
+ "🚭",
1341
+ "🚮",
1342
+ "🚯",
1343
+ "🚰",
1344
+ "🚱",
1345
+ "🚲",
1346
+ "🚳",
1347
+ "🚴",
1348
+ "🚴🏻",
1349
+ "🚴🏼",
1350
+ "🚴🏽",
1351
+ "🚴🏾",
1352
+ "🚴🏿",
1353
+ "🚵",
1354
+ "🚵🏻",
1355
+ "🚵🏼",
1356
+ "🚵🏽",
1357
+ "🚵🏾",
1358
+ "🚵🏿",
1359
+ "🚶",
1360
+ "🚶🏻",
1361
+ "🚶🏼",
1362
+ "🚶🏽",
1363
+ "🚶🏾",
1364
+ "🚶🏿",
1365
+ "🚷",
1366
+ "🚸",
1367
+ "🚹",
1368
+ "🚺",
1369
+ "🚻",
1370
+ "🚼",
1371
+ "🚽",
1372
+ "🚾",
1373
+ "🚿",
1374
+ "🛀",
1375
+ "🛀🏻",
1376
+ "🛀🏼",
1377
+ "🛀🏽",
1378
+ "🛀🏾",
1379
+ "🛀🏿",
1380
+ "🛁",
1381
+ "🛂",
1382
+ "🛃",
1383
+ "🛄",
1384
+ "🛅",
1385
+ "🛋",
1386
+ "🛌",
1387
+ "🛍",
1388
+ "🛎",
1389
+ "🛏",
1390
+ "🛐",
1391
+ "🛑",
1392
+ "🛒",
1393
+ "🛠",
1394
+ "🛡",
1395
+ "🛢",
1396
+ "🛣",
1397
+ "🛤",
1398
+ "🛥",
1399
+ "🛩",
1400
+ "🛫",
1401
+ "🛬",
1402
+ "🛰",
1403
+ "🛳",
1404
+ "🛴",
1405
+ "🛵",
1406
+ "🛶",
1407
+ "🤐",
1408
+ "🤑",
1409
+ "🤒",
1410
+ "🤓",
1411
+ "🤔",
1412
+ "🤕",
1413
+ "🤖",
1414
+ "🤗",
1415
+ "🤘",
1416
+ "🤘🏻",
1417
+ "🤘🏼",
1418
+ "🤘🏽",
1419
+ "🤘🏾",
1420
+ "🤘🏿",
1421
+ "🤙",
1422
+ "🤙🏻",
1423
+ "🤙🏼",
1424
+ "🤙🏽",
1425
+ "🤙🏾",
1426
+ "🤙🏿",
1427
+ "🤚",
1428
+ "🤚🏻",
1429
+ "🤚🏼",
1430
+ "🤚🏽",
1431
+ "🤚🏾",
1432
+ "🤚🏿",
1433
+ "🤛",
1434
+ "🤛🏻",
1435
+ "🤛🏼",
1436
+ "🤛🏽",
1437
+ "🤛🏾",
1438
+ "🤛🏿",
1439
+ "🤜",
1440
+ "🤜🏻",
1441
+ "🤜🏼",
1442
+ "🤜🏽",
1443
+ "🤜🏾",
1444
+ "🤜🏿",
1445
+ "🤝",
1446
+ "🤝🏻",
1447
+ "🤝🏼",
1448
+ "🤝🏽",
1449
+ "🤝🏾",
1450
+ "🤝🏿",
1451
+ "🤞",
1452
+ "🤞🏻",
1453
+ "🤞🏼",
1454
+ "🤞🏽",
1455
+ "🤞🏾",
1456
+ "🤞🏿",
1457
+ "🤠",
1458
+ "🤡",
1459
+ "🤢",
1460
+ "🤣",
1461
+ "🤤",
1462
+ "🤥",
1463
+ "🤦",
1464
+ "🤦🏻",
1465
+ "🤦🏼",
1466
+ "🤦🏽",
1467
+ "🤦🏾",
1468
+ "🤦🏿",
1469
+ "🤧",
1470
+ "🤰",
1471
+ "🤰🏻",
1472
+ "🤰🏼",
1473
+ "🤰🏽",
1474
+ "🤰🏾",
1475
+ "🤰🏿",
1476
+ "🤳",
1477
+ "🤳🏻",
1478
+ "🤳🏼",
1479
+ "🤳🏽",
1480
+ "🤳🏾",
1481
+ "🤳🏿",
1482
+ "🤴",
1483
+ "🤴🏻",
1484
+ "🤴🏼",
1485
+ "🤴🏽",
1486
+ "🤴🏾",
1487
+ "🤴🏿",
1488
+ "🤵",
1489
+ "🤵🏻",
1490
+ "🤵🏼",
1491
+ "🤵🏽",
1492
+ "🤵🏾",
1493
+ "🤵🏿",
1494
+ "🤶",
1495
+ "🤶🏻",
1496
+ "🤶🏼",
1497
+ "🤶🏽",
1498
+ "🤶🏾",
1499
+ "🤶🏿",
1500
+ "🤷",
1501
+ "🤷🏻",
1502
+ "🤷🏼",
1503
+ "🤷🏽",
1504
+ "🤷🏾",
1505
+ "🤷🏿",
1506
+ "🤸",
1507
+ "🤸🏻",
1508
+ "🤸🏼",
1509
+ "🤸🏽",
1510
+ "🤸🏾",
1511
+ "🤸🏿",
1512
+ "🤹",
1513
+ "🤹🏻",
1514
+ "🤹🏼",
1515
+ "🤹🏽",
1516
+ "🤹🏾",
1517
+ "🤹🏿",
1518
+ "🤺",
1519
+ "🤼",
1520
+ "🤼🏻",
1521
+ "🤼🏼",
1522
+ "🤼🏽",
1523
+ "🤼🏾",
1524
+ "🤼🏿",
1525
+ "🤽",
1526
+ "🤽🏻",
1527
+ "🤽🏼",
1528
+ "🤽🏽",
1529
+ "🤽🏾",
1530
+ "🤽🏿",
1531
+ "🤾",
1532
+ "🤾🏻",
1533
+ "🤾🏼",
1534
+ "🤾🏽",
1535
+ "🤾🏾",
1536
+ "🤾🏿",
1537
+ "🥀",
1538
+ "🥁",
1539
+ "🥂",
1540
+ "🥃",
1541
+ "🥄",
1542
+ "🥅",
1543
+ "🥇",
1544
+ "🥈",
1545
+ "🥉",
1546
+ "🥊",
1547
+ "🥋",
1548
+ "🥐",
1549
+ "🥑",
1550
+ "🥒",
1551
+ "🥓",
1552
+ "🥔",
1553
+ "🥕",
1554
+ "🥖",
1555
+ "🥗",
1556
+ "🥘",
1557
+ "🥙",
1558
+ "🥚",
1559
+ "🥛",
1560
+ "🥜",
1561
+ "🥝",
1562
+ "🥞",
1563
+ "🦀",
1564
+ "🦁",
1565
+ "🦂",
1566
+ "🦃",
1567
+ "🦄",
1568
+ "🦅",
1569
+ "🦆",
1570
+ "🦇",
1571
+ "🦈",
1572
+ "🦉",
1573
+ "🦊",
1574
+ "🦋",
1575
+ "🦌",
1576
+ "🦍",
1577
+ "🦎",
1578
+ "🦏",
1579
+ "🦐",
1580
+ "🦑",
1581
+ "🧀",
1582
+ "󾠫"
1583
+ ]
@@ -103,9 +103,9 @@ module Somemoji
103
103
  # @return [String] a replaced result
104
104
  # @example
105
105
  # Somemoji.emoji_collection.replace_character("I ❤ Emoji") do |emoji|
106
- # %(<img alt="#{emoji.character}" class="emoji" src="/assets/emoji/#{emoji.base_path}.png">)
106
+ # %(<img alt="#{emoji.character}" class="emoji" src="/images/emoji/#{emoji.base_path}.png">)
107
107
  # end
108
- # #=> 'I <img alt="❤" class="emoji" src="/assets/emoji/unicode/2764.png"> Emoji'
108
+ # #=> 'I <img alt="❤" class="emoji" src="/images/emoji/unicode/2764.png"> Emoji'
109
109
  def replace_character(string, &block)
110
110
  string.gsub(character_pattern) do |character|
111
111
  block.call(find_by_character(character), character)
@@ -117,9 +117,9 @@ module Somemoji
117
117
  # @return [String] a replaced result
118
118
  # @example
119
119
  # Somemoji.emoji_collection.replace_code("I :heart: Emoji") do |emoji|
120
- # %(<img alt="#{emoji.character}" class="emoji" src="/assets/emoji/#{emoji.base_path}.png">)
120
+ # %(<img alt="#{emoji.character}" class="emoji" src="/images/emoji/#{emoji.base_path}.png">)
121
121
  # end
122
- # #=> 'I <img alt="❤" class="emoji" src="/assets/emoji/unicode/2764.png"> Emoji'
122
+ # #=> 'I <img alt="❤" class="emoji" src="/images/emoji/unicode/2764.png"> Emoji'
123
123
  def replace_code(string, &block)
124
124
  string.gsub(code_pattern) do |matched_string|
125
125
  block.call(find_by_code(::Regexp.last_match(1)), matched_string)
@@ -20,7 +20,7 @@ module Somemoji
20
20
 
21
21
  private
22
22
 
23
- def make_directory
23
+ def make_destination_directory
24
24
  ::FileUtils.mkdir_p(@destination)
25
25
  end
26
26
 
@@ -6,7 +6,7 @@ module Somemoji
6
6
  class DownloadableEmojiExtractor < BaseEmojiExtractor
7
7
  # @note Implementation for Somemoji::EmojiExtractors::BaseEmojiExtractor
8
8
  def extract
9
- make_directory
9
+ make_destination_directory
10
10
  emojis.each do |emoji|
11
11
  download(emoji)
12
12
  print emoji.character unless silence?
@@ -1,3 +1,3 @@
1
1
  module Somemoji
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/lib/somemoji.rb CHANGED
@@ -5,8 +5,8 @@ require "somemoji/command_line_arguments"
5
5
  require "somemoji/commands/base_command"
6
6
  require "somemoji/commands/error_command"
7
7
  require "somemoji/commands/extract_command"
8
- require "somemoji/emoji_collection"
9
8
  require "somemoji/emoji"
9
+ require "somemoji/emoji_collection"
10
10
  require "somemoji/emoji_extractors/base_emoji_extractor"
11
11
  require "somemoji/emoji_extractors/apple_emoji_extractor"
12
12
  require "somemoji/emoji_extractors/downloadable_emoji_extractor"
@@ -52,7 +52,7 @@ module Somemoji
52
52
 
53
53
  # @return [Somemoji::EmojiCollection] an emoji collection including Noto emojis
54
54
  # @example
55
- # Somemoji.noto_emoji_collection.count #=> 962
55
+ # Somemoji.noto_emoji_collection.count #=> 1541
56
56
  def noto_emoji_collection
57
57
  @noto_emoji_collection ||= ::Somemoji::EmojiCollection.new(noto_emojis)
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: somemoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-08 00:00:00.000000000 Z
11
+ date: 2016-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemoji
@@ -1966,7 +1966,6 @@ files:
1966
1966
  - lib/somemoji/version.rb
1967
1967
  - script/generate_apple_supported_characters.rb
1968
1968
  - script/generate_emoji_definitions_from_gemojione.rb
1969
- - script/generate_noto_supported_characters.rb
1970
1969
  - script/generate_twemoji_supported_characters.rb
1971
1970
  - somemoji.gemspec
1972
1971
  homepage: https://github.com/r7kamura/somemoji
@@ -1,22 +0,0 @@
1
- require "json"
2
- require "net/https"
3
- require "pathname"
4
- require "somemoji"
5
-
6
- http = ::Net::HTTP.new("api.github.com", 443)
7
- http.use_ssl = true
8
- response = http.get("/repos/googlei18n/noto-emoji/contents/png/128")
9
- p response
10
- characters = JSON.parse(response.body).map do |hash|
11
- if hash["name"].start_with?("emoji")
12
- hash["name"][7..-5].split("_").map do |point|
13
- point.to_i(16)
14
- end.pack("U*")
15
- end
16
- end.compact
17
-
18
- Pathname.new(Somemoji.noto_supported_characters_path).parent.mkpath
19
- File.write(
20
- Somemoji.noto_supported_characters_path,
21
- JSON.pretty_generate(characters.sort),
22
- )