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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f3c825d509d18d67da15c059e793961339c4268
4
- data.tar.gz: 60223c340f7e7e78d843421b7350dd9b05bbe515
3
+ metadata.gz: 18eaa63af54aa2ee525eb36a906cdd76936484c6
4
+ data.tar.gz: 96d09a92dd33fbd8cefc09ad70d4533979cad1a2
5
5
  SHA512:
6
- metadata.gz: 7e6a68749ee816b6c617ececc990b36c0b0b6b929b962aa612b0a15572f0ff36ade5bced5aaa3d698760e804205c3e32d658aa9fda24e9d573204942fd1160a3
7
- data.tar.gz: 367be82bc3728cac932cff8a3ccc3dc642df01c2041b4fcbcee79a12d2cdef7a8fba465f4d83d73a91234c46a0fa817ca6162f6ee391de8a829a975ff9d055a5
6
+ metadata.gz: b51d890e00a1bc1f5aa9852fa39b5431b8455bf71750f663b2a289c34ebaf0df9e6f395e336d6bbfad5efc446407a62b8abc999de0e4d0cd31cae310083757af
7
+ data.tar.gz: 2cbec3a818d5000c662dd6a1608a6064963e2620493cb2b615fc5dd5ccf4c9a9054314075b144e9ae4d4b0bcdf290c3b43c8ebc662df2184c86702fd712f5530
data/emojidex.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'emojidex'
3
- s.version = '0.0.21'
3
+ s.version = '0.0.22'
4
4
  s.license = 'emojiOL'
5
5
  s.summary = 'emojidex Ruby tools'
6
6
  s.description = 'emojidex emoji handling, search and lookup, listing and caching functionality' \
@@ -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.21
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-01-08 00:00:00.000000000 Z
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.4
169
+ rubygems_version: 2.4.5
169
170
  signing_key:
170
171
  specification_version: 4
171
172
  summary: emojidex Ruby tools