shibboleth-rails 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ .project
1
2
  *.gem
2
3
  .bundle
3
4
  Gemfile.lock
@@ -8,12 +8,14 @@ module Shibboleth::Rails
8
8
 
9
9
  module ClassMethods
10
10
  def find_or_create_from_shibboleth(identity)
11
+ affiliations = identity.delete(:affiliations)
12
+
11
13
  user = find_or_create_by_emplid(identity)
12
14
 
13
15
  # names change due to marriage, etc.
14
16
  # update_attribute is a NOOP if not different
15
17
  user.update_attribute(:name_n, identity[:name_n])
16
- user.update_role(identity[:affiliations]) if user.respond_to?(:update_role)
18
+ user.update_role(affiliations) if user.respond_to?(:update_role)
17
19
  user
18
20
  end
19
21
  end
@@ -1,5 +1,5 @@
1
1
  module Shibboleth
2
2
  module Rails
3
- VERSION = "0.3.5"
3
+ VERSION = "0.3.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shibboleth-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - mikegee
@@ -43,7 +43,6 @@ extra_rdoc_files: []
43
43
 
44
44
  files:
45
45
  - .gitignore
46
- - .project
47
46
  - Gemfile
48
47
  - README.md
49
48
  - Rakefile
data/.project DELETED
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <projectDescription>
3
- <name>Shib Rails</name>
4
- <comment></comment>
5
- <projects>
6
- </projects>
7
- <buildSpec>
8
- <buildCommand>
9
- <name>com.aptana.ide.core.unifiedBuilder</name>
10
- <arguments>
11
- </arguments>
12
- </buildCommand>
13
- </buildSpec>
14
- <natures>
15
- <nature>org.radrails.rails.core.railsnature</nature>
16
- <nature>com.aptana.ruby.core.rubynature</nature>
17
- </natures>
18
- </projectDescription>