google-client_login 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/google-client_login.rb +1 -0
- data/test/google/client_login_test.rb +3 -5
- metadata +26 -25
- data/.document +0 -5
- data/.gitignore +0 -5
- data/Rakefile +0 -57
- data/VERSION +0 -1
- data/google-client_login.gemspec +0 -57
- data/test/test_helper.rb +0 -52
@@ -0,0 +1 @@
|
|
1
|
+
require 'google/client_login'
|
@@ -19,7 +19,7 @@ class Google::ClientLoginTest < Test::Unit::TestCase
|
|
19
19
|
"LSID=DQAAAGsA...lk8BBbG",
|
20
20
|
"Auth=DQAAAGgA...dk3fA5N"
|
21
21
|
].join("\n")
|
22
|
-
)
|
22
|
+
)
|
23
23
|
|
24
24
|
Net::HTTP.any_instance.stubs(:request).returns(@http_mock)
|
25
25
|
end
|
@@ -31,7 +31,7 @@ class Google::ClientLoginTest < Test::Unit::TestCase
|
|
31
31
|
should "have an authentication token" do
|
32
32
|
assert_equal "DQAAAGgA...dk3fA5N", client_login.token
|
33
33
|
end
|
34
|
-
|
34
|
+
|
35
35
|
context "profile" do
|
36
36
|
|
37
37
|
setup do
|
@@ -63,7 +63,7 @@ class Google::ClientLoginTest < Test::Unit::TestCase
|
|
63
63
|
"CaptchaToken=DQAAAGgA...dkI1LK9",
|
64
64
|
"CaptchaUrl=Captcha?ctoken=HiteT4b0....eiI7lUSN"
|
65
65
|
].join("\n")
|
66
|
-
)
|
66
|
+
)
|
67
67
|
|
68
68
|
Net::HTTP.stubs(:post_form).returns(@http_mock)
|
69
69
|
end
|
@@ -75,7 +75,5 @@ class Google::ClientLoginTest < Test::Unit::TestCase
|
|
75
75
|
should "not have an authentication token" do
|
76
76
|
assert_nil nil, client_login.token
|
77
77
|
end
|
78
|
-
|
79
78
|
end
|
80
|
-
|
81
79
|
end
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-client_login
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease:
|
5
|
+
version: 1.1.3
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Jason L Perry
|
@@ -9,29 +10,30 @@ autorequire:
|
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
12
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
13
|
+
date: 2011-08-04 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: shoulda
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
17
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
20
19
|
requirements:
|
21
20
|
- - ">="
|
22
21
|
- !ruby/object:Gem::Version
|
23
22
|
version: "0"
|
24
|
-
|
23
|
+
type: :development
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *id001
|
25
26
|
- !ruby/object:Gem::Dependency
|
26
27
|
name: mocha
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: "0"
|
34
|
-
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *id002
|
35
37
|
description: A simple library for authenticating against the Google ClientLogin API
|
36
38
|
email: jasper@ambethia.com
|
37
39
|
executables: []
|
@@ -42,44 +44,43 @@ extra_rdoc_files:
|
|
42
44
|
- LICENSE
|
43
45
|
- README.rdoc
|
44
46
|
files:
|
45
|
-
- .document
|
46
|
-
- .gitignore
|
47
|
-
- LICENSE
|
48
47
|
- README.rdoc
|
49
|
-
-
|
50
|
-
- VERSION
|
51
|
-
- google-client_login.gemspec
|
48
|
+
- lib/google-client_login.rb
|
52
49
|
- lib/google/client_login.rb
|
50
|
+
- LICENSE
|
53
51
|
- test/google/client_login_test.rb
|
54
|
-
- test/test_helper.rb
|
55
|
-
has_rdoc: true
|
56
52
|
homepage: http://github.com/ambethia/google-client_login
|
57
53
|
licenses: []
|
58
54
|
|
59
55
|
post_install_message:
|
60
|
-
rdoc_options:
|
61
|
-
|
56
|
+
rdoc_options: []
|
57
|
+
|
62
58
|
require_paths:
|
63
59
|
- lib
|
64
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
65
62
|
requirements:
|
66
63
|
- - ">="
|
67
64
|
- !ruby/object:Gem::Version
|
65
|
+
hash: -1517987170036242028
|
66
|
+
segments:
|
67
|
+
- 0
|
68
68
|
version: "0"
|
69
|
-
version:
|
70
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
71
|
requirements:
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
+
hash: -1517987170036242028
|
75
|
+
segments:
|
76
|
+
- 0
|
74
77
|
version: "0"
|
75
|
-
version:
|
76
78
|
requirements: []
|
77
79
|
|
78
80
|
rubyforge_project:
|
79
|
-
rubygems_version: 1.
|
81
|
+
rubygems_version: 1.8.5
|
80
82
|
signing_key:
|
81
83
|
specification_version: 3
|
82
84
|
summary: Google ClientLogin authentication
|
83
85
|
test_files:
|
84
86
|
- test/google/client_login_test.rb
|
85
|
-
- test/test_helper.rb
|
data/.document
DELETED
data/Rakefile
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
|
3
|
-
begin
|
4
|
-
require 'jeweler'
|
5
|
-
Jeweler::Tasks.new do |gem|
|
6
|
-
gem.name = "google-client_login"
|
7
|
-
gem.summary = %Q{Google ClientLogin authentication}
|
8
|
-
gem.description = %Q{A simple library for authenticating against the Google ClientLogin API}
|
9
|
-
gem.email = "jasper@ambethia.com"
|
10
|
-
gem.homepage = "http://github.com/ambethia/google-client_login"
|
11
|
-
gem.authors = ["Jason L Perry"]
|
12
|
-
gem.add_development_dependency "shoulda"
|
13
|
-
gem.add_development_dependency "mocha"
|
14
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
-
end
|
16
|
-
Jeweler::GemcutterTasks.new
|
17
|
-
rescue LoadError
|
18
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
19
|
-
end
|
20
|
-
|
21
|
-
require 'rake/testtask'
|
22
|
-
Rake::TestTask.new(:test) do |test|
|
23
|
-
test.libs << 'lib' << 'test'
|
24
|
-
test.pattern = 'test/**/*_test.rb'
|
25
|
-
test.verbose = true
|
26
|
-
end
|
27
|
-
|
28
|
-
begin
|
29
|
-
require 'rcov/rcovtask'
|
30
|
-
Rcov::RcovTask.new do |test|
|
31
|
-
test.libs << 'test'
|
32
|
-
test.pattern = 'test/**/*_test.rb'
|
33
|
-
test.verbose = true
|
34
|
-
end
|
35
|
-
rescue LoadError
|
36
|
-
task :rcov do
|
37
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
task :test => :check_dependencies
|
42
|
-
|
43
|
-
task :default => :test
|
44
|
-
|
45
|
-
require 'rake/rdoctask'
|
46
|
-
Rake::RDocTask.new do |rdoc|
|
47
|
-
if File.exist?('VERSION')
|
48
|
-
version = File.read('VERSION')
|
49
|
-
else
|
50
|
-
version = ""
|
51
|
-
end
|
52
|
-
|
53
|
-
rdoc.rdoc_dir = 'rdoc'
|
54
|
-
rdoc.title = "google/client_login #{version}"
|
55
|
-
rdoc.rdoc_files.include('README*')
|
56
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
57
|
-
end
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.1.2
|
data/google-client_login.gemspec
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{google-client_login}
|
8
|
-
s.version = "1.1.2"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Jason L Perry"]
|
12
|
-
s.date = %q{2009-10-20}
|
13
|
-
s.description = %q{A simple library for authenticating against the Google ClientLogin API}
|
14
|
-
s.email = %q{jasper@ambethia.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
".gitignore",
|
22
|
-
"LICENSE",
|
23
|
-
"README.rdoc",
|
24
|
-
"Rakefile",
|
25
|
-
"VERSION",
|
26
|
-
"google-client_login.gemspec",
|
27
|
-
"lib/google/client_login.rb",
|
28
|
-
"test/google/client_login_test.rb",
|
29
|
-
"test/test_helper.rb"
|
30
|
-
]
|
31
|
-
s.homepage = %q{http://github.com/ambethia/google-client_login}
|
32
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
33
|
-
s.require_paths = ["lib"]
|
34
|
-
s.rubygems_version = %q{1.3.5}
|
35
|
-
s.summary = %q{Google ClientLogin authentication}
|
36
|
-
s.test_files = [
|
37
|
-
"test/google/client_login_test.rb",
|
38
|
-
"test/test_helper.rb"
|
39
|
-
]
|
40
|
-
|
41
|
-
if s.respond_to? :specification_version then
|
42
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
43
|
-
s.specification_version = 3
|
44
|
-
|
45
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
46
|
-
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
47
|
-
s.add_development_dependency(%q<mocha>, [">= 0"])
|
48
|
-
else
|
49
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
50
|
-
s.add_dependency(%q<mocha>, [">= 0"])
|
51
|
-
end
|
52
|
-
else
|
53
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
54
|
-
s.add_dependency(%q<mocha>, [">= 0"])
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
data/test/test_helper.rb
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
require 'test/unit'
|
2
|
-
require 'shoulda'
|
3
|
-
require 'mocha'
|
4
|
-
|
5
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
6
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
7
|
-
require 'google/client_login'
|
8
|
-
|
9
|
-
class Test::Unit::TestCase
|
10
|
-
end
|
11
|
-
|
12
|
-
PROFILE_XML =<<-EOF
|
13
|
-
<atom:entry xmlns:atom='http://www.w3.org/2005/Atom'
|
14
|
-
xmlns:gd='http://schemas.google.com/g/2005'>
|
15
|
-
<atom:category scheme='http://schemas.google.com/g/2005#kind'
|
16
|
-
term='http://schemas.google.com/contact/2008#contact' />
|
17
|
-
<gd:name>
|
18
|
-
<gd:givenName>Elizabeth</gd:givenName>
|
19
|
-
<gd:familyName>Bennet</gd:familyName>
|
20
|
-
<gd:fullName>Elizabeth Bennet</gd:fullName>
|
21
|
-
</gd:name>
|
22
|
-
<atom:content type='text'>Notes</atom:content>
|
23
|
-
<gd:email rel='http://schemas.google.com/g/2005#work'
|
24
|
-
primary='true'
|
25
|
-
address='liz@gmail.com' displayName='E. Bennet' />
|
26
|
-
<gd:email rel='http://schemas.google.com/g/2005#home'
|
27
|
-
address='liz@example.org' />
|
28
|
-
<gd:phoneNumber rel='http://schemas.google.com/g/2005#work'
|
29
|
-
primary='true'>
|
30
|
-
(206)555-1212
|
31
|
-
</gd:phoneNumber>
|
32
|
-
<gd:phoneNumber rel='http://schemas.google.com/g/2005#home'>
|
33
|
-
(206)555-1213
|
34
|
-
</gd:phoneNumber>
|
35
|
-
<gd:im address='liz@gmail.com'
|
36
|
-
protocol='http://schemas.google.com/g/2005#GOOGLE_TALK'
|
37
|
-
primary='true'
|
38
|
-
rel='http://schemas.google.com/g/2005#home' />
|
39
|
-
<gd:structuredPostalAddress
|
40
|
-
rel='http://schemas.google.com/g/2005#work'
|
41
|
-
primary='true'>
|
42
|
-
<gd:city>Mountain View</gd:city>
|
43
|
-
<gd:street>1600 Amphitheatre Pkwy</gd:street>
|
44
|
-
<gd:region>CA</gd:region>
|
45
|
-
<gd:postcode>94043</gd:postcode>
|
46
|
-
<gd:country>United States</gd:country>
|
47
|
-
<gd:formattedAddress>
|
48
|
-
1600 Amphitheatre Pkwy Mountain View
|
49
|
-
</gd:formattedAddress>
|
50
|
-
</gd:structuredPostalAddress>
|
51
|
-
</atom:entry>
|
52
|
-
EOF
|