coredns 1.2.0 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -0
- data/lib/etcd/dns_zone.rb +1 -1
- data/lib/etcd.rb +4 -3
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fc64993c782d20cbe112a00e780bd2392a9e8013bb22e8262fab9a42bf10632
|
4
|
+
data.tar.gz: d6c5fabac0a6761ac8b66573466f747e1413a589b7be116412035f2f9094dc8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5b190094e8a199d5761e6dc62fc6bc70c489ebf4c8134d9cbb42d005fc14d538dabdf93f339e88da6f8c6cf9712d4b052f7bf3342b9b7b757a194ee831d0f5f
|
7
|
+
data.tar.gz: da40e08972f96af0a9f73385f5c4a29972d704e2dd618de485f19d702cd04bccc580cb03e83c0ef75c3d73a8c1ea1f18a6e1903e30a7d4ada681e6d99fc2470c
|
data/Gemfile.lock
CHANGED
data/lib/etcd/dns_zone.rb
CHANGED
@@ -28,7 +28,7 @@ class CoreDns::Etcd::DnsZone < CoreDns::Etcd::Domain
|
|
28
28
|
|
29
29
|
def parent_zone
|
30
30
|
@namespace = @namespace.split(".")[1..].join(".")
|
31
|
-
return nil if @namespace.empty?
|
31
|
+
return nil if @namespace.empty? || !@namespace.include?(".")
|
32
32
|
|
33
33
|
zone_hash = @client.zone(@namespace).show
|
34
34
|
return @client.zone(@namespace) if zone_hash
|
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
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coredns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aliaksei Hrechushkin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Gem which provide simple way to control DNS records.
|
14
14
|
email:
|
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
requirements: []
|
63
|
-
rubygems_version: 3.4.
|
63
|
+
rubygems_version: 3.4.21
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: Wrapper for coredns-etcd application
|