contacts 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/doc/classes/Contacts.html +195 -0
  2. data/doc/classes/Contacts.src/M000001.html +22 -0
  3. data/doc/classes/Contacts.src/M000002.html +24 -0
  4. data/doc/classes/Contacts/AuthenticationError.html +113 -0
  5. data/doc/classes/Contacts/Base.html +214 -0
  6. data/doc/classes/Contacts/Base.src/M000005.html +20 -0
  7. data/doc/classes/Contacts/Base.src/M000006.html +19 -0
  8. data/doc/classes/Contacts/Base.src/M000007.html +18 -0
  9. data/doc/classes/Contacts/Base.src/M000008.html +35 -0
  10. data/doc/classes/Contacts/Base.src/M000009.html +29 -0
  11. data/doc/classes/Contacts/Base.src/M000010.html +18 -0
  12. data/doc/classes/Contacts/ConnectionError.html +113 -0
  13. data/doc/classes/Contacts/ContactsError.html +111 -0
  14. data/doc/classes/Contacts/Gmail.html +172 -0
  15. data/doc/classes/Contacts/Gmail.src/M000004.html +60 -0
  16. data/doc/classes/Contacts/Hotmail.html +167 -0
  17. data/doc/classes/Contacts/Hotmail.src/M000011.html +63 -0
  18. data/doc/classes/Contacts/TypeNotFound.html +113 -0
  19. data/doc/classes/Contacts/Yahoo.html +167 -0
  20. data/doc/classes/Contacts/Yahoo.src/M000003.html +41 -0
  21. data/doc/created.rid +1 -0
  22. data/doc/files/README.html +168 -0
  23. data/doc/files/lib/contacts/base_rb.html +111 -0
  24. data/doc/files/lib/contacts/gmail_rb.html +108 -0
  25. data/doc/files/lib/contacts/hotmail_rb.html +101 -0
  26. data/doc/files/lib/contacts/yahoo_rb.html +108 -0
  27. data/doc/files/lib/contacts_rb.html +112 -0
  28. data/doc/fr_class_index.html +35 -0
  29. data/doc/fr_file_index.html +32 -0
  30. data/doc/fr_method_index.html +37 -0
  31. data/doc/index.html +24 -0
  32. data/doc/rdoc-style.css +208 -0
  33. data/lib/contacts/base.rb +1 -1
  34. data/lib/contacts/gmail.rb +1 -1
  35. data/lib/contacts/hotmail.rb +1 -1
  36. data/lib/contacts/yahoo.rb +8 -15
  37. metadata +44 -2
@@ -0,0 +1,195 @@
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</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</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
+ <a href="../files/lib/contacts/gmail_rb.html">
63
+ lib/contacts/gmail.rb
64
+ </a>
65
+ <br />
66
+ <a href="../files/lib/contacts/hotmail_rb.html">
67
+ lib/contacts/hotmail.rb
68
+ </a>
69
+ <br />
70
+ <a href="../files/lib/contacts/yahoo_rb.html">
71
+ lib/contacts/yahoo.rb
72
+ </a>
73
+ <br />
74
+ </td>
75
+ </tr>
76
+
77
+ <tr class="top-aligned-row">
78
+ <td><strong>Parent:</strong></td>
79
+ <td>
80
+ Object
81
+ </td>
82
+ </tr>
83
+ </table>
84
+ </div>
85
+ <!-- banner header -->
86
+
87
+ <div id="bodyContent">
88
+
89
+
90
+
91
+ <div id="contextContent">
92
+
93
+
94
+
95
+ </div>
96
+
97
+ <div id="method-list">
98
+ <h3 class="section-bar">Methods</h3>
99
+
100
+ <div class="name-list">
101
+ <a href="#M000002">guess</a>&nbsp;&nbsp;
102
+ <a href="#M000001">new</a>&nbsp;&nbsp;
103
+ </div>
104
+ </div>
105
+
106
+ </div>
107
+
108
+
109
+ <!-- if includes -->
110
+
111
+ <div id="section">
112
+
113
+ <div id="class-list">
114
+ <h3 class="section-bar">Classes and Modules</h3>
115
+
116
+ Class <a href="Contacts/AuthenticationError.html" class="link">Contacts::AuthenticationError</a><br />
117
+ Class <a href="Contacts/Base.html" class="link">Contacts::Base</a><br />
118
+ Class <a href="Contacts/ConnectionError.html" class="link">Contacts::ConnectionError</a><br />
119
+ Class <a href="Contacts/ContactsError.html" class="link">Contacts::ContactsError</a><br />
120
+ Class <a href="Contacts/Gmail.html" class="link">Contacts::Gmail</a><br />
121
+ Class <a href="Contacts/Hotmail.html" class="link">Contacts::Hotmail</a><br />
122
+ Class <a href="Contacts/TypeNotFound.html" class="link">Contacts::TypeNotFound</a><br />
123
+ Class <a href="Contacts/Yahoo.html" class="link">Contacts::Yahoo</a><br />
124
+
125
+ </div>
126
+
127
+ <div id="constants-list">
128
+ <h3 class="section-bar">Constants</h3>
129
+
130
+ <div class="name-list">
131
+ <table summary="Constants">
132
+ <tr class="top-aligned-row context-row">
133
+ <td class="context-item-name">TYPES</td>
134
+ <td>=</td>
135
+ <td class="context-item-value">{}</td>
136
+ </tr>
137
+ <tr class="top-aligned-row context-row">
138
+ <td class="context-item-name">VERSION</td>
139
+ <td>=</td>
140
+ <td class="context-item-value">&quot;1.0.1&quot;</td>
141
+ </tr>
142
+ </table>
143
+ </div>
144
+ </div>
145
+
146
+
147
+
148
+
149
+
150
+
151
+ <!-- if method_list -->
152
+ <div id="methods">
153
+ <h3 class="section-bar">Public Class methods</h3>
154
+
155
+ <div id="method-M000002" class="method-detail">
156
+ <a name="M000002"></a>
157
+
158
+ <div class="method-heading">
159
+ <a href="Contacts.src/M000002.html" target="Code" class="method-signature"
160
+ onclick="popupCode('Contacts.src/M000002.html');return false;">
161
+ <span class="method-name">guess</span><span class="method-args">(login, password)</span>
162
+ </a>
163
+ </div>
164
+
165
+ <div class="method-description">
166
+ </div>
167
+ </div>
168
+
169
+ <div id="method-M000001" class="method-detail">
170
+ <a name="M000001"></a>
171
+
172
+ <div class="method-heading">
173
+ <a href="Contacts.src/M000001.html" target="Code" class="method-signature"
174
+ onclick="popupCode('Contacts.src/M000001.html');return false;">
175
+ <span class="method-name">new</span><span class="method-args">(type, login, password)</span>
176
+ </a>
177
+ </div>
178
+
179
+ <div class="method-description">
180
+ </div>
181
+ </div>
182
+
183
+
184
+ </div>
185
+
186
+
187
+ </div>
188
+
189
+
190
+ <div id="validator-badges">
191
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
192
+ </div>
193
+
194
+ </body>
195
+ </html>
@@ -0,0 +1,22 @@
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)</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 154</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">login</span>, <span class="ruby-identifier">password</span>)
15
+ <span class="ruby-keyword kw">if</span> <span class="ruby-constant">TYPES</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">intern</span>)
16
+ <span class="ruby-constant">TYPES</span>[<span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">intern</span>].<span class="ruby-identifier">new</span>(<span class="ruby-identifier">login</span>, <span class="ruby-identifier">password</span>)
17
+ <span class="ruby-keyword kw">else</span>
18
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeNotFound</span>, <span class="ruby-node">&quot;#{type.inspect} is not a valid type, please choose one of the following: #{TYPES.keys.inspect}&quot;</span>
19
+ <span class="ruby-keyword kw">end</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,24 @@
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>guess (Contacts)</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 162</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">guess</span>(<span class="ruby-identifier">login</span>, <span class="ruby-identifier">password</span>)
15
+ <span class="ruby-constant">TYPES</span>.<span class="ruby-identifier">inject</span>([]) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>, <span class="ruby-identifier">t</span><span class="ruby-operator">|</span>
16
+ <span class="ruby-keyword kw">begin</span>
17
+ <span class="ruby-identifier">a</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">t</span>[<span class="ruby-value">1</span>].<span class="ruby-identifier">new</span>(<span class="ruby-identifier">login</span>, <span class="ruby-identifier">password</span>).<span class="ruby-identifier">contacts</span>
18
+ <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">AuthenticationError</span>
19
+ <span class="ruby-identifier">a</span>
20
+ <span class="ruby-keyword kw">end</span>
21
+ <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">uniq</span>
22
+ <span class="ruby-keyword kw">end</span></pre>
23
+ </body>
24
+ </html>
@@ -0,0 +1,113 @@
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::AuthenticationError</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::AuthenticationError</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>
@@ -0,0 +1,214 @@
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="#M000006">connect</a>&nbsp;&nbsp;
90
+ <a href="#M000007">connected?</a>&nbsp;&nbsp;
91
+ <a href="#M000008">contacts</a>&nbsp;&nbsp;
92
+ <a href="#M000009">login</a>&nbsp;&nbsp;
93
+ <a href="#M000005">new</a>&nbsp;&nbsp;
94
+ <a href="#M000010">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-M000005" class="method-detail">
117
+ <a name="M000005"></a>
118
+
119
+ <div class="method-heading">
120
+ <a href="Base.src/M000005.html" target="Code" class="method-signature"
121
+ onclick="popupCode('Base.src/M000005.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-M000006" class="method-detail">
133
+ <a name="M000006"></a>
134
+
135
+ <div class="method-heading">
136
+ <a href="Base.src/M000006.html" target="Code" class="method-signature"
137
+ onclick="popupCode('Base.src/M000006.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-M000007" class="method-detail">
147
+ <a name="M000007"></a>
148
+
149
+ <div class="method-heading">
150
+ <a href="Base.src/M000007.html" target="Code" class="method-signature"
151
+ onclick="popupCode('Base.src/M000007.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-M000008" class="method-detail">
161
+ <a name="M000008"></a>
162
+
163
+ <div class="method-heading">
164
+ <a href="Base.src/M000008.html" target="Code" class="method-signature"
165
+ onclick="popupCode('Base.src/M000008.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-M000009" class="method-detail">
175
+ <a name="M000009"></a>
176
+
177
+ <div class="method-heading">
178
+ <a href="Base.src/M000009.html" target="Code" class="method-signature"
179
+ onclick="popupCode('Base.src/M000009.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-M000010" class="method-detail">
189
+ <a name="M000010"></a>
190
+
191
+ <div class="method-heading">
192
+ <a href="Base.src/M000010.html" target="Code" class="method-signature"
193
+ onclick="popupCode('Base.src/M000010.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>