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
@@ -1,91 +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::SearchCounts</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 (S)</a> &raquo;
23
- <a href="../Topsy.html" title="Topsy">Topsy</a>
24
- &raquo;
25
- <span class="title">SearchCounts</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::SearchCounts
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::SearchCounts</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/search_counts.rb</dd>
72
-
73
- </dl>
74
- <div class="clear"></div>
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
- </div>
83
-
84
- <div id="footer">
85
- Generated on Wed Jan 6 10:31:55 2010 by
86
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
87
- 0.5.2 (ruby-1.8.6).
88
- </div>
89
-
90
- </body>
91
- </html>
data/doc/Topsy/Stats.html DELETED
@@ -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::Stats</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 (S)</a> &raquo;
23
- <a href="../Topsy.html" title="Topsy">Topsy</a>
24
- &raquo;
25
- <span class="title">Stats</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::Stats
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::Stats</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/stats.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
- 13
126
- 14
127
- 15</pre>
128
- </td>
129
- <td>
130
- <pre class="code"><span class="info file"># File 'lib/topsy/stats.rb', line 13</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 Stats: #{topsy_trackback_url}&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:55 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>
data/doc/Topsy/Tag.html DELETED
@@ -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::Tag</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 (T)</a> &raquo;
23
- <a href="../Topsy.html" title="Topsy">Topsy</a>
24
- &raquo;
25
- <span class="title">Tag</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::Tag
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::Tag</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/tag.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/tag.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 Tag: #{name}&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:55 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,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::Target</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 (T)</a> &raquo;
23
- <a href="../Topsy.html" title="Topsy">Topsy</a>
24
- &raquo;
25
- <span class="title">Target</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::Target
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::Target</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/target.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
- 13
126
- 14
127
- 15</pre>
128
- </td>
129
- <td>
130
- <pre class="code"><span class="info file"># File 'lib/topsy/target.rb', line 13</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 Target: #{url}&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>