dynarex-parser 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dynarex-parser.rb +1 -1
- metadata +2 -2
data/lib/dynarex-parser.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
13
|
+
date: 2012-07-20 00:00:00 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rexleparser
|