Skip to content

Commit 79fc1d7

Browse files
authored
Merge pull request #580 from onelogin/replace_method__exists
Fix #573. Replace method_exists? by respond_to?
2 parents 3ed4da3 + 2f95ee7 commit 79fc1d7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# RubySaml Changelog
22

3+
### 1.12.1 (Apr 05, 2022)
4+
* Fix XPath typo incompatible with Rexml 3.2.5
5+
* Refactor GCM support
6+
37
### 1.12.0 (Feb 18, 2021)
48
* Support AES-128-GCM, AES-192-GCM, and AES-256-GCM encryptions
59
* Parse & return SLO ResponseLocation in IDPMetadataParser & Settings

lib/onelogin/ruby-saml/attributes.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def ==(other)
124124
def fetch(name)
125125
attributes.each_key do |attribute_key|
126126
if name.is_a?(Regexp)
127-
if name.method_exists? :match?
127+
if name.respond_to? :match?
128128
return self[attribute_key] if name.match?(attribute_key)
129129
else
130130
return self[attribute_key] if name.match(attribute_key)

lib/onelogin/ruby-saml/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module OneLogin
22
module RubySaml
3-
VERSION = '1.12.0'
3+
VERSION = '1.12.1'
44
end
55
end

0 commit comments

Comments
 (0)