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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/gocardless/resource.rb +1 -1
- data/lib/gocardless/version.rb +1 -1
- data/spec/resource_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3a88d8a7aa3c33e45904af4ef911e8cb130769d
|
4
|
+
data.tar.gz: b10e98e102e8b39325c0d63f361c45887ea83ea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b29a3f20bb862f1068fd4a117bbd7f6354e05cb58d6db2a80b7b99e89e0811d4b0b68c3ba27f90b8936df8d441e660f5e7b7540dac6ebe074fbe0aeab9ca8a7
|
7
|
+
data.tar.gz: c9fd6c36424dbeed58426043b92d7669067f0199fe904b58f06f338daf7713b500ce3f8ab493c276e741a9386180c28eb6d549eda8edf03d7ea2789478a8f0ad
|
data/CHANGELOG.md
CHANGED
data/lib/gocardless/resource.rb
CHANGED
@@ -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,
|
188
|
+
Paginator.new(client, klass, path, query)
|
189
189
|
end
|
190
190
|
end
|
191
191
|
end
|
data/lib/gocardless/version.rb
CHANGED
data/spec/resource_spec.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2014-08-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|