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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e88aecfb00a572044b1e71d5c3bfc9f4fd4fa88d1ee7a2ae85d2127230d483d8
4
- data.tar.gz: f121b1c044894597fd2c3b9d1e12892efa444179834ec307001060bf650bd302
3
+ metadata.gz: 2cb49e3ee8ed92d42323f4619979ee16eea492f643ccf44bec74ce237f97512b
4
+ data.tar.gz: 940ed29605e9b5b650bc925414cfdd7d807eaf51f20ae1c96302f3e59a85f0ba
5
5
  SHA512:
6
- metadata.gz: 871370b42902039616ed6a2fd7d6fc3556f99abe54cb53fa17b3989ac47735c8e4be82a41ff9b2ba551da4352886607d686137018859a87be575407d4ebd1386
7
- data.tar.gz: 8933e2220b5aa111d6b54e3870c1cbb67c02b213e78faaa328d05339aa367be3837c84e7054c70b7bd08f44c3b0b21a3efeb30edd22afda56968add0697cdb94
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 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.12"
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
@@ -561,7 +569,7 @@ grammar Zonefile
561
569
  end
562
570
 
563
571
  rule unquoted_string
564
- '[a-zA-Z0-9=_\.\-\@\:]+'r {
572
+ '[a-zA-Z0-9=_\.\-\@\:\~]+'r {
565
573
  def to_s
566
574
  text_value
567
575
  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.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig R Webster