liangzan-contacts 1.2.8 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +13 -9
  2. data/lib/contacts/hotmail.rb +1 -1
  3. metadata +8 -8
data/README.rdoc CHANGED
@@ -10,7 +10,7 @@ Contacts is a universal interface to grab contact list information from various
10
10
 
11
11
  $ gem install liangzan-contacts
12
12
 
13
- or on the _Gemfile_
13
+ or on the *Gemfile*
14
14
 
15
15
  gem 'liangzan-contacts', '~>1.2.8', :require => 'contacts'
16
16
 
@@ -20,15 +20,16 @@ For a long time, the only way to get a list of contacts from your free online em
20
20
 
21
21
  == Usage
22
22
 
23
- Contacts::Hotmail.new(login, password).contacts # => [["name", "foo@bar.com"], ["another name", "bow@wow.com"]]
24
- Contacts::Yahoo.new(login, password).contacts
25
- Contacts::Gmail.new(login, password).contacts
23
+ # returns [["name", "foo@bar.com"], ["another name", "bow@wow.com"]]
24
+ Contacts::Hotmail.new(login, password).contacts
25
+ Contacts::Yahoo.new(login, password).contacts
26
+ Contacts::Gmail.new(login, password).contacts
26
27
 
27
- Contacts.new(:gmail, login, password).contacts
28
- Contacts.new(:hotmail, login, password).contacts
29
- Contacts.new(:yahoo, login, password).contacts
28
+ Contacts.new(:gmail, login, password).contacts
29
+ Contacts.new(:hotmail, login, password).contacts
30
+ Contacts.new(:yahoo, login, password).contacts
30
31
 
31
- Contacts.guess(login, password).contacts
32
+ Contacts.guess(login, password).contacts
32
33
 
33
34
  Notice there are three ways to use this library so that you can limit the use as much as you would like in your particular application. The Contacts.guess method will automatically concatenate all the address book contacts from each of the successful logins in the case that a username password works across multiple services.
34
35
 
@@ -36,7 +37,10 @@ Notice there are three ways to use this library so that you can limit the use as
36
37
 
37
38
  If there are too many failed attempts with the gmail login info, Google will raise a captcha response. To integrate the captcha handling, pass in the token and response via:
38
39
 
39
- Contacts::Gmail.new(login, password, :captcha_token => params[:captcha_token], :captcha_response => params[:captcha_response]).contacts
40
+ Contacts::Gmail.new(login,
41
+ password,
42
+ :captcha_token => params[:captcha_token],
43
+ :captcha_response => params[:captcha_response]).contacts
40
44
 
41
45
  == Examples
42
46
 
@@ -66,7 +66,7 @@ class Contacts
66
66
  name = ""
67
67
  name = row["First Name"] if !row["First Name"].nil?
68
68
  name << " #{row["Last Name"]}" if !row["Last Name"].nil?
69
- [name, row["E-mail Address"]]
69
+ [name, row["E-mail Address"] || ""]
70
70
  end
71
71
  else
72
72
  @contacts || []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liangzan-contacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-02-22 00:00:00.000000000Z
14
+ date: 2012-02-23 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json
18
- requirement: &12557260 !ruby/object:Gem::Requirement
18
+ requirement: &11509120 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 1.6.5
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *12557260
26
+ version_requirements: *11509120
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gdata_19
29
- requirement: &12555740 !ruby/object:Gem::Requirement
29
+ requirement: &11507380 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.1.3
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *12555740
37
+ version_requirements: *11507380
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: nokogiri
40
- requirement: &12554980 !ruby/object:Gem::Requirement
40
+ requirement: &11506500 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: 1.5.0
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *12554980
48
+ version_requirements: *11506500
49
49
  description: A universal interface to grab contact list information from various providers
50
50
  including Yahoo, AOL, Gmail, Hotmail, and Plaxo. Now supporting Ruby 1.9.
51
51
  email: zan@liangzan.net