libsaml 3.1.0 → 3.1.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
  SHA1:
3
- metadata.gz: 4072ae60beb5b8463689fff51934d2c891ab3811
4
- data.tar.gz: 76acc6a0f4ffca780198003b43c7bd1600a024ce
3
+ metadata.gz: 17c67b9601317d36394c440a7e7d99a46e717eb5
4
+ data.tar.gz: 6722ab68b77666bdb39036ac6fed7c6d04fa8be5
5
5
  SHA512:
6
- metadata.gz: 032a63728c389481036729cc25a7850a895a7d62a36412912766fff691578e9a12552556c44df9f5b6d56b27d771a5f7b1590c72e25017e7b0f11e26f5a0e4e9
7
- data.tar.gz: 2a0ff51f4b1b7bd4f51160e45a6e5a24ce05f423742de4818251350598d4328b1246951b3cbc8f5657e1c2791169140a5135615addc305653c89e318796b8826
6
+ metadata.gz: 8a1688bda04cde34e5978a47efe6ad153727b92ec34640d55eb639458513925efbe7ecdb03944cbcb7a77fe0277ccb08ae6fc2d679ff40576e1d536edeae6a54
7
+ data.tar.gz: 4281d5571b063ab7913038ab413c6f711180eb17f52a2b2718542e786c1e1ff2d832731c659632894dec81499db6e36f98a2aaf5d824b3f7632730f6f17537a0
@@ -59,11 +59,13 @@ module Saml
59
59
  @provider ||= Saml.provider(issuer)
60
60
  end
61
61
 
62
- def add_attribute(key, value, value_attributes = {})
62
+ def add_attribute(key, value, value_attributes = {}, attribute_options = {})
63
63
  self.attribute_statement ||= Saml::Elements::AttributeStatement.new
64
64
  self.attribute_statement.attributes ||= []
65
65
  attribute_value = Saml::Elements::AttributeValue.new(value_attributes.merge(content: value))
66
- self.attribute_statement.attributes << Saml::Elements::Attribute.new(name: key, attribute_value: attribute_value)
66
+ self.attribute_statement.attributes << Saml::Elements::Attribute.new(
67
+ attribute_options.merge(name: key, attribute_value: attribute_value)
68
+ )
67
69
  end
68
70
 
69
71
  def fetch_attribute(key)
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = '3.1.0'
2
+ VERSION = '3.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libsaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoist Claassen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-17 00:00:00.000000000 Z
11
+ date: 2018-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport