idata 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/iload +8 -0
  3. data/lib/idata/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e88b2999fb755d16ad39f7d741c68fc8385946c
4
- data.tar.gz: 2714cc9d5e623411fda05356002a8d0a6d62b7ed
3
+ metadata.gz: 79ed8b5197ad7ba0a4bbb0906b3317c194d631b0
4
+ data.tar.gz: a6c339fe9f9814e22cc93b496f58e2f865f56e5f
5
5
  SHA512:
6
- metadata.gz: b02f3f058dc11ec1f32da3c7a26a79e4f582de28935dc7f55fb7e2989ae327be911c654ef8b88867deafad1d7473be53c6bfe27ff68581de5f40514cbbdbeb7c
7
- data.tar.gz: 519caaf305b577d1f896eca043ab1f8fc6820d3db2b7d557abbe3b15679d5b72c3d8fae4e7de4aaffdd2101c117ef60ca9546383d3df6960cfc24616e8301ad4
6
+ metadata.gz: bd3a547f42022ec3ab9f986952a71c090aea052a5247e36bf4e52788f7ad10e403dce2880b73efee57c66d841aea1e14cad80dc9e1eb3987646243873a635b0d
7
+ data.tar.gz: 24703e1ed62d85b53f7dd017f08814952a1239f23b138ecafc1cf059a98837e7afd82a67d0f0efd6ab186300355fc4a508d654a6a78fe14c40e13d621ffeea64
data/bin/iload CHANGED
@@ -314,7 +314,15 @@ class MyParser
314
314
  # Such char usually exists in .RPT file
315
315
  data.gsub!(["feff".hex].pack('U*'), '')
316
316
  data = data.split(/[\r\n]+/)
317
+
318
+ # Note: shift must be made in order
317
319
  header = data.shift
320
+
321
+ # in case of RPT, remove the first line if it only contains the dash (-) char
322
+ if $options[:format] == 'RPT'
323
+ data.shift if data[0] =~ /^[\-\s]*$/
324
+ end
325
+
318
326
  headers = header.scan(/[^\s]+\s+/)
319
327
 
320
328
  # Parse
@@ -1,3 +1,3 @@
1
1
  module Idata
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nghi Pham