somemoji 0.4.5 → 0.4.6

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: 2201b01a4cdcc5d384154078e5dc4e7542fadc52
4
- data.tar.gz: 1481dd7395b09f4a98ec966af25e3c2bb61acec5
3
+ metadata.gz: a292683f22e36fb3bc583485d4fc45cb4428c0dc
4
+ data.tar.gz: 8417fa48fe1b657e1aea4250d464f1b7be345574
5
5
  SHA512:
6
- metadata.gz: 63ef3f5f5e9dbdead0bbe89377b73098877abf0b15cc6903fb39b69db2950184eccfe2277008159153f2fcd531fdfdf738d3aa5f6f3558efdb68ce4f820a0d9f
7
- data.tar.gz: 1cc062f63951f0855aaba1b369973aecc9b8386592cabf5e38fe995b26338c347c96d70b9bcbacf37280e4cbb02bb7f021058e5e8e41c4e83253f5447d422024
6
+ metadata.gz: 6474e43e218ef6a7ff9e2bd12cba0fd8813c71c92c0e73ded16f7d264a9cea64c85d51a656c02cb2ad9a99b87df1788c27a25e224c592a71db93a8bdedb99378
7
+ data.tar.gz: 671058cf710edd556f663434e3c9d70bb733621ea297130197dbbc84f5845d20db6b839d6892dd0fa12ed1c5f42785b5a1374bf3e27aea9c961de4997a9b2e66
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.4.6
2
+
3
+ - Fix twemoji extractor so that missing emojis are now downloadable
4
+
1
5
  ## v0.4.5
2
6
 
3
7
  - Improve `Somemoji::EmojiCollection#search_by_code` so that it matches with aliases
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Somemoji
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/somemoji.svg)](https://badge.fury.io/rb/somemoji)
3
+ [![Gem Version](https://badge.fury.io/rb/somemoji.svg)](https://rubygems.org/gems/somemoji)
4
+ [![CircleCI](https://img.shields.io/circleci/project/r7kamura/somemoji.svg)](https://circleci.com/gh/r7kamura/somemoji)
4
5
  [![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/github/r7kamura/somemoji)
5
- [![CircleCI](https://circleci.com/gh/r7kamura/somemoji.svg?style=svg)](https://circleci.com/gh/r7kamura/somemoji)
6
6
 
7
7
  A grand unified emoji mapper for some emoji providers.
8
8
 
@@ -18,7 +18,7 @@ module Somemoji
18
18
 
19
19
  # @note Implementation for Somemoji::EmojiExtractors::DownloadableEmojiExtractor
20
20
  def emojis
21
- ::Somemoji.emoji_one_emoji_collection.each
21
+ ::Somemoji.emoji_one_emoji_collection
22
22
  end
23
23
 
24
24
  # @note Implementation for Somemoji::EmojiExtractors::DownloadableEmojiExtractor
@@ -16,7 +16,7 @@ module Somemoji
16
16
 
17
17
  # @note Implementation for Somemoji::EmojiExtractors::DownloadableEmojiExtractor
18
18
  def emojis
19
- ::Somemoji.noto_emoji_collection.each
19
+ ::Somemoji.noto_emoji_collection
20
20
  end
21
21
 
22
22
  # @note Implementation for Somemoji::EmojiExtractors::DownloadableEmojiExtractor
@@ -16,12 +16,15 @@ module Somemoji
16
16
 
17
17
  # @note Implementation for Somemoji::EmojiExtractors::DownloadableEmojiExtractor
18
18
  def emojis
19
- ::Somemoji.emoji_one_emoji_collection.each
19
+ ::Somemoji.emoji_one_emoji_collection
20
20
  end
21
21
 
22
22
  # @note Implementation for Somemoji::EmojiExtractors::DownloadableEmojiExtractor
23
23
  def find_remote_emoji_path(emoji)
24
- "/twitter/twemoji/v2.2.1/#{directory_name}/#{emoji.code_points.join('-').downcase}.#{extension}"
24
+ basenames = emoji.code_points.map do |code_point|
25
+ code_point.to_i(16).to_s(16)
26
+ end
27
+ "/twitter/twemoji/v2.2.1/#{directory_name}/#{basenames.join('-')}.#{extension}"
25
28
  end
26
29
 
27
30
  # @note Implementation for Somemoji::EmojiExtractors::DownloadableEmojiExtractor
@@ -1,3 +1,3 @@
1
1
  module Somemoji
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  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.5
4
+ version: 0.4.6
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-19 00:00:00.000000000 Z
11
+ date: 2016-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemoji