dimples 1.2.2 → 1.2.3

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: b06f5d85fc93430772a31fb3d59d95b386fe0584
4
- data.tar.gz: 4a7d4a497a80f9562fc84785099daab430a20644
3
+ metadata.gz: b634c387f28dce364954a393bdd1c515942c53f8
4
+ data.tar.gz: 0b04146454413293bcdc39962f9057a7bff40660
5
5
  SHA512:
6
- metadata.gz: 9f447f07a4c934b317eb7031c2bd9b83b6aaf3baae68d6198e9b5351fcec196204424a4c4bd054515ccaaddb9c2d2234ff5dfea367b7c6f71f1bd456a2f386d3
7
- data.tar.gz: 8303a4f21392640686bd012cd1a5118cabf1a4df2957da8dc2010ac1f518da16da33e9fb70182365788933a79bdef443be5fff39d9ffd6956d5d381e09471eeb
6
+ metadata.gz: c2d8140add07d0aa4bfcffbdc5267c622d8d4cc34ba050c4b6ed2c3a2e509e90964613a976431840b49734a85417886a363bc4606e499e93a4a9e4cb4d9417a4
7
+ data.tar.gz: 8df6e21eb9b1b569ae2c82dd955d3c94a036aa3bc5c368dbfc0f9e116a024f2fa7bc7a2a54bb7b99f1a0f8d90fb8f75c4106af35eea4cbff74cfcab249596e56
data/lib/dimples/site.rb CHANGED
@@ -102,7 +102,7 @@ module Dimples
102
102
  end
103
103
 
104
104
  @posts.each_index do |index|
105
- posts[index].next_post = @posts.fetch(index - 1, nil) if index - 1 > 0
105
+ @posts[index].next_post = @posts.fetch(index - 1, nil) if index - 1 >= 0
106
106
  @posts[index].previous_post = @posts.fetch(index + 1, nil) if index + 1 < @posts.count
107
107
  end
108
108
 
@@ -1,3 +1,3 @@
1
1
  module Dimples
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dimples
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Bogan