onc_certification_g10_test_kit 2.2.0 → 2.2.1

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: b212142dbe987304c75b5323fd3ac1b2323f929a4e01b41f7722bff79db61fee
4
- data.tar.gz: 3100cda0404c14b097e68adbdfbbc2e8e77590f53b6912c34c69560410e17a70
3
+ metadata.gz: b0f7ed41d6d4933c58e9bc4e8533c137ee30f0b16e17d64f823cce44c878e85c
4
+ data.tar.gz: 69ccfbd00f84f63007b50a6b09ea93574673f1f2b0aa8e11ceb5233c9a313e3d
5
5
  SHA512:
6
- metadata.gz: 15417eeffcbbf4ba250c19b810ef4d8a6e5cd7a967e736321c92a5c39a1ba24aff1d9be8d362f41a368cb1d52a25be1bb756db0352c55bf9fff851d1ca688c1c
7
- data.tar.gz: 171dcdaaf6bc3be2ec31a1169aaea28d255ae920732042989d48983e9db90aafb8859447fa18526aef86c36d945d29ded1581a2b921283acb7aee95e39f97443
6
+ metadata.gz: 9122abab488efb86c982e2ab8012b749cb61f330c8a2f06844dbec26d1975564b80297b2b04027f694b1204f99f5eee89477d6729fa7004de7194c4ec2c0eaf2
7
+ data.tar.gz: 95df85ff5d0c9e07f7e21ad645a2d31c78e60864c76f44d2e2ed018346a501c2fab0012fb119942efdf94adf364adf0f37189256fec5b9ea37a9d166a89acb22
@@ -1,3 +1,3 @@
1
1
  module ONCCertificationG10TestKit
2
- VERSION = '2.2.0'.freeze
2
+ VERSION = '2.2.1'.freeze
3
3
  end
@@ -74,11 +74,16 @@ module ONCCertificationG10TestKit
74
74
  end
75
75
 
76
76
  def self.jwks_json
77
- @jwks_json ||= File.read(File.join(__dir__, 'onc_certification_g10_test_kit', 'bulk_data_jwks.json'))
77
+ bulk_data_jwks = JSON.parse(
78
+ File.read(File.join(__dir__, 'onc_certification_g10_test_kit', 'bulk_data_jwks.json'))
79
+ )
80
+ @jwks_json ||= JSON.pretty_generate(
81
+ { keys: bulk_data_jwks['keys'].select { |key| key['key_ops']&.include?('verify') } }
82
+ )
78
83
  end
79
84
 
80
85
  def self.well_known_route_handler
81
- ->(_env) { [200, {}, [jwks_json]] }
86
+ ->(_env) { [200, { 'Content-Type' => 'application/json' }, [jwks_json]] }
82
87
  end
83
88
 
84
89
  route(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onc_certification_g10_test_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen MacVicar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-10 00:00:00.000000000 Z
11
+ date: 2022-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bloomer