coredns 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/etcd.rb +4 -3
- data/lib/version.rb +1 -1
- 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: 6c214a8b2a2394034f218a47981f60e0d835b85455c22eb68175d33cede68313
|
4
|
+
data.tar.gz: 4798edfe298a20a548c1d223ba7cf18d62a17d604ac8f757d65aa2041b16f3ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fba2de61857f7966b4ce7aece8bcd0dc5d8c69fd41a6d0dde3d4df6f8207c0bfab8722cfe1e2a646f61255783524bea988e41f09096791c493d67345d14c9d97
|
7
|
+
data.tar.gz: cb897347a9a0919984a91db6c6f81d89e26e668c784e200e2c69981bbf6c136bd9359e8a3085d9ec5666a07dad6106b65c611fb5be0d4477142658775b8cd948
|
data/Gemfile.lock
CHANGED
data/lib/etcd.rb
CHANGED
@@ -16,16 +16,17 @@ class CoreDns::Etcd
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def domain(hostname)
|
19
|
-
unless hostname.empty?
|
20
|
-
raise RuntimeError.new "Invalid hostname"
|
19
|
+
unless hostname.empty?
|
20
|
+
raise RuntimeError.new "Invalid hostname" unless hostname.match?(/\A(?:(?!-)(?!.*--)[a-zA-Z0-9_][a-zA-Z0-9-_]{1,62}\.)+[a-zA-Z]{2,}\z/)
|
21
21
|
end
|
22
22
|
|
23
23
|
CoreDns::Etcd::Domain.new(self, hostname)
|
24
24
|
end
|
25
25
|
|
26
26
|
def zone(domain)
|
27
|
+
|
27
28
|
unless domain.empty?
|
28
|
-
raise RuntimeError.new "Invalid domain" unless domain.match?
|
29
|
+
raise RuntimeError.new "Invalid domain" unless domain.match?(/\A(?:(?!-)(?!.*--)[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,}\z/)
|
29
30
|
end
|
30
31
|
|
31
32
|
CoreDns::Etcd::DnsZone.new(self, domain)
|
data/lib/version.rb
CHANGED