omniauth-saml-rmunify 2.0.1 → 2.0.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: 420ec8e707d36d1d1f18bf0860ef71d95bce30cc
4
- data.tar.gz: 60a8278bf078962c1aab47c7f5bd2c43c761229f
3
+ metadata.gz: 741e91801587d8a76b88d076f01ea67e3892c339
4
+ data.tar.gz: a6fb4f0fbde042383e032e6d3769da4103cae254
5
5
  SHA512:
6
- metadata.gz: a3f532a035445386f1e9f12fc514e7da06fd5a2afd69acdc09396b792a95c275a8816a690e9d7967dd42c4207f77e0c19db92c03f48687553acf0fc3268c39a3
7
- data.tar.gz: b1c9e2a0ad382b6f4a089a002cd472b9b9924257f174a4d8f9f5ee1fcfef07cf1b764452b8eb58b5b75310327951bb8208a440af57675ea11b911f01fc58974b
6
+ metadata.gz: a340f91ab0933908c104cd4fa9e06ffb0e42255cc535a90c6f506ce236d7a49ab53c25d651ab2d381a9e91f6142b68a0bdadb116a4b638b830341c9fbaa67f76
7
+ data.tar.gz: ea80111692dd14bdd822c9d29cb625b6d9c944a064aa666f1847675cc265d2a0810c7f412f2f6465ce0b18e1e64c2c718cc19054699343aaf961f4486eb10c62
@@ -6,6 +6,10 @@ https://github.com/hampei/omniauth-saml-rmunify
6
6
 
7
7
  ## master
8
8
 
9
+ ## 2.0.2 (2014-11-26)
10
+
11
+ * Fixes error when license info is not given.
12
+
9
13
  ## 2.0.1 (2014-07-10)
10
14
 
11
15
  * Fixed possible error when displayname, username nor firstname are all not available in the callback.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module SAMLRMUnify
3
- VERSION = '2.0.1'
3
+ VERSION = '2.0.2'
4
4
  end
5
5
  end
@@ -39,6 +39,7 @@ module OmniAuth
39
39
 
40
40
  def licence
41
41
  licence_str = @attributes['http://schemas.rm.com/identity/claims/applicence']
42
+ return nil if licence_str.nil? || licence_str.empty?
42
43
  licence = Hash[licence_str[1..-2].split('|').map{|kv|
43
44
  (k,v) = kv.split(':')
44
45
  [k.underscore, v]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-saml-rmunify
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henk van der Veen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-10 00:00:00.000000000 Z
11
+ date: 2014-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-saml
@@ -61,3 +61,4 @@ specification_version: 4
61
61
  summary: A custom info auth hash translating the rm unify attributes. Subclass of
62
62
  omniauth-saml.
63
63
  test_files: []
64
+ has_rdoc: