iif-parser 1.0.6 → 1.0.7

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: 61d0cb61298032a432e84966b8258e2a5b9bb255
4
- data.tar.gz: 2942ea04877714d782ba2d53e71d1f1bdeba6f3d
3
+ metadata.gz: 0cf85b1f3ab187e83474bb1e76b6b9dd76d140ff
4
+ data.tar.gz: d011219dd0a776c1db1ddde490cc39ddd6635a7e
5
5
  SHA512:
6
- metadata.gz: 457365bd5516dd6d2c1b4521e99401b60c2e1b74b7c3722737b099c28a2411628de09cf3ad29b458945cbd2a554f6baf4a20736729adc773fa840a2aa0156525
7
- data.tar.gz: bc9e902749bb4844b968a142477cd90bcb4f7d2921e0d28ab24108cc0a692bed1e3e35044b350e02af6d301664dcbf9064eda0dfcd1d40da9baf81a79c2e307a
6
+ metadata.gz: 7b6fa2024a8d114d92bdc21285b2281c11c2758b80e9f9f32e2fbc408a0f27cd7dca16f861b85f586ac1b13206baf368c73923e192f36cea67d0f5f8d8a3a075
7
+ data.tar.gz: 639671895ec46b523ce3d7de85b9ec77ee69a8083eec2a7f07f79fcede93e986622509e5a94400277ee04d26e5bedb26f3cb33331da1cd7798d9ae9e22b6c16a
@@ -66,7 +66,7 @@ module Iif
66
66
  field.strip! if field.is_a?(String)
67
67
  entry.send(definition[idx] + "=", field)
68
68
  end
69
- entry.amount = BigDecimal.new(entry.amount.gsub(',','')) unless entry.amount.to_s == ""
69
+ entry.amount = BigDecimal.new(entry.amount.gsub(/(,|")/,'')) unless entry.amount.to_s == ""
70
70
  entry.date = convert_date(entry.date) if entry.date and not entry.date == ""
71
71
  entry.memo.gsub!(/\A"|"\Z/, '') if entry.memo
72
72
 
@@ -1,5 +1,5 @@
1
1
  module Iif
2
2
  class Parser
3
- VERSION = "1.0.6"
3
+ VERSION = "1.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iif-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Pelczarski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-14 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec