Skip to content

Commit

Permalink
Fix 3 Rubocops
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Jul 8, 2024
1 parent 941bcac commit d9b413b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/onelogin/ruby-saml/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def issuers
end

nodes = issuer_response_nodes + issuer_assertion_nodes
nodes.map { |node| Utils.element_text(node) }.compact.uniq
nodes.filter_map { |node| Utils.element_text(node) }.uniq
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/onelogin/ruby-saml/saml_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SamlMessage
ASSERTION = "urn:oasis:names:tc:SAML:2.0:assertion"
PROTOCOL = "urn:oasis:names:tc:SAML:2.0:protocol"

BASE64_FORMAT = %r(\A([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?\Z).freeze
BASE64_FORMAT = %r(\A([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?\Z)
@@mutex = Mutex.new

# @return [Nokogiri::XML::Schema] Gets the schema object of the SAML 2.0 Protocol schema
Expand Down
2 changes: 1 addition & 1 deletion lib/onelogin/ruby-saml/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Utils
|
(\d+)W # 8: Weeks
)
$/x.freeze
$/x
UUID_PREFIX = +'_'

# Checks if the x509 cert provided is expired.
Expand Down

0 comments on commit d9b413b

Please sign in to comment.