contacts_cn 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/grab_contacts.rb +8 -14
- data/lib/contacts/base.rb +1 -1
- data/lib/contacts/sina.rb +2 -2
- data/lib/contacts/sohu.rb +1 -1
- metadata +4 -4
data/examples/grab_contacts.rb
CHANGED
@@ -1,23 +1,17 @@
|
|
1
1
|
require File.dirname(__FILE__)+"/../lib/contacts_cn"
|
2
2
|
|
3
|
-
login = ARGV[0]
|
4
|
-
password = ARGV[1]
|
5
3
|
#login is your email
|
6
|
-
Contacts::Gmail.new(login, password).contacts
|
4
|
+
#Contacts::Gmail.new(login, password).contacts
|
7
5
|
|
8
|
-
Contacts.new(:gmail, login, password).contacts
|
6
|
+
#Contacts.new(:gmail, login, password).contacts
|
9
7
|
|
10
|
-
Contacts.new("gmail", login, password).contacts
|
8
|
+
#Contacts.new("gmail", login, password).contacts
|
11
9
|
|
12
|
-
Contacts.guess(login, password).contacts
|
10
|
+
#Contacts.guess(login, password).contacts
|
13
11
|
|
14
|
-
Contacts.new(:yahoo,login,password).contacts
|
12
|
+
#Contacts.new(:yahoo,login,password).contacts
|
15
13
|
|
16
|
-
Contacts.new(:hotmail,login,password).contacts
|
14
|
+
#Contacts.new(:hotmail,login,password).contacts
|
17
15
|
|
18
|
-
|
19
|
-
Contacts.new(:net_ease,login,password).contacts
|
20
|
-
|
21
|
-
Contacts.new(:sina,login,password).contacts
|
22
|
-
|
23
|
-
Contacts.new(:sohu,login,password).contacts
|
16
|
+
##net_ease support 163.com, 126.com, yeah.net
|
17
|
+
#Contacts.new(:net_ease,login,password).contacts
|
data/lib/contacts/base.rb
CHANGED
data/lib/contacts/sina.rb
CHANGED
@@ -6,8 +6,8 @@ class Contacts
|
|
6
6
|
:sina_com => "https://mail.sina.com.cn/cgi-bin/login.php"
|
7
7
|
}
|
8
8
|
LOGIN_COOKIE = {
|
9
|
-
:sina_cn => "
|
10
|
-
:sina_com => "
|
9
|
+
:sina_cn => "sina_cn_mail_recid=true",
|
10
|
+
:sina_com => "sina_free_mail_recid=true; sina_free_mail_ltype=uid; sina_vip_mail_recid=false"
|
11
11
|
}
|
12
12
|
DOMAIN = {
|
13
13
|
:sina_cn => 'sina.cn',
|
data/lib/contacts/sohu.rb
CHANGED
@@ -4,7 +4,7 @@ class Contacts
|
|
4
4
|
DOMAIN = "sohu.com"
|
5
5
|
LOGIN_URL = "https://passport.sohu.com/sso/login.jsp"
|
6
6
|
LOGIN_COOKIE = "IPLOC=CN3301; SUV=1008301317090277"
|
7
|
-
MAIL_URL = "http://mail.sohu.com/bapp/
|
7
|
+
MAIL_URL = "http://mail.sohu.com/bapp/117/main"
|
8
8
|
PROTOCOL_ERROR = "sohu has changed its protocols, please upgrade this library first. you can also contact kamechb@gmail.com"
|
9
9
|
|
10
10
|
def real_connect
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contacts_cn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 8
|
10
|
+
version: 1.2.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lucas Carlson
|
@@ -16,7 +16,7 @@ autorequire: contacts
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date:
|
19
|
+
date: 2012-03-13 00:00:00 +08:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|