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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/record_extractor.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ab982386891076f076e8a420e4f7bce3ae6c4c3
4
- data.tar.gz: 3ee4daebb86e545421496ee3b7d1badd1e7484ed
3
+ metadata.gz: 8ba110a511e94a6806f7cea6863401e58e7ff2a8
4
+ data.tar.gz: 8c498d9b582c93c4ee721d4c27af5f29a11cf528
5
5
  SHA512:
6
- metadata.gz: 5a52c45e78b71da6d978fc8550c18350002a039b1433c5ece654992a3bcf508eadd7435dea2d977db359c2118f03fcaf2b02c2ef4da05db34cdb9c8c3c7af5e8
7
- data.tar.gz: 127b1475369e4196e81eaac262da037e41cecfc9e2df38ea49dfa80aeebbe4300cd84865362891808152b8838b81b35cf7533c86809af02909a3af452a5a358a
6
+ metadata.gz: 0f85d1f891cc31d2221cb822af36c2c4e31e501630c31c6cdeab90b508f3740f5b36830624d5c655ba35278a1000b1498f4b86a80b47891b924dd32c406ce9c3
7
+ data.tar.gz: af03f61ef88213c089ead811b6dc42676245614f7e4fada7f016851be224dfc9072ba355bcba7cd3772e68449257d5a92751c41f7ab4929db1455810d07e9961
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algoliasearch-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Carry