libsaml 2.6.1 → 2.6.2

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: 07ae6c9a93423c6b980f593c7ac38d6cf90cb003
4
- data.tar.gz: ccbd0755186ced0ffcc73c1ef43be13b74151d6c
3
+ metadata.gz: 81a13cb314576536016f612b508d878a2a9d88f7
4
+ data.tar.gz: 9d0559a6b9c14acbb190c15ef9526ed85d30fa5e
5
5
  SHA512:
6
- metadata.gz: f3e209bf9232f5775e0814f657e597e713a5fcfedfe68df8a22493b5d3ad8741126860ba8fe42fc386da86db8b9fd18661db24c2f0ed19736d0ca6923817d465
7
- data.tar.gz: fd58ecd4b590808e0b5934219e9f4f60f921429dadccee034a50c1c0662eda4cfe63da8b87c0c4ca96c0f9747214eff620dba8951a7c707616d8cb4b638a75ea
6
+ metadata.gz: af29451a08f4467d0527adb001ad649c3c137700772c6e714fa99b9a3c6886de524cb21cad909e3cca90a1febafe70aca1d480d822adb679f5ede02d2015b35c
7
+ data.tar.gz: 365600e541bdd2dd46a24fba6c6a9d1f121bd25a2054bc3565ce0b49518c5bd43fb63a4b546e1b66e14c1b756dfe02d08bf7302e867b875648564ca00f44cad5
data/lib/saml.rb CHANGED
@@ -12,6 +12,7 @@ require "uri"
12
12
 
13
13
  module Saml
14
14
  MD_NAMESPACE = 'urn:oasis:names:tc:SAML:2.0:metadata'
15
+ MD_RPI_NAMESPACE = 'urn:oasis:names:tc:SAML:metadata:rpi'
15
16
  MD_ATTR_NAMESPACE = 'urn:oasis:names:tc:SAML:metadata:attribute'
16
17
  SAML_NAMESPACE = 'urn:oasis:names:tc:SAML:2.0:assertion'
17
18
  SAMLP_NAMESPACE = 'urn:oasis:names:tc:SAML:2.0:protocol'
@@ -111,6 +112,7 @@ module Saml
111
112
  require 'saml/elements/attribute'
112
113
  require 'saml/elements/attribute_statement'
113
114
  require 'saml/elements/entity_attributes'
115
+ require 'saml/elements/publication_info'
114
116
  require 'saml/elements/md_extensions'
115
117
  require 'saml/elements/samlp_extensions'
116
118
  require 'saml/elements/service_name'
@@ -8,6 +8,7 @@ module Saml
8
8
  namespace "md"
9
9
 
10
10
  has_one :entity_attributes, Saml::Elements::EntityAttributes
11
+ has_one :publication_info, Saml::Elements::PublicationInfo
11
12
  end
12
13
  end
13
14
  end
@@ -0,0 +1,19 @@
1
+ module Saml
2
+ module Elements
3
+ class PublicationInfo
4
+ include Saml::Base
5
+ include Saml::XMLHelpers
6
+
7
+ tag 'PublicationInfo'
8
+ register_namespace 'mdrpi', Saml::MD_RPI_NAMESPACE
9
+ namespace 'mdrpi'
10
+
11
+ attribute :publisher, String, :tag => 'publisher'
12
+ attribute :creation_instant, Time, :tag => 'creationInstant', on_save: lambda { |val| val.utc.xmlschema if val.present? }
13
+ attribute :publication_id, String, :tag => 'publicationId'
14
+
15
+ validates :publisher, :presence => true
16
+
17
+ end
18
+ end
19
+ end
data/lib/saml/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = "2.6.1"
2
+ VERSION = "2.6.2"
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: 2.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoist Claassen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-23 00:00:00.000000000 Z
11
+ date: 2015-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -166,6 +166,7 @@ files:
166
166
  - lib/saml/elements/organization_display_name.rb
167
167
  - lib/saml/elements/organization_name.rb
168
168
  - lib/saml/elements/organization_url.rb
169
+ - lib/saml/elements/publication_info.rb
169
170
  - lib/saml/elements/requested_attribute.rb
170
171
  - lib/saml/elements/requested_authn_context.rb
171
172
  - lib/saml/elements/samlp_extensions.rb