bootstrap_pager 0.10.0 → 0.10.1

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: 35b6454a6f2b7f40932a1a9c1c5ae0c379d741a4
4
- data.tar.gz: 0cc7f89aebfcbb9a4951559a01207c1d41b4b205
3
+ metadata.gz: f4ce0a746fa95f37caaf6f818de7689f4cc9dc75
4
+ data.tar.gz: 82547fde079e25411243830d6cefd4230708bfdf
5
5
  SHA512:
6
- metadata.gz: cd4516fa9274a31352406cbdc03c4808332570897f7cd9992a5a24c21c5d922fa120e3ffffe25fa37684afd765a098d9d1f5311b2f56868b48e7b46ce0fd97f0
7
- data.tar.gz: 3d3c022c7d72ef2e84cef4a8324cbf7e0c53132edd9762a72582b8eaee305c6ab6d3235dbb8863a94f86579eebba23e1d531039dba5db97c828e4677363bfc4f
6
+ metadata.gz: bd206fcde2f98af177c21d6ae2ed8698c343a71eec604ff26cbeaeedb8e462d230fde2d31b56fd0099b86f1525f259c43285d26d6923826b4b595948ecf56d89
7
+ data.tar.gz: 28d4b0d1ae5d1a20eba442895111524d77e4bbed6850661403a96ecb76628a564b7620522543ff61b94ed76421a83a1a58558ef42125814d9dd8d2427483ef36
@@ -18,8 +18,8 @@ module BootstrapPager
18
18
  end
19
19
 
20
20
  # Total number of pages
21
- def total_pages
22
- count_without_padding = total_count
21
+ def total_pages(column = :id)
22
+ count_without_padding = total_count(column)
23
23
  count_without_padding -= @_padding if defined?(@_padding) && @_padding
24
24
  count_without_padding = 0 if count_without_padding < 0
25
25
 
@@ -1,3 +1,3 @@
1
1
  module BootstrapPager
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_pager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Lundgren
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-30 00:00:00.000000000 Z
11
+ date: 2016-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -316,10 +316,41 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  version: '0'
317
317
  requirements: []
318
318
  rubyforge_project: bootstrap_pager
319
- rubygems_version: 2.4.5
319
+ rubygems_version: 2.5.1
320
320
  signing_key:
321
321
  specification_version: 4
322
322
  summary: A pagination engine plugin for Rails 3+ or other modern frameworks. Now with
323
323
  more shiny, including infinite paging, bootstrap integration, and the ability to
324
324
  use it within an engine.
325
- test_files: []
325
+ test_files:
326
+ - spec/config/config_spec.rb
327
+ - spec/fake_app/active_record/config.rb
328
+ - spec/fake_app/active_record/models.rb
329
+ - spec/fake_app/data_mapper/config.rb
330
+ - spec/fake_app/data_mapper/models.rb
331
+ - spec/fake_app/log/development.log
332
+ - spec/fake_app/mongo_mapper/config.rb
333
+ - spec/fake_app/mongo_mapper/models.rb
334
+ - spec/fake_app/mongoid/config.rb
335
+ - spec/fake_app/mongoid/models.rb
336
+ - spec/fake_app/rails_app.rb
337
+ - spec/fake_app/sinatra_app.rb
338
+ - spec/fake_gem.rb
339
+ - spec/helpers/action_view_extension_spec.rb
340
+ - spec/helpers/helpers_spec.rb
341
+ - spec/helpers/sinatra_helpers_spec.rb
342
+ - spec/helpers/tags_spec.rb
343
+ - spec/models/active_record/active_record_relation_methods_spec.rb
344
+ - spec/models/active_record/default_per_page_spec.rb
345
+ - spec/models/active_record/max_pages_spec.rb
346
+ - spec/models/active_record/max_per_page_spec.rb
347
+ - spec/models/active_record/scopes_spec.rb
348
+ - spec/models/array_spec.rb
349
+ - spec/models/data_mapper/data_mapper_spec.rb
350
+ - spec/models/mongo_mapper/mongo_mapper_spec.rb
351
+ - spec/models/mongoid/mongoid_spec.rb
352
+ - spec/requests/users_spec.rb
353
+ - spec/spec_helper.rb
354
+ - spec/spec_helper_for_sinatra.rb
355
+ - spec/support/database_cleaner.rb
356
+ - spec/support/matchers.rb