saml2 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f582a823ae927adc8355f2c3b294c8d592a108a60995d8e156548fabb2530e7c
4
- data.tar.gz: 2a596f2b0705d3b9a365a63721b80a0c977a88315cd70c965ac7166913a12948
3
+ metadata.gz: 9a1723deaff84f2dbee4d80462c2494ad57b92a0df924fc3b42438fd26da9ddc
4
+ data.tar.gz: a3393003af83c6fd1e173d7e51d8295155e4da8091f6f84c09753b4266a1511c
5
5
  SHA512:
6
- metadata.gz: e1140328e3e03194e0d6f7b1046abb89525eb0f7151a838fd313c3bd93ae91fe71f6bcc022474c1aba6b674b48e3a09627003248d8040d4a891c05f86ebe99bc
7
- data.tar.gz: 3d5c8a0f2e35fdb4017f35bea6a547f05cf53d4c8ce4b43672d18a2a7485f373a0accd4cc87322635be6dcae392cec0095bff7ae4e3db0856f70588cb261331a
6
+ metadata.gz: fc558dccc2198fc90c08d0f7a0b0ff004552170fd0d9dd71a93cc79062f6dcbc0b0835940ce8fff457614d3d20a86ebe757ebf7e4f9dcc2a834693def5c81c7d
7
+ data.tar.gz: 5222ab6f088ca137807a7869eb8e112575d5f164c7e72a55cee951220d2d1c81cf86e02d505cf70baeb4d94cbfad18d0ce31eddb052d659071fb596ccbf89485
@@ -131,7 +131,6 @@ module SAML2
131
131
 
132
132
  attributes_hash = {}
133
133
  attributes.each do |attr|
134
- attr.value = attr.value.call if attr.value.respond_to?(:call)
135
134
  attributes_hash[[attr.name, attr.name_format]] = attr
136
135
  attributes_hash[[attr.name, nil]] = attr if attr.name_format
137
136
  end
@@ -141,6 +140,7 @@ module SAML2
141
140
  attr = attributes_hash[[requested_attr.name, requested_attr.name_format]]
142
141
  attr ||= attributes_hash[[requested_attr.name, nil]] if requested_attr.name_format
143
142
  if attr
143
+ attr.value = attr.value.call if attr.value.respond_to?(:call)
144
144
  if requested_attr.value &&
145
145
  !Array.wrap(requested_attr.value).include?(attr.value)
146
146
  raise InvalidAttributeValue.new(requested_attr, attr.value)
data/lib/saml2/message.rb CHANGED
@@ -156,7 +156,11 @@ module SAML2
156
156
 
157
157
  # @return [NameID, nil]
158
158
  def issuer
159
- @issuer ||= NameID.from_xml(xml.at_xpath("saml:Issuer", Namespaces::ALL))
159
+ if xml && !instance_variable_defined?(:@issuer)
160
+ @issuer = NameID.from_xml(xml.at_xpath("saml:Issuer",
161
+ Namespaces::ALL))
162
+ end
163
+ @issuer
160
164
  end
161
165
 
162
166
  protected
data/lib/saml2/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SAML2
4
- VERSION = "3.2.0"
4
+ VERSION = "3.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-03-24 00:00:00.000000000 Z
10
+ date: 2025-05-30 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -145,7 +144,6 @@ licenses:
145
144
  - MIT
146
145
  metadata:
147
146
  rubygems_mfa_required: 'true'
148
- post_install_message:
149
147
  rdoc_options: []
150
148
  require_paths:
151
149
  - lib
@@ -160,8 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
158
  - !ruby/object:Gem::Version
161
159
  version: '0'
162
160
  requirements: []
163
- rubygems_version: 3.4.10
164
- signing_key:
161
+ rubygems_version: 3.6.2
165
162
  specification_version: 4
166
163
  summary: SAML 2.0 Library
167
164
  test_files: []