algoliasearch-jekyll 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/record_extractor.rb +1 -1
- 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: 8ba110a511e94a6806f7cea6863401e58e7ff2a8
|
4
|
+
data.tar.gz: 8c498d9b582c93c4ee721d4c27af5f29a11cf528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f85d1f891cc31d2221cb822af36c2c4e31e501630c31c6cdeab90b508f3740f5b36830624d5c655ba35278a1000b1498f4b86a80b47891b924dd32c406ce9c3
|
7
|
+
data.tar.gz: af03f61ef88213c089ead811b6dc42676245614f7e4fada7f016851be224dfc9072ba355bcba7cd3772e68449257d5a92751c41f7ab4929db1455810d07e9961
|
data/lib/record_extractor.rb
CHANGED
@@ -147,7 +147,7 @@ class AlgoliaSearchRecordExtractor
|
|
147
147
|
# Get list of unique words in headings
|
148
148
|
title_words = %i(title h1 h2 h3 h4 h5 h6)
|
149
149
|
.select { |title| data.key?(title) }
|
150
|
-
.map { |title| data[title].split(/\W+/) }
|
150
|
+
.map { |title| data[title].to_s.split(/\W+/) }
|
151
151
|
.flatten
|
152
152
|
.compact
|
153
153
|
.map(&:downcase)
|