letsencrypt_heroku 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/letsencrypt_heroku.gemspec +0 -2
- data/lib/letsencrypt_heroku/process/update_certificates.rb +1 -1
- data/lib/letsencrypt_heroku/tools.rb +13 -6
- data/lib/letsencrypt_heroku/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d5bd387cafb45b279e06f220f6870491972db79
|
4
|
+
data.tar.gz: c2b3138b060f3787c2773c662d34def92ef279e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68383095bfa7caebdbcb16067dfe269023ad6165f896555d76abe56bec75bb38f397ff8c8f607784b6dcf4979cc4922e73b8713fecddbc9e054417314ca2d047
|
7
|
+
data.tar.gz: cd545ffbd89bb3713a89323964131d39bd2ea320cb2277be03852835cf0d69c57fd5ec9f10a312cc8633886e4ba9fc1e509a19dd8618671987c8350f20035980
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.3
|
data/CHANGELOG.md
CHANGED
data/letsencrypt_heroku.gemspec
CHANGED
@@ -21,8 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_dependency 'rainbow'
|
22
22
|
spec.add_dependency 'acme-client'
|
23
23
|
spec.add_dependency 'tty-spinner'
|
24
|
-
# See https://github.com/schubergphilis/letsencrypt/issues/36
|
25
|
-
spec.add_dependency 'json-jwt', '1.5.2'
|
26
24
|
|
27
25
|
spec.add_development_dependency 'bundler', '~> 1.12'
|
28
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
@@ -22,7 +22,7 @@ class LetsencryptHeroku::Process
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def has_already_cert(herokuapp)
|
25
|
-
|
25
|
+
execute("heroku certs:info --app #{herokuapp}") do |stdin, stdout, stderr, wait_thr|
|
26
26
|
return wait_thr.value.success?
|
27
27
|
end
|
28
28
|
end
|
@@ -25,20 +25,27 @@ module LetsencryptHeroku
|
|
25
25
|
raise LetsencryptHeroku::TaskError, reason
|
26
26
|
end
|
27
27
|
|
28
|
-
def execute(command)
|
28
|
+
def execute(command, &block)
|
29
29
|
log command
|
30
30
|
Open3.popen3("unset RUBYOPT; #{command}") do |stdin, stdout, stderr, wait_thr|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
if block
|
32
|
+
block.call(stdin, stdout, stderr, wait_thr)
|
33
|
+
else
|
34
|
+
out, err = stdout.read, stderr.read
|
35
|
+
log out
|
36
|
+
log err
|
37
|
+
wait_thr.value.success? or error(err.force_encoding('utf-8').sub(' ▸ ', 'heroku: '))
|
38
|
+
end
|
35
39
|
end
|
36
40
|
end
|
37
41
|
|
38
42
|
private
|
39
43
|
|
40
44
|
def logger
|
41
|
-
@logger ||=
|
45
|
+
@logger ||= begin
|
46
|
+
Dir.mkdir('log') unless File.directory?('log')
|
47
|
+
Logger.new(File.open('log/letsencrypt_heroku.log', File::WRONLY | File::APPEND | File::CREAT))
|
48
|
+
end
|
42
49
|
end
|
43
50
|
|
44
51
|
def build_spinner(name)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: letsencrypt_heroku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johannes Opper
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: json-jwt
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - '='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 1.5.2
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 1.5.2
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: bundler
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
142
|
version: '0'
|
157
143
|
requirements: []
|
158
144
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.
|
145
|
+
rubygems_version: 2.5.2
|
160
146
|
signing_key:
|
161
147
|
specification_version: 4
|
162
148
|
summary: Setup SSL for heroku with letsencrypt
|