ocean-rails 1.25.2 → 1.25.3

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: c8f5cb0650c0b3d22fe68439bcf5824047d7a164
4
- data.tar.gz: 40ce069d99ffcee433416a41432b65374794ff2b
3
+ metadata.gz: c85941321a893d8a629a87e20c3d49e8afae3dec
4
+ data.tar.gz: 8fe9c963cff687c6926514630c490f48b1319605
5
5
  SHA512:
6
- metadata.gz: ed6d9b0b3cce4d001f2adc2de9521a491e52d22f3a1e3b43d763500641793f4705f3b5f1aea73433756a4d3b37d98284c4aad41631d1517e80af77d8c0f78846
7
- data.tar.gz: 7ab8ba7cf00ffa8f79100e71479c72829a852d3f45be7a41c1ba38b0449f3b911964cd0820a7e4bf99583ecc51cfa6140825cc44c3b3e48ab043806831afe114
6
+ metadata.gz: 4030baeffd1cad04cd7fc1fc52a309dccc1ddb17e0ba91bde872f61a1a8e4e5cd0f53841d4c3f6b66a07f8a7dc5403db0f74bf4a4c34c900493799672b9a3e41
7
+ data.tar.gz: 73ca9bdff2866614658ff877aebabf1d320949a8dfadc3285ca0c30554d35dc848f56a5c011871bb8b670586dcf6d6192a19acda2e7cfb6f4abd991e1fed3c40
@@ -74,6 +74,8 @@ module ApiResource
74
74
  end
75
75
  # Pagination
76
76
  if page.present?
77
+ page = page.to_i
78
+ page_size = page_size.to_i
77
79
  return query.none if page < 0
78
80
  query = query.limit(page_size || collection_page_size).offset(page_size * page)
79
81
  end
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.25.2"
2
+ VERSION = "1.25.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.2
4
+ version: 1.25.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-03 00:00:00.000000000 Z
11
+ date: 2013-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday