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
data/lib/contacts/base.rb CHANGED
@@ -8,7 +8,7 @@ require "thread"
8
8
 
9
9
  class Contacts
10
10
  TYPES = {}
11
- VERSION = "1.0.5"
11
+ VERSION = "1.0.6"
12
12
 
13
13
  class Base
14
14
  def initialize(login, password)
@@ -135,6 +135,7 @@ class Contacts
135
135
  data = uncompress(resp, data)
136
136
  cookies = parse_cookies(resp.response['set-cookie'], cookies)
137
137
  forward = resp.response['Location']
138
+ forward ||= (data =~ /<meta.*?url='([^']+)'/ ? CGI.unescapeHTML($1) : nil)
138
139
  return data, resp, cookies, forward
139
140
  end
140
141
 
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
2
+ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: contacts
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.5
7
- date: 2007-08-28 00:00:00 -07:00
6
+ version: 1.0.6
7
+ date: 2007-10-29 00:00:00 -07:00
8
8
  summary: Ridiculously easy contact list information from various providers including Yahoo, Gmail, and Hotmail
9
9
  require_paths:
10
10
  - lib
@@ -25,62 +25,19 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
25
25
  platform: ruby
26
26
  signing_key:
27
27
  cert_chain:
28
+ post_install_message:
28
29
  authors:
29
30
  - Lucas Carlson
30
31
  files:
31
32
  - lib/contacts
32
- - lib/contacts.rb
33
33
  - lib/contacts/base.rb
34
- - lib/contacts/foo.diff
35
34
  - lib/contacts/gmail.rb
36
35
  - lib/contacts/hotmail.rb
37
36
  - lib/contacts/yahoo.rb
37
+ - lib/contacts.rb
38
38
  - LICENSE
39
39
  - Rakefile
40
40
  - README
41
- - doc/classes
42
- - doc/created.rid
43
- - doc/files
44
- - doc/fr_class_index.html
45
- - doc/fr_file_index.html
46
- - doc/fr_method_index.html
47
- - doc/index.html
48
- - doc/rdoc-style.css
49
- - doc/classes/Contacts
50
- - doc/classes/Contacts.html
51
- - doc/classes/Contacts.src
52
- - doc/classes/Contacts/AuthenticationError.html
53
- - doc/classes/Contacts/Base.html
54
- - doc/classes/Contacts/Base.src
55
- - doc/classes/Contacts/ConnectionError.html
56
- - doc/classes/Contacts/ContactsError.html
57
- - doc/classes/Contacts/Gmail.html
58
- - doc/classes/Contacts/Gmail.src
59
- - doc/classes/Contacts/Hotmail.html
60
- - doc/classes/Contacts/Hotmail.src
61
- - doc/classes/Contacts/TypeNotFound.html
62
- - doc/classes/Contacts/Yahoo.html
63
- - doc/classes/Contacts/Yahoo.src
64
- - doc/classes/Contacts/Base.src/M000006.html
65
- - doc/classes/Contacts/Base.src/M000007.html
66
- - doc/classes/Contacts/Base.src/M000008.html
67
- - doc/classes/Contacts/Base.src/M000009.html
68
- - doc/classes/Contacts/Base.src/M000010.html
69
- - doc/classes/Contacts/Base.src/M000011.html
70
- - doc/classes/Contacts/Gmail.src/M000005.html
71
- - doc/classes/Contacts/Hotmail.src/M000012.html
72
- - doc/classes/Contacts/Yahoo.src/M000003.html
73
- - doc/classes/Contacts/Yahoo.src/M000004.html
74
- - doc/classes/Contacts.src/M000001.html
75
- - doc/classes/Contacts.src/M000002.html
76
- - doc/files/lib
77
- - doc/files/README.html
78
- - doc/files/lib/contacts
79
- - doc/files/lib/contacts_rb.html
80
- - doc/files/lib/contacts/base_rb.html
81
- - doc/files/lib/contacts/gmail_rb.html
82
- - doc/files/lib/contacts/hotmail_rb.html
83
- - doc/files/lib/contacts/yahoo_rb.html
84
41
  - examples/grab_contacts.rb
85
42
  test_files: []
86
43
 
@@ -1,195 +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</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.5&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>
@@ -1,22 +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)</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 186</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>
@@ -1,24 +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>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 194</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>
@@ -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::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>