blackbook 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +5 -0
- data/lib/blackbook.rb +1 -1
- data/lib/blackbook/importer/gmail.rb +1 -1
- data/test/test_blackbook_importer_gmail.rb +3 -3
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/blackbook.rb
CHANGED
@@ -16,7 +16,7 @@ class Blackbook::Importer::Gmail < Blackbook::Importer::PageScraper
|
|
16
16
|
# login to gmail
|
17
17
|
|
18
18
|
def login
|
19
|
-
page = agent.get('http://mail.google.com/')
|
19
|
+
page = agent.get('http://mail.google.com/mail/')
|
20
20
|
form = page.forms.first
|
21
21
|
form.Email = options[:username]
|
22
22
|
form.Passwd = options[:password]
|
@@ -33,7 +33,7 @@ class TestBlackbookImporterGmail < Test::Unit::TestCase
|
|
33
33
|
|
34
34
|
body = load_fixture('gmail_login_response_stage_1.html').join
|
35
35
|
page = WWW::Mechanize::Page.new(uri=nil, response, body, code=nil, mech=nil)
|
36
|
-
@importer.agent.expects(:get).with('http://mail.google.com/').once.returns(page)
|
36
|
+
@importer.agent.expects(:get).with('http://mail.google.com/mail/').once.returns(page)
|
37
37
|
|
38
38
|
body = load_fixture('gmail_bad_login_response_stage_2.html').join
|
39
39
|
page = WWW::Mechanize::Page.new(uri=nil, response, body, code=nil, mech=nil)
|
@@ -49,7 +49,7 @@ class TestBlackbookImporterGmail < Test::Unit::TestCase
|
|
49
49
|
|
50
50
|
body = load_fixture('gmail_login_response_stage_1.html').join
|
51
51
|
page = WWW::Mechanize::Page.new(uri=nil, response, body, code=nil, mech=nil)
|
52
|
-
@importer.agent.expects(:get).with('http://mail.google.com/').once.returns(page)
|
52
|
+
@importer.agent.expects(:get).with('http://mail.google.com/mail/').once.returns(page)
|
53
53
|
|
54
54
|
body = load_fixture('gmail_login_response_stage_2.html').join
|
55
55
|
page = WWW::Mechanize::Page.new(uri=nil, response, body, code=nil, mech=nil)
|
@@ -70,7 +70,7 @@ class TestBlackbookImporterGmail < Test::Unit::TestCase
|
|
70
70
|
|
71
71
|
body = load_fixture('gmail_login_response_stage_1.html').join
|
72
72
|
page = WWW::Mechanize::Page.new(uri=nil, response, body, code=nil, mech=nil)
|
73
|
-
@importer.agent.expects(:get).with('http://mail.google.com/').once.returns(page)
|
73
|
+
@importer.agent.expects(:get).with('http://mail.google.com/mail/').once.returns(page)
|
74
74
|
|
75
75
|
body = load_fixture('gmail_login_response_stage_2a.html').join
|
76
76
|
page = WWW::Mechanize::Page.new(uri=nil, response, body, code=nil, mech=nil)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blackbook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Contentfree
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
q8SfeAt4oNk4pWm9Ocmiww==
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2008-02-
|
33
|
+
date: 2008-02-20 00:00:00 -08:00
|
34
34
|
default_executable:
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
Binary file
|