Skip to content

Commit 9b43785

Browse files
committed
(#9302) Add Ruby 3.3 to CI matrix
1 parent 7cc46f7 commit 9b43785

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/rspec_tests.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ jobs:
1919
- {os: ubuntu-latest, ruby: '3.1'}
2020
- {os: ubuntu-20.04, ruby: '3.2'} # openssl 1.1.1
2121
- {os: ubuntu-22.04, ruby: '3.2'} # openssl 3
22+
- {os: ubuntu-22.04, ruby: '3.3'} # openssl 3 / latest Ruby
2223
- {os: ubuntu-latest, ruby: 'jruby-9.4.3.0'}
2324
- {os: windows-2019, ruby: '3.1'}
2425
- {os: windows-2019, ruby: '3.2'} # openssl 3
26+
- {os: windows-2019, ruby: '3.3'} # openssl 3 / latest Ruby
2527

2628
runs-on: ${{ matrix.cfg.os }}
2729
env:

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ group(:test) do
4343
# 1.16.0 - 1.16.2 are broken on Windows
4444
gem 'ffi', '>= 1.15.5', '< 1.17.0', '!= 1.16.0', '!= 1.16.1', '!= 1.16.2', require: false
4545
gem "json-schema", "~> 2.0", require: false
46+
gem "racc", "1.5.2", require: false
4647
gem "rake", *location_for(ENV['RAKE_LOCATION'] || '~> 13.0')
4748
gem "rspec", "~> 3.1", require: false
4849
gem "rspec-expectations", ["~> 3.9", "!= 3.9.3"]
@@ -62,7 +63,6 @@ end
6263
group(:development, optional: true) do
6364
gem 'memory_profiler', require: false, platforms: [:mri]
6465
gem 'pry', require: false, platforms: [:ruby]
65-
gem "racc", "1.5.2", require: false, platforms: [:ruby]
6666
if RUBY_PLATFORM != 'java'
6767
gem 'ruby-prof', '>= 0.16.0', require: false
6868
end

spec/unit/x509/cert_provider_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def expects_private_file(path)
280280
# password is 74695716c8b6
281281
expect {
282282
provider.load_private_key('encrypted-key')
283-
}.to raise_error(OpenSSL::PKey::PKeyError, /Could not parse PKey: (no start line|bad decrypt)/)
283+
}.to raise_error(OpenSSL::PKey::PKeyError, /Could not parse PKey/)
284284
end
285285

286286
it 'decrypts an RSA key previously saved using 3DES' do
@@ -315,7 +315,7 @@ def expects_private_file(path)
315315
# password is 74695716c8b6
316316
expect {
317317
provider.load_private_key('encrypted-ec-key')
318-
}.to raise_error(OpenSSL::PKey::PKeyError, /(unknown|invalid) curve name|Could not parse PKey: (no start line|bad decrypt)/)
318+
}.to raise_error(OpenSSL::PKey::PKeyError, /(unknown|invalid) curve name|Could not parse PKey/)
319319
end
320320
end
321321
end

0 commit comments

Comments
 (0)