gaah 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gaah/provisioning/user.rb +2 -6
- data/lib/gaah/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51fc7e203dd89db1eab8f6486aa75d6121fc258d
|
4
|
+
data.tar.gz: 83cf55fae1d9245147dac00355969df1f5ddcc9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0cd242d54a99df822ca368def835cec6c517c6265c8a744dda4e262f6973536121ed0d98fb213f0bb2b81a14af6bb371da375e590d9100d850da09da1729c07
|
7
|
+
data.tar.gz: e0a61ff4fc1e974e922826d206a2c13ca5672eba797a185cd30fedd90ea70a7c4a610a748a15902e8e3be5d1b0b3a3b8ee1bf49c7c8499e3d2426b64f1d0ca22
|
@@ -17,21 +17,17 @@ module Gaah
|
|
17
17
|
@user_name = attr_value('apps|login', 'userName')
|
18
18
|
@family_name = attr_value('apps|name', 'familyName')
|
19
19
|
@given_name = attr_value('apps|name', 'givenName')
|
20
|
+
@email ||= "#{@user_name}@#{Gaah.domain}"
|
20
21
|
end
|
21
22
|
|
22
23
|
def parse_email
|
23
24
|
email_link = (@xml/'gd|feedLink').select { |link|
|
24
25
|
link.attr('rel').end_with?('user.emailLists')
|
25
26
|
}.first
|
26
|
-
return
|
27
|
+
return nil if email_link.nil?
|
27
28
|
CGI::unescape(email_link.attr('href').split('recipient=').last)
|
28
29
|
end
|
29
30
|
|
30
|
-
def parse_login
|
31
|
-
login = attr_value('apps|login', 'userName')
|
32
|
-
"#{login}@#{Gaah.domain}"
|
33
|
-
end
|
34
|
-
|
35
31
|
def name
|
36
32
|
"#{@given_name} #{@family_name}"
|
37
33
|
end
|
data/lib/gaah/version.rb
CHANGED