dns-zonefile 1.1.10 → 1.1.11
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 +11 -3
- 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: a9ce2af524f4611e9802321af562f83cefd8fb248519c4f99fa4e69f97c716f1
|
4
|
+
data.tar.gz: 7b9d23678c4dd551d3dc7a957bb87a74582c9da621f5df591be7653fcc041a5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59a5277698e65091e76c6b776dbcf6097ae0f2ff520fbb74e5fca402fd77269c04b982edeb0157d94ba7062429c679a78f37322dd2358a890fc1c1cbf80a3b6e
|
7
|
+
data.tar.gz: 4c08474f6611f3edce68acaf0c5080a42fbddc63b8185737b7cdc17116d29acb059829030147b336994620f8744ee64b48e5df735e0a87880d17df34b44158a5
|
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
|