sutty-liquid 0.10.0 → 0.10.1

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/jekyll/filters/arrays.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bd8433b8f97fbe8879c39058fc087ae949633ab565d4d939065b50723b70ee3
4
- data.tar.gz: 9fd4f7706057a9d200a843ee8496a02c2a2464c7a3bcd218f59646007997d08b
3
+ metadata.gz: f89b4f4a0b3dc57f4720491bd1245b63e48a018eb059f1e1c065178e8d0ab185
4
+ data.tar.gz: 797a226386270f608022b0c9ff89402a17b0806fba9e409e0fb99eff2bdad475
5
5
  SHA512:
6
- metadata.gz: 4a67f0e87622f14d7cf6c00aa88fbfd4e8ac970bc33f4d47a4b9838eaec8169747dc2e6ced49057be52796097151953edc3b43f3ba3ba47b98d42dfe705cd55f
7
- data.tar.gz: 48ad31dc479ed967a74c3aa73113f689959fc03a57af9a38d74fe323b00033c655f559c878c93644dc9043b6dbe577c490f8906d4fe9b7c3528b37155df561d2
6
+ metadata.gz: 924ba6d9c6d01f1f3b313782911de7ce751e7dab63fbfd99cb18ccbec9f34ee2fe30ff9a65a5cc7e5b203ac3a90a2b094d89606a0247905322d9d611dd175eda
7
+ data.tar.gz: d2b3c2c91a51311313cff91b82ca752d680eb54b12145187bbeaa0771e0473fe561e3995c583bcbdb78e5297a67b42fae58bdeb427ef30dfaa8e5dc8c8aa6c5b
@@ -103,7 +103,7 @@ module Jekyll
103
103
  liquid_input = input.to_liquid
104
104
  liquid_posts = posts.map(&:to_liquid)
105
105
  index = find_in_stack(liquid_input, liquid_posts)
106
- liquid_posts[index - 1] if index && index >= 0
106
+ liquid_posts[index - 1] if index && index > 0
107
107
  end
108
108
 
109
109
  alias_method :previous, :prev
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sutty-liquid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-20 00:00:00.000000000 Z
11
+ date: 2022-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll