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 CHANGED
@@ -105,3 +105,7 @@
105
105
  === 0.3.17 / 2013-03-06
106
106
 
107
107
  * owner can contain digits only (for reverse DNS PTR records)
108
+
109
+ === 0.3.18 /2013-03-6
110
+
111
+ * owner with digits fix
data/lib/bind9mgr.rb CHANGED
@@ -6,7 +6,7 @@ require File.join( File.dirname(__FILE__), 'resource_record' )
6
6
  require File.join( File.dirname(__FILE__), 'parser' )
7
7
 
8
8
  module Bind9mgr
9
- VERSION = '0.3.17'
9
+ VERSION = '0.3.18'
10
10
 
11
11
  ZONES_BIND_SUBDIR = 'primary'
12
12
 
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
@@ -40,6 +40,8 @@ SRV 0 5 555 46.61.233.44
40
40
 
41
41
  _sip._tls.dev-office SRV 0 5 443 sip.dev-office
42
42
 
43
+ 123 300 IN PTR 46.61.180.100
44
+
43
45
  NS ns2.cloud.ru
44
46
  manager IN A 192.168.1.20
45
47
  director IN A 192.168.1.23
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bind9mgr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.17
4
+ version: 0.3.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: