topsy 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
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/_index.html DELETED
@@ -1,245 +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>Documentation by YARD 0.5.2</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
-
23
- <span class="title"></span>
24
-
25
- </div>
26
-
27
- <div id="search">
28
- <a id="class_list_link" href="#">Namespace List</a>
29
- <a id="method_list_link" href="#">Method List</a>
30
- <a id ="file_list_link" href="#">File List</a>
31
- </div>
32
-
33
- <div class="clear"></div>
34
- </div>
35
-
36
- <iframe id="search_frame"></iframe>
37
-
38
- <div id="content"><div id="listing">
39
- <h1 class="noborder title">Documentation by YARD 0.5.2</h1>
40
- <h1 class="alphaindex">Alphabetic Index</h1>
41
-
42
-
43
- <h2>File Listing</h2>
44
- <ul id="files">
45
-
46
-
47
- <li class="r1"><a href="index.html" title="README">README</a></li>
48
-
49
-
50
- </ul>
51
-
52
- <div class="clear"></div>
53
-
54
- <h2>Namespace Listing A-Z</h2>
55
-
56
-
57
-
58
-
59
- <table>
60
- <tr>
61
- <td valign='top' width="33%">
62
-
63
-
64
- <ul id="alpha_A" class="alpha">
65
- <li class="letter">A</li>
66
- <ul>
67
-
68
- <li>
69
- <a href="Topsy/Author.html" title="Author">Author</a>
70
-
71
- <small>(Topsy)</small>
72
-
73
- </li>
74
-
75
- </ul>
76
- </ul>
77
-
78
-
79
- <ul id="alpha_C" class="alpha">
80
- <li class="letter">C</li>
81
- <ul>
82
-
83
- <li>
84
- <a href="Topsy/Client.html" title="Client">Client</a>
85
-
86
- <small>(Topsy)</small>
87
-
88
- </li>
89
-
90
- </ul>
91
- </ul>
92
-
93
-
94
- <ul id="alpha_L" class="alpha">
95
- <li class="letter">L</li>
96
- <ul>
97
-
98
- <li>
99
- <a href="Topsy/LinkSearchResult.html" title="LinkSearchResult">LinkSearchResult</a>
100
-
101
- <small>(Topsy)</small>
102
-
103
- </li>
104
-
105
- <li>
106
- <a href="Topsy/Linkpost.html" title="Linkpost">Linkpost</a>
107
-
108
- <small>(Topsy)</small>
109
-
110
- </li>
111
-
112
- <li>
113
- <a href="Topsy/LinkpostCount.html" title="LinkpostCount">LinkpostCount</a>
114
-
115
- <small>(Topsy)</small>
116
-
117
- </li>
118
-
119
- </ul>
120
- </ul>
121
-
122
-
123
- <ul id="alpha_P" class="alpha">
124
- <li class="letter">P</li>
125
- <ul>
126
-
127
- <li>
128
- <a href="Topsy/Page.html" title="Page">Page</a>
129
-
130
- <small>(Topsy)</small>
131
-
132
- </li>
133
-
134
- </ul>
135
- </ul>
136
-
137
-
138
- <ul id="alpha_R" class="alpha">
139
- <li class="letter">R</li>
140
- <ul>
141
-
142
- <li>
143
- <a href="Topsy/RateLimitInfo.html" title="RateLimitInfo">RateLimitInfo</a>
144
-
145
- <small>(Topsy)</small>
146
-
147
- </li>
148
-
149
- </ul>
150
- </ul>
151
-
152
-
153
- <ul id="alpha_S" class="alpha">
154
- <li class="letter">S</li>
155
- <ul>
156
-
157
- <li>
158
- <a href="Topsy/SearchCounts.html" title="SearchCounts">SearchCounts</a>
159
-
160
- <small>(Topsy)</small>
161
-
162
- </li>
163
-
164
- <li>
165
- <a href="Topsy/Stats.html" title="Stats">Stats</a>
166
-
167
- <small>(Topsy)</small>
168
-
169
- </li>
170
-
171
- </ul>
172
- </ul>
173
-
174
-
175
- <ul id="alpha_T" class="alpha">
176
- <li class="letter">T</li>
177
- <ul>
178
-
179
- <li>
180
- <a href="Topsy/Tag.html" title="Tag">Tag</a>
181
-
182
- <small>(Topsy)</small>
183
-
184
- </li>
185
-
186
- <li>
187
- <a href="Topsy/Target.html" title="Target">Target</a>
188
-
189
- <small>(Topsy)</small>
190
-
191
- </li>
192
-
193
- <li>
194
- <a href="Topsy.html" title="Topsy">Topsy</a>
195
-
196
- </li>
197
-
198
- <li>
199
- <a href="Topsy/Trend.html" title="Trend">Trend</a>
200
-
201
- <small>(Topsy)</small>
202
-
203
- </li>
204
-
205
- <li>
206
- <a href="Topsy/Tweet.html" title="Tweet">Tweet</a>
207
-
208
- <small>(Topsy)</small>
209
-
210
- </li>
211
-
212
- </ul>
213
- </ul>
214
-
215
-
216
- </td><td valign='top' width="33%">
217
-
218
-
219
- <ul id="alpha_U" class="alpha">
220
- <li class="letter">U</li>
221
- <ul>
222
-
223
- <li>
224
- <a href="Topsy/UrlInfo.html" title="UrlInfo">UrlInfo</a>
225
-
226
- <small>(Topsy)</small>
227
-
228
- </li>
229
-
230
- </ul>
231
- </ul>
232
-
233
- </td>
234
- </tr>
235
- </table>
236
- </div></div>
237
-
238
- <div id="footer">
239
- Generated on Wed Jan 6 10:31:53 2010 by
240
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
241
- 0.5.2 (ruby-1.8.6).
242
- </div>
243
-
244
- </body>
245
- </html>
data/doc/class_list.html DELETED
@@ -1,177 +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>
4
- <head>
5
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
- <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
7
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
8
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
9
- <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
10
- <base target="_parent" />
11
- </head>
12
- <body>
13
- <h1 id="full_list_header">Namespace List</h1>
14
- <div id="search">Search: <input type="text" /></div>
15
- <div class="clear"></div>
16
- <ul id="full_list">
17
-
18
-
19
- <li class="r1 ">
20
-
21
- <a href="top-level-namespace.html">Top Level Namespace</a>
22
-
23
-
24
- </li>
25
-
26
- <li class="r2 ">
27
-
28
- <a href="Topsy/Author.html" title="Author">Author</a>
29
-
30
- <small>(Topsy)</small>
31
-
32
-
33
-
34
- </li>
35
-
36
- <li class="r1 ">
37
-
38
- <a href="Topsy/Client.html" title="Client">Client</a>
39
-
40
- <small>(Topsy)</small>
41
-
42
-
43
-
44
- </li>
45
-
46
- <li class="r2 ">
47
-
48
- <a href="Topsy/LinkSearchResult.html" title="LinkSearchResult">LinkSearchResult</a>
49
-
50
- <small>(Topsy)</small>
51
-
52
-
53
-
54
- </li>
55
-
56
- <li class="r1 ">
57
-
58
- <a href="Topsy/Linkpost.html" title="Linkpost">Linkpost</a>
59
-
60
- <small>(Topsy)</small>
61
-
62
-
63
-
64
- </li>
65
-
66
- <li class="r2 ">
67
-
68
- <a href="Topsy/LinkpostCount.html" title="LinkpostCount">LinkpostCount</a>
69
-
70
- <small>(Topsy)</small>
71
-
72
-
73
-
74
- </li>
75
-
76
- <li class="r1 ">
77
-
78
- <a href="Topsy/Page.html" title="Page">Page</a>
79
-
80
- <small>(Topsy)</small>
81
-
82
-
83
-
84
- </li>
85
-
86
- <li class="r2 ">
87
-
88
- <a href="Topsy/RateLimitInfo.html" title="RateLimitInfo">RateLimitInfo</a>
89
-
90
- <small>(Topsy)</small>
91
-
92
-
93
-
94
- </li>
95
-
96
- <li class="r1 ">
97
-
98
- <a href="Topsy/SearchCounts.html" title="SearchCounts">SearchCounts</a>
99
-
100
- <small>(Topsy)</small>
101
-
102
-
103
-
104
- </li>
105
-
106
- <li class="r2 ">
107
-
108
- <a href="Topsy/Stats.html" title="Stats">Stats</a>
109
-
110
- <small>(Topsy)</small>
111
-
112
-
113
-
114
- </li>
115
-
116
- <li class="r1 ">
117
-
118
- <a href="Topsy/Tag.html" title="Tag">Tag</a>
119
-
120
- <small>(Topsy)</small>
121
-
122
-
123
-
124
- </li>
125
-
126
- <li class="r2 ">
127
-
128
- <a href="Topsy/Target.html" title="Target">Target</a>
129
-
130
- <small>(Topsy)</small>
131
-
132
-
133
-
134
- </li>
135
-
136
- <li class="r1 ">
137
-
138
- <a href="Topsy.html" title="Topsy">Topsy</a>
139
-
140
-
141
-
142
- </li>
143
-
144
- <li class="r2 ">
145
-
146
- <a href="Topsy/Trend.html" title="Trend">Trend</a>
147
-
148
- <small>(Topsy)</small>
149
-
150
-
151
-
152
- </li>
153
-
154
- <li class="r1 ">
155
-
156
- <a href="Topsy/Tweet.html" title="Tweet">Tweet</a>
157
-
158
- <small>(Topsy)</small>
159
-
160
-
161
-
162
- </li>
163
-
164
- <li class="r2 ">
165
-
166
- <a href="Topsy/UrlInfo.html" title="UrlInfo">UrlInfo</a>
167
-
168
- <small>(Topsy)</small>
169
-
170
-
171
-
172
- </li>
173
-
174
- </ul>
175
- </body>
176
- </html>
177
-
data/doc/css/common.css DELETED
@@ -1 +0,0 @@
1
- /* Override this file with custom rules */
@@ -1,23 +0,0 @@
1
- body {
2
- margin: 0;
3
- font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
4
- font-size: 13px;
5
- height: 101%;
6
- }
7
- html { overflow-y: scroll; }
8
-
9
- h1 { padding: 0; margin: 5px; margin-top: 12px; margin-left: 10px; margin-bottom: 0; font-size: 1.4em; }
10
- .clear { clear: both; }
11
- #search { position: absolute; right: 5px; top: 9px; }
12
- #full_list { padding: 0; list-style: none; margin-left: 0; }
13
- #full_list li { padding: 7px 15px; font-size: 1.1em; }
14
- #noresults { display: none; padding: 7px 15px; }
15
- li { color: #555; }
16
- li.deprecated { text-decoration: line-through; font-style: italic; }
17
- li.r1 { background: #f0f0f0; border: 1px dotted #f0f0f0; border-left-width: 0; border-right-width: 0; }
18
- li.r2 { background: #fafafa; border: 1px dotted #fafafa; border-left-width: 0; border-right-width: 0; }
19
- li:hover { background: #ffffa5; cursor: pointer; border: 1px dotted #ddddc4; border-left-width: 0; border-right-width: 0; }
20
- li:hover * { position: relative; left: -3px; }
21
- a:link, a:visited { text-decoration: none; color: #05a; }
22
- a:hover { background: #ffffa5; }
23
- #search input { border: 1px solid #bbb; -moz-border-radius: 3px; -webkit-border-radius: 3px; }