acmesmith 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/acmesmith/client.rb +5 -1
- data/lib/acmesmith/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ef42741040419a4012553753a314c4ff1f4b4b9
|
4
|
+
data.tar.gz: f1039628405c9db5a29f267261486553026ce22d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 601f7aace981b83b81f5333a687ee917460e7a8e2e825ff815cf705d82cdc841a61e8eaed50d13254b9f2f22c92492ad08204756c67e74a36d5e97f741c0558e
|
7
|
+
data.tar.gz: 733c86ecb18d8fe61e4f93b923805ff2150aa6155324510c6f9238dfaf01220620f848089f93a41680ece57e7a19a07ce7a51f00b128e1df5ac2072743db1031
|
data/CHANGELOG.md
CHANGED
data/lib/acmesmith/client.rb
CHANGED
@@ -200,7 +200,11 @@ module Acmesmith
|
|
200
200
|
challenges = authz.challenges
|
201
201
|
challenge = nil
|
202
202
|
responder = config.challenge_responders.find do |x|
|
203
|
-
challenge = challenges.find { |
|
203
|
+
challenge = challenges.find { |c|
|
204
|
+
# OMG, acme-client might return a Hash instead of Acme::Client::Resources::Challenge::* object...
|
205
|
+
challenge_type = c.is_a?(Hash) ? c[:challenge_type] : c.challenge_type
|
206
|
+
x.support?(challenge_type)
|
207
|
+
}
|
204
208
|
end
|
205
209
|
{domain: authz.domain, authz: authz, responder: responder, responder_id: responder.__id__, challenge: challenge}
|
206
210
|
end
|
data/lib/acmesmith/version.rb
CHANGED