contacts 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/lib/contacts/base.rb +2 -1
  2. metadata +5 -48
  3. data/doc/classes/Contacts.html +0 -195
  4. data/doc/classes/Contacts.src/M000001.html +0 -22
  5. data/doc/classes/Contacts.src/M000002.html +0 -24
  6. data/doc/classes/Contacts/AuthenticationError.html +0 -113
  7. data/doc/classes/Contacts/Base.html +0 -214
  8. data/doc/classes/Contacts/Base.src/M000006.html +0 -21
  9. data/doc/classes/Contacts/Base.src/M000007.html +0 -19
  10. data/doc/classes/Contacts/Base.src/M000008.html +0 -18
  11. data/doc/classes/Contacts/Base.src/M000009.html +0 -31
  12. data/doc/classes/Contacts/Base.src/M000010.html +0 -29
  13. data/doc/classes/Contacts/Base.src/M000011.html +0 -18
  14. data/doc/classes/Contacts/ConnectionError.html +0 -113
  15. data/doc/classes/Contacts/ContactsError.html +0 -111
  16. data/doc/classes/Contacts/Gmail.html +0 -172
  17. data/doc/classes/Contacts/Gmail.src/M000005.html +0 -60
  18. data/doc/classes/Contacts/Hotmail.html +0 -182
  19. data/doc/classes/Contacts/Hotmail.src/M000012.html +0 -74
  20. data/doc/classes/Contacts/TypeNotFound.html +0 -113
  21. data/doc/classes/Contacts/Yahoo.html +0 -187
  22. data/doc/classes/Contacts/Yahoo.src/M000003.html +0 -41
  23. data/doc/classes/Contacts/Yahoo.src/M000004.html +0 -45
  24. data/doc/created.rid +0 -1
  25. data/doc/files/README.html +0 -168
  26. data/doc/files/lib/contacts/base_rb.html +0 -114
  27. data/doc/files/lib/contacts/gmail_rb.html +0 -108
  28. data/doc/files/lib/contacts/hotmail_rb.html +0 -101
  29. data/doc/files/lib/contacts/yahoo_rb.html +0 -108
  30. data/doc/files/lib/contacts_rb.html +0 -112
  31. data/doc/fr_class_index.html +0 -35
  32. data/doc/fr_file_index.html +0 -32
  33. data/doc/fr_method_index.html +0 -38
  34. data/doc/index.html +0 -24
  35. data/doc/rdoc-style.css +0 -208
  36. data/lib/contacts/foo.diff +0 -156
@@ -1,214 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Contacts::Base</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Contacts::Base</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/contacts/base_rb.html">
59
- lib/contacts/base.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
-
82
-
83
- </div>
84
-
85
- <div id="method-list">
86
- <h3 class="section-bar">Methods</h3>
87
-
88
- <div class="name-list">
89
- <a href="#M000007">connect</a>&nbsp;&nbsp;
90
- <a href="#M000008">connected?</a>&nbsp;&nbsp;
91
- <a href="#M000009">contacts</a>&nbsp;&nbsp;
92
- <a href="#M000010">login</a>&nbsp;&nbsp;
93
- <a href="#M000006">new</a>&nbsp;&nbsp;
94
- <a href="#M000011">password</a>&nbsp;&nbsp;
95
- </div>
96
- </div>
97
-
98
- </div>
99
-
100
-
101
- <!-- if includes -->
102
-
103
- <div id="section">
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- <!-- if method_list -->
113
- <div id="methods">
114
- <h3 class="section-bar">Public Class methods</h3>
115
-
116
- <div id="method-M000006" class="method-detail">
117
- <a name="M000006"></a>
118
-
119
- <div class="method-heading">
120
- <a href="Base.src/M000006.html" target="Code" class="method-signature"
121
- onclick="popupCode('Base.src/M000006.html');return false;">
122
- <span class="method-name">new</span><span class="method-args">(login, password)</span>
123
- </a>
124
- </div>
125
-
126
- <div class="method-description">
127
- </div>
128
- </div>
129
-
130
- <h3 class="section-bar">Public Instance methods</h3>
131
-
132
- <div id="method-M000007" class="method-detail">
133
- <a name="M000007"></a>
134
-
135
- <div class="method-heading">
136
- <a href="Base.src/M000007.html" target="Code" class="method-signature"
137
- onclick="popupCode('Base.src/M000007.html');return false;">
138
- <span class="method-name">connect</span><span class="method-args">()</span>
139
- </a>
140
- </div>
141
-
142
- <div class="method-description">
143
- </div>
144
- </div>
145
-
146
- <div id="method-M000008" class="method-detail">
147
- <a name="M000008"></a>
148
-
149
- <div class="method-heading">
150
- <a href="Base.src/M000008.html" target="Code" class="method-signature"
151
- onclick="popupCode('Base.src/M000008.html');return false;">
152
- <span class="method-name">connected?</span><span class="method-args">()</span>
153
- </a>
154
- </div>
155
-
156
- <div class="method-description">
157
- </div>
158
- </div>
159
-
160
- <div id="method-M000009" class="method-detail">
161
- <a name="M000009"></a>
162
-
163
- <div class="method-heading">
164
- <a href="Base.src/M000009.html" target="Code" class="method-signature"
165
- onclick="popupCode('Base.src/M000009.html');return false;">
166
- <span class="method-name">contacts</span><span class="method-args">()</span>
167
- </a>
168
- </div>
169
-
170
- <div class="method-description">
171
- </div>
172
- </div>
173
-
174
- <div id="method-M000010" class="method-detail">
175
- <a name="M000010"></a>
176
-
177
- <div class="method-heading">
178
- <a href="Base.src/M000010.html" target="Code" class="method-signature"
179
- onclick="popupCode('Base.src/M000010.html');return false;">
180
- <span class="method-name">login</span><span class="method-args">()</span>
181
- </a>
182
- </div>
183
-
184
- <div class="method-description">
185
- </div>
186
- </div>
187
-
188
- <div id="method-M000011" class="method-detail">
189
- <a name="M000011"></a>
190
-
191
- <div class="method-heading">
192
- <a href="Base.src/M000011.html" target="Code" class="method-signature"
193
- onclick="popupCode('Base.src/M000011.html');return false;">
194
- <span class="method-name">password</span><span class="method-args">()</span>
195
- </a>
196
- </div>
197
-
198
- <div class="method-description">
199
- </div>
200
- </div>
201
-
202
-
203
- </div>
204
-
205
-
206
- </div>
207
-
208
-
209
- <div id="validator-badges">
210
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
211
- </div>
212
-
213
- </body>
214
- </html>
@@ -1,21 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>new (Contacts::Base)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/contacts/base.rb, line 14</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">login</span>, <span class="ruby-identifier">password</span>)
15
- <span class="ruby-ivar">@login</span> = <span class="ruby-identifier">login</span>
16
- <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
17
- <span class="ruby-ivar">@connections</span> = {}
18
- <span class="ruby-identifier">connect</span>
19
- <span class="ruby-keyword kw">end</span></pre>
20
- </body>
21
- </html>
@@ -1,19 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>connect (Contacts::Base)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/contacts/base.rb, line 21</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">connect</span>
15
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">AuthenticationError</span>, <span class="ruby-node">&quot;Login and password must not be nil, login: #{@login.inspect}, password: #{@password.inspect}&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@login</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-ivar">@password</span>.<span class="ruby-identifier">nil?</span>
16
- <span class="ruby-identifier">real_connect</span>
17
- <span class="ruby-keyword kw">end</span></pre>
18
- </body>
19
- </html>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>connected? (Contacts::Base)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/contacts/base.rb, line 26</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">connected?</span>
15
- <span class="ruby-ivar">@cookies</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@cookies</span>.<span class="ruby-identifier">empty?</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,31 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>contacts (Contacts::Base)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/contacts/base.rb, line 30</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contacts</span>
15
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@contacts</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@contacts</span>
16
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">connected?</span>
17
- <span class="ruby-identifier">url</span> = <span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">contact_list_url</span>)
18
- <span class="ruby-identifier">http</span> = <span class="ruby-identifier">open_http</span>(<span class="ruby-identifier">url</span>)
19
- <span class="ruby-identifier">resp</span>, <span class="ruby-identifier">data</span> = <span class="ruby-identifier">http</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">&quot;#{url.path}?#{url.query}&quot;</span>,
20
- <span class="ruby-value str">&quot;Cookie&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-ivar">@cookies</span>
21
- )
22
-
23
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">resp</span>.<span class="ruby-identifier">code_type</span> <span class="ruby-operator">!=</span> <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTPOK</span>
24
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ConnectionError</span>, <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">:PROTOCOL_ERROR</span>)
25
- <span class="ruby-keyword kw">end</span>
26
-
27
- <span class="ruby-identifier">parse</span> <span class="ruby-identifier">data</span>
28
- <span class="ruby-keyword kw">end</span>
29
- <span class="ruby-keyword kw">end</span></pre>
30
- </body>
31
- </html>
@@ -1,29 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>login (Contacts::Base)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/contacts/base.rb, line 47</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">login</span>
15
- <span class="ruby-ivar">@attempt</span> <span class="ruby-operator">||=</span> <span class="ruby-value">0</span>
16
- <span class="ruby-ivar">@attempt</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
17
-
18
- <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@attempt</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
19
- <span class="ruby-ivar">@login</span>
20
- <span class="ruby-keyword kw">else</span>
21
- <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@login</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-node">&quot;@#{domain}&quot;</span>)
22
- <span class="ruby-ivar">@login</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-node">&quot;@#{domain}&quot;</span>,<span class="ruby-value str">&quot;&quot;</span>)
23
- <span class="ruby-keyword kw">else</span>
24
- <span class="ruby-node">&quot;#{@login}@#{domain}&quot;</span>
25
- <span class="ruby-keyword kw">end</span>
26
- <span class="ruby-keyword kw">end</span>
27
- <span class="ruby-keyword kw">end</span></pre>
28
- </body>
29
- </html>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html>
7
- <head>
8
- <title>password (Contacts::Base)</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
- </head>
12
- <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/contacts/base.rb, line 62</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">password</span>
15
- <span class="ruby-ivar">@password</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,113 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Contacts::ConnectionError</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Contacts::ConnectionError</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/contacts/base_rb.html">
59
- lib/contacts/base.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="ContactsError.html">
69
- ContactsError
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
-
88
- </div>
89
-
90
-
91
- <!-- if includes -->
92
-
93
- <div id="section">
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
- <!-- if method_list -->
103
-
104
-
105
- </div>
106
-
107
-
108
- <div id="validator-badges">
109
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
110
- </div>
111
-
112
- </body>
113
- </html>