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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f05d8a65afdbee07c1e66c70a61b5264680db2fb
4
- data.tar.gz: 5864bd542312a7f99ae3e4f1665a232c46d629fe
3
+ metadata.gz: 2d5bd387cafb45b279e06f220f6870491972db79
4
+ data.tar.gz: c2b3138b060f3787c2773c662d34def92ef279e4
5
5
  SHA512:
6
- metadata.gz: 66b41d6bd47b0509f8387f48754a9328a62885579bbcf5f520d140526f78ee8dd50f2d3b1c0dde08e2cbf8b99d72178766dcf4f7282c1ee20befa2feba997b0f
7
- data.tar.gz: 9cadafd5553142377487bb6d1209ba9fd0bcadd7ff97880a0f0ec1c6f3b10242cb1d5ea2a7de0b45ce80167e1eba40dcffa97a2753a01700dce36561d249f9a5
6
+ metadata.gz: 68383095bfa7caebdbcb16067dfe269023ad6165f896555d76abe56bec75bb38f397ff8c8f607784b6dcf4979cc4922e73b8713fecddbc9e054417314ca2d047
7
+ data.tar.gz: cd545ffbd89bb3713a89323964131d39bd2ea320cb2277be03852835cf0d69c57fd5ec9f10a312cc8633886e4ba9fc1e509a19dd8618671987c8350f20035980
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /log/
11
+ .ruby-version
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.3.3
@@ -1,3 +1,7 @@
1
+ v0.2.12 -- 2017-02-08
2
+
3
+ Couple of fixes, thanks @CvX, see https://github.com/xijo/letsencrypt_heroku/pull/3
4
+
1
5
  v0.2.11 -- 2017-02-08
2
6
 
3
7
  Fix issue concerning ruby version and heroku CLI, see https://github.com/xijo/letsencrypt_heroku/pull/2
@@ -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
- Open3.popen3("heroku certs:info --app #{herokuapp}") do |stdin, stdout, stderr, wait_thr|
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
- out, err = stdout.read, stderr.read
32
- log out
33
- log err
34
- wait_thr.value.success? or error(err.force_encoding('utf-8').sub(' ▸ ', 'heroku: '))
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 ||= Logger.new(File.open('log/letsencrypt_heroku.log', File::WRONLY | File::APPEND | File::CREAT))
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)
@@ -1,3 +1,3 @@
1
1
  module LetsencryptHeroku
2
- VERSION = "0.2.11"
2
+ VERSION = "0.2.12"
3
3
  end
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.11
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.6.4
145
+ rubygems_version: 2.5.2
160
146
  signing_key:
161
147
  specification_version: 4
162
148
  summary: Setup SSL for heroku with letsencrypt