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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 508f6099f5e79fe0258a2a5689333ba25cdffc31
4
- data.tar.gz: 3f639a13eeab8cc5139e121baf5f62a8810a4ca0
3
+ metadata.gz: 51fc7e203dd89db1eab8f6486aa75d6121fc258d
4
+ data.tar.gz: 83cf55fae1d9245147dac00355969df1f5ddcc9f
5
5
  SHA512:
6
- metadata.gz: 33d3c1c1ef1767f0e2fa0c0e84cecab7a049d10d0934d1f7948680eb1b5e0ea59bd97591e0881380ee2d3c609c8e1883f4973b1971253c62ca2ab428ce0e1887
7
- data.tar.gz: e2501b1149ba0d36698c23839181ca5b50db8e83acf8a6de181114b268c646c97948cdde4d1ee8a16e088667ebf46a43d8d1fd1f6e5405d0e98872aa8b38fe54
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 parse_login if email_link.nil?
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
@@ -1,3 +1,3 @@
1
1
  module Gaah
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hwan-Joon Choi