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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28c26014b0ce54fbd8aeb84d2dd6ee4b3d1355459278fc57afc1a3d98b4bffb0
4
- data.tar.gz: d84ea523535edd6d033eecbbe4e7b865d7d3d69b7080c400b3aba6c913800c93
3
+ metadata.gz: 6ba1becc4ca2c588a6f2ff3c791665fc0b540e1bc267924237b00bcf59abb201
4
+ data.tar.gz: 7dce5cdd4aa10aeef2e04c414145a784589dc26b9a3ff366bf1c99574b915696
5
5
  SHA512:
6
- metadata.gz: 0f2510eab2be6b8e4e16dd6fc3adeed53094a88b6f6cfa992780138fc7e53e25f10cb5872702da0a93f6dc5fb3b0b0b998198b9dafc399055d794d15b98e2fc9
7
- data.tar.gz: 1a520702f958b5ba2af029bad9b49d4766acdef5291093c81083e028999db2d0897c14832016ecff51c00cd3a25df5f5e012184e01b2bf9b3e88472dfdddc68f
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
- [![Gem Version](https://badge.fury.io/rb/saml-kit.svg)](https://rubygems.org/gems/saml-kit)
5
+ [![Build Status](https://travis-ci.org/saml-kit/saml-kit.svg?branch=master)](https://travis-ci.org/saml-kit/saml-kit)
6
6
  [![Code Climate](https://codeclimate.com/github/saml-kit/saml-kit.svg)](https://codeclimate.com/github/saml-kit/saml-kit)
7
- [![Build Status](https://travis-ci.org/saml-kit/saml-kit.svg)](https://travis-ci.org/saml-kit/saml-kit)
7
+ [![Gem Version](https://badge.fury.io/rb/saml-kit.svg)](https://rubygems.org/gems/saml-kit)
8
8
  [![Security](https://hakiri.io/github/saml-kit/saml-kit/master.svg)](https://hakiri.io/github/saml-kit/saml-kit/master)
9
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/32583dc119cf05ff4080/test_coverage)](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
- attribute = item.at_xpath('./saml:AttributeValue', namespace)
19
- memo[item.attribute('Name').value] = attribute.try(:text)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Saml
4
4
  module Kit
5
- VERSION = '1.0.27'.freeze
5
+ VERSION = '1.0.28'.freeze
6
6
  end
7
7
  end
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.27
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-09 00:00:00.000000000 Z
11
+ date: 2018-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel