iif-parser 1.0.4 → 1.0.5

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: 240679593e067cd935526b23f93392ad0de041f5
4
- data.tar.gz: 769a79bad47271dad645ff4e9fd9568d6a80ef60
3
+ metadata.gz: 4f29c5351cd5a7388b331097d6bf08b3053d4db7
4
+ data.tar.gz: 11c86641b2b41893c62965e16707160d6cee9d75
5
5
  SHA512:
6
- metadata.gz: 7f736677d15fb6f4fe67ed6fbfe33f1cfa49931e292ef297ce54a5eed4b93fbf586be401dd1b4be6f59b65ff99fa30d80baa00326a6a87f63cd07a8ec030ad50
7
- data.tar.gz: 3651d191d45828ef92bacf0a77d17d096a670859edbe78fa0fbdd68b1c6ec07f355b4c3139fe0ce6476978253c33f2a88c6ac15154042107957c47a51c8bf540
6
+ metadata.gz: 08147b9793ba82b9beaaec69a1023b3289ea7ca209965a76531bfe1799d66c9b435fde873ab0fc4e0d977dc1a726d94ca38a903b616c90957614999e8b15951a
7
+ data.tar.gz: 08501d2367fa76f519c925d472d6bcf2215f7c2a68ae50e845a125531707f7a2187c86dc516e89598b572a6f22c0a66a51548d08797931b8d53210327369beb3
@@ -1,5 +1,5 @@
1
1
  module Iif
2
2
  class Parser
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
5
5
  end
data/lib/iif/parser.rb CHANGED
@@ -63,6 +63,7 @@ module Iif
63
63
  entry.type = fields[0]
64
64
 
65
65
  fields[1..-1].each_with_index do |field, idx|
66
+ field.lstrip! if field.is_a?(String)
66
67
  entry.send(definition[idx] + "=", field)
67
68
  end
68
69
  entry.amount = BigDecimal.new(entry.amount.gsub(',','')) unless entry.amount.to_s == ""
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
4
+ version: 1.0.5
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-19 00:00:00.000000000 Z
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec