bullion 0.5.0 → 0.6.0

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: 164cf3dcab36d3365270c3e7bbfb47af7daf559d6b1d1d22764d5eb5e31d3e9d
4
- data.tar.gz: dd530b27db7e32e710a6eb8c32728d153ab53da0443cfa3a786336ce8aef96ba
3
+ metadata.gz: a4c6bc3ddd98c367c5778260e4723ffad6c7864a326eaaf6c2cddaad94340fa7
4
+ data.tar.gz: e3396d8fa7224cbd426dfecead6c84f3b0acca3e6a44359260aaaca662951359
5
5
  SHA512:
6
- metadata.gz: 1da0d24140bb16c16d440848f6dff64a8b73c846f01c882924cdffb96c16874ed2b81ad4204ee83ece321f0c9d5e449c4b22013724f9454fc37691adf2ef1ca8
7
- data.tar.gz: a8aff288e4ba92cea77f7cbb3d07613564a59e5e525ed991581e3c51701923d6a7f04501d1582554cefcd2bd8e3081f122413ee0f302f4ee36603eb54b536ec1
6
+ metadata.gz: 8e92650c474365836d90f2f32e82a76bd800274320f55a9ea9954c68cb86f10bafb1c5523725f081adddfb129410c4cacd467a128e4c53e831b73fc08344fac1
7
+ data.tar.gz: c4decc66eb97308f783265b0b616c7b14e5f05a9e86773e28c6af0518714691718905d2d7df9d87e4c48a705ad32cd160ccb7a1cbb9fdec33b650009f8661150
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bullion (0.5.0)
4
+ bullion (0.6.0)
5
5
  dry-configurable (~> 1.1)
6
6
  httparty (~> 0.21)
7
7
  json (~> 2.6)
@@ -24,7 +24,8 @@ module Bullion
24
24
 
25
25
  def thumbprint
26
26
  cipher = OpenSSL::Digest.new("SHA256")
27
- cipher.hexdigest authorization.order.account.public_key.to_json
27
+ digest = cipher.digest(authorization.order.account.public_key.to_json)
28
+ Base64.urlsafe_encode64(digest).delete("=")
28
29
  end
29
30
 
30
31
  def client
@@ -359,9 +359,10 @@ module Bullion
359
359
  authorization.update!(status: "valid") unless authorization.status == "valid"
360
360
  order = authorization.order
361
361
  order.update!(status: "ready") unless order.status == "ready"
362
- add_link_relation("up", uri("/authorizations/#{challenge.authorization.id}"))
363
362
  end
364
363
 
364
+ add_link_relation("up", uri("/authorizations/#{challenge.authorization.id}"))
365
+
365
366
  data.to_json
366
367
  rescue Bullion::Acme::Error => e
367
368
  content_type "application/problem+json"
@@ -3,7 +3,7 @@
3
3
  module Bullion
4
4
  VERSION = [
5
5
  0, # major
6
- 5, # minor
6
+ 6, # minor
7
7
  0 # patch
8
8
  ].join(".")
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Gnagy