lecca_client 0.1.0 → 0.1.1

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: 894c5bc29d68959951bf0eda0b7055db4b58dc0c
4
- data.tar.gz: 887a0f77af7068918981318aa6e43bd4a43ae970
3
+ metadata.gz: f106c8c794a2076c6022664d3bdbe7da26eb3d72
4
+ data.tar.gz: 7e9e0a60da49abe990659088ef5336a98da3f618
5
5
  SHA512:
6
- metadata.gz: 6ba1101b9fdf4fd920a66c0cc135f013f71116de9598a34600429ab37a169f2123b55aed461ecfcbbabec3b5826bf27a9cf0eadc2810b7576a81db23d59e8296
7
- data.tar.gz: ff042e58615311d3e24b9eafc7fc65e20b02f3f50a04e301381ead79c5071d9be7822e37d38b3dfc27007cd6f61ce9ea3ff10598f3f32380972a6babb9261bee
6
+ metadata.gz: 47fd918e1fd55d90f605c38c3450a9de69433ae9bce2dc5bc31ede2f013b37375b5176b19aa92136b37d98839c34966e13e6be76db65e6203a53f94eab29ecbb
7
+ data.tar.gz: 16015c076dace115fa308ad05af0d4a82c088ab119bf65459db7b4a21bf18d9930004560a835eaf8359631707a16f392861b52efa76cc9206bef2f59e54053d4
@@ -16,3 +16,4 @@ test:
16
16
  codigo_tabela_juros: 112
17
17
  forma_liberacao: 'D'
18
18
  forma_liquidacao: 'I'
19
+ timezone: 'America/Sao_Paulo'
data/lib/lecca_client.rb CHANGED
@@ -7,9 +7,9 @@ module LeccaClient
7
7
  end
8
8
 
9
9
  require 'hashie'
10
+ require 'lecca_client/configuration'
10
11
  require 'lecca_client/active_support'
11
12
  require 'lecca_client/version'
12
- require 'lecca_client/configuration'
13
13
  require 'lecca_client/utils'
14
14
  require 'lecca_client/uploader'
15
15
  require 'lecca_client/downloader'
@@ -2,4 +2,4 @@ require 'active_support/inflector/transliterate'
2
2
  require 'active_support/core_ext/string'
3
3
  require 'active_support/core_ext/time/calculations'
4
4
 
5
- Time.zone ||= 'America/Sao_Paulo'
5
+ Time.zone ||= LeccaClient.config.timezone
@@ -21,6 +21,10 @@ module LeccaClient
21
21
  config['proposal']
22
22
  end
23
23
 
24
+ def timezone
25
+ config['timezone']
26
+ end
27
+
24
28
  private
25
29
 
26
30
  def config
@@ -1,3 +1,3 @@
1
1
  module LeccaClient
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lecca_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noverde Team
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2016-08-12 00:00:00.000000000 Z
13
+ date: 2016-08-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler