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 +4 -4
- data/lib/bootstrap_pager/models/page_scope_methods.rb +2 -2
- data/lib/bootstrap_pager/version.rb +1 -1
- metadata +35 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4ce0a746fa95f37caaf6f818de7689f4cc9dc75
|
4
|
+
data.tar.gz: 82547fde079e25411243830d6cefd4230708bfdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.
|
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:
|
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.
|
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
|