google-client_login 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/google/client_login.rb +4 -4
- metadata +35 -47
data/lib/google/client_login.rb
CHANGED
@@ -4,7 +4,7 @@ module Google
|
|
4
4
|
|
5
5
|
class ClientLogin
|
6
6
|
|
7
|
-
attr_reader :token, :email
|
7
|
+
attr_reader :token, :email, :response
|
8
8
|
|
9
9
|
def initialize(email, password, options = {})
|
10
10
|
@email = email
|
@@ -20,8 +20,8 @@ module Google
|
|
20
20
|
"Passwd" => password
|
21
21
|
})
|
22
22
|
|
23
|
-
response = http.start { |conn| conn.request(request) }
|
24
|
-
@token
|
23
|
+
@response = http.start { |conn| conn.request(request) }
|
24
|
+
@token = response.body.match(/Auth=(.*)/)[1] if response.code == "200"
|
25
25
|
end
|
26
26
|
|
27
27
|
def logged_in?
|
@@ -52,4 +52,4 @@ module Google
|
|
52
52
|
end
|
53
53
|
|
54
54
|
end
|
55
|
-
end
|
55
|
+
end
|
metadata
CHANGED
@@ -1,49 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-client_login
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.4
|
4
5
|
prerelease:
|
5
|
-
version: 1.1.3
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Jason L Perry
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-09-03 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: shoulda
|
17
|
-
requirement: &
|
16
|
+
requirement: &2156472360 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
23
22
|
type: :development
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
26
|
-
- !ruby/object:Gem::Dependency
|
24
|
+
version_requirements: *2156472360
|
25
|
+
- !ruby/object:Gem::Dependency
|
27
26
|
name: mocha
|
28
|
-
requirement: &
|
27
|
+
requirement: &2156471920 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version:
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
34
33
|
type: :development
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156471920
|
37
36
|
description: A simple library for authenticating against the Google ClientLogin API
|
38
37
|
email: jasper@ambethia.com
|
39
38
|
executables: []
|
40
|
-
|
41
39
|
extensions: []
|
42
|
-
|
43
|
-
extra_rdoc_files:
|
40
|
+
extra_rdoc_files:
|
44
41
|
- LICENSE
|
45
42
|
- README.rdoc
|
46
|
-
files:
|
43
|
+
files:
|
47
44
|
- README.rdoc
|
48
45
|
- lib/google-client_login.rb
|
49
46
|
- lib/google/client_login.rb
|
@@ -51,36 +48,27 @@ files:
|
|
51
48
|
- test/google/client_login_test.rb
|
52
49
|
homepage: http://github.com/ambethia/google-client_login
|
53
50
|
licenses: []
|
54
|
-
|
55
51
|
post_install_message:
|
56
52
|
rdoc_options: []
|
57
|
-
|
58
|
-
require_paths:
|
53
|
+
require_paths:
|
59
54
|
- lib
|
60
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
56
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
66
|
-
|
67
|
-
- 0
|
68
|
-
version: "0"
|
69
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
62
|
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
version: "0"
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
78
67
|
requirements: []
|
79
|
-
|
80
68
|
rubyforge_project:
|
81
|
-
rubygems_version: 1.8.
|
69
|
+
rubygems_version: 1.8.6
|
82
70
|
signing_key:
|
83
71
|
specification_version: 3
|
84
72
|
summary: Google ClientLogin authentication
|
85
|
-
test_files:
|
73
|
+
test_files:
|
86
74
|
- test/google/client_login_test.rb
|