dns-zonefile 1.1.10 → 1.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +1 -1
- data/README.md +0 -2
- data/lib/dns/zonefile/version.rb +1 -1
- data/lib/dns/zonefile.treetop +12 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cb49e3ee8ed92d42323f4619979ee16eea492f643ccf44bec74ce237f97512b
|
4
|
+
data.tar.gz: 940ed29605e9b5b650bc925414cfdd7d807eaf51f20ae1c96302f3e59a85f0ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 342403e936bc703dea402e4ab9801e345a83ea8a6b767085476bd67afe69c9ba9a182df215cc35d7ebe8e7dd53f5f19459385d4fa10d381814c8f0c9f5741dad
|
7
|
+
data.tar.gz: f06db28573800361166c693a3bd86209325225f6ae7520cdfb1384649e2eb6e3c0bbef1a717b16dbd04bc67b1d39d3918ddf880f342fed8dce748d8091c79159
|
data/CONTRIBUTING.md
CHANGED
@@ -33,4 +33,4 @@ Submit unit tests for your changes. You can test your changes on your machine by
|
|
33
33
|
|
34
34
|
## Publishing
|
35
35
|
|
36
|
-
Once a PR is merged into master, bump the version in `lib/dns/zonefile/version.rb` and commit that change. Next, add a new tag with that version number and push the tag to GitHub. Finally, if you are a maintainer with access rights for rubygems.org, run `gem build
|
36
|
+
Once a PR is merged into master, bump the version in `lib/dns/zonefile/version.rb` and commit that change. Next, add a new tag with that version number 'git tag vx.x.x' and push the tag to GitHub 'git push origin vx.x.x'. Finally, if you are a maintainer with access rights for rubygems.org, run `gem build dns-zonefile.gemspec` followed by `gem push dns-zonefile-x.x.x.gem` where x.x.x is the version number you just set.
|
data/README.md
CHANGED
@@ -68,5 +68,3 @@ Craig R Webster <http://barkingiguana.com/>
|
|
68
68
|
## Contributing
|
69
69
|
|
70
70
|
See the TODO. Read CONTRIBUTING.md for more details on how to contribute to this project.
|
71
|
-
|
72
|
-
[![Build Status](https://secure.travis-ci.org/craigw/dns-zonefile.svg)](http://travis-ci.org/craigw/dns-zonefile)
|
data/lib/dns/zonefile/version.rb
CHANGED
data/lib/dns/zonefile.treetop
CHANGED
@@ -44,8 +44,8 @@ grammar Zonefile
|
|
44
44
|
|
45
45
|
rule soa
|
46
46
|
(
|
47
|
-
origin space ttl klass "SOA" space ns space rp
|
48
|
-
origin space klass ttl "SOA" space ns space rp
|
47
|
+
origin space ttl klass "SOA" space ns space "("? multiline_comment* space_or_break* rp multiline_comment* space_or_break* "("? multiline_comment* space_or_break* serial multiline_comment* space_or_break refresh multiline_comment* space_or_break reretry multiline_comment* space_or_break expiry multiline_comment* space_or_break nxttl multiline_comment* space_or_break* ")"? /
|
48
|
+
origin space klass ttl "SOA" space ns space "("? multiline_comment* space_or_break* rp multiline_comment* space_or_break* "("? multiline_comment* space_or_break* serial multiline_comment* space_or_break refresh multiline_comment* space_or_break reretry multiline_comment* space_or_break expiry multiline_comment* space_or_break nxttl multiline_comment* space_or_break* ")"?
|
49
49
|
) {
|
50
50
|
def to_s
|
51
51
|
"#{origin} #{ttl} #{klass} SOA #{ns} #{rp} (#{serial} #{refresh} #{reretry} #{expiry} #{nxttl})"
|
@@ -379,7 +379,15 @@ grammar Zonefile
|
|
379
379
|
end
|
380
380
|
|
381
381
|
rule rp
|
382
|
-
|
382
|
+
rp_value comment* {
|
383
|
+
def to_s
|
384
|
+
"#{rp_value}"
|
385
|
+
end
|
386
|
+
}
|
387
|
+
end
|
388
|
+
|
389
|
+
rule rp_value
|
390
|
+
("." / (("\\." / [a-zA-Z0-9\-)])+ "."?)+) {
|
383
391
|
def to_s
|
384
392
|
text_value
|
385
393
|
end
|
@@ -561,7 +569,7 @@ grammar Zonefile
|
|
561
569
|
end
|
562
570
|
|
563
571
|
rule unquoted_string
|
564
|
-
'[a-zA-Z0-9=_
|
572
|
+
'[a-zA-Z0-9=_\.\-\@\:\~]+'r {
|
565
573
|
def to_s
|
566
574
|
text_value
|
567
575
|
end
|