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
@@ -1,152 +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::LinkSearchResult</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 (L)</a> &raquo;
23
- <a href="../Topsy.html" title="Topsy">Topsy</a>
24
- &raquo;
25
- <span class="title">LinkSearchResult</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::LinkSearchResult
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::Mash</span>
50
-
51
- <ul class="fullTree">
52
- <li>Object</li>
53
-
54
- <li class="next">Hashie::Mash</li>
55
-
56
- <li class="next">Topsy::LinkSearchResult</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/link_search_result.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="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</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
- </ul>
105
-
106
-
107
-
108
- <div id="instance_method_details" class="method_details_list">
109
- <h2>Instance Method Details</h2>
110
-
111
-
112
- <div class="method_details first">
113
- <p class="signature first" id="to_s-instance_method">
114
-
115
- - (<tt>Object</tt>) <strong>to_s</strong>
116
-
117
-
118
-
119
- </p><table class="source_code">
120
- <tr>
121
- <td>
122
- <pre class="lines">
123
-
124
-
125
- 19
126
- 20
127
- 21</pre>
128
- </td>
129
- <td>
130
- <pre class="code"><span class="info file"># File 'lib/topsy/link_search_result.rb', line 19</span>
131
-
132
- <span class='def def kw'>def</span> <span class='to_s identifier id'>to_s</span>
133
- <span class='dstring node'>&quot;Topsy LinkSearchResult: #{url}, @#{title}, hits: #{hits}&quot;</span>
134
- <span class='end end kw'>end</span>
135
- </pre>
136
- </td>
137
- </tr>
138
- </table>
139
- </div>
140
-
141
- </div>
142
-
143
- </div>
144
-
145
- <div id="footer">
146
- Generated on Wed Jan 6 10:31:54 2010 by
147
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
148
- 0.5.2 (ruby-1.8.6).
149
- </div>
150
-
151
- </body>
152
- </html>
@@ -1,209 +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::Linkpost</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 (L)</a> &raquo;
23
- <a href="../Topsy.html" title="Topsy">Topsy</a>
24
- &raquo;
25
- <span class="title">Linkpost</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::Linkpost
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::Linkpost</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/linkpost.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="#target%3D-instance_method" title="#target= (instance method)">- (Object) <strong>target=</strong>(value) </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="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</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="target=-instance_method">
134
-
135
- - (<tt>Object</tt>) <strong>target=</strong>(value)
136
-
137
-
138
-
139
- </p><table class="source_code">
140
- <tr>
141
- <td>
142
- <pre class="lines">
143
-
144
-
145
- 24
146
- 25
147
- 26
148
- 27
149
- 28
150
- 29
151
- 30</pre>
152
- </td>
153
- <td>
154
- <pre class="code"><span class="info file"># File 'lib/topsy/linkpost.rb', line 24</span>
155
-
156
- <span class='def def kw'>def</span> <span class='target= identifier id'>target=</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='rparen token'>)</span>
157
- <span class='if if kw'>if</span> <span class='value identifier id'>value</span>
158
- <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='symbol val'>:target</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='Topsy constant id'>Topsy</span><span class='colon2 op'>::</span><span class='Target constant id'>Target</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='value identifier id'>value</span><span class='rparen token'>)</span>
159
- <span class='else else kw'>else</span>
160
- <span class='self self kw'>self</span><span class='lbrack token'>[</span><span class='symbol val'>:target</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='value identifier id'>value</span>
161
- <span class='end end kw'>end</span>
162
- <span class='end end kw'>end</span>
163
- </pre>
164
- </td>
165
- </tr>
166
- </table>
167
- </div>
168
-
169
- <div class="method_details ">
170
- <p class="signature " id="to_s-instance_method">
171
-
172
- - (<tt>Object</tt>) <strong>to_s</strong>
173
-
174
-
175
-
176
- </p><table class="source_code">
177
- <tr>
178
- <td>
179
- <pre class="lines">
180
-
181
-
182
- 20
183
- 21
184
- 22</pre>
185
- </td>
186
- <td>
187
- <pre class="code"><span class="info file"># File 'lib/topsy/linkpost.rb', line 20</span>
188
-
189
- <span class='def def kw'>def</span> <span class='to_s identifier id'>to_s</span>
190
- <span class='dstring node'>&quot;Topsy Linkpost: #{permalink_url}, @#{content}&quot;</span>
191
- <span class='end end kw'>end</span>
192
- </pre>
193
- </td>
194
- </tr>
195
- </table>
196
- </div>
197
-
198
- </div>
199
-
200
- </div>
201
-
202
- <div id="footer">
203
- Generated on Wed Jan 6 10:31:55 2010 by
204
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
205
- 0.5.2 (ruby-1.8.6).
206
- </div>
207
-
208
- </body>
209
- </html>
@@ -1,152 +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::LinkpostCount</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 (L)</a> &raquo;
23
- <a href="../Topsy.html" title="Topsy">Topsy</a>
24
- &raquo;
25
- <span class="title">LinkpostCount</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::LinkpostCount
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::Mash</span>
50
-
51
- <ul class="fullTree">
52
- <li>Object</li>
53
-
54
- <li class="next">Hashie::Mash</li>
55
-
56
- <li class="next">Topsy::LinkpostCount</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/linkpost_count.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="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</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
- </ul>
105
-
106
-
107
-
108
- <div id="instance_method_details" class="method_details_list">
109
- <h2>Instance Method Details</h2>
110
-
111
-
112
- <div class="method_details first">
113
- <p class="signature first" id="to_s-instance_method">
114
-
115
- - (<tt>Object</tt>) <strong>to_s</strong>
116
-
117
-
118
-
119
- </p><table class="source_code">
120
- <tr>
121
- <td>
122
- <pre class="lines">
123
-
124
-
125
- 11
126
- 12
127
- 13</pre>
128
- </td>
129
- <td>
130
- <pre class="code"><span class="info file"># File 'lib/topsy/linkpost_count.rb', line 11</span>
131
-
132
- <span class='def def kw'>def</span> <span class='to_s identifier id'>to_s</span>
133
- <span class='dstring node'>&quot;Topsy LinkpostCount: #{all}&quot;</span>
134
- <span class='end end kw'>end</span>
135
- </pre>
136
- </td>
137
- </tr>
138
- </table>
139
- </div>
140
-
141
- </div>
142
-
143
- </div>
144
-
145
- <div id="footer">
146
- Generated on Wed Jan 6 10:31:57 2010 by
147
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
148
- 0.5.2 (ruby-1.8.6).
149
- </div>
150
-
151
- </body>
152
- </html>