puma-acme 0.1.5 → 0.1.7

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
  SHA256:
3
- metadata.gz: cc156b093b48c0f4382227d31f549b2bd93138f92f994a966613004d9c33d4ee
4
- data.tar.gz: 80bcf8a859ba560e23b99e564405fa1673fb7b4eb952c5a6ae4369c1cd8b20ad
3
+ metadata.gz: 43b6d1dcea1155f14c48dbbe4c47bc7ebe762f2b0038fbc46f01c99742e0b333
4
+ data.tar.gz: 5b45027dffe9e5f8aaa71e632d86504162b9cb1807dc0dffca898f928daf2f78
5
5
  SHA512:
6
- metadata.gz: 8ed43ee21855807e6debaa5b0affb1d5495bbab0415b41fa2158804f707eb78dcbe7be061a50bee12cb1048f101dbd4d33f9ddd1bd64b80034b5de640d3d73f7
7
- data.tar.gz: b7eba9477b202317c27374e9305f8efffbd20df275d97a1dd9c9838d18ad2f4e9cbf1959b3f61b34f455ee34f6bf8ab92ad8be7f8fc2757d5c2d2e24e1085340
6
+ metadata.gz: fe92c43245052c55eb488ab2303904d68c07ca0c41c07b0b48b1b66d32d03f68ebfa4cacbe7f8d66336abfa75bee7fa397e89fe55d98a6ca6e58292cf052db8c
7
+ data.tar.gz: f009056926a174bb97fa49292cf21fb9d0ed6233e03214274d5e7f975ba310fca276fa12437a3af0c96b2b17d7b86492d3aae0ec6af356cc4d33ea1b99021bd7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## 0.1.7 - 07/17/24
4
+
5
+ - fix #closed? on nil error when shutting down puma
6
+
7
+ ## 0.1.6 - 07/15/24
8
+
9
+ - clear memoized x509 data for Cert#cert_pem=
10
+ - drop ruby 3.1 syntax
11
+ - simplify bind/listening output
12
+ - add a foreground cert provisioning success log message
13
+
3
14
  ## 0.1.5 - 4/11/24
4
15
 
5
16
  - further fixes to expired order/cert renewal
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- puma-acme (0.1.5)
4
+ puma-acme (0.1.7)
5
5
  acme-client (~> 2.0.13)
6
6
  pstore (~> 0.1)
7
7
  puma (~> 6.0)
@@ -39,6 +39,7 @@ GEM
39
39
  public_suffix (5.0.4)
40
40
  puma (6.4.2)
41
41
  nio4r (~> 2.0)
42
+ r509 (1.0.1)
42
43
  rack (3.0.9.1)
43
44
  rack-protection (4.0.0)
44
45
  base64 (>= 0.1.0)
@@ -70,6 +71,7 @@ DEPENDENCIES
70
71
  minitest (~> 5.14)
71
72
  minitest-mock_expectations (~> 1.2)
72
73
  puma-acme!
74
+ r509 (~> 1.0)
73
75
  rake (~> 13.0)
74
76
  vcr (~> 6.1)
75
77
  webmock (~> 3.19)
@@ -70,6 +70,8 @@ module Puma
70
70
  @logger.log 'Puma foreground provisioning cert via puma-acme plugin...'
71
71
 
72
72
  provision(cert, poll_interval: poll_interval)
73
+ @logger.log "Cert provisioned for [#{cert.names.join(', ')}] via puma-acme plugin."
74
+
73
75
  bind_to(launcher, cert)
74
76
 
75
77
  if renew_at
@@ -109,10 +111,10 @@ module Puma
109
111
  end
110
112
 
111
113
  cert.identifiers.each do |identifier|
112
- @logger.log "* Listening on ssl://#{uri.host}:#{uri.port} for https://#{identifier.value}:#{uri.port} (puma-acme)"
114
+ @logger.log "* Listening on https://#{identifier.value}:#{uri.port} (puma-acme)"
113
115
  end
114
116
 
115
- launcher.binder.listeners << [str, io]
117
+ launcher.binder.listeners << [str, io] if io
116
118
  end
117
119
  end
118
120
  end
@@ -59,6 +59,13 @@ module Puma
59
59
  super(identifiers: identifiers, **kwargs)
60
60
  end
61
61
 
62
+ undef cert_pem=
63
+ def cert_pem=(pem)
64
+ @x509 = nil
65
+
66
+ self[:cert_pem] = pem
67
+ end
68
+
62
69
  def key
63
70
  [:cert, algorithm, identifiers&.map(&:key)]
64
71
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Puma
4
4
  module Acme
5
- VERSION = '0.1.5'
5
+ VERSION = '0.1.7'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma-acme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anchor Security, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-11 00:00:00.000000000 Z
11
+ date: 2024-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acme-client
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.2'
111
+ - !ruby/object:Gem::Dependency
112
+ name: r509
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rake
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -197,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
211
  - !ruby/object:Gem::Version
198
212
  version: '0'
199
213
  requirements: []
200
- rubygems_version: 3.4.22
214
+ rubygems_version: 3.4.10
201
215
  signing_key:
202
216
  specification_version: 4
203
217
  summary: Puma plugin for ACME.