jekyll-algolia 1.2.1 → 1.2.2

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: a5b326416385ab2dc6e2d9f7fc907f2a3629e193
4
- data.tar.gz: f081f8814d27e39d610e74828921b3737ca2e5c1
3
+ metadata.gz: 8b6433c0b94ecdcff87f99aba83da0f0e6c69acb
4
+ data.tar.gz: 23846665446cae0927cb5a4677a80c82b31fb0f7
5
5
  SHA512:
6
- metadata.gz: e1e02e97125a5d12c6b71f64294dcd09120e5775b678bd993440913ec7dd44095fcc81617b79b513d89b88b05242dcd79e4b19891c031674d879b20d40a555ff
7
- data.tar.gz: c2c4a50197b52f226cd7d666390c0929af8ae6c164e0f59975968dfe782ef9f385059e7f0d96bf4de7b48059a0eeb5bc3b0dbea628fb9555ca66a5d8ab040e8e
6
+ metadata.gz: ed9c134b992afb611c0e2116e2be5ceff53aea8280ed93d5e1673a3bac958b3b745118df4d2116d33e1836b535c5d42da25c67c753f3bd4a5a9180a1aea5c167
7
+ data.tar.gz: 7c3cfffce318208ccf088d0af1448c96020970329cbe7b0d27105dbcd619ae07cf1b4cc96fabc05ff93b812637a778a8a0197125442d3824798d48277dab7cbf
@@ -12,7 +12,12 @@ module Jekyll
12
12
  # record - The hash of the record to be pushed
13
13
  # node - The Nokogiri node of the element
14
14
  def self.apply_each(record, node, context)
15
- before_indexing_each(record, node, context)
15
+ case method(:before_indexing_each).arity
16
+ when 2
17
+ before_indexing_each(record, node)
18
+ else
19
+ before_indexing_each(record, node, context)
20
+ end
16
21
  end
17
22
 
18
23
  # Public: Apply the before_indexing_all hook to all records.
@@ -22,7 +27,12 @@ module Jekyll
22
27
  #
23
28
  # records - The list of all records to be indexed
24
29
  def self.apply_all(records, context)
25
- before_indexing_all(records, context)
30
+ case method(:before_indexing_all).arity
31
+ when 1
32
+ before_indexing_all(records)
33
+ else
34
+ before_indexing_all(records, context)
35
+ end
26
36
  end
27
37
 
28
38
  # Public: Check if the file should be indexed or not
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Algolia
5
- VERSION = '1.2.1'
5
+ VERSION = '1.2.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-algolia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Carry