gocardless 1.11.0 → 1.11.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: bb186568bf3bab6c1d0baf10394a75ecd1b14534
4
- data.tar.gz: 033069ff0faa53aa992680bd46bd0b0296b6f4c0
3
+ metadata.gz: b3a88d8a7aa3c33e45904af4ef911e8cb130769d
4
+ data.tar.gz: b10e98e102e8b39325c0d63f361c45887ea83ea9
5
5
  SHA512:
6
- metadata.gz: 979d094b2b639f33f92626feb7cff70da4b55cd241fae9dae12f049282c0c99bece3f2fee1f916a6ebb98c4d3eb3ac80600fe7757aab43cb5670c3981ddbc2db
7
- data.tar.gz: cd6bfe4b1a8bf4fcb4ca8eda5357aeaa6459a03e64eabc3ae376f85a77a3718e0c07c98108b9465d7521e0ab820165b4587d2b31de5ad30b8673942712f980c0
6
+ metadata.gz: 5b29a3f20bb862f1068fd4a117bbd7f6354e05cb58d6db2a80b7b99e89e0811d4b0b68c3ba27f90b8936df8d441e660f5e7b7540dac6ebe074fbe0aeab9ca8a7
7
+ data.tar.gz: c9fd6c36424dbeed58426043b92d7669067f0199fe904b58f06f338daf7713b500ce3f8ab493c276e741a9386180c28eb6d549eda8edf03d7ea2789478a8f0ad
@@ -1,3 +1,7 @@
1
+ ## 1.11.1 - August 22, 2014
2
+
3
+ - Fix bug affecting paginated sub-resources
4
+
1
5
  ## 1.11.0 - July 07, 2014
2
6
 
3
7
  - URI encode path before making requests
@@ -185,7 +185,7 @@ module GoCardless
185
185
  # sub_resource_uri, with the query params provided by the user
186
186
  query = default_query.merge(args.first || {})
187
187
 
188
- Paginator.new(client, self, path, query)
188
+ Paginator.new(client, klass, path, query)
189
189
  end
190
190
  end
191
191
  end
@@ -1,3 +1,3 @@
1
1
  module GoCardless
2
- VERSION = '1.11.0'.freeze
2
+ VERSION = '1.11.1'.freeze
3
3
  end
@@ -333,6 +333,13 @@ describe GoCardless::Resource do
333
333
  resource.should_not respond_to :bills
334
334
  end
335
335
 
336
+ it "use the correct resource" do
337
+ GoCardless::Paginator.should_receive(:new).
338
+ with(anything, GoCardless::Bill, anything, anything)
339
+ r = test_resource.new_with_client(double, @attrs)
340
+ r.bills
341
+ end
342
+
336
343
  it "use the correct uri path" do
337
344
  GoCardless::Paginator.should_receive(:new).
338
345
  with(anything, anything, '/api/bills/', anything)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gocardless
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Marr
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-07 00:00:00.000000000 Z
12
+ date: 2014-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2