coredns 1.2.1 → 1.2.4

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: 6c214a8b2a2394034f218a47981f60e0d835b85455c22eb68175d33cede68313
4
- data.tar.gz: 4798edfe298a20a548c1d223ba7cf18d62a17d604ac8f757d65aa2041b16f3ce
3
+ metadata.gz: e3921a27cc260ed2f88647f43c85f130d567eec39e875beccc22dea0db2c7532
4
+ data.tar.gz: f07db2a86143a59be2af69356b7ae608693d1dfcb8577adc7fa8c5b5a4b879f9
5
5
  SHA512:
6
- metadata.gz: fba2de61857f7966b4ce7aece8bcd0dc5d8c69fd41a6d0dde3d4df6f8207c0bfab8722cfe1e2a646f61255783524bea988e41f09096791c493d67345d14c9d97
7
- data.tar.gz: cb897347a9a0919984a91db6c6f81d89e26e668c784e200e2c69981bbf6c136bd9359e8a3085d9ec5666a07dad6106b65c611fb5be0d4477142658775b8cd948
6
+ metadata.gz: cf33bdddd56ce973fbb32218ee6ca891284a829abe7ca257c4d13534592e18d53544cec1d88c82221259e3eedadb9aaf1a9f4178f14a7fec750cb7e70962885f
7
+ data.tar.gz: b605f2ad7351427436447d723945b374ad6f13929ef5ce42ac23c582a74ed769f097ef879cb7af41da3b1c0574e39ef07e6b68cf1272b0a1dfa17e7e9561c495
data/Gemfile CHANGED
@@ -12,3 +12,5 @@ gem "rspec", "~> 3.0"
12
12
  gem "rubocop", "~> 1.7"
13
13
 
14
14
  gem "rest-client", "~> 2.0"
15
+
16
+ gem "base64", "~> 0.2.0"
data/Gemfile.lock CHANGED
@@ -1,12 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coredns (1.2.0)
4
+ coredns (1.2.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
+ base64 (0.2.0)
10
11
  diff-lcs (1.5.0)
11
12
  domain_name (0.5.20190701)
12
13
  unf (>= 0.0.5, < 1.0.0)
@@ -60,9 +61,11 @@ GEM
60
61
  unicode-display_width (2.1.0)
61
62
 
62
63
  PLATFORMS
64
+ arm64-darwin-23
63
65
  x86_64-linux
64
66
 
65
67
  DEPENDENCIES
68
+ base64 (~> 0.2.0)
66
69
  coredns!
67
70
  rake (~> 13.0)
68
71
  rest-client (~> 2.0)
@@ -70,4 +73,4 @@ DEPENDENCIES
70
73
  rubocop (~> 1.7)
71
74
 
72
75
  BUNDLED WITH
73
- 2.2.33
76
+ 2.5.9
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
@@ -17,7 +17,7 @@ class CoreDns::Etcd
17
17
 
18
18
  def domain(hostname)
19
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/)
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)
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.1"
4
+ VERSION = "1.2.4"
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.1
4
+ version: 1.2.4
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: 2024-06-18 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.5.11
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: Wrapper for coredns-etcd application