emojidex 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/emojidex.gemspec +1 -1
- data/lib/emojidex/collection.rb +3 -0
- data/lib/emojidex/collection/moji_data.rb +18 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18eaa63af54aa2ee525eb36a906cdd76936484c6
|
4
|
+
data.tar.gz: 96d09a92dd33fbd8cefc09ad70d4533979cad1a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b51d890e00a1bc1f5aa9852fa39b5431b8455bf71750f663b2a289c34ebaf0df9e6f395e336d6bbfad5efc446407a62b8abc999de0e4d0cd31cae310083757af
|
7
|
+
data.tar.gz: 2cbec3a818d5000c662dd6a1608a6064963e2620493cb2b615fc5dd5ccf4c9a9054314075b144e9ae4d4b0bcdf290c3b43c8ebc662df2184c86702fd712f5530
|
data/emojidex.gemspec
CHANGED
data/lib/emojidex/collection.rb
CHANGED
@@ -5,12 +5,14 @@ require_relative 'emoji'
|
|
5
5
|
require_relative 'categories'
|
6
6
|
require_relative 'collection/cache'
|
7
7
|
require_relative 'collection/asset_information'
|
8
|
+
require_relative 'collection/moji_data'
|
8
9
|
|
9
10
|
module Emojidex
|
10
11
|
# listing and search of standard UTF emoji
|
11
12
|
class Collection
|
12
13
|
include Emojidex::CollectionCache
|
13
14
|
include Emojidex::CollectionAssetInformation
|
15
|
+
include Emojidex::CollectionMojiData
|
14
16
|
attr_accessor :emoji, :categories,
|
15
17
|
:source_path, :vector_source_path, :raster_source_path
|
16
18
|
|
@@ -107,6 +109,7 @@ module Emojidex
|
|
107
109
|
end
|
108
110
|
end
|
109
111
|
categorize
|
112
|
+
condense_moji_code_data
|
110
113
|
@emoji
|
111
114
|
end
|
112
115
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Emojidex
|
2
|
+
# collects and condenses UTF moji codes within a collection
|
3
|
+
module CollectionMojiData
|
4
|
+
attr_reader :moji_code_string, :moji_code_index
|
5
|
+
|
6
|
+
def condense_moji_code_data
|
7
|
+
@moji_code_string = ""
|
8
|
+
@moji_code_index = {}
|
9
|
+
|
10
|
+
@emoji.values.each do |moji|
|
11
|
+
if moji.moji != nil
|
12
|
+
@moji_code_string << moji.moji
|
13
|
+
@moji_code_index[moji.moji] = moji.code
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emojidex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rei Kagetsuki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- lib/emojidex/collection.rb
|
77
77
|
- lib/emojidex/collection/asset_information.rb
|
78
78
|
- lib/emojidex/collection/cache.rb
|
79
|
+
- lib/emojidex/collection/moji_data.rb
|
79
80
|
- lib/emojidex/collection_checker.rb
|
80
81
|
- lib/emojidex/defaults.rb
|
81
82
|
- lib/emojidex/emoji.rb
|
@@ -165,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
166
|
version: '0'
|
166
167
|
requirements: []
|
167
168
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.4.
|
169
|
+
rubygems_version: 2.4.5
|
169
170
|
signing_key:
|
170
171
|
specification_version: 4
|
171
172
|
summary: emojidex Ruby tools
|