balanced 0.3.7 → 0.3.8
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.
@@ -119,10 +119,11 @@ module Balanced
|
|
119
119
|
klass.instance_eval {
|
120
120
|
define_method(modified_name) {
|
121
121
|
values_class = Balanced.from_uri(value)
|
122
|
-
|
122
|
+
# if uri is a collection -> this would definitely be if it ends in a symbol
|
123
123
|
# then we should allow a lazy executor of the query pager
|
124
124
|
if Balanced.is_collection(value)
|
125
|
-
|
125
|
+
pager = Pager.new value, {}
|
126
|
+
pager.to_a
|
126
127
|
else
|
127
128
|
values_class.find(value)
|
128
129
|
end
|
data/lib/balanced/version.rb
CHANGED
@@ -334,6 +334,11 @@ describe Balanced::Account do
|
|
334
334
|
it { should_not be_empty }
|
335
335
|
it { subject.first.should be_instance_of Balanced::Card }
|
336
336
|
end
|
337
|
+
describe "#bank_accounts" do
|
338
|
+
subject { @buyer.bank_accounts }
|
339
|
+
it { should be_instance_of Array }
|
340
|
+
it { should be_empty }
|
341
|
+
end
|
337
342
|
end
|
338
343
|
end
|
339
344
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: balanced
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|