iif-parser 1.0.9 → 1.0.10

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: fcc03a3d56f05bc683eb8920794ced29e55fc6c8
4
- data.tar.gz: 38662192531e173c1294b464709af756d645be1a
3
+ metadata.gz: 7f43c6acff99e2e7c9a8e2ba5d64d3718779e4bb
4
+ data.tar.gz: 64d20cf0505a3e654d7f7b9a3f4de79170522b78
5
5
  SHA512:
6
- metadata.gz: 0ab2573bd510417f22d5839561a776bd812cfaafd030214eb07933d5a830861f72ba557d3a5a7b1113f5e69cf55dcbff353836371b6f79a2423e5f60bde08bc6
7
- data.tar.gz: 72f98ce598c8476bc83357fe5699fb4745ec09bb024e5bbe8d8ed030346c8db389d3ca23247be97cd9ff08ac213ff2a749ea9f90a8f630029b46a8e4150d3151
6
+ metadata.gz: 4e7fd854a9f0a4d735128f8b4a97c5b3de04d14def7dc0803adbb620d5d53af5ba0579f79c858e9ea4a14175e82b8aa5b5775fbff1a602026eed0c9adca3e9bb
7
+ data.tar.gz: 41a5390f1a41cf118d12f4f057a9167234cfb6d6363833bb6b5dd387b03c54b145e2de6b2a127202678ca8494b22274fdf6afd0dfec55dfb1e3a3e5ef075e98d
@@ -1,5 +1,5 @@
1
1
  module Iif
2
2
  class Parser
3
- VERSION = "1.0.9"
3
+ VERSION = "1.0.10"
4
4
  end
5
5
  end
data/lib/iif/parser.rb CHANGED
@@ -61,9 +61,8 @@ module Iif
61
61
 
62
62
  entry = Entry.new
63
63
  entry.type = fields[0]
64
-
65
64
  fields[1..-1].each_with_index do |field, idx|
66
- next unless definition[idx]
65
+ next unless definition and definition[idx]
67
66
  field.strip! if field.is_a?(String)
68
67
  entry.send(definition[idx] + "=", field)
69
68
  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.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Pelczarski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-19 00:00:00.000000000 Z
11
+ date: 2016-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec