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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5580d71e9ce948b905ad3cd8eee53aac28ac460565e815fdcadd3b00a25ac245
4
- data.tar.gz: 06cfd2577e56c61280b8bb3be5900a34d0245f4beeeb3a17e3d4ae72a57436f0
3
+ metadata.gz: 3fc64993c782d20cbe112a00e780bd2392a9e8013bb22e8262fab9a42bf10632
4
+ data.tar.gz: d6c5fabac0a6761ac8b66573466f747e1413a589b7be116412035f2f9094dc8e
5
5
  SHA512:
6
- metadata.gz: ef6d3e591c721e322d440cd5b64acae27ae93bca9d19251df0545c83c21e3a1ca7a3c3fa6eb0bae23a16304f588b8114e9ba50a9f9de65c3177b08849672324a
7
- data.tar.gz: cc1f7cf71f649484a31e3511aa9d2063f83a0b2e429f36b87ee4e443ff230a050d7412f423e442dce1f2ab4dbff6953702f4c13f99b1bf76e346a6ef79da6cff
6
+ metadata.gz: d5b190094e8a199d5761e6dc62fc6bc70c489ebf4c8134d9cbb42d005fc14d538dabdf93f339e88da6f8c6cf9712d4b052f7bf3342b9b7b757a194ee831d0f5f
7
+ data.tar.gz: da40e08972f96af0a9f73385f5c4a29972d704e2dd618de485f19d702cd04bccc580cb03e83c0ef75c3d73a8c1ea1f18a6e1903e30a7d4ada681e6d99fc2470c
data/Gemfile.lock CHANGED
@@ -60,6 +60,7 @@ GEM
60
60
  unicode-display_width (2.1.0)
61
61
 
62
62
  PLATFORMS
63
+ arm64-darwin-23
63
64
  x86_64-linux
64
65
 
65
66
  DEPENDENCIES
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? && hostname.match?(/\A(?:(?!-)(?!.*--)[a-zA-Z0-9_][a-zA-Z0-9-_]{1,62}\.)+[a-zA-Z]{2,}\z/)
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? /\A(?:(?!-)(?!.*--)[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,}\z/
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CoreDns
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.3"
5
5
  end
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.0
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 00:00:00.000000000 Z
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.10
63
+ rubygems_version: 3.4.21
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: Wrapper for coredns-etcd application