bind9mgr 0.3.17 → 0.3.18
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/bind9mgr.rb +1 -1
- data/lib/parser.rb +1 -1
- data/spec/parser_spec.rb +2 -0
- metadata +1 -1
data/History.txt
CHANGED
data/lib/bind9mgr.rb
CHANGED
data/lib/parser.rb
CHANGED
@@ -40,7 +40,7 @@ module Bind9mgr
|
|
40
40
|
[:type, :last_token_in_a_row, Proc.new{ |t| update_last_rr(nil, nil, nil, nil, t) }],
|
41
41
|
[:start, :type, Proc.new{ |t| TYPES.include?(t) ? add_rr(nil, nil, nil, t, nil) : false }],
|
42
42
|
[:start, :klass, Proc.new{ |t| KLASSES.include?(t) ? add_rr(nil, nil, t, nil, nil) : false }],
|
43
|
-
[:start, :rttl, Proc.new{ |t| t.match(/^\d+$/) ? add_rr(nil, t, nil, nil, nil) : false }],
|
43
|
+
[:start, :rttl, Proc.new{ |t| (t.match(/^\d+$/) && !@tokens.first.match(/^\d+$/) ) ? add_rr(nil, t, nil, nil, nil) : false }],
|
44
44
|
[:start, :srv, @SHARED_RULES[:srv]],
|
45
45
|
[:start, :txt, @SHARED_RULES[:txt]],
|
46
46
|
[:start, :owner, Proc.new{ |t| add_rr(t, nil, nil, nil, nil) }],
|
data/spec/parser_spec.rb
CHANGED