dns-zonefile 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -3,12 +3,14 @@ PATH
3
3
  specs:
4
4
  dns-zonefile (1.0.0)
5
5
  polyglot
6
+ treetop
6
7
 
7
8
  GEM
8
9
  remote: http://rubygems.org/
9
10
  specs:
10
11
  diff-lcs (1.1.3)
11
- polyglot (0.3.2)
12
+ polyglot (0.3.3)
13
+ rake (0.9.2.2)
12
14
  rspec (2.6.0)
13
15
  rspec-core (~> 2.6.0)
14
16
  rspec-expectations (~> 2.6.0)
@@ -26,5 +28,5 @@ PLATFORMS
26
28
 
27
29
  DEPENDENCIES
28
30
  dns-zonefile!
31
+ rake
29
32
  rspec (= 2.6)
30
- treetop
data/dns-zonefile.gemspec CHANGED
@@ -25,6 +25,7 @@ some canonical form.}
25
25
  s.require_paths = ["lib"]
26
26
 
27
27
  s.add_development_dependency "rspec", "= 2.6"
28
- s.add_development_dependency "treetop"
28
+ s.add_development_dependency "rake"
29
+ s.add_runtime_dependency "treetop"
29
30
  s.add_runtime_dependency "polyglot"
30
31
  end
data/doc/zonefile.treetop CHANGED
@@ -248,9 +248,8 @@ grammar Zonefile
248
248
  }
249
249
  end
250
250
 
251
- # fixme: same as host, except also allow \. -- eg: firstname\.lastname.domain.com
252
251
  rule rp
253
- ([a-zA-Z0-9\-]+ ".")+ {
252
+ ([a-zA-Z0-9\-\\]+ ".")+ {
254
253
  def to_s
255
254
  text_value
256
255
  end
@@ -2369,7 +2369,7 @@ module DNS
2369
2369
  i1, s1 = index, []
2370
2370
  s2, i2 = [], index
2371
2371
  loop do
2372
- if has_terminal?('\G[a-zA-Z0-9\\-]', true, index)
2372
+ if has_terminal?('\G[a-zA-Z0-9\\-\\\\]', true, index)
2373
2373
  r3 = true
2374
2374
  @index += 1
2375
2375
  else
@@ -1,5 +1,5 @@
1
1
  module DNS
2
2
  module Zonefile
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -24,7 +24,7 @@ $ORIGIN example.com.
24
24
  $TTL 86400; expire in 1 day.
25
25
  $OTHER abc
26
26
  ; line above has spaces at the end, but no comment
27
- @ IN SOA ns.example.com. hostmaster.example.com. (
27
+ @ IN SOA ns.example.com. hostmaster\\.awesome.example.com. (
28
28
  2007120710 ; serial number of this zone file
29
29
  1d ; slave refresh (1 day)
30
30
  1d ; slave retry time in case of a problem (1 day)
@@ -108,7 +108,7 @@ ZONE
108
108
  soa.klass.should eql('IN')
109
109
  soa.ttl.should eql(86400)
110
110
  soa.nameserver.should eql('ns.example.com.')
111
- soa.responsible_party.should eql('hostmaster.example.com.')
111
+ soa.responsible_party.should eql('hostmaster\.awesome.example.com.')
112
112
  soa.serial.should eql(2007120710)
113
113
  soa.refresh_time.should eql(86400)
114
114
  soa.retry_time.should eql(86400)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dns-zonefile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-26 00:00:00.000000000Z
12
+ date: 2011-12-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70265569399900 !ruby/object:Gem::Requirement
16
+ requirement: &70295826731540 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.6'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70265569399900
24
+ version_requirements: *70295826731540
25
25
  - !ruby/object:Gem::Dependency
26
- name: treetop
27
- requirement: &70265569399480 !ruby/object:Gem::Requirement
26
+ name: rake
27
+ requirement: &70295826731120 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,21 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70265569399480
35
+ version_requirements: *70295826731120
36
+ - !ruby/object:Gem::Dependency
37
+ name: treetop
38
+ requirement: &70295826730660 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *70295826730660
36
47
  - !ruby/object:Gem::Dependency
37
48
  name: polyglot
38
- requirement: &70265569399020 !ruby/object:Gem::Requirement
49
+ requirement: &70295826730240 !ruby/object:Gem::Requirement
39
50
  none: false
40
51
  requirements:
41
52
  - - ! '>='
@@ -43,7 +54,7 @@ dependencies:
43
54
  version: '0'
44
55
  type: :runtime
45
56
  prerelease: false
46
- version_requirements: *70265569399020
57
+ version_requirements: *70295826730240
47
58
  description: ! "The format of a DNS Zonefile is defined in RFC 1035 section 5 and
48
59
  RFC\n1034 section 3.6.1. To anyone who's using BIND they'll look very \nfamiliar.\n\nThis
49
60
  is an attempt to use Ruby parse them into an object graph which can \nbe investigated