Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and tests to work on Ruby 3.2 #381

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions codedeploy_agent.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Gem::Specification.new do |spec|
spec.license = 'Apache-2.0'
spec.required_ruby_version = '>= 2.7.0'

spec.add_dependency('gli', '~> 2.5')
spec.add_dependency('json_pure', '~> 1.6')
spec.add_dependency('gli', '~> 2.11')
spec.add_dependency('json_pure', '~> 2.6.3')
spec.add_dependency('archive-tar-minitar', '~> 0.5.2')
spec.add_dependency('rubyzip', '~> 1.3.0')
spec.add_dependency('logging', '~> 2.2')
Expand All @@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
spec.add_dependency('docopt', '~> 0.5.0')
spec.add_dependency('concurrent-ruby', '~> 1.1.9')

spec.add_development_dependency('rake', '~> 12.3.3')
spec.add_development_dependency('rake', '~> 13.0.6')
spec.add_development_dependency('rspec', '~> 3.2.0')
end
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def generate_signed_message_for(map)
should "raise when JSON submitted as PKCS7/JSON" do
@packed_message.payload = @deployment_spec.to_json

assert_raised_with_message("Could not parse the PKCS7: nested asn1 error") do
assert_raise_with_message(RuntimeError, /\ACould not parse the PKCS7:/) do
begin
InstanceAgent::Plugins::CodeDeployPlugin::DeploymentSpecification.parse(@packed_message)
rescue ArgumentError => e
Expand Down Expand Up @@ -591,7 +591,7 @@ def generate_signed_message_for(map)
should "raise when JSON submitted as PKCS7/JSON" do
@packed_local_revision_message.payload = @deployment_local_revision_spec.to_json

assert_raised_with_message("Could not parse the PKCS7: nested asn1 error") do
assert_raise_with_message(RuntimeError, /\ACould not parse the PKCS7:/) do
begin
InstanceAgent::Plugins::CodeDeployPlugin::DeploymentSpecification.parse(@packed_local_revision_message)
rescue ArgumentError => e
Expand Down