graybook 1.0.24 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/{CHANGES.md → CHANGELOG} +13 -2
- data/README +94 -0
- data/Rakefile +3 -22
- data/VERSION +1 -1
- data/VERSION.yml +2 -2
- data/VERSION_NAME +1 -1
- data/lib/graybook/importer/aol.rb +11 -11
- data/lib/graybook/importer/gmail.rb +20 -20
- data/lib/graybook/importer/hotmail.rb +2 -4
- data/lib/graybook/importer/page_scraper.rb +4 -2
- data/lib/graybook/importer/yahoo.rb +12 -12
- data/lib/graybook.rb +20 -21
- metadata +9 -102
- data/README.md +0 -66
- data/debug_graybook.rb +0 -10
- data/lib/graybook/exporter/vcf.rb +0 -45
- data/lib/graybook/exporter/xml.rb +0 -28
- data/lib/graybook/importer/csv.rb +0 -74
- data/lib/graybook/importer/freenet.rb +0 -62
- data/lib/graybook/importer/gmx.rb +0 -68
- data/lib/graybook/importer/web.de.rb +0 -67
- data/test/config/credentials.yml.example +0 -9
- data/test/fixtures/aol_application_page.html +0 -566
- data/test/fixtures/aol_bad_login_response_stage_3.html +0 -565
- data/test/fixtures/aol_contacts.html +0 -102
- data/test/fixtures/aol_login_response_stage_1.html +0 -158
- data/test/fixtures/aol_login_response_stage_2.html +0 -559
- data/test/fixtures/aol_login_response_stage_3.html +0 -48
- data/test/fixtures/aol_login_response_stage_4.html +0 -404
- data/test/fixtures/aol_login_response_stage_5.html +0 -404
- data/test/fixtures/aol_new_contacts.html +0 -431
- data/test/fixtures/gmail.csv +0 -3
- data/test/fixtures/gmail_bad_login_response_stage_2.html +0 -560
- data/test/fixtures/gmail_contacts.html +0 -228
- data/test/fixtures/gmail_login_response_stage_1.html +0 -556
- data/test/fixtures/gmail_login_response_stage_2.html +0 -1
- data/test/fixtures/gmail_login_response_stage_2a.html +0 -1
- data/test/fixtures/gmail_login_response_stage_3.html +0 -249
- data/test/fixtures/gmail_redirect_body.html +0 -10
- data/test/fixtures/hotmail_bad_login_response_stage_2.html +0 -31
- data/test/fixtures/hotmail_contacts.html +0 -262
- data/test/fixtures/hotmail_login_response_stage_1.html +0 -31
- data/test/fixtures/hotmail_login_response_stage_2.html +0 -1
- data/test/fixtures/hotmail_login_response_stage_3.html +0 -519
- data/test/fixtures/hotmail_scrape_first_page.html +0 -77
- data/test/fixtures/hotmail_scrape_response_stage_1.html +0 -90
- data/test/fixtures/hotmail_scrape_response_stage_2.html +0 -77
- data/test/fixtures/hotmail_scrape_response_stage_3.html +0 -0
- data/test/fixtures/yahoo_bad_login_response_stage_2.html +0 -443
- data/test/fixtures/yahoo_contacts.csv +0 -3
- data/test/fixtures/yahoo_contacts_not_logged_in.html +0 -432
- data/test/fixtures/yahoo_contacts_stage_1.html +0 -399
- data/test/fixtures/yahoo_login_response_stage_1.html +0 -433
- data/test/fixtures/yahoo_login_response_stage_2.html +0 -16
- data/test/fixtures/yahoo_no_user_response_stage_2.html +0 -574
- data/test/freenet_importer_test.rb +0 -53
- data/test/gmx_importer_test.rb +0 -53
- data/test/scripts/live_test.rb +0 -25
- data/test/test_graybook.rb +0 -60
- data/test/test_graybook_exporter_base.rb +0 -16
- data/test/test_graybook_exporter_vcf.rb +0 -52
- data/test/test_graybook_exporter_xml.rb +0 -16
- data/test/test_graybook_importer_aol.rb +0 -108
- data/test/test_graybook_importer_base.rb +0 -24
- data/test/test_graybook_importer_csv.rb +0 -60
- data/test/test_graybook_importer_gmail.rb +0 -116
- data/test/test_graybook_importer_hotmail.rb +0 -165
- data/test/test_graybook_importer_page_scraper.rb +0 -51
- data/test/test_graybook_importer_yahoo.rb +0 -137
- data/test/test_helper.rb +0 -71
- data/test/web.de_importer_test.rb +0 -53
- data/vendor/plugins/graybook/lib/autotest/discover.rb +0 -3
- data/vendor/plugins/graybook/lib/autotest/graybook.rb +0 -27
@@ -1,158 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
<html>
|
39
|
-
<head>
|
40
|
-
<SCRIPT LANGUAGE="JavaScript" SRC="http://sns-static.aolcdn.com/sns/3.5r2/js/mainValidations.js"></SCRIPT>
|
41
|
-
|
42
|
-
|
43
|
-
<script language="javascript" type="text/javascript">
|
44
|
-
prereqchecks('/badbrowser.psp?source=login&seamless=novl&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2&siteState=ver%3a2%7cac%3aWS%7cat%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us');
|
45
|
-
</script>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
<script type="text/javascript">
|
54
|
-
<!--
|
55
|
-
var s_account="aolsnssignin,aolsvc";
|
56
|
-
//-->
|
57
|
-
</script>
|
58
|
-
<script type="text/javascript" src="https://sns-static.aolcdn.com/omni/H.8/omniunih.js"></script>
|
59
|
-
<script type="text/javascript">
|
60
|
-
<!--
|
61
|
-
s_265.linkInternalFilters="javascript:,aol.com";
|
62
|
-
s_265.server="my.screenname.aol.com";
|
63
|
-
s_265.pfxID="sso";
|
64
|
-
s_265.pageName="sso : init_login";
|
65
|
-
s_265.channel="us.snssignin";
|
66
|
-
s_265.prop1='ssologin';
|
67
|
-
s_265.prop12="/snsInit.jsp";
|
68
|
-
s_265.prop16="sns.webmail.aol.com";
|
69
|
-
s_265.prop17="std";
|
70
|
-
s_265.prop18="2";
|
71
|
-
s_265.prop19="wa3";
|
72
|
-
s_265.prop20="en-us";
|
73
|
-
s_265.prop21="AOLPortal";
|
74
|
-
s_265.prop22=".aol.com";
|
75
|
-
var s_code=s_265.t();
|
76
|
-
if(s_code)document.write(s_code);
|
77
|
-
//-->
|
78
|
-
</script>
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
<noscript>
|
83
|
-
<p class="snsSmallText"><b> We are sorry, but you will need to enable cookies and Javascript to use your Screen Name with this site.</b><br/> Click <a href="/badbrowser.psp?source=login&seamless=novl&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2&siteState=ver%3a2%7cac%3aWS%7cat%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us">here</a> if your browser does not automatically redirect you.</p><meta HTTP-EQUIV=Refresh CONTENT="0; URL=/badbrowser.psp?source=login&seamless=novl&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2&siteState=ver%3a2%7cac%3aWS%7cat%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us"/>
|
84
|
-
</noscript>
|
85
|
-
</head>
|
86
|
-
<body>
|
87
|
-
|
88
|
-
<SCRIPT LANGUAGE="JavaScript" SRC="http://sns-static.aolcdn.com/sns/3.5r2/js/window.js"></SCRIPT>
|
89
|
-
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
90
|
-
var t;
|
91
|
-
var wsc_t;
|
92
|
-
var tryingWSC = 1;
|
93
|
-
var waitCounter = 0;
|
94
|
-
var tryingAIM = 1;
|
95
|
-
var MAX_WAIT_TIME = 15000;
|
96
|
-
function goToWaitPage() {
|
97
|
-
clearTimeout(t);
|
98
|
-
tryingAIM = 2;
|
99
|
-
if( tryingWSC == 0){
|
100
|
-
snsRedir("http://my.screenname.aol.com/_cqr/login/aimPrelogin.psp?seamless=novl&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2&siteState=ver%3a2%7cac%3aWS%7cat%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us");
|
101
|
-
} else {
|
102
|
-
}
|
103
|
-
}
|
104
|
-
function goToLoginUrl() {
|
105
|
-
clearTimeout(t);
|
106
|
-
tryingAIM = 0;
|
107
|
-
if( tryingWSC == 0){
|
108
|
-
snsRedir("https://my.screenname.aol.com/_cqr/login/login.psp?mcState=initialized&seamless=novl&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2&siteState=ver%3a2%7cac%3aWS%7cat%3aSNS%7cld%3awebmail.aol.com%7cuv%3aAOL%7clc%3aen-us");
|
109
|
-
} else {
|
110
|
-
}
|
111
|
-
}
|
112
|
-
function tryAIM() {
|
113
|
-
clearTimeout(wsc_t);
|
114
|
-
tryingWSC = 0;
|
115
|
-
if(tryingAIM == 1){
|
116
|
-
var timeout = '2000';
|
117
|
-
t=setTimeout("goToLoginUrl()",timeout);
|
118
|
-
window.defaultStatus=' ';
|
119
|
-
window.status=' ';
|
120
|
-
} else if(tryingAIM == 2){
|
121
|
-
goToWaitPage();
|
122
|
-
} else {
|
123
|
-
goToLoginUrl();
|
124
|
-
}
|
125
|
-
}
|
126
|
-
function continueLogin() {
|
127
|
-
tryingWSC = 0;
|
128
|
-
if( tryingAIM == 2 ) {
|
129
|
-
goToWaitPage();
|
130
|
-
} else {
|
131
|
-
goToLoginUrl();
|
132
|
-
}
|
133
|
-
}
|
134
|
-
wsc_t=setTimeout("continueLogin()",MAX_WAIT_TIME);
|
135
|
-
window.defaultStatus=' ';
|
136
|
-
window.status=' ';
|
137
|
-
</SCRIPT>
|
138
|
-
<!-- WSC Login - DISABLED -->
|
139
|
-
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
140
|
-
tryingWSC = 0;
|
141
|
-
tryAIM();
|
142
|
-
</SCRIPT>
|
143
|
-
<!-- AIM Login - DISABLED -->
|
144
|
-
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
145
|
-
// goto Login Page
|
146
|
-
tryingAIM = 0;
|
147
|
-
goToLoginUrl();
|
148
|
-
</SCRIPT>
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
</body>
|
156
|
-
</html>
|
157
|
-
|
158
|
-
|