iif-parser 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iif/parser/version.rb +1 -1
- data/lib/iif/parser.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 240679593e067cd935526b23f93392ad0de041f5
|
4
|
+
data.tar.gz: 769a79bad47271dad645ff4e9fd9568d6a80ef60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f736677d15fb6f4fe67ed6fbfe33f1cfa49931e292ef297ce54a5eed4b93fbf586be401dd1b4be6f59b65ff99fa30d80baa00326a6a87f63cd07a8ec030ad50
|
7
|
+
data.tar.gz: 3651d191d45828ef92bacf0a77d17d096a670859edbe78fa0fbdd68b1c6ec07f355b4c3139fe0ce6476978253c33f2a88c6ac15154042107957c47a51c8bf540
|
data/lib/iif/parser/version.rb
CHANGED
data/lib/iif/parser.rb
CHANGED
@@ -65,9 +65,9 @@ module Iif
|
|
65
65
|
fields[1..-1].each_with_index do |field, idx|
|
66
66
|
entry.send(definition[idx] + "=", field)
|
67
67
|
end
|
68
|
-
|
69
|
-
entry.amount = BigDecimal.new(entry.amount.gsub(',','')) if entry.amount
|
68
|
+
entry.amount = BigDecimal.new(entry.amount.gsub(',','')) unless entry.amount.to_s == ""
|
70
69
|
entry.date = convert_date(entry.date) if entry.date and not entry.date == ""
|
70
|
+
entry.memo.gsub!(/\A"|"\Z/, '') if entry.memo
|
71
71
|
|
72
72
|
@entries.push(entry)
|
73
73
|
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.
|
4
|
+
version: 1.0.4
|
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-10-
|
11
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|