acme_nsupdate 0.4.2 → 0.4.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: 744d12978de91b754f334e075889e90cf6e2ecbe983201cfdd17791e9f51e6fc
4
- data.tar.gz: b82c97b99490cff24139a0f65886bc58c50481259894b5a9dc8e1d60b439f996
3
+ metadata.gz: 2c2c9a4882555e5998835255c9d0a0a1433b1369e7b3cb5c16a3e17074d092b3
4
+ data.tar.gz: e6df0ac6c9d93f478b25165aff982f0db4e686e6f1c3415d921b28c129270aa8
5
5
  SHA512:
6
- metadata.gz: 9e4662c774c79fb8b71e4ec36c0c11bb5f2ae6db64c1c9b1a70d860dac762861d9bc1d545bcab2a48dc3919bec9514cfebabd75c29fc85976e4555bea5eb9045
7
- data.tar.gz: 967e33da2200c9fec73b39374208557aa42206117bd07628a1f26e2563a99fa28175c8622638755e39b14f5f2b971e10670a09b2d42f81fd7a1ccdd41fb7ef32
6
+ metadata.gz: dae4322617100f7644bfa625a8a17a16f2d569721815a4282a16fc36cdb7632377f058da20437ccd54f09fb0446af0b658f270fa377ee3cae94e4f2b76b32f16
7
+ data.tar.gz: 0e8e737733fd2bbc95a4568777280d4e62bf2dcecd2cf31a26f0ad57a24dabb8b21a7c168389199c9d6b9c7d2b2c7ebef2ec478761160ef760c78462ea961343
@@ -57,7 +57,7 @@ module AcmeNsupdate
57
57
  @client.logger.debug "Got #{records.size} TXT records for #{name}: #{records.map(&:inspect).join(", ")}"
58
58
  if records.include? content
59
59
  true
60
- elsif waited == timeout
60
+ elsif waited >= timeout
61
61
  @client.logger.error "None matched, timeout reached, aborting"
62
62
  return false
63
63
  else
@@ -83,7 +83,7 @@ module AcmeNsupdate
83
83
  begin
84
84
  sender = requester.sender(message, name, primary, 53)
85
85
  reply, _ = requester.request(sender, 10)
86
- authority = reply.authority.first.first.to_s
86
+ authority = !reply.authority.empty? ? reply.authority.first.first.to_s : reply.answer.first[2].to_s
87
87
  ensure
88
88
  requester.close
89
89
  end
@@ -1,3 +1,3 @@
1
1
  module AcmeNsupdate
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acme_nsupdate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonne Haß
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-17 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop