acme-client 2.0.10 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f780d5789f4ea62c093b7b1df25b8a9efeb8b7c3c94fce26205eb79edb8fefa5
4
- data.tar.gz: 95118697ef1fcd9a090e822bcc6bb1455c38ebaf392b2b2a7e90928e68cb328a
3
+ metadata.gz: 409e7fad9385308a4e8127d743897dd27683dfd8c711ea7e252624b0ea5599b5
4
+ data.tar.gz: 0df61205e809a7a2075cc26618023a5958b4820391408f217f7b34a79eb51391
5
5
  SHA512:
6
- metadata.gz: c10643d9a50b74e142bd8748ab77001d292bc789884410cfeac79e10c01911335f5ffd6adb95a2c359d3582fe7cfac4dc02a686a02fbe90154a6644301736d37
7
- data.tar.gz: a8ffa05157b5a3ce8cc606dc74592924b13918fefe0f55717ff8018ef13a219eebe1f614c2bdda6b7f097190e3173f8ecdf5a8de48f8462d462b5bcc09a67161
6
+ metadata.gz: 90caf54c02324bfd5a9e2f41a293956d2fa940208a8cf26aafc26aa19fbd0810e21284c73b408b5a03b97ee41476fa1e424199cf89d07dfe79460f878b118392
7
+ data.tar.gz: 9d8465df2b32462b17aed637db02a86abdd84d8236c68bd46525aa34473f2583ebd8562a7fb94c4dcca498427a7e0f0de249f30a72162bea661cca7abbd91557
@@ -11,8 +11,8 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ['2.6', '2.7', '3.0', truffleruby-head]
15
- faraday-version: ['~> 1.7', '~> 2.0']
14
+ ruby-version: ['2.7', '3.0', '3.1', '3.2']
15
+ faraday-version: ['~> 1.10', '~> 2.7']
16
16
  env:
17
17
  FARADAY_VERSION: ${{ matrix.faraday-version }}
18
18
  steps:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## `2.0.11`
2
+
3
+ * Update test matrix to current Ruby versions (2.7 to 3.2)
4
+ * Support for Faraday retry 2.x
5
+
6
+ ## `2.0.11`
7
+
8
+ * Add support for error code `AlreadyRevoked` and `BadPublicKey`
9
+
1
10
  ## `2.0.10`
2
11
 
3
12
  * Support for Faraday 1.0 / 2.0
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # Acme::Client
2
2
 
3
- [![Build Status](https://travis-ci.org/unixcharles/acme-client.svg?branch=master)](https://travis-ci.org/unixcharles/acme-client)
4
-
5
3
  `acme-client` is a client implementation of the ACMEv2 / [RFC 8555](https://tools.ietf.org/html/rfc8555) protocol in Ruby.
6
4
 
7
5
  You can find the ACME reference implementations of the [server](https://github.com/letsencrypt/boulder) in Go and the [client](https://github.com/certbot/certbot) in Python.
data/acme-client.gemspec CHANGED
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency 'webrick'
25
25
 
26
26
  spec.add_runtime_dependency 'faraday', '>= 1.0', '< 3.0.0'
27
- spec.add_runtime_dependency 'faraday-retry', '~> 1.0'
27
+ spec.add_runtime_dependency 'faraday-retry', '>= 1.0', '< 3.0.0'
28
28
  end
@@ -10,8 +10,10 @@ class Acme::Client::Error < StandardError
10
10
  class ForcedChainNotFound < ClientError; end
11
11
 
12
12
  class ServerError < Acme::Client::Error; end
13
+ class AlreadyRevoked < ServerError; end
13
14
  class BadCSR < ServerError; end
14
15
  class BadNonce < ServerError; end
16
+ class BadPublicKey < ServerError; end
15
17
  class BadSignatureAlgorithm < ServerError; end
16
18
  class InvalidContact < ServerError; end
17
19
  class UnsupportedContact < ServerError; end
@@ -32,8 +34,10 @@ class Acme::Client::Error < StandardError
32
34
  class IncorrectResponse < ServerError; end
33
35
 
34
36
  ACME_ERRORS = {
37
+ 'urn:ietf:params:acme:error:alreadyRevoked' => AlreadyRevoked,
35
38
  'urn:ietf:params:acme:error:badCSR' => BadCSR,
36
39
  'urn:ietf:params:acme:error:badNonce' => BadNonce,
40
+ 'urn:ietf:params:acme:error:badPublicKey' => BadPublicKey,
37
41
  'urn:ietf:params:acme:error:badSignatureAlgorithm' => BadSignatureAlgorithm,
38
42
  'urn:ietf:params:acme:error:invalidContact' => InvalidContact,
39
43
  'urn:ietf:params:acme:error:unsupportedContact' => UnsupportedContact,
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Acme
4
4
  class Client
5
- VERSION = '2.0.10'.freeze
5
+ VERSION = '2.0.12'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acme-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 2.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Barbier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-05 00:00:00.000000000 Z
11
+ date: 2023-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -118,16 +118,22 @@ dependencies:
118
118
  name: faraday-retry
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - "~>"
121
+ - - ">="
122
122
  - !ruby/object:Gem::Version
123
123
  version: '1.0'
124
+ - - "<"
125
+ - !ruby/object:Gem::Version
126
+ version: 3.0.0
124
127
  type: :runtime
125
128
  prerelease: false
126
129
  version_requirements: !ruby/object:Gem::Requirement
127
130
  requirements:
128
- - - "~>"
131
+ - - ">="
129
132
  - !ruby/object:Gem::Version
130
133
  version: '1.0'
134
+ - - "<"
135
+ - !ruby/object:Gem::Version
136
+ version: 3.0.0
131
137
  description:
132
138
  email:
133
139
  - unixcharles@gmail.com
@@ -192,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
198
  - !ruby/object:Gem::Version
193
199
  version: '0'
194
200
  requirements: []
195
- rubygems_version: 3.3.3
201
+ rubygems_version: 3.4.1
196
202
  signing_key:
197
203
  specification_version: 4
198
204
  summary: Client for the ACME protocol.