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 +4 -4
- data/emojidex.gemspec +1 -1
- data/lib/emojidex/data/collection.rb +1 -1
- data/lib/emojidex/data/collection/cache.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9bcce2f396071da3e9609b14ed09a0c91ecbd94
|
4
|
+
data.tar.gz: 7afe3fe6f3e908c63b054cd39669026180610811
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 785c9d9b8c51c30c41737ff6fddc4fa7fd20511257c83c98a67c327325e1f3bcaeff0dbdc40ea0c4145374aa6e3c25842080b396be847677cde800a959393a88
|
7
|
+
data.tar.gz: 023d1915cfbd3ded8a17e291beeb354762ea85586c013b104fdbc6d8116bfdc72d5c7913e5f6949cd78c078f1918935e01435d856ce82d55a871abfc73e38bab
|
data/emojidex.gemspec
CHANGED
@@ -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)
|