emojidex 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38f168e5b3e44ece9bc18b6bcf4f30ffdcb26230
4
- data.tar.gz: 3da0355e84262f4617850ccd0f2d3c1a845324a1
3
+ metadata.gz: d9bcce2f396071da3e9609b14ed09a0c91ecbd94
4
+ data.tar.gz: 7afe3fe6f3e908c63b054cd39669026180610811
5
5
  SHA512:
6
- metadata.gz: cadc4eb7ac764cb8b06876f1fed3ef010ce33e6d7c4dff3621759f8f356ca52a19529ce57cdd81343910f7817ffcd3258ff112eb9faffd6e5333a245f8ae76ef
7
- data.tar.gz: 94132915b14cabc601913068f5a02972fc3385911f4b8f6954579d215665933ab30962336dc067a85af45352892aca5b6efaacb1d3dd63557dfc5d1610a2b00f
6
+ metadata.gz: 785c9d9b8c51c30c41737ff6fddc4fa7fd20511257c83c98a67c327325e1f3bcaeff0dbdc40ea0c4145374aa6e3c25842080b396be847677cde800a959393a88
7
+ data.tar.gz: 023d1915cfbd3ded8a17e291beeb354762ea85586c013b104fdbc6d8116bfdc72d5c7913e5f6949cd78c078f1918935e01435d856ce82d55a871abfc73e38bab
data/emojidex.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'emojidex'
3
- s.version = '0.3.3'
3
+ s.version = '0.3.4'
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' \
@@ -113,7 +113,7 @@ module Emojidex
113
113
  # Returns a new collection of only emoji in the specified category
114
114
  def category(category_code)
115
115
  categorized = @emoji.values.select { |moji| moji.category == category_code }
116
- Emojidex::Data::Collection.new(emoji: categorized)
116
+ Emojidex::Data::Collection.new(emoji: categorized, r18: @r18)
117
117
  end
118
118
 
119
119
  # Check to see if there are emoji in this collection which have the specified categories
@@ -68,6 +68,7 @@ module Emojidex
68
68
  def cache_index(destination = nil)
69
69
  destination ||= @cache_path
70
70
  idx = Emojidex::Data::Collection.new
71
+ idx.r18 = @r18
71
72
  idx.load_local_collection(destination) if FileTest.exist? "#{destination}/emoji.json"
72
73
  idx.add_emoji @emoji.values
73
74
  idx.write_index(destination)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emojidex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rei Kagetsuki