tabulatr2 0.9.25 → 0.9.26

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: 93a7f7f2e647df8335e8b04e01c0c0487e842855
4
- data.tar.gz: 3c34950af40251e68d3a48d49046665b7c02b6bc
3
+ metadata.gz: 97f699d8ab1fcea5cd8d5f0b5a9cc8136b0edfc1
4
+ data.tar.gz: d4380cdab70f37580fccf9ca621e7cb5f2570333
5
5
  SHA512:
6
- metadata.gz: 865f79bc948ee5d7cd703d39a22c9d137d9348ee87936bd4cdf0d9c0cabefc2a5adbaa0ea3a9e48edf2e93491656f1024680ec5e8c4e2a8d8e4a2f7f29e912d8
7
- data.tar.gz: 25d25401d6f5724424ece2c397ffe713b0d456dae7b5e2f21ccc51812bc71732208d6398f2c28a821e65c38fd287c6293203a4e00d47fc0f7b54ea581670d9cd
6
+ metadata.gz: b5750aa7da323843e655c894e2f75fce56f75cf620fd0f2d9084eab7ceeb89188a98bda30bfce563f343cb03143f92926cac02a9adb54832c6aea515b9228fb1
7
+ data.tar.gz: 785dddc4571c27ac1d128bef14beaad53825ecb5af86bdc098695bb409fa2322d5c41996c9a215d9f23bdbc8f15becc94ebfc877fbc886dd31f0f4a74ea78311
@@ -32,6 +32,7 @@ module Tabulatr::Data::Pagination
32
32
  count = count.count if count.is_a?(Hash)
33
33
  page ||= 1
34
34
  pagesize, page = pagesize.to_i, page.to_i
35
+ pagesize = Tabulatr::pagesize if pagesize == 0
35
36
 
36
37
  pages = (count/pagesize.to_f).ceil
37
38
  {
@@ -22,5 +22,5 @@
22
22
  #++
23
23
 
24
24
  module Tabulatr
25
- VERSION = "0.9.25"
25
+ VERSION = "0.9.26"
26
26
  end
@@ -18,9 +18,9 @@ describe Tabulatr::Renderer do
18
18
  expect(renderer.instance_variable_get('@table_options')[:pagination_position]).to eq :top
19
19
  end
20
20
 
21
- it 'sets persistent to false if not set explicitely' do
21
+ it 'sets persistent to true if not set explicitely' do
22
22
  renderer = Tabulatr::Renderer.new(Product, double_view)
23
- expect(renderer.instance_variable_get('@table_options')[:persistent]).to eq false
23
+ expect(renderer.instance_variable_get('@table_options')[:persistent]).to eq true
24
24
  end
25
25
 
26
26
  it 'sets persistent to true if paginate is true' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabulatr2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.25
4
+ version: 0.9.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Horn
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-20 00:00:00.000000000 Z
13
+ date: 2015-12-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -281,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
281
281
  version: '0'
282
282
  requirements: []
283
283
  rubyforge_project:
284
- rubygems_version: 2.4.7
284
+ rubygems_version: 2.4.5.1
285
285
  signing_key:
286
286
  specification_version: 4
287
287
  summary: A tight DSL to build tables of ActiveRecord models with sorting, pagination,