passworks 0.0.3 → 0.0.4

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: 8f8e460863f22f0cf87d9d704464f8e6f0676aae
4
- data.tar.gz: b79ca3099d9c6dfa1b619c9a089d72924fa0e037
3
+ metadata.gz: 4a5be31fc6ed552a17686b1bcb124b51394c2ebe
4
+ data.tar.gz: f8614144d8f0de74cb981f2b1ad4f2cb0fe10122
5
5
  SHA512:
6
- metadata.gz: 3ab1e5aadfc12791813cd5343991e057470a74c4be50ff7b807cea2265657e19573248ae517594b5f510c38b975d43b7debad98eb1e3782d063e76cc2771422a
7
- data.tar.gz: 15fe3347b92715aa19dd2486ebe0423ab39a40f97e767c0d35642303c6c14e6c2326737b8a4e5951a532691950547e7edd126e3496104c648b594a6e873dead9
6
+ metadata.gz: 9bf14cb94bf2cd27e4b7736ba8f5037c8d62c4e4169a438ef8ee1ad5d735be276259103c03e5c09895696a5c3caa2538a92b5944c94e6bfe1b36d262b997fd53
7
+ data.tar.gz: 1c863bc851384f235fc629bb6abce3882a211cb272cf185d34f8fdf9e14a56e2893828a373e7cc752491c930a235f0f44261732cacaab99033ea112e7d08f1c7
@@ -3,6 +3,9 @@
3
3
  This file is a manually maintained list of changes for each release. Feel free to add your
4
4
  changes here when sending pull requests. Also send corrections if you spot any mistakes.
5
5
 
6
+ ## v0.0.4 (2015-01-19)
7
+ * Bug fix: Pagination bug regression found when fetching resources with only one page
8
+
6
9
  ## v0.0.3 (2015-01-16)
7
10
  * Bug fix: Missing 'event_tickets' namespace for from client
8
11
  * Bug fix: Passworks::Response#ok? now returning correct information
@@ -26,7 +26,8 @@ module Passworks
26
26
  response.data.each do |item_data|
27
27
  yield resource_class.new(client, collection_name, item_data)
28
28
  end
29
- next_page = response.next_page
29
+ # Kaminari returns next_page as an empty string if there aren't more pages
30
+ next_page = response.next_page.to_s.to_i
30
31
  break if next_page == 0
31
32
  end
32
33
  self
@@ -1,3 +1,3 @@
1
1
  module Passworks
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Mendes
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-01-16 00:00:00.000000000 Z
13
+ date: 2015-01-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday