saml-kit 1.0.27 → 1.0.28
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 +4 -4
- data/README.md +3 -2
- data/lib/saml/kit/attribute_statement.rb +2 -2
- data/lib/saml/kit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ba1becc4ca2c588a6f2ff3c791665fc0b540e1bc267924237b00bcf59abb201
|
|
4
|
+
data.tar.gz: 7dce5cdd4aa10aeef2e04c414145a784589dc26b9a3ff366bf1c99574b915696
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8564943891c8e22171d8278da353626a78c96bccb3699586f436b6d58388c1b15c079379fb33d1efabeeea6dc703727f79c8bf393be93274f694ec2546294f80
|
|
7
|
+
data.tar.gz: d01dba5f9d4f60747dd611ffdcb6c41064ce62d89b86fa503149ed620fcd194c678d01aabe9c6b7acf642a841784f99b42aed074ad61e5ec9e382740d262832b
|
data/README.md
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
*Logo courtesy of [@speasley](https://github.com/speasley)*
|
|
4
4
|
|
|
5
|
-
[](https://travis-ci.org/saml-kit/saml-kit)
|
|
6
6
|
[](https://codeclimate.com/github/saml-kit/saml-kit)
|
|
7
|
-
[](https://rubygems.org/gems/saml-kit)
|
|
8
8
|
[](https://hakiri.io/github/saml-kit/saml-kit/master)
|
|
9
|
+
[](https://codeclimate.com/github/saml-kit/saml-kit/test_coverage)
|
|
9
10
|
|
|
10
11
|
Saml::Kit is a library with the purpose of creating and consuming SAML
|
|
11
12
|
documents. It supports the HTTP Post and HTTP Redirect bindings. It can
|
|
@@ -15,8 +15,8 @@ module Saml
|
|
|
15
15
|
def attributes
|
|
16
16
|
@attributes ||= search('./saml:Attribute').inject({}) do |memo, item|
|
|
17
17
|
namespace = Saml::Kit::Document::NAMESPACES
|
|
18
|
-
|
|
19
|
-
memo[item.attribute('Name').value] =
|
|
18
|
+
values = item.search('./saml:AttributeValue', namespace)
|
|
19
|
+
memo[item.attribute('Name').value] = values.length == 1 ? values[0].try(:text) : values.map { |x| x.try(:text) }
|
|
20
20
|
memo
|
|
21
21
|
end.with_indifferent_access
|
|
22
22
|
end
|
data/lib/saml/kit/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: saml-kit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.28
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mo khan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|