dynarex 1.0.16 → 1.0.17

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 +3 -0
  2. metadata +2 -2
@@ -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.16
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 00:00:00 +00:00
12
+ date: 2011-02-25 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency