diff --git a/changelog.md b/changelog.md index acf83293..8ddcbef4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # RubySaml Changelog +### 1.12.1 (Apr 05, 2022) +* Fix XPath typo incompatible with Rexml 3.2.5 +* Refactor GCM support + ### 1.12.0 (Feb 18, 2021) * Support AES-128-GCM, AES-192-GCM, and AES-256-GCM encryptions * Parse & return SLO ResponseLocation in IDPMetadataParser & Settings diff --git a/lib/onelogin/ruby-saml/attributes.rb b/lib/onelogin/ruby-saml/attributes.rb index 054084fe..cb4ad964 100644 --- a/lib/onelogin/ruby-saml/attributes.rb +++ b/lib/onelogin/ruby-saml/attributes.rb @@ -124,7 +124,7 @@ def ==(other) def fetch(name) attributes.each_key do |attribute_key| if name.is_a?(Regexp) - if name.method_exists? :match? + if name.respond_to? :match? return self[attribute_key] if name.match?(attribute_key) else return self[attribute_key] if name.match(attribute_key) diff --git a/lib/onelogin/ruby-saml/version.rb b/lib/onelogin/ruby-saml/version.rb index b3a33a34..d155d686 100644 --- a/lib/onelogin/ruby-saml/version.rb +++ b/lib/onelogin/ruby-saml/version.rb @@ -1,5 +1,5 @@ module OneLogin module RubySaml - VERSION = '1.12.0' + VERSION = '1.12.1' end end