iif-parser 2.1.0 → 2.2.0

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
  SHA256:
3
- metadata.gz: 97be851659e45159838b5701374f4132a7809ec7562b7af7005186ee050c3797
4
- data.tar.gz: 21c15fcdd9fe26bb97a6fcae3d3530444e42affc28a1177c04a13e5bd94eb965
3
+ metadata.gz: dcd0a8d872376d18c348fa6eee278c9f0b77183ea31c03ef574607fe3fb03873
4
+ data.tar.gz: 4baa36b9d9e62d86fa04d9307d6bbf9ce36a51aef48cfaefb28fe773a4001606
5
5
  SHA512:
6
- metadata.gz: 9ef378d4b38f1d7f6d597629fa563c0ec0a762d647fadf66a662bd7ceb30c400587020918816950b919830a3cc19904ca79bb5578e0cdf96d464e387c19904b6
7
- data.tar.gz: 4ef5f73f6ebddce4ad7db9789fc552a2894988659fd62c8a2b8a8ea868c973576a2ac9c492fe4f38681b60d76cbd281d47034ce3db5f78119e4f046ff4600355
6
+ metadata.gz: 6b00df6bac54f9c3c6c42d19fe778721627c9c9abb882fcf1f221b95c1ffcbf63a6605ad35f9f29ae8356b3679dd899a028ce7688186e6079affe87c44874c4f
7
+ data.tar.gz: de3fff9d59a8a2aad0444871312096190255ad2a61a7e533f1349bd94ac954ec21a61872f68dfaa5ee2365506a9bd317a196de17c56abccb3507d54e506ac993
@@ -1,5 +1,5 @@
1
1
  module Iif
2
2
  class Parser
3
- VERSION = "2.1.0"
3
+ VERSION = "2.2.0"
4
4
  end
5
5
  end
data/lib/iif/parser.rb CHANGED
@@ -63,7 +63,7 @@ module Iif
63
63
  end
64
64
 
65
65
  def parse_data(fields)
66
- return if @entries.last&.type == 'ENDTRNS' && fields[0] == 'ENDTRNS' # found a repeating ENDTRNS
66
+ return if (@entries.last&.type == 'ENDTRNS' || @entries.last&.type.nil?) && fields[0] == 'ENDTRNS' # found a repeating ENDTRNS
67
67
  definition = @definitions[fields[0]]
68
68
  entry = Entry.new
69
69
  entry.type = fields[0]
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: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Pelczarski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2024-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rchardet
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubygems_version: 3.1.6
137
+ rubygems_version: 3.3.26
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Basic IIF parser written in Ruby