dynarex-parser 0.2.11 → 0.2.12

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-parser.rb +1 -1
  2. metadata +2 -2
@@ -15,7 +15,7 @@ class DynarexParser
15
15
  error_found = raw_fields.split(',').include? record_name
16
16
  raise "record name must not match a field name" if error_found
17
17
 
18
- @a = parse(s)
18
+ @a = parse(s.split(/(?=<!--)/).map {|x| x.sub(/<!--.*-->/m,'')}.join)
19
19
  end
20
20
 
21
21
  def to_a()
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dynarex-parser
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.11
5
+ version: 0.2.12
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-07-15 00:00:00 Z
13
+ date: 2012-07-20 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rexleparser