coredns 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/etcd.rb +4 -3
  4. data/lib/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5580d71e9ce948b905ad3cd8eee53aac28ac460565e815fdcadd3b00a25ac245
4
- data.tar.gz: 06cfd2577e56c61280b8bb3be5900a34d0245f4beeeb3a17e3d4ae72a57436f0
3
+ metadata.gz: 6c214a8b2a2394034f218a47981f60e0d835b85455c22eb68175d33cede68313
4
+ data.tar.gz: 4798edfe298a20a548c1d223ba7cf18d62a17d604ac8f757d65aa2041b16f3ce
5
5
  SHA512:
6
- metadata.gz: ef6d3e591c721e322d440cd5b64acae27ae93bca9d19251df0545c83c21e3a1ca7a3c3fa6eb0bae23a16304f588b8114e9ba50a9f9de65c3177b08849672324a
7
- data.tar.gz: cc1f7cf71f649484a31e3511aa9d2063f83a0b2e429f36b87ee4e443ff230a050d7412f423e442dce1f2ab4dbff6953702f4c13f99b1bf76e346a6ef79da6cff
6
+ metadata.gz: fba2de61857f7966b4ce7aece8bcd0dc5d8c69fd41a6d0dde3d4df6f8207c0bfab8722cfe1e2a646f61255783524bea988e41f09096791c493d67345d14c9d97
7
+ data.tar.gz: cb897347a9a0919984a91db6c6f81d89e26e668c784e200e2c69981bbf6c136bd9359e8a3085d9ec5666a07dad6106b65c611fb5be0d4477142658775b8cd948
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coredns (1.0.2)
4
+ coredns (1.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aliaksei Hrechushkin