corn_starch 1.1.23 → 1.1.24

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: 79dd6e86400c8a8304ce22a95a1d5215ac3ac781
4
- data.tar.gz: 6c804297a842534f78a9d9e1b3a001f61a102f9c
3
+ metadata.gz: 8587f0750b957e7e40833d74be791226a908c6fc
4
+ data.tar.gz: 39fb10b8c886b213de5f929e65107348e0714fca
5
5
  SHA512:
6
- metadata.gz: afd3f3a774e8042740b9169bb4a55a92ad60efab7a270c83ff7c139152070d24cfb84a0300dbc5a9597bd577533837eea6ef1942b9214c2c3e0eceae0a905234
7
- data.tar.gz: 7397fb82f6630e6db6d032aba2bd41076fa8726b0fd66f8c3dff16e44e9e064bc9366c98f14b0af04de25c93270c5d3c9c0e2a182c5987bc420b9b99b9cb936a
6
+ metadata.gz: ae9f883bec7121360e206406e8f4cca0cd22d96ff9ffd3013e45f13ae9b84f981502a26ed661b9ce7d7e681d3d1dfcc4b5d391e0f2f60486d1c7a3ccd2736d33
7
+ data.tar.gz: 8df11a7cf0f64065d2ae99386f35045446418444dbea8485a9b82abdb0183f0b22d31c741c04d6eae8be224cccc705e1c3ac1f57f5b18d267025bbdea45f2cef
@@ -151,6 +151,9 @@ module CornStarch
151
151
  total = collection.count
152
152
  @pagination[:pg_count] = (total / @pagination[:recs_per_page]) + (((total % @pagination[:recs_per_page]) > 0) ? 1 : 0)
153
153
 
154
+ # DEBUG
155
+ puts "================== PAGINATION : #{@pagination}"
156
+
154
157
  # Compute Page Range
155
158
  range_start = current - (CORNSTARCH_CONF[:pagination][:page_range] / 2)
156
159
  range_start = 0 if range_start < 0
@@ -1,3 +1,3 @@
1
1
  module CornStarch
2
- VERSION = '1.1.23'
2
+ VERSION = '1.1.24'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corn_starch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.23
4
+ version: 1.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse