gaah 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzU0MmE2NmJmMWY4YWNkYjdkMmQ5MGZjZjg5ZTAyOGZhM2Q0YWY4YQ==
5
- data.tar.gz: !binary |-
6
- MDU2MTM3OTE4OThiZWNhOGRiOGEwNTI2Zjc0NzRkODI2NzdiODcxNg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- OTY5NjY0ZWI3ZTdiYjc0MjJkZWVhYzczYTM4ZjdjNjk5Nzc4MjYyM2IyNDBi
10
- ZDQ2MGVlYmZmYzFiNjA2MDFmMzU5OGNlMTkxYWQ1YWEwNWJhZjQ0M2QyZjNh
11
- ZGM3YzRiZTE1YjI3ZjI1MzVmZDVjYWFhZTNhYzNmNzk4NDVlODA=
12
- data.tar.gz: !binary |-
13
- NWRkNWQ2MmNiYjUwN2QzNmMzZTM2OGJjMGMxNTQ5NzE5NTExOGY4ODgzMmU1
14
- NmIyYjIyODg1YjdlYzAxZGJiMDI2OTRiMGMzNzA4ZjIwNWRiOGE0ZTAyZGU3
15
- NTQwMDI1OWM5ODdlNjM0YmIwNzAyNzgzOGY5ZTE4NDJkNWIwNjk=
2
+ SHA1:
3
+ metadata.gz: 508f6099f5e79fe0258a2a5689333ba25cdffc31
4
+ data.tar.gz: 3f639a13eeab8cc5139e121baf5f62a8810a4ca0
5
+ SHA512:
6
+ metadata.gz: 33d3c1c1ef1767f0e2fa0c0e84cecab7a049d10d0934d1f7948680eb1b5e0ea59bd97591e0881380ee2d3c609c8e1883f4973b1971253c62ca2ab428ce0e1887
7
+ data.tar.gz: e2501b1149ba0d36698c23839181ca5b50db8e83acf8a6de181114b268c646c97948cdde4d1ee8a16e088667ebf46a43d8d1fd1f6e5405d0e98872aa8b38fe54
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gaah (0.1.7)
4
+ gaah (0.1.9)
5
5
  nokogiri (~> 1.5)
6
6
  oauth (~> 0.4)
7
7
  oauth2 (~> 0.9)
@@ -17,7 +17,7 @@ GEM
17
17
  jwt (0.1.8)
18
18
  multi_json (>= 1.5)
19
19
  mini_portile (0.5.1)
20
- multi_json (1.7.8)
20
+ multi_json (1.8.0)
21
21
  multi_xml (0.5.5)
22
22
  multipart-post (1.2.0)
23
23
  nokogiri (1.6.0)
@@ -23,10 +23,15 @@ module Gaah
23
23
  email_link = (@xml/'gd|feedLink').select { |link|
24
24
  link.attr('rel').end_with?('user.emailLists')
25
25
  }.first
26
- return nil if email_link.nil?
26
+ return parse_login if email_link.nil?
27
27
  CGI::unescape(email_link.attr('href').split('recipient=').last)
28
28
  end
29
29
 
30
+ def parse_login
31
+ login = attr_value('apps|login', 'userName')
32
+ "#{login}@#{Gaah.domain}"
33
+ end
34
+
30
35
  def name
31
36
  "#{@given_name} #{@family_name}"
32
37
  end
@@ -1,3 +1,3 @@
1
1
  module Gaah
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
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.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hwan-Joon Choi
@@ -123,17 +123,17 @@ require_paths:
123
123
  - lib
124
124
  required_ruby_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - ! '>='
126
+ - - '>='
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - ! '>='
131
+ - - '>='
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.0.3
136
+ rubygems_version: 2.0.6
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Limited API Wrapper for Google Apps API.