myfinance 0.3.0 → 0.3.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: 47ca29c0b8c050bba8b6fcc65b54cc8f592a2f33
4
- data.tar.gz: 95ece995c6429e18820a00a81b8854d0d57aad85
3
+ metadata.gz: 5e5981e535465b108984b3f73dea106ba89c3d87
4
+ data.tar.gz: df8c009b9697e5aee5f50f2a90310c1d5efd92e0
5
5
  SHA512:
6
- metadata.gz: 347563b3d92b6e1a97b0930e7365889aab4be10896545cd7a59b4c8760f9aec220e744493f87af26fcd47f857e6142084b0e17a071cb1e37a119a00988326363
7
- data.tar.gz: 93a52bc881d017a0abb9587ddd2518d14b3eedc48a124e8082e41c13b3bd97665f3bb2319bc896ac137e497c15d1a76f628c643d64dbc3b0bd091539fc6b0bc1
6
+ metadata.gz: 7ec286cb6df4179453b2ed4c9456c0d1be5e98d718b3f49cde321896f375b918442075b49d47a1506a36c556e8792060ee6fb81e31eaa532471987c2be732761
7
+ data.tar.gz: 8756934e0c62d60a192858c29057922382d119fabbe4dd5496273b6ae558d6b9493205396079bf21d8c58c41168a04fd58d42cd37724bf5961beb9be35ed4994
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- myfinance (0.3.0)
4
+ myfinance (0.3.1)
5
5
  multi_json (~> 1.9.0)
6
6
  typhoeus (~> 0.7.1)
7
7
  virtus (~> 1.0.5)
@@ -29,7 +29,7 @@ module Myfinance
29
29
  yield(configuration) if block_given?
30
30
  end
31
31
 
32
- def self.client(token)
33
- Client.new(token)
32
+ def self.client(token, account_id = nil)
33
+ Client.new(token, account_id)
34
34
  end
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module Myfinance
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -22,4 +22,11 @@ describe Myfinance do
22
22
  expect(config1).to eq(config2)
23
23
  end
24
24
  end
25
+
26
+ describe ".client" do
27
+ it "instantiates a new client" do
28
+ expect(Myfinance::Client).to receive(:new).with("abc", 12).and_call_original
29
+ Myfinance.client("abc", 12)
30
+ end
31
+ end
25
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myfinance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Hertz
@@ -252,7 +252,7 @@ files:
252
252
  - spec/lib/myfinance/resources/payable_account_spec.rb
253
253
  - spec/lib/myfinance/resources/receivable_account_spec.rb
254
254
  - spec/lib/myfinance/response_spec.rb
255
- - spec/myfinance_spec.rb
255
+ - spec/lib/myfinance_spec.rb
256
256
  - spec/spec_helper.rb
257
257
  - spec/support/client.rb
258
258
  - spec/support/matchers/have_attr_accessor.rb
@@ -299,7 +299,7 @@ test_files:
299
299
  - spec/lib/myfinance/resources/payable_account_spec.rb
300
300
  - spec/lib/myfinance/resources/receivable_account_spec.rb
301
301
  - spec/lib/myfinance/response_spec.rb
302
- - spec/myfinance_spec.rb
302
+ - spec/lib/myfinance_spec.rb
303
303
  - spec/spec_helper.rb
304
304
  - spec/support/client.rb
305
305
  - spec/support/matchers/have_attr_accessor.rb