acme_nsupdate 0.3.0 → 0.3.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: 7e22b3776fb2331b29ccdbded623176832232282
4
- data.tar.gz: 395303634131286629fd3092f102651d4e4901da
3
+ metadata.gz: 5673bb3e92445356693cf644c6ccb4382e965064
4
+ data.tar.gz: 11fb4e6940681bf970e30c55daf600cf3a5bb6b1
5
5
  SHA512:
6
- metadata.gz: b227c653a1414547d8317d4ada1091cbdf36c71f79be39ac4de08a6406a2b06bd0ea89f73a52076b9a7eeabadb34286c46b609f953c2d2cc4a384a5c63c5cffc
7
- data.tar.gz: 8df03352e20f02af82cc2ccf2ac8fe9b1997976e10ddc86160e7a14fbc9ed601c0d92431f15e08953f2d318ad8f8e86be246f718b3802bda2971ba824a209f13
6
+ metadata.gz: d3a8b942e8c6c83559a0e56f9a3da176158db0506f59d6a8ed5719c1d8e43861d933522aae87813ce2982eeb825395556b9ad04667849470c4a4b8d5008b4a34
7
+ data.tar.gz: 2687dbf9d23f5476c5c546556f0cf179e57847f823b144250b2dd9ce8470e582c050e4d5d6d9822d47488ddf5d99aead9def2d255e6d4a6e6ace0454f0170aab
@@ -74,9 +74,10 @@ module AcmeNsupdate
74
74
  end
75
75
 
76
76
  def valid_webroot?
77
- @options[:challenge] != "http-01" ||
78
- !@options[:webroot].nil? ||
79
- File.writable?(@options[:webroot])
77
+ return true unless @options[:challenge] == "http-01"
78
+ return false if @options[:webroot].nil?
79
+ return true if File.writable?(@options[:webroot])
80
+ false
80
81
  end
81
82
 
82
83
  def valid_ttl?
@@ -14,7 +14,7 @@ module AcmeNsupdate
14
14
  end
15
15
 
16
16
  def publish_challenges
17
- map_authoriations {|domain, authorization|
17
+ map_authorizations {|domain, authorization|
18
18
  challenge = authorization.http01
19
19
  abort "Challenge http-01 not supported by this ACME server" unless challenge
20
20
 
@@ -23,8 +23,8 @@ module AcmeNsupdate
23
23
  FileUtils.mkdir_p File.dirname path
24
24
  File.write path, challenge.file_content
25
25
 
26
- [domain, challenge]
27
- }.compact.to_h
26
+ challenge
27
+ }
28
28
  end
29
29
 
30
30
  def cleanup challenges
@@ -1,3 +1,3 @@
1
1
  module AcmeNsupdate
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acme_nsupdate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonne Haß