contacts_cn 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- #net_ease support 163.com, 126.com, yeah.net
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
@@ -9,7 +9,7 @@ require "erb"
9
9
 
10
10
  class Contacts
11
11
  TYPES = {}
12
- VERSION = "1.2.7"
12
+ VERSION = "1.2.8"
13
13
 
14
14
  class Base
15
15
  def initialize(login, password, options={})
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 => "sina_cn_mail_id=nonobo_t; sina_cn_mail_recid=true",
10
- :sina_com => "sina_free_mail_id=fangs2; sina_free_mail_recid=true; sina_free_mail_ltype=uid; sina_vip_mail_recid=false"
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/81/main"
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: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 7
10
- version: 1.2.7
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: 2011-12-19 00:00:00 +08:00
19
+ date: 2012-03-13 00:00:00 +08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency