dynarex 1.0.16 → 1.0.17
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.rb +3 -0
- metadata +2 -2
data/lib/dynarex.rb
CHANGED
|
@@ -356,6 +356,9 @@ EOF
|
|
|
356
356
|
root_name, raw_summary, record_name, raw_fields = s.match(ptrn).captures
|
|
357
357
|
summary, fields = [raw_summary || '',raw_fields].map {|x| x.split(/,/).map &:strip}
|
|
358
358
|
|
|
359
|
+
reserved = %w(require parent)
|
|
360
|
+
raise 'reserved keyword' unless a.grep(/^(#{reserved.join('|')})$/).empty?
|
|
361
|
+
|
|
359
362
|
lines =<<LINES
|
|
360
363
|
#{root_name}
|
|
361
364
|
summary#{"\n" + ' ' * 4 + summary.join("\n" + ' ' * 4) unless summary.empty?}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dynarex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors: []
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2011-02-
|
|
12
|
+
date: 2011-02-25 00:00:00 +00:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|