query_helper 0.2.16 → 0.2.17

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
  SHA256:
3
- metadata.gz: ec3e2ffc3d82e55e6e2898c06071e3dc08111df35b70c0b51f430d6f0b85c8b4
4
- data.tar.gz: 13e9d510e2c5cee31a8ac64b089d9822402742d2a31f3e34bf51dd2db0db1ae7
3
+ metadata.gz: 761535bdbebea924ac3d4ab1ed900f50a047f2e79ed5c2121b5f0eecf0327388
4
+ data.tar.gz: bb55e4554e416e2729d35c2fc1091d65726bde73fc1db93e192baf1275237bb0
5
5
  SHA512:
6
- metadata.gz: 121e0ec7dfab835a7aa77d368d82bfc373d8b13c8a7483c4950a9f9995c676d25c51bfd29eb9a48b0781f1ab12fabe10334612d766188fd568581f209b509df7
7
- data.tar.gz: 6f03e2fa58fc313e657f8d0ff868e9c6bfe668713202e227451369f2b47b99e4d3b0015113ca1f7cd4add40d20bc6fccc9833fd60204784d89d1c22c2c9a01c5
6
+ metadata.gz: 0ba6ddb3222dba240810b0df6e1bc1025a2510d4b00c06430fc91c8786dbacc3d06df83f7986766a1d0755988550fdc44396fa1357c7c1cd2accc54edc904345
7
+ data.tar.gz: 33c4194f5bd8da5abdf8e7f2e78f0fcd9d84e5184c89ac3e926b8435e2a125f8b0f4428532fbfe24f6288e20f4c8520731c88720f2261788738f16048d8f0a49
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- query_helper (0.2.16)
4
+ query_helper (0.2.17)
5
5
  activerecord (> 5)
6
6
  activesupport (> 5)
7
7
 
@@ -188,7 +188,7 @@ class QueryHelper
188
188
  next_page = results_page + 1 if results_page.between?(1, total_pages - 1)
189
189
  previous_page = results_page - 1 if results_page.between?(2, total_pages)
190
190
  first_page = results_page == 1
191
- last_page = results_page == total_pages
191
+ last_page = results_page >= total_pages
192
192
  out_of_range = !results_page.between?(1,total_pages)
193
193
 
194
194
  { count: count,
@@ -1,3 +1,3 @@
1
1
  class QueryHelper
2
- VERSION = "0.2.16"
2
+ VERSION = "0.2.17"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.16
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan McDaniel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-05 00:00:00.000000000 Z
11
+ date: 2020-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler