myfinance-rails 0.4.7 → 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b65467b03b2bdf20d4cea8b590a68c161cceb05
4
- data.tar.gz: c712d2bff4e5aa032d89eafd6f23b686ea7c01d7
3
+ metadata.gz: 6b9cabf1f12fdc447f38254d140a7887d3800f83
4
+ data.tar.gz: 2692b2cc9cf377069df3f33f40810cea7fde744b
5
5
  SHA512:
6
- metadata.gz: e03ae0e3f9b8e9f359979e41ac70543b88a835896dab59b9391ab344228bbd3ba6cb902d81959200dccaa30fd2d71bde629bc801b42755d3552d9eeb63ccb2a8
7
- data.tar.gz: 2c251d7599bf847f2c82df2bc67e4d2d84eba15313826aa24e44502a0a13267d2ca6afd2ec15fa4441dfe54b0f03c6a68376af1e1bc41021b6be71d7432c05b7
6
+ metadata.gz: f2256ab1b44da4e8c72f182c89b4781b49141b278f1b16aec7ccb2669d696a3fc858c1341f9a7201a30530ef99e747603e82feb648176788abf43ff7b1594fcc
7
+ data.tar.gz: b62cd438742ca91c752ceb9f95c53c52e207cf7c2557e33aa91188fabc3b80ff954d883bdcdf6fa2f94329eab2e66c2c8da4dd50251e992cbd8cb5b4f8f79268
data/lib/myfinance.rb CHANGED
@@ -17,7 +17,9 @@ module Myfinance
17
17
 
18
18
  attr_accessor :token, :endpoint, :account_id
19
19
 
20
- def self.setup(token, production=false, account_id=nil)
20
+ def self.setup(token, production=false, account_id=nil, logger=nil)
21
+ logger(logger, :info, :curl) if logger
22
+
21
23
  if production
22
24
  @endpoint = 'https://app.myfinance.com.br'
23
25
  else
@@ -90,4 +92,3 @@ module Myfinance
90
92
  accounts_response.first["account"]["id"]
91
93
  end
92
94
  end
93
-
@@ -1,3 +1,3 @@
1
1
  module Myfinance
2
- VERSION = '0.4.7'
2
+ VERSION = '0.4.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myfinance-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Lopes Neto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-15 00:00:00.000000000 Z
11
+ date: 2017-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.2.2
126
+ rubygems_version: 2.5.1
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: GEM para facilitar a uso da API do Myfinance em Aplicativos Rails