iif-parser 1.0.5 → 1.0.6

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: 4f29c5351cd5a7388b331097d6bf08b3053d4db7
4
- data.tar.gz: 11c86641b2b41893c62965e16707160d6cee9d75
3
+ metadata.gz: 61d0cb61298032a432e84966b8258e2a5b9bb255
4
+ data.tar.gz: 2942ea04877714d782ba2d53e71d1f1bdeba6f3d
5
5
  SHA512:
6
- metadata.gz: 08147b9793ba82b9beaaec69a1023b3289ea7ca209965a76531bfe1799d66c9b435fde873ab0fc4e0d977dc1a726d94ca38a903b616c90957614999e8b15951a
7
- data.tar.gz: 08501d2367fa76f519c925d472d6bcf2215f7c2a68ae50e845a125531707f7a2187c86dc516e89598b572a6f22c0a66a51548d08797931b8d53210327369beb3
6
+ metadata.gz: 457365bd5516dd6d2c1b4521e99401b60c2e1b74b7c3722737b099c28a2411628de09cf3ad29b458945cbd2a554f6baf4a20736729adc773fa840a2aa0156525
7
+ data.tar.gz: bc9e902749bb4844b968a142477cd90bcb4f7d2921e0d28ab24108cc0a692bed1e3e35044b350e02af6d301664dcbf9064eda0dfcd1d40da9baf81a79c2e307a
@@ -1,5 +1,5 @@
1
1
  module Iif
2
2
  class Parser
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
  end
5
5
  end
data/lib/iif/parser.rb CHANGED
@@ -63,7 +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
+ field.strip! if field.is_a?(String)
67
67
  entry.send(definition[idx] + "=", field)
68
68
  end
69
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.5
4
+ version: 1.0.6
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-20 00:00:00.000000000 Z
11
+ date: 2015-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec