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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e88aecfb00a572044b1e71d5c3bfc9f4fd4fa88d1ee7a2ae85d2127230d483d8
4
- data.tar.gz: f121b1c044894597fd2c3b9d1e12892efa444179834ec307001060bf650bd302
3
+ metadata.gz: a9ce2af524f4611e9802321af562f83cefd8fb248519c4f99fa4e69f97c716f1
4
+ data.tar.gz: 7b9d23678c4dd551d3dc7a957bb87a74582c9da621f5df591be7653fcc041a5a
5
5
  SHA512:
6
- metadata.gz: 871370b42902039616ed6a2fd7d6fc3556f99abe54cb53fa17b3989ac47735c8e4be82a41ff9b2ba551da4352886607d686137018859a87be575407d4ebd1386
7
- data.tar.gz: 8933e2220b5aa111d6b54e3870c1cbb67c02b213e78faaa328d05339aa367be3837c84e7054c70b7bd08f44c3b0b21a3efeb30edd22afda56968add0697cdb94
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 dnsimple-zonefile.gemspec` followed by `gem push dnsimple-zonefile-x.x.x.gem` where x.x.x is the version number you just set.
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)
@@ -1,5 +1,5 @@
1
1
  module DNS
2
2
  module Zonefile
3
- VERSION = "1.1.10"
3
+ VERSION = "1.1.11"
4
4
  end
5
5
  end
@@ -44,8 +44,8 @@ grammar Zonefile
44
44
 
45
45
  rule soa
46
46
  (
47
- origin space ttl klass "SOA" space ns space rp space "("? 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 rp space "("? 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* ")"?
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
- (("\\." / [+a-zA-Z0-9\-)])* ".")+ {
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
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.1.10
4
+ version: 1.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig R Webster