ivt_mellon_reader 0.4.2 → 0.4.3

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: 3aa8f6c72ed3f7e78059042a8d66db73c427899e
4
- data.tar.gz: 00d97ecbf9350fe3918a4dd095972ffcffd5b5c4
3
+ metadata.gz: 7b4646953eddf04bdbcb2fa4913b16349d2320bc
4
+ data.tar.gz: 2a8d17867474b0b5b30d905df65b07e8ede3d96a
5
5
  SHA512:
6
- metadata.gz: 8b2c939bcbc54a8d422b731a96f21494c2f0abe59c098f9dd9e99f73ef2be1ba8ca7ce03f402187c5e694acfa6e75cea32cb26c176429f37daeb88b4d34912ee
7
- data.tar.gz: af7837e98083f4e27f33d2dd63603e78f67ccfd4dcdd2551c8aa9636c74af57c5ea2c8402506f0d82cd8c350a1486b83c376ffd5304fc779eb0407b98702d050
6
+ metadata.gz: c658c8b0a9f751436434840b238d68e3cb3f219d53ff69a5aa87caf19e17b8eba2f2e7445441bf5d78b46b7028f6a3b9aec46b8f43f42871923cef59153b251f
7
+ data.tar.gz: 28402a62a057bbedf19707f98caa7c812eee57a654a37ffbf0f192c3491a632edd8920716fdcf887af7cc670dc00cfb8798952f7a746cd9b2ef6aee1ef01f3a0
@@ -12,6 +12,8 @@ module IvtMellonReader
12
12
  config.symbolize_keys!
13
13
  end
14
14
 
15
+ raise "Arquivo não contém nenhum cliente. Favor verifique se o formato do arquivo está correto." if @parser.for_tag(:Titularidade).entries.empty?
16
+
15
17
  @clients = [@parser.for_tag(:Titularidade)].map(&:entries)
16
18
 
17
19
  @clients.each do |client|
@@ -43,7 +43,7 @@ module IvtMellonReader
43
43
  end
44
44
 
45
45
  def value(row)
46
- row["VL_VALOR"].to_f
46
+ row["VL_VALOR"].gsub(",",".").to_f
47
47
  end
48
48
 
49
49
  def distributor_name(row)
@@ -1,3 +1,3 @@
1
1
  module IvtMellonReader
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ivt_mellon_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Pérez'
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-06 00:00:00.000000000 Z
11
+ date: 2017-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler