diff --git a/codedeploy_agent.gemspec b/codedeploy_agent.gemspec index 699e713..88a3e0b 100644 --- a/codedeploy_agent.gemspec +++ b/codedeploy_agent.gemspec @@ -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') @@ -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 diff --git a/test/instance_agent/plugins/codedeploy/deployment_specification_test.rb b/test/instance_agent/plugins/codedeploy/deployment_specification_test.rb index 2b0c4af..8c4d36a 100644 --- a/test/instance_agent/plugins/codedeploy/deployment_specification_test.rb +++ b/test/instance_agent/plugins/codedeploy/deployment_specification_test.rb @@ -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 @@ -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