iif-parser 1.0.3 → 1.0.4

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: 8175657d50214165be74941d8630a6222c94132f
4
- data.tar.gz: a75a8a3cd07af6eefecf2574af1b7d4a8b6ca97e
3
+ metadata.gz: 240679593e067cd935526b23f93392ad0de041f5
4
+ data.tar.gz: 769a79bad47271dad645ff4e9fd9568d6a80ef60
5
5
  SHA512:
6
- metadata.gz: 32ad3ac30cda328fb66dbf38dc634f8647b52eefc9481976a0bda27e227737fb1f9bd52d214ecf671368fd351abd3fca771bca8bb412fbd0daaa738ccff90d66
7
- data.tar.gz: 39aa3c8ea5dff0ceaf6e391c2d03eaa9e2687ca4c9f3e98c13e0e95717e03ce1e54273e88a80d8f1e27d6dd3f6f32f24706f934f6bbc6d0ef53e0b52da8b49d5
6
+ metadata.gz: 7f736677d15fb6f4fe67ed6fbfe33f1cfa49931e292ef297ce54a5eed4b93fbf586be401dd1b4be6f59b65ff99fa30d80baa00326a6a87f63cd07a8ec030ad50
7
+ data.tar.gz: 3651d191d45828ef92bacf0a77d17d096a670859edbe78fa0fbdd68b1c6ec07f355b4c3139fe0ce6476978253c33f2a88c6ac15154042107957c47a51c8bf540
@@ -1,5 +1,5 @@
1
1
  module Iif
2
2
  class Parser
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
4
4
  end
5
5
  end
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.3
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-15 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec