summaryrefslogtreecommitdiff
path: root/lib/saml/kit/response.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2022-03-30 14:58:34 -0600
committermo khan <mo@mokhan.ca>2022-03-30 16:21:56 -0600
commit45f85f64115cf522e43569451f3f4f7977c862c1 (patch)
tree102637e5bf8332a35b4b668bae9b9af51cc1c662 /lib/saml/kit/response.rb
parent6e457e266ddb0e587aaf9b4fb84b292003ba38a9 (diff)
feat: drop ruby 2.5 and 2.6v1.3.0
fix: upgrade to Ruby 2.7+ *args syntax. * https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/ fix: resolve deprecation warnings * https://github.com/rails/rails/pull/32313
Diffstat (limited to 'lib/saml/kit/response.rb')
-rw-r--r--lib/saml/kit/response.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/saml/kit/response.rb b/lib/saml/kit/response.rb
index 31907ca..baf7df7 100644
--- a/lib/saml/kit/response.rb
+++ b/lib/saml/kit/response.rb
@@ -43,9 +43,8 @@ module Saml
def must_be_valid_assertion
assertion.valid?
- assertion.errors.each do |attribute, error|
- attribute = :assertion if attribute == :base
- errors.add(attribute, error)
+ assertion.each_error do |attribute, error|
+ errors.add(attribute == :base ? :assertion : attribute, error)
end
end