dynarex 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dynarex.rb +8 -3
  2. metadata +2 -2
@@ -28,7 +28,7 @@ class Dynarex
28
28
  # Dynarex.new '<contacts><summary><schema>contacts/contact(name,age,dob)</schema></summary><records/></contacts>'
29
29
 
30
30
  def initialize(location=nil)
31
-
31
+ #puts Rexle.version
32
32
  @delimiter = ' '
33
33
  open(location) if location
34
34
  @dirty_flag = false
@@ -472,8 +472,13 @@ EOF
472
472
 
473
473
  else
474
474
 
475
- raw_lines.map do |x|
476
- field_names, field_values = RXRawLineParser.new(@format_mask).parse(x)
475
+ raw_lines.map.with_index do |x,i|
476
+
477
+ begin
478
+ field_names, field_values = RXRawLineParser.new(@format_mask).parse(x)
479
+ rescue
480
+ raise "input file parser error at line " + (i + 1).to_s + ' --> ' + x
481
+ end
477
482
  field_values
478
483
  end
479
484
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dynarex
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.0
5
+ version: 1.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-10-02 00:00:00 Z
13
+ date: 2012-10-28 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rexle