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 CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.0.2 / 2008-02-20
2
+
3
+ * 1 minor enhancement
4
+ * fixed sign on issue with GMail
5
+
1
6
  == 1.0.1 / 2008-02-08
2
7
 
3
8
  * 2 minor enhancement
data/lib/blackbook.rb CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
4
4
 
5
5
  class Blackbook
6
6
  include ::Singleton
7
- VERSION = '1.0.1'
7
+ VERSION = '1.0.2'
8
8
 
9
9
  class BlackbookError < ::StandardError; end
10
10
  class BadCredentialsError < BlackbookError; end
@@ -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.1
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-08 00:00:00 -08:00
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