varanus 0.7.1 → 0.8.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: 271baf219a1247e588a20aba506a76e26668bad6c6ab55546f75fa697d04e3ff
4
- data.tar.gz: 00c5bc35eeb4b56fdc94b18d969c7ac498ffc87a948db20fdc989fc4e90cf8d6
3
+ metadata.gz: 806b45f188f1d18b63d3a86473ecc2574d8cd310edebdb990ffa6d7e7ff954b2
4
+ data.tar.gz: 5dcdf1d543e85c8b4e4c63e843ebafc4fce3920c7b5a678ed242c7d0851c85d1
5
5
  SHA512:
6
- metadata.gz: 70898c1f830700b0a2865656143c452dfeae4b9846e9c1b4730c5cd359d2c4f786e167758581d2028fc2c60588480382066cecc932d03b7355accb84ff21a0c3
7
- data.tar.gz: de4d6791505e36cbaa157a0004e2405b90f1067c0953a892a0efb6fc622b671744779603620b3c142413043e4063cbd411cf2629acb3256a7fccc308e8be93ee
6
+ metadata.gz: 21274fac02943441d901d35402c6af6cf5c60e940c606033bf75969abe33f086137512e91691f58fb022726c91cb1f795a89b7bfbd807f625b548d55315ba293
7
+ data.tar.gz: 8259aa8ec33a5a479b73c43934cae97e491d82e3330e71ed29480fab07c37fefdb39c3e2070e002263235f739c5c3b96383c982ba732fa87a49022996daf6a92
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### Version 0.8.1 (2024-09-27)
2
+ * Fix gem build issues
3
+
4
+ ### Version 0.8.0 (2024-09-27)
5
+ * Varanus::SSL::CSR - improve support for subclassing
6
+ * Varanus::SSL::CSR.generate - support an EC key being passed in
7
+
1
8
  ### Version 0.7.1 (2022-01-31)
2
9
  * Varanus::SSL#certificate_types_standard - also exclude 'Extended Validation'
3
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- varanus (0.7.1)
4
+ varanus (0.8.1)
5
5
  faraday
6
6
  faraday_middleware
7
7
  savon (~> 2.0)
@@ -9,91 +9,141 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.7.0)
13
- public_suffix (>= 2.0.2, < 5.0)
14
- akami (1.3.1)
12
+ addressable (2.8.7)
13
+ public_suffix (>= 2.0.2, < 7.0)
14
+ akami (1.3.3)
15
+ base64
15
16
  gyoku (>= 0.4.0)
16
17
  nokogiri
17
- ast (2.4.1)
18
- builder (3.2.4)
19
- crack (0.4.5)
18
+ ast (2.4.2)
19
+ base64 (0.2.0)
20
+ bigdecimal (3.1.8)
21
+ builder (3.3.0)
22
+ crack (1.0.0)
23
+ bigdecimal
20
24
  rexml
21
- docile (1.3.4)
22
- faraday (1.3.0)
25
+ date (3.3.4)
26
+ docile (1.4.1)
27
+ faraday (1.10.4)
28
+ faraday-em_http (~> 1.0)
29
+ faraday-em_synchrony (~> 1.0)
30
+ faraday-excon (~> 1.1)
31
+ faraday-httpclient (~> 1.0)
32
+ faraday-multipart (~> 1.0)
23
33
  faraday-net_http (~> 1.0)
24
- multipart-post (>= 1.2, < 3)
25
- ruby2_keywords
26
- faraday-net_http (1.0.0)
27
- faraday_middleware (1.0.0)
34
+ faraday-net_http_persistent (~> 1.0)
35
+ faraday-patron (~> 1.0)
36
+ faraday-rack (~> 1.0)
37
+ faraday-retry (~> 1.0)
38
+ ruby2_keywords (>= 0.0.4)
39
+ faraday-em_http (1.0.0)
40
+ faraday-em_synchrony (1.0.0)
41
+ faraday-excon (1.1.0)
42
+ faraday-httpclient (1.0.1)
43
+ faraday-multipart (1.0.4)
44
+ multipart-post (~> 2)
45
+ faraday-net_http (1.0.2)
46
+ faraday-net_http_persistent (1.2.0)
47
+ faraday-patron (1.0.0)
48
+ faraday-rack (1.0.0)
49
+ faraday-retry (1.0.3)
50
+ faraday_middleware (1.2.1)
28
51
  faraday (~> 1.0)
29
- gyoku (1.3.1)
52
+ gyoku (1.4.0)
30
53
  builder (>= 2.1.2)
31
- hashdiff (1.0.1)
32
- httpi (2.4.5)
33
- rack
34
- socksify
35
- minitest (5.14.3)
36
- minitest-rg (5.2.0)
54
+ rexml (~> 3.0)
55
+ hashdiff (1.1.1)
56
+ httpi (4.0.4)
57
+ base64
58
+ mutex_m
59
+ nkf
60
+ rack (>= 2.0, < 4)
61
+ json (2.7.2)
62
+ language_server-protocol (3.17.0.3)
63
+ mail (2.8.1)
64
+ mini_mime (>= 0.1.1)
65
+ net-imap
66
+ net-pop
67
+ net-smtp
68
+ mini_mime (1.1.5)
69
+ minitest (5.25.1)
70
+ minitest-rg (5.3.0)
37
71
  minitest (~> 5.0)
38
- mocha (1.12.0)
39
- multipart-post (2.1.1)
40
- nokogiri (1.11.1-x86_64-linux)
72
+ mocha (2.4.5)
73
+ ruby2_keywords (>= 0.0.5)
74
+ multipart-post (2.4.1)
75
+ mutex_m (0.2.0)
76
+ net-imap (0.4.16)
77
+ date
78
+ net-protocol
79
+ net-pop (0.1.2)
80
+ net-protocol
81
+ net-protocol (0.2.2)
82
+ timeout
83
+ net-smtp (0.5.0)
84
+ net-protocol
85
+ nkf (0.2.0)
86
+ nokogiri (1.16.7-x86_64-linux)
41
87
  racc (~> 1.4)
42
- nori (2.6.0)
43
- parallel (1.20.1)
44
- parser (3.0.0.0)
88
+ nori (2.7.1)
89
+ bigdecimal
90
+ parallel (1.26.3)
91
+ parser (3.3.5.0)
45
92
  ast (~> 2.4.1)
46
- public_suffix (4.0.6)
47
- racc (1.5.2)
48
- rack (2.2.3)
49
- rainbow (3.0.0)
93
+ racc
94
+ public_suffix (6.0.1)
95
+ racc (1.8.1)
96
+ rack (3.1.7)
97
+ rainbow (3.1.1)
50
98
  rake (10.5.0)
51
- regexp_parser (2.0.3)
52
- rexml (3.2.4)
53
- rubocop (1.7.0)
99
+ regexp_parser (2.9.2)
100
+ rexml (3.3.7)
101
+ rubocop (1.66.1)
102
+ json (~> 2.3)
103
+ language_server-protocol (>= 3.17.0)
54
104
  parallel (~> 1.10)
55
- parser (>= 2.7.1.5)
105
+ parser (>= 3.3.0.2)
56
106
  rainbow (>= 2.2.2, < 4.0)
57
- regexp_parser (>= 1.8, < 3.0)
58
- rexml
59
- rubocop-ast (>= 1.2.0, < 2.0)
107
+ regexp_parser (>= 2.4, < 3.0)
108
+ rubocop-ast (>= 1.32.2, < 2.0)
60
109
  ruby-progressbar (~> 1.7)
61
- unicode-display_width (>= 1.4.0, < 2.0)
62
- rubocop-ast (1.4.0)
63
- parser (>= 2.7.1.5)
64
- ruby-progressbar (1.11.0)
65
- ruby2_keywords (0.0.2)
66
- savon (2.12.1)
110
+ unicode-display_width (>= 2.4.0, < 3.0)
111
+ rubocop-ast (1.32.3)
112
+ parser (>= 3.3.1.0)
113
+ ruby-progressbar (1.13.0)
114
+ ruby2_keywords (0.0.5)
115
+ savon (2.15.1)
67
116
  akami (~> 1.2)
68
117
  builder (>= 2.1.2)
69
118
  gyoku (~> 1.2)
70
- httpi (~> 2.3)
119
+ httpi (>= 4, < 5)
120
+ mail (~> 2.5)
71
121
  nokogiri (>= 1.8.1)
72
122
  nori (~> 2.4)
73
- wasabi (~> 3.4)
74
- simplecov (0.21.1)
123
+ wasabi (>= 3.7, < 6)
124
+ simplecov (0.22.0)
75
125
  docile (~> 1.1)
76
126
  simplecov-html (~> 0.11)
77
127
  simplecov_json_formatter (~> 0.1)
78
- simplecov-html (0.12.3)
79
- simplecov_json_formatter (0.1.2)
80
- socksify (1.7.1)
81
- unicode-display_width (1.7.0)
82
- wasabi (3.6.1)
128
+ simplecov-html (0.13.1)
129
+ simplecov_json_formatter (0.1.4)
130
+ timeout (0.4.1)
131
+ unicode-display_width (2.6.0)
132
+ wasabi (5.0.3)
83
133
  addressable
84
- httpi (~> 2.0)
85
- nokogiri (>= 1.4.2)
86
- webmock (3.11.0)
87
- addressable (>= 2.3.6)
134
+ faraday (>= 1.9, < 3)
135
+ nokogiri (>= 1.13.9)
136
+ webmock (3.23.1)
137
+ addressable (>= 2.8.0)
88
138
  crack (>= 0.3.2)
89
139
  hashdiff (>= 0.4.0, < 2.0.0)
90
- yard (0.9.26)
140
+ yard (0.9.37)
91
141
 
92
142
  PLATFORMS
93
- ruby
143
+ x86_64-linux
94
144
 
95
145
  DEPENDENCIES
96
- bundler (~> 1.16)
146
+ bundler (~> 2.0)
97
147
  minitest (~> 5.0)
98
148
  minitest-rg
99
149
  mocha
@@ -105,4 +155,4 @@ DEPENDENCIES
105
155
  yard
106
156
 
107
157
  BUNDLED WITH
108
- 1.17.3
158
+ 2.3.27
data/docker-compose.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  version: '3'
2
2
  services:
3
3
  console:
4
- image: ruby:2.5
4
+ image: ruby:3.1
5
5
  volumes:
6
6
  - .:/app:z
7
7
  hostname: varanus-dev
@@ -26,11 +26,15 @@ class Varanus::SSL::CSR
26
26
  request.version = 0
27
27
  request.subject = OpenSSL::X509::Name.parse subject.map { |k, v| "/#{k}=#{v}" }.join
28
28
  request.add_attribute names_to_san_attribute(names)
29
- request.public_key = key.public_key
29
+ if key.is_a? OpenSSL::PKey::EC
30
+ request.public_key = key
31
+ else
32
+ request.public_key = key.public_key
33
+ end
30
34
 
31
35
  request.sign(key, OpenSSL::Digest.new('SHA256'))
32
36
 
33
- [key, Varanus::SSL::CSR.new(request)]
37
+ [key, new(request)]
34
38
  end
35
39
 
36
40
  # :nodoc:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Varanus
4
- VERSION = '0.7.1'
4
+ VERSION = '0.8.1'
5
5
  end
data/varanus.gemspec CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = ['lib']
30
30
  spec.required_ruby_version = '>= 2.5.0'
31
31
 
32
- spec.add_development_dependency 'bundler', '~> 1.16'
32
+ spec.add_development_dependency 'bundler', '~> 2.0'
33
33
  spec.add_development_dependency 'minitest', '~> 5.0'
34
34
  spec.add_development_dependency 'minitest-rg'
35
35
  spec.add_development_dependency 'mocha'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: varanus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Dilda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-31 00:00:00.000000000 Z
11
+ date: 2024-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.0.3
236
+ rubygems_version: 3.3.5
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: Interface for Sectigo's (formerly Comodo CA) API.