api-pagination 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a9271269dab6d4d3b99562c1262975c14c76efc
4
- data.tar.gz: 3f98efbf74253877c9c2e0e99da24ac5a798e041
3
+ metadata.gz: 6f6ccb55a817446accc21e10ff030b9ee40e4af2
4
+ data.tar.gz: a562df84550d1521fa5dffcc6459e3ce5ad18038
5
5
  SHA512:
6
- metadata.gz: 84f99de16f079a1a9e5acc30f3405b8798b2d5f215a022bb7cc5d3b98990bad16f3318aa2ae04fe234d454905144604091b31cea3aa5b1cb36fb3bb9f790fcab
7
- data.tar.gz: c122d6e8e2fec923b1ca0ad30eed0bc6d502a64c34c197c51b9de75e3cafe2e8c6fa6b89bbe514aa0bb57380910b67915569915a80c5caa227741a0b7632b574
6
+ metadata.gz: 10f3c3ed499e25e73ac61845e36f6c8de82c59cba53298a4d25443b68d51a69e5ae747afeff3c8c34562b1752f29f96c49b5e5d74ba51a7b01dda659e3907ca5
7
+ data.tar.gz: d30c8b948d7f21b69745d3e00b29e81fe82ef34f7c101a197604823ec2f33c920f2ac70a182250f87a714b139dd4abfbb40282f68d922bc1a76f480d68a40d63
@@ -33,8 +33,8 @@ module ApiPagination
33
33
 
34
34
  def total_from(collection)
35
35
  case ApiPagination.paginator
36
- when :kaminari then collection.total_count
37
- when :will_paginate then collection.total_entries
36
+ when :kaminari then collection.total_count.to_s
37
+ when :will_paginate then collection.total_entries.to_s
38
38
  end
39
39
  end
40
40
  end
@@ -2,7 +2,7 @@ module ApiPagination
2
2
  class Version
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, PATCH].join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-pagination
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Celis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-02 00:00:00.000000000 Z
11
+ date: 2014-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec