tpm-key_attestation 0.12.0 → 0.12.1

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: fe02507111938501d687c21a2a8461f086ca5ddd1b2d2f2715921a94ee249260
4
- data.tar.gz: 3c7f0f3e79819bdd00e11febc517083320c40c8e4033c328654b64fe9eb88549
3
+ metadata.gz: ae6c28ee251d9123abbdaa6c18ab7d424accaf1bb44cbe0e350ccb2bdf8c79ca
4
+ data.tar.gz: f172c0436c2dedeab2e8300396ddc515428912f6c73f5688d905723844625320
5
5
  SHA512:
6
- metadata.gz: 0f77dbedcd721d3c06f6ec33a862f89c02360e913776a0c54847cf240b7af1d9ecde6b1bc1d2e1634b7342859bde36038a30aee8f1a85447a1afb494efd4506e
7
- data.tar.gz: cac3351b83246f7c21f542a8c22043b99bdd73a7e218e25064f06785f173303f976aea9b2ffd13ac845e0f0155663543c74f3076f8c099b58db351ec4c823b0f
6
+ metadata.gz: aa78d70ea5a12c5768a0c24d90ae3f6137260ae8b45d14e23c716519b07a3dade2f76735c0a18b39dc1244f09e2ecd47019554395fb03c45d98a88bc454affd0
7
+ data.tar.gz: fc501bb669b8ac188a89ce63fe3052b27b22b9e29069a4ca58e4b3538d5b14fd8ae23dccfe1de89027eeb74943750c00b21f460151872b26fdc51ec6f3c45979
@@ -7,14 +7,22 @@
7
7
 
8
8
  name: build
9
9
 
10
- on: push
10
+ on:
11
+ push:
12
+ branches: [master]
13
+ pull_request:
14
+ types: [opened, synchronize]
11
15
 
12
16
  jobs:
13
17
  test:
14
- runs-on: ubuntu-20.04
18
+ runs-on: ${{ matrix.os }}
15
19
  strategy:
16
20
  fail-fast: false
17
21
  matrix:
22
+ os:
23
+ - ubuntu-20.04
24
+ - windows-latest
25
+ - macos-12
18
26
  ruby:
19
27
  - '3.2'
20
28
  - '3.1'
@@ -37,10 +45,28 @@ jobs:
37
45
  gemfile: openssl_3_1
38
46
  - ruby: '2.5'
39
47
  gemfile: openssl_3_1
48
+ - ruby: '3.1'
49
+ gemfile: openssl_2_2
50
+ os: macos-12
51
+ - ruby: '3.1'
52
+ gemfile: openssl_2_1
53
+ os: macos-12
54
+ - ruby: '3.2'
55
+ gemfile: openssl_2_2
56
+ os: macos-12
57
+ - ruby: '3.2'
58
+ gemfile: openssl_2_1
59
+ os: macos-12
60
+ - ruby: '3.2'
61
+ gemfile: openssl_2_2
62
+ os: windows-latest
63
+ - ruby: '3.2'
64
+ gemfile: openssl_2_1
65
+ os: windows-latest
40
66
  env:
41
67
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
42
68
  steps:
43
- - uses: actions/checkout@v2
69
+ - uses: actions/checkout@v4
44
70
  - run: rm Gemfile.lock
45
71
  - uses: ruby/setup-ruby@v1
46
72
  with:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.12.1] - 2024-08-05
4
+
5
+ - Fix loading trusted certificates on Windows. #20 & #21 [@johnnyshields], [@salmanasiddiqui]
6
+
3
7
  ## [v0.12.0] - 2022-07-05
4
8
 
5
9
  - Loose OpenSSL dependency to support 3.2 users. Credits to @stanhu <3
@@ -2,6 +2,6 @@
2
2
 
3
3
  module TPM
4
4
  class KeyAttestation
5
- VERSION = "0.12.0"
5
+ VERSION = "0.12.1"
6
6
  end
7
7
  end
@@ -15,7 +15,8 @@ module TPM
15
15
  begin
16
16
  pattern = File.expand_path(File.join(__dir__, "certificates", "*", "RootCA", "*.*"))
17
17
  Dir.glob(pattern).map do |filename|
18
- File.open(filename) { |file| OpenSSL::X509::Certificate.new(file) }
18
+ file = File.binread(filename)
19
+ OpenSSL::X509::Certificate.new(file)
19
20
  end
20
21
  end
21
22
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tpm-key_attestation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-15 00:00:00.000000000 Z
11
+ date: 2024-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubygems_version: 3.2.32
142
+ rubygems_version: 3.5.11
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: TPM Key Attestation verifier