coredns 1.2.5 → 1.2.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0178318b34d3c5d671e04c90dad6344e016676306ceefa1869e2a480fc309476'
4
- data.tar.gz: 770835f06769eda702302a5d898fe01895cf97a5b4fa1b503fb96a9be19361b0
3
+ metadata.gz: 7bcf29a90277fe10e409612ab66ce48ac35584c3675f6334322584943cc0ad02
4
+ data.tar.gz: 29d6a3ce7bceefa23ee59d7581af9daa43ebc374446d4996fc82e73fbeaac3dd
5
5
  SHA512:
6
- metadata.gz: a8ac352bb8e97d1e26726d12a0607934838e081f49ed26c82f7ece711a6528edaf37448d4118ee68dcfd6226f8c57f28a8b6d4c4bbc461112a9e6a731259b9c5
7
- data.tar.gz: 9c51efdb725cf576c01d1ec96b1b8abec5c34a786e018b4a3d15566b89be81a40bd087ed170fb2284871efd7d7fb35778a29f8c30433076f61c31295e0072ab5
6
+ metadata.gz: df04fb55376ea04c35205b15653bf23147907b91ef80a2a325f480e6def5331af8b693eee49d13eb18f5510935dbc950930e957ffa93521251c9619103457c10
7
+ data.tar.gz: 87c82f538a32d9027ed27d0934b6aaebf3c991f2be45080f3d81ebf1866f407ba08d27e5df07ac4947fae50bc0a60c86d2c3dd00009303ecf304d4d100c82f44
data/Gemfile CHANGED
@@ -14,3 +14,5 @@ gem "rubocop", "~> 1.7"
14
14
  gem "rest-client", "~> 2.0"
15
15
 
16
16
  gem "base64", "~> 0.2.0"
17
+
18
+ gem "simpleidn", "~> 0.2.3"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coredns (1.2.5)
4
+ coredns (1.2.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -55,6 +55,7 @@ GEM
55
55
  rubocop-ast (1.18.0)
56
56
  parser (>= 3.1.1.0)
57
57
  ruby-progressbar (1.11.0)
58
+ simpleidn (0.2.3)
58
59
  unf (0.1.4)
59
60
  unf_ext
60
61
  unf_ext (0.0.8.2)
@@ -70,6 +71,7 @@ DEPENDENCIES
70
71
  rest-client (~> 2.0)
71
72
  rspec (~> 3.0)
72
73
  rubocop (~> 1.7)
74
+ simpleidn (~> 0.2.3)
73
75
 
74
76
  BUNDLED WITH
75
77
  2.2.33
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 IBA Group a.s.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/coredns.gemspec CHANGED
@@ -27,8 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- # Uncomment to register a new dependency of your gem
31
- # spec.add_dependency "example-gem", "~> 1.0"
30
+ spec.add_dependency "simpleidn", "~> 0.2.3"
32
31
 
33
32
  # For more information and examples about making a new gem, checkout our
34
33
  # guide at: https://bundler.io/guides/creating_gem.html
data/lib/etcd.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require "base64"
4
4
  require "json"
5
5
  require "logger"
6
+ require "simpleidn"
6
7
 
7
8
  class CoreDns::Etcd
8
9
  attr_reader :api_url, :prefix, :postfix
@@ -17,7 +18,7 @@ class CoreDns::Etcd
17
18
 
18
19
  def domain(hostname)
19
20
  unless hostname.empty?
20
- raise RuntimeError.new "Invalid hostname" unless hostname.match?(/\A(?:(?!-)(?!.*--)[a-zA-Z0-9_][a-zA-Z0-9\-\_]{0,62}\.)+[a-zA-Z]{2,}\z/)
21
+ raise RuntimeError.new "Invalid hostname" unless SimpleIDN.to_unicode(hostname).match?(/\A(?:(?!-)(?!.*--)[\p{L}\p{N}_][\p{L}\p{N}\-\_]{0,62}\.)+[\p{L}]{2,}\z/)
21
22
  end
22
23
 
23
24
  CoreDns::Etcd::Domain.new(self, hostname)
@@ -26,7 +27,7 @@ class CoreDns::Etcd
26
27
  def zone(domain)
27
28
 
28
29
  unless domain.empty?
29
- raise RuntimeError.new "Invalid domain" unless domain.match?(/\A(?:(?!-)(?!.*--)[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,}\z/)
30
+ raise RuntimeError.new "Invalid domain" unless SimpleIDN.to_unicode(domain).match?(/\A(?:(?!-)(?!.*--)[\p{L}\p{N}-]{1,63}\.)+[\p{L}]{2,}\z/)
30
31
  end
31
32
 
32
33
  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.5"
4
+ VERSION = "1.2.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coredns
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aliaksei Hrechushkin
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
- dependencies: []
11
+ date: 2026-01-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: simpleidn
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.3
12
27
  description: Gem which provide simple way to control DNS records.
13
28
  email:
14
29
  - ahrechushkin@ibagoup.eu
@@ -24,6 +39,7 @@ files:
24
39
  - CODE_OF_CONDUCT.md
25
40
  - Gemfile
26
41
  - Gemfile.lock
42
+ - LICENSE
27
43
  - README.md
28
44
  - Rakefile
29
45
  - bin/console
@@ -44,6 +60,7 @@ metadata:
44
60
  homepage_uri: https://icdc.io
45
61
  source_code_uri: https://github.com/icdc-io/coredns
46
62
  changelog_uri: https://github.com/icdc-io/coredns
63
+ post_install_message:
47
64
  rdoc_options: []
48
65
  require_paths:
49
66
  - lib
@@ -58,7 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
75
  - !ruby/object:Gem::Version
59
76
  version: '0'
60
77
  requirements: []
61
- rubygems_version: 3.7.1
78
+ rubygems_version: 3.5.23
79
+ signing_key:
62
80
  specification_version: 4
63
81
  summary: Wrapper for coredns-etcd application
64
82
  test_files: []