topsy 0.2.0 → 0.2.1

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.
Files changed (108) hide show
  1. data/.gitignore +2 -0
  2. data/README.markdown +3 -0
  3. data/Rakefile +8 -0
  4. data/TODO +1 -3
  5. data/VERSION +1 -1
  6. data/changelog.markdown +13 -2
  7. data/lib/topsy.rb +15 -15
  8. data/lib/topsy/client.rb +18 -8
  9. data/lib/topsy/linkpost.rb +10 -11
  10. data/lib/topsy/page.rb +12 -1
  11. data/test/fixtures/authorsearch-page2.json +115 -0
  12. data/test/fixtures/linkposts-page2.json +75 -0
  13. data/test/fixtures/search.json +1 -1
  14. data/test/test_topsy.rb +58 -18
  15. data/topsy.gemspec +5 -96
  16. metadata +4 -95
  17. data/.yardoc/checksums +0 -14
  18. data/.yardoc/objects/Topsy.dat +0 -0
  19. data/.yardoc/objects/Topsy/Author.dat +0 -0
  20. data/.yardoc/objects/Topsy/Author/to_s_i.dat +0 -0
  21. data/.yardoc/objects/Topsy/Author/type_i.dat +0 -0
  22. data/.yardoc/objects/Topsy/Client.dat +0 -0
  23. data/.yardoc/objects/Topsy/Client/author_info_i.dat +0 -0
  24. data/.yardoc/objects/Topsy/Client/author_search_i.dat +0 -0
  25. data/.yardoc/objects/Topsy/Client/credit_i.dat +0 -0
  26. data/.yardoc/objects/Topsy/Client/get_rate_limit_status_i.dat +0 -0
  27. data/.yardoc/objects/Topsy/Client/handle_response_i.dat +0 -0
  28. data/.yardoc/objects/Topsy/Client/link_post_count_i.dat +0 -0
  29. data/.yardoc/objects/Topsy/Client/link_posts_i.dat +0 -0
  30. data/.yardoc/objects/Topsy/Client/mashup_i.dat +0 -0
  31. data/.yardoc/objects/Topsy/Client/profile_search_i.dat +0 -0
  32. data/.yardoc/objects/Topsy/Client/raise_errors_i.dat +0 -0
  33. data/.yardoc/objects/Topsy/Client/related_i.dat +0 -0
  34. data/.yardoc/objects/Topsy/Client/search_count_i.dat +0 -0
  35. data/.yardoc/objects/Topsy/Client/search_i.dat +0 -0
  36. data/.yardoc/objects/Topsy/Client/stats_i.dat +0 -0
  37. data/.yardoc/objects/Topsy/Client/tags_i.dat +0 -0
  38. data/.yardoc/objects/Topsy/Client/trackbacks_i.dat +0 -0
  39. data/.yardoc/objects/Topsy/Client/trending_i.dat +0 -0
  40. data/.yardoc/objects/Topsy/Client/url_info_i.dat +0 -0
  41. data/.yardoc/objects/Topsy/LinkSearchResult.dat +0 -0
  42. data/.yardoc/objects/Topsy/LinkSearchResult/to_s_i.dat +0 -0
  43. data/.yardoc/objects/Topsy/Linkpost.dat +0 -0
  44. data/.yardoc/objects/Topsy/Linkpost/target_3D_i.dat +0 -0
  45. data/.yardoc/objects/Topsy/Linkpost/to_s_i.dat +0 -0
  46. data/.yardoc/objects/Topsy/LinkpostCount.dat +0 -0
  47. data/.yardoc/objects/Topsy/LinkpostCount/to_s_i.dat +0 -0
  48. data/.yardoc/objects/Topsy/Page.dat +0 -0
  49. data/.yardoc/objects/Topsy/Page/initialize_i.dat +0 -0
  50. data/.yardoc/objects/Topsy/Page/list_3D_i.dat +0 -0
  51. data/.yardoc/objects/Topsy/Page/to_s_i.dat +0 -0
  52. data/.yardoc/objects/Topsy/RateLimitInfo.dat +0 -0
  53. data/.yardoc/objects/Topsy/RateLimitInfo/refresh_in_seconds_i.dat +0 -0
  54. data/.yardoc/objects/Topsy/RateLimitInfo/reset_i.dat +0 -0
  55. data/.yardoc/objects/Topsy/SearchCounts.dat +0 -0
  56. data/.yardoc/objects/Topsy/SearchCounts/all_time_i.dat +0 -0
  57. data/.yardoc/objects/Topsy/SearchCounts/hour_i.dat +0 -0
  58. data/.yardoc/objects/Topsy/SearchCounts/month_i.dat +0 -0
  59. data/.yardoc/objects/Topsy/SearchCounts/overall_i.dat +0 -0
  60. data/.yardoc/objects/Topsy/SearchCounts/this_hour_i.dat +0 -0
  61. data/.yardoc/objects/Topsy/SearchCounts/this_month_i.dat +0 -0
  62. data/.yardoc/objects/Topsy/SearchCounts/this_week_i.dat +0 -0
  63. data/.yardoc/objects/Topsy/SearchCounts/today_i.dat +0 -0
  64. data/.yardoc/objects/Topsy/SearchCounts/week_i.dat +0 -0
  65. data/.yardoc/objects/Topsy/Stats.dat +0 -0
  66. data/.yardoc/objects/Topsy/Stats/to_s_i.dat +0 -0
  67. data/.yardoc/objects/Topsy/Tag.dat +0 -0
  68. data/.yardoc/objects/Topsy/Tag/to_s_i.dat +0 -0
  69. data/.yardoc/objects/Topsy/Target.dat +0 -0
  70. data/.yardoc/objects/Topsy/Target/to_s_i.dat +0 -0
  71. data/.yardoc/objects/Topsy/Trend.dat +0 -0
  72. data/.yardoc/objects/Topsy/Trend/to_s_i.dat +0 -0
  73. data/.yardoc/objects/Topsy/Tweet.dat +0 -0
  74. data/.yardoc/objects/Topsy/Tweet/author_3D_i.dat +0 -0
  75. data/.yardoc/objects/Topsy/Tweet/target_3D_i.dat +0 -0
  76. data/.yardoc/objects/Topsy/Tweet/to_s_i.dat +0 -0
  77. data/.yardoc/objects/Topsy/UrlInfo.dat +0 -0
  78. data/.yardoc/objects/Topsy/UrlInfo/to_s_i.dat +0 -0
  79. data/.yardoc/objects/root.dat +0 -0
  80. data/.yardoc/proxy_types +0 -0
  81. data/doc/Topsy.html +0 -112
  82. data/doc/Topsy/Author.html +0 -201
  83. data/doc/Topsy/Client.html +0 -2096
  84. data/doc/Topsy/LinkSearchResult.html +0 -152
  85. data/doc/Topsy/Linkpost.html +0 -209
  86. data/doc/Topsy/LinkpostCount.html +0 -152
  87. data/doc/Topsy/Page.html +0 -284
  88. data/doc/Topsy/RateLimitInfo.html +0 -201
  89. data/doc/Topsy/SearchCounts.html +0 -91
  90. data/doc/Topsy/Stats.html +0 -152
  91. data/doc/Topsy/Tag.html +0 -152
  92. data/doc/Topsy/Target.html +0 -152
  93. data/doc/Topsy/Trend.html +0 -152
  94. data/doc/Topsy/Tweet.html +0 -266
  95. data/doc/Topsy/UrlInfo.html +0 -152
  96. data/doc/_index.html +0 -245
  97. data/doc/class_list.html +0 -177
  98. data/doc/css/common.css +0 -1
  99. data/doc/css/full_list.css +0 -23
  100. data/doc/css/style.css +0 -263
  101. data/doc/file.README.html +0 -151
  102. data/doc/file_list.html +0 -29
  103. data/doc/index.html +0 -151
  104. data/doc/js/app.js +0 -91
  105. data/doc/js/full_list.js +0 -39
  106. data/doc/js/jquery.js +0 -19
  107. data/doc/method_list.html +0 -352
  108. data/doc/top-level-namespace.html +0 -79
data/doc/Topsy/Page.html DELETED
@@ -1,284 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
- <title>Class: Topsy::Page</title>
7
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
-
10
- <script type="text/javascript" charset="utf-8">
11
- relpath = '..';
12
- if (relpath != '') relpath += '/';
13
- </script>
14
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
-
17
- </head>
18
- <body>
19
- <div id="header">
20
- <div id="menu">
21
-
22
- <a href="../_index.html">Index (P)</a> &raquo;
23
- <a href="../Topsy.html" title="Topsy">Topsy</a>
24
- &raquo;
25
- <span class="title">Page</span>
26
-
27
- </div>
28
-
29
- <div id="search">
30
- <a id="class_list_link" href="#">Namespace List</a>
31
- <a id="method_list_link" href="#">Method List</a>
32
- <a id ="file_list_link" href="#">File List</a>
33
- </div>
34
-
35
- <div class="clear"></div>
36
- </div>
37
-
38
- <iframe id="search_frame"></iframe>
39
-
40
- <div id="content"><h1>Class: Topsy::Page
41
-
42
-
43
- </h1>
44
-
45
- <dl class="box">
46
-
47
- <dt class="r1">Inherits:</dt>
48
- <dd class="r1">
49
- <span class="inheritName">Hashie::Dash</span>
50
-
51
- <ul class="fullTree">
52
- <li>Object</li>
53
-
54
- <li class="next">Hashie::Dash</li>
55
-
56
- <li class="next">Topsy::Page</li>
57
-
58
- </ul>
59
- <a href="#" class="inheritanceTree">show all</a>
60
-
61
- </dd>
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
- <dt class="r2 last">Defined in:</dt>
71
- <dd class="r2 last">lib/topsy/page.rb</dd>
72
-
73
- </dl>
74
- <div class="clear"></div>
75
-
76
-
77
-
78
-
79
-
80
- <h2>Instance Method Summary</h2>
81
-
82
- <ul class="summary">
83
-
84
- <li class="public ">
85
- <span class="summary_signature">
86
-
87
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Page) <strong>initialize</strong>(content, klass) </a>
88
-
89
-
90
-
91
- </span>
92
-
93
- <span class="note title constructor">constructor</span>
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
- <span class="summary_desc">
102
- A new instance of Page.
103
-
104
- </span>
105
-
106
- </li>
107
-
108
-
109
- <li class="public ">
110
- <span class="summary_signature">
111
-
112
- <a href="#list%3D-instance_method" title="#list= (instance method)">- (Object) <strong>list=</strong>(value) </a>
113
-
114
-
115
-
116
- </span>
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
- <span class="summary_desc"></span>
125
-
126
- </li>
127
-
128
-
129
- <li class="public ">
130
- <span class="summary_signature">
131
-
132
- <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
133
-
134
-
135
-
136
- </span>
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
- <span class="summary_desc"></span>
145
-
146
- </li>
147
-
148
-
149
- </ul>
150
-
151
- <div id="constructor_details" class="method_details_list">
152
- <h2>Constructor Details</h2>
153
-
154
- <div class="method_details first">
155
- <p class="signature first" id="initialize-instance_method">
156
-
157
- - (<tt><a href="" title="Page">Page</a></tt>) <strong>initialize</strong>(content, klass)
158
-
159
-
160
-
161
- </p><div class="docstring">
162
- <div class="discussion">
163
- <p>
164
- A new instance of Page
165
- </p>
166
-
167
-
168
- </div>
169
- </div>
170
- <div class="tags">
171
-
172
- </div><table class="source_code">
173
- <tr>
174
- <td>
175
- <pre class="lines">
176
-
177
-
178
- 24
179
- 25
180
- 26
181
- 27</pre>
182
- </td>
183
- <td>
184
- <pre class="code"><span class="info file"># File 'lib/topsy/page.rb', line 24</span>
185
-
186
- <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='content identifier id'>content</span><span class='comma token'>,</span> <span class='klass identifier id'>klass</span><span class='rparen token'>)</span>
187
- <span class='@klass ivar id'>@klass</span> <span class='assign token'>=</span> <span class='klass identifier id'>klass</span>
188
- <span class='super super kw'>super</span><span class='lparen token'>(</span><span class='content identifier id'>content</span><span class='rparen token'>)</span>
189
- <span class='end end kw'>end</span>
190
- </pre>
191
- </td>
192
- </tr>
193
- </table>
194
- </div>
195
-
196
- </div>
197
-
198
-
199
- <div id="instance_method_details" class="method_details_list">
200
- <h2>Instance Method Details</h2>
201
-
202
-
203
- <div class="method_details first">
204
- <p class="signature first" id="list=-instance_method">
205
-
206
- - (<tt>Object</tt>) <strong>list=</strong>(value)
207
-
208
-
209
-
210
- </p><table class="source_code">
211
- <tr>
212
- <td>
213
- <pre class="lines">
214
-
215
-
216
- 29
217
- 30
218
- 31
219
- 32
220
- 33
221
- 34
222
- 35
223
- 36
224
- 37</pre>
225
- </td>
226
- <td>
227
- <pre class="code"><span class="info file"># File 'lib/topsy/page.rb', line 29</span>
228
-
229
- <span class='def def kw'>def</span> <span class='list= identifier id'>list=</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='rparen token'>)</span>
230
- <span class='result identifier id'>result</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
231
- <span class='if if kw'>if</span> <span class='value identifier id'>value</span>
232
- <span class='value identifier id'>value</span><span class='dot token'>.</span><span class='each identifier id'>each</span><span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='x identifier id'>x</span><span class='bitor op'>|</span> <span class='result identifier id'>result</span> <span class='lshft op'>&lt;&lt;</span> <span class='@klass ivar id'>@klass</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='x identifier id'>x</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
233
- <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='symbol val'>:list</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='result identifier id'>result</span>
234
- <span class='else else kw'>else</span>
235
- <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='symbol val'>:list</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='value identifier id'>value</span>
236
- <span class='end end kw'>end</span>
237
- <span class='end end kw'>end</span>
238
- </pre>
239
- </td>
240
- </tr>
241
- </table>
242
- </div>
243
-
244
- <div class="method_details ">
245
- <p class="signature " id="to_s-instance_method">
246
-
247
- - (<tt>Object</tt>) <strong>to_s</strong>
248
-
249
-
250
-
251
- </p><table class="source_code">
252
- <tr>
253
- <td>
254
- <pre class="lines">
255
-
256
-
257
- 20
258
- 21
259
- 22</pre>
260
- </td>
261
- <td>
262
- <pre class="code"><span class="info file"># File 'lib/topsy/page.rb', line 20</span>
263
-
264
- <span class='def def kw'>def</span> <span class='to_s identifier id'>to_s</span>
265
- <span class='dstring node'>&quot;Topsy Page: #{page} of #{total}, #{list.size} authors&quot;</span>
266
- <span class='end end kw'>end</span>
267
- </pre>
268
- </td>
269
- </tr>
270
- </table>
271
- </div>
272
-
273
- </div>
274
-
275
- </div>
276
-
277
- <div id="footer">
278
- Generated on Wed Jan 6 10:31:57 2010 by
279
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
280
- 0.5.2 (ruby-1.8.6).
281
- </div>
282
-
283
- </body>
284
- </html>
@@ -1,201 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
- <title>Class: Topsy::RateLimitInfo</title>
7
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
-
10
- <script type="text/javascript" charset="utf-8">
11
- relpath = '..';
12
- if (relpath != '') relpath += '/';
13
- </script>
14
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
15
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
16
-
17
- </head>
18
- <body>
19
- <div id="header">
20
- <div id="menu">
21
-
22
- <a href="../_index.html">Index (R)</a> &raquo;
23
- <a href="../Topsy.html" title="Topsy">Topsy</a>
24
- &raquo;
25
- <span class="title">RateLimitInfo</span>
26
-
27
- </div>
28
-
29
- <div id="search">
30
- <a id="class_list_link" href="#">Namespace List</a>
31
- <a id="method_list_link" href="#">Method List</a>
32
- <a id ="file_list_link" href="#">File List</a>
33
- </div>
34
-
35
- <div class="clear"></div>
36
- </div>
37
-
38
- <iframe id="search_frame"></iframe>
39
-
40
- <div id="content"><h1>Class: Topsy::RateLimitInfo
41
-
42
-
43
- </h1>
44
-
45
- <dl class="box">
46
-
47
- <dt class="r1">Inherits:</dt>
48
- <dd class="r1">
49
- <span class="inheritName">Hashie::Dash</span>
50
-
51
- <ul class="fullTree">
52
- <li>Object</li>
53
-
54
- <li class="next">Hashie::Dash</li>
55
-
56
- <li class="next">Topsy::RateLimitInfo</li>
57
-
58
- </ul>
59
- <a href="#" class="inheritanceTree">show all</a>
60
-
61
- </dd>
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
- <dt class="r2 last">Defined in:</dt>
71
- <dd class="r2 last">lib/topsy/rate_limit_info.rb</dd>
72
-
73
- </dl>
74
- <div class="clear"></div>
75
-
76
-
77
-
78
-
79
-
80
- <h2>Instance Method Summary</h2>
81
-
82
- <ul class="summary">
83
-
84
- <li class="public ">
85
- <span class="summary_signature">
86
-
87
- <a href="#refresh_in_seconds-instance_method" title="#refresh_in_seconds (instance method)">- (Object) <strong>refresh_in_seconds</strong> </a>
88
-
89
-
90
-
91
- </span>
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
- <span class="summary_desc"></span>
100
-
101
- </li>
102
-
103
-
104
- <li class="public ">
105
- <span class="summary_signature">
106
-
107
- <a href="#reset-instance_method" title="#reset (instance method)">- (Object) <strong>reset</strong> </a>
108
-
109
-
110
-
111
- </span>
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
- <span class="summary_desc"></span>
120
-
121
- </li>
122
-
123
-
124
- </ul>
125
-
126
-
127
-
128
- <div id="instance_method_details" class="method_details_list">
129
- <h2>Instance Method Details</h2>
130
-
131
-
132
- <div class="method_details first">
133
- <p class="signature first" id="refresh_in_seconds-instance_method">
134
-
135
- - (<tt>Object</tt>) <strong>refresh_in_seconds</strong>
136
-
137
-
138
-
139
- </p><table class="source_code">
140
- <tr>
141
- <td>
142
- <pre class="lines">
143
-
144
-
145
- 9
146
- 10
147
- 11</pre>
148
- </td>
149
- <td>
150
- <pre class="code"><span class="info file"># File 'lib/topsy/rate_limit_info.rb', line 9</span>
151
-
152
- <span class='def def kw'>def</span> <span class='refresh_in_seconds identifier id'>refresh_in_seconds</span>
153
- <span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='at identifier id'>at</span><span class='lparen token'>(</span><span class='reset identifier id'>reset</span><span class='rparen token'>)</span> <span class='minus op'>-</span> <span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='now identifier id'>now</span>
154
- <span class='end end kw'>end</span>
155
- </pre>
156
- </td>
157
- </tr>
158
- </table>
159
- </div>
160
-
161
- <div class="method_details ">
162
- <p class="signature " id="reset-instance_method">
163
-
164
- - (<tt>Object</tt>) <strong>reset</strong>
165
-
166
-
167
-
168
- </p><table class="source_code">
169
- <tr>
170
- <td>
171
- <pre class="lines">
172
-
173
-
174
- 13
175
- 14
176
- 15</pre>
177
- </td>
178
- <td>
179
- <pre class="code"><span class="info file"># File 'lib/topsy/rate_limit_info.rb', line 13</span>
180
-
181
- <span class='def def kw'>def</span> <span class='reset identifier id'>reset</span>
182
- <span class='Time constant id'>Time</span><span class='dot token'>.</span><span class='at identifier id'>at</span><span class='lparen token'>(</span><span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='symbol val'>:reset</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='unless unless_mod kw'>unless</span> <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='symbol val'>:reset</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span><span class='lparen token'>(</span><span class='symbol val'>:year</span><span class='rparen token'>)</span>
183
- <span class='end end kw'>end</span>
184
- </pre>
185
- </td>
186
- </tr>
187
- </table>
188
- </div>
189
-
190
- </div>
191
-
192
- </div>
193
-
194
- <div id="footer">
195
- Generated on Wed Jan 6 10:31:54 2010 by
196
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
197
- 0.5.2 (ruby-1.8.6).
198
- </div>
199
-
200
- </body>
201
- </html>