page_up 0.0.9 → 0.0.10

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: 95b21376934e5e252221044108c530919bbfcbef
4
- data.tar.gz: ef6029e14b2ae406fd1d588199c03c14c5e24487
3
+ metadata.gz: 309a61fb2f297b15b8cb13c9518c51d2e75b56e1
4
+ data.tar.gz: c83e8b9629202e333d41be7c767d4379604d7d92
5
5
  SHA512:
6
- metadata.gz: 212a318ad7b6ff7b796146a655d8bae6811d48906771664116f7a62a59beaf78cadc0a23f97550ca7e62270f3039e84edf9bb21283d0256bacae7cb375c5b035
7
- data.tar.gz: f23a2bac6fbaa2ebc8bc18727329f1fc35f13dc6b83d0a3df4c62df86080ec09b8a54c29067e85baef386a0a5ca46b5f6155b990fdba40afb4b776207602f851
6
+ metadata.gz: f2a1d0bb31e7b1d1cff7fe78eae919f3cbb36227f2fd59a09938bc5f9120744b5ad9b37357d0b3d0179cb69951ef0b8c49b0d9a74c2ba664e4a294c831f2167c
7
+ data.tar.gz: f8f66fd203c1ff540082fd8bdd6a15a52b17ebd9d5f46ad6ca5217c84659b767fd4abdfc74daa2f8fc4ea3a89648a76c692efc69b36e55de761445ac34d4e723
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -45,7 +45,11 @@ module PageUp
45
45
  end
46
46
 
47
47
  def slice_start
48
- start = pages - ((page + 2 > pages) ? 4 : 2)
48
+ start = if page + 2 > pages
49
+ pages - 4
50
+ else
51
+ page - 2
52
+ end
49
53
  start > 0 ? start : 1
50
54
  end
51
55
 
@@ -1,3 +1,3 @@
1
1
  module PageUp
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: page_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Rowe
metadata.gz.sig CHANGED
Binary file