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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8046774804fb258740fcaaf2bbb19c823618082
4
- data.tar.gz: 4b4c648818d71005f48d216aa12f63be9a292cfe
3
+ metadata.gz: 1ef42741040419a4012553753a314c4ff1f4b4b9
4
+ data.tar.gz: f1039628405c9db5a29f267261486553026ce22d
5
5
  SHA512:
6
- metadata.gz: 8100bb4a174e42bce6e3a74d997c2cb59e40be2ebeb1c7dffb89b7e92ba408417dd57a2ed7f495d65e7ca24f027c4119deb38b627e0ecd337833c41946a57a4a
7
- data.tar.gz: 589c69691b1e55f5e39af424232acedd918108aecb88e14e4e0d4f1c1fa6e85c6837ee0d36fd0821005de649a38f2d10322334d160d0832c963718bb06abe01a
6
+ metadata.gz: 601f7aace981b83b81f5333a687ee917460e7a8e2e825ff815cf705d82cdc841a61e8eaed50d13254b9f2f22c92492ad08204756c67e74a36d5e97f741c0558e
7
+ data.tar.gz: 733c86ecb18d8fe61e4f93b923805ff2150aa6155324510c6f9238dfaf01220620f848089f93a41680ece57e7a19a07ce7a51f00b128e1df5ac2072743db1031
@@ -1,3 +1,9 @@
1
+ ## v2.0.1 (2018-05-18)
2
+
3
+ ### Bug fixes
4
+
5
+ - It could fail when encountered a challenge type which is unsupported by `acme-client` gem
6
+
1
7
  ## v2.0.0 (2018-05-18)
2
8
 
3
9
  ### Notable changes
@@ -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 { |_| x.support?(_.challenge_type) }
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
@@ -1,3 +1,3 @@
1
1
  module Acmesmith
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acmesmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sorah (Shota Fukumori)