topsy 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/topsy.rb +3 -5
- data/lib/topsy/client.rb +10 -1
- data/lib/topsy/page.rb +3 -0
- data/test/helper.rb +1 -0
- data/test/test_topsy.rb +39 -18
- metadata +91 -79
- data/.gitignore +0 -27
- data/LICENSE +0 -20
- data/README.markdown +0 -102
- data/Rakefile +0 -58
- data/TODO +0 -5
- data/VERSION +0 -1
- data/changelog.markdown +0 -10
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/test/fixtures/authorinfo.json +0 -19
- data/test/fixtures/authorsearch-page2.json +0 -115
- data/test/fixtures/authorsearch.json +0 -165
- data/test/fixtures/credit.json +0 -15
- data/test/fixtures/linkpostcount.json +0 -14
- data/test/fixtures/linkposts-page2.json +0 -75
- data/test/fixtures/linkposts.json +0 -135
- data/test/fixtures/profilesearch.json +0 -23
- data/test/fixtures/related.json +0 -75
- data/test/fixtures/search.json +0 -126
- data/test/fixtures/searchcount.json +0 -17
- data/test/fixtures/stats.json +0 -16
- data/test/fixtures/tags.json +0 -51
- data/test/fixtures/trackbacks.json +0 -56
- data/test/fixtures/trending.json +0 -53
- data/test/fixtures/urlinfo.json +0 -19
- data/topsy.gemspec +0 -104
data/test/fixtures/stats.json
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"request": {
|
3
|
-
"response_type": "json",
|
4
|
-
"resource": "stats",
|
5
|
-
"parameters": {
|
6
|
-
"url": "http://github.com/pengwynn/linkedin"
|
7
|
-
},
|
8
|
-
"url": "http://button.topsy.com/stats.json?url=http%3A%2F%2Fgithub.com%2Fpengwynn%2Flinkedin"
|
9
|
-
},
|
10
|
-
"response": {
|
11
|
-
"influential": 3,
|
12
|
-
"all": 11,
|
13
|
-
"contains": 0,
|
14
|
-
"topsy_trackback_url": "http://topsy.com/tb/github.com/pengwynn/linkedin"
|
15
|
-
}
|
16
|
-
}
|
data/test/fixtures/tags.json
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"request": {
|
3
|
-
"response_type": "json",
|
4
|
-
"resource": "tags",
|
5
|
-
"parameters": {
|
6
|
-
"url": "http://gemcutter.org"
|
7
|
-
},
|
8
|
-
"url": "http://button.topsy.com/tags.json?url=http%3A%2F%2Fgemcutter.org"
|
9
|
-
},
|
10
|
-
"response": {
|
11
|
-
"page": 1,
|
12
|
-
"total": 9,
|
13
|
-
"perpage": 10,
|
14
|
-
"list": [{
|
15
|
-
"name": "itunesu",
|
16
|
-
"url": "http://topsy.com/s?q=itunesu"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"name": "projectsprouts",
|
20
|
-
"url": "http://topsy.com/s?q=projectsprouts"
|
21
|
-
},
|
22
|
-
{
|
23
|
-
"name": "gemcutter",
|
24
|
-
"url": "http://topsy.com/s?q=gemcutter"
|
25
|
-
},
|
26
|
-
{
|
27
|
-
"name": "rails",
|
28
|
-
"url": "http://topsy.com/s?q=rails"
|
29
|
-
},
|
30
|
-
{
|
31
|
-
"name": "ruby",
|
32
|
-
"url": "http://topsy.com/s?q=ruby"
|
33
|
-
},
|
34
|
-
{
|
35
|
-
"name": "gems",
|
36
|
-
"url": "http://topsy.com/s?q=gems"
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"name": "gem",
|
40
|
-
"url": "http://topsy.com/s?q=gem"
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"name": "fail",
|
44
|
-
"url": "http://topsy.com/s?q=fail"
|
45
|
-
},
|
46
|
-
{
|
47
|
-
"name": "jruby",
|
48
|
-
"url": "http://topsy.com/s?q=jruby"
|
49
|
-
}]
|
50
|
-
}
|
51
|
-
}
|
@@ -1,56 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"request": {
|
3
|
-
"response_type": "json",
|
4
|
-
"resource": "trackbacks",
|
5
|
-
"parameters": {
|
6
|
-
"url": "http://orrka.com"
|
7
|
-
},
|
8
|
-
"url": "http://button.topsy.com/trackbacks.json?url=http%3A%2F%2Forrka.com"
|
9
|
-
},
|
10
|
-
"response": {
|
11
|
-
"page": 1,
|
12
|
-
"total": 3,
|
13
|
-
"perpage": 10,
|
14
|
-
"topsy_trackback_url": "http://topsy.com/tb/orrka.com/",
|
15
|
-
"list": [{
|
16
|
-
"permalink_url": "http://twitter.com/orrka/status/6435248067",
|
17
|
-
"date": 1260204073,
|
18
|
-
"content": "Just added some portfolio entries to http://orrka.com/",
|
19
|
-
"author": {
|
20
|
-
"url": "http://twitter.com/orrka",
|
21
|
-
"name": "Orrka",
|
22
|
-
"photo_url": "http://a1.twimg.com/profile_images/476284898/avatar_normal.png",
|
23
|
-
"topsy_author_url": "http://topsy.com/twitter/orrka"
|
24
|
-
},
|
25
|
-
"date_alpha": "25 days ago",
|
26
|
-
"type": "tweet"
|
27
|
-
},
|
28
|
-
{
|
29
|
-
"permalink_url": "http://twitter.com/chuckmallott/status/5059873467",
|
30
|
-
"date": 1256179965,
|
31
|
-
"content": "I really like this logo: http://orrka.com",
|
32
|
-
"author": {
|
33
|
-
"url": "http://twitter.com/chuckmallott",
|
34
|
-
"name": "Chuck Mallott",
|
35
|
-
"photo_url": "http://a1.twimg.com/profile_images/598852858/me-blueshirt_normal.png",
|
36
|
-
"topsy_author_url": "http://topsy.com/twitter/chuckmallott",
|
37
|
-
"influence_level": 2
|
38
|
-
},
|
39
|
-
"date_alpha": "Oct 21, 2009",
|
40
|
-
"type": "tweet"
|
41
|
-
},
|
42
|
-
{
|
43
|
-
"permalink_url": "http://twitter.com/orrka/status/4930595271",
|
44
|
-
"date": 1255739577,
|
45
|
-
"content": "This is going to be killer http://orrka.com",
|
46
|
-
"author": {
|
47
|
-
"url": "http://twitter.com/orrka",
|
48
|
-
"name": "Orrka",
|
49
|
-
"photo_url": "http://a1.twimg.com/profile_images/476284898/avatar_normal.png",
|
50
|
-
"topsy_author_url": "http://topsy.com/twitter/orrka"
|
51
|
-
},
|
52
|
-
"date_alpha": "Oct 16, 2009",
|
53
|
-
"type": "tweet"
|
54
|
-
}]
|
55
|
-
}
|
56
|
-
}
|
data/test/fixtures/trending.json
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"request": {
|
3
|
-
"response_type": "json",
|
4
|
-
"resource": "trending",
|
5
|
-
"parameters": {},
|
6
|
-
"url": "http://button.topsy.com/trending.json"
|
7
|
-
},
|
8
|
-
"response": {
|
9
|
-
"page": 1,
|
10
|
-
"total": 1379,
|
11
|
-
"perpage": 10,
|
12
|
-
"list": [{
|
13
|
-
"term": "photoshop photoshop",
|
14
|
-
"url": "http://topsy.com/s?q=photoshop+photoshop"
|
15
|
-
},
|
16
|
-
{
|
17
|
-
"term": "swizz beatz",
|
18
|
-
"url": "http://topsy.com/s?q=swizz+beatz"
|
19
|
-
},
|
20
|
-
{
|
21
|
-
"term": "limbaugh hospitalized",
|
22
|
-
"url": "http://topsy.com/s?q=limbaugh+hospitalized"
|
23
|
-
},
|
24
|
-
{
|
25
|
-
"term": "travis pastrana",
|
26
|
-
"url": "http://topsy.com/s?q=travis+pastrana"
|
27
|
-
},
|
28
|
-
{
|
29
|
-
"term": "auld lang syne",
|
30
|
-
"url": "http://topsy.com/s?q=auld+lang%20syne"
|
31
|
-
},
|
32
|
-
{
|
33
|
-
"term": "#happynewyear",
|
34
|
-
"url": "http://topsy.com/s?q=%23happynewyear"
|
35
|
-
},
|
36
|
-
{
|
37
|
-
"term": "#2010",
|
38
|
-
"url": "http://topsy.com/s?q=%232010"
|
39
|
-
},
|
40
|
-
{
|
41
|
-
"term": "#2009",
|
42
|
-
"url": "http://topsy.com/s?q=%232009"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"term": "full body scanners",
|
46
|
-
"url": "http://topsy.com/s?q=full+body%20scanners"
|
47
|
-
},
|
48
|
-
{
|
49
|
-
"term": "#10yearsago",
|
50
|
-
"url": "http://topsy.com/s?q=%2310yearsago"
|
51
|
-
}]
|
52
|
-
}
|
53
|
-
}
|
data/test/fixtures/urlinfo.json
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"request": {
|
3
|
-
"response_type": "json",
|
4
|
-
"resource": "urlinfo",
|
5
|
-
"parameters": {
|
6
|
-
"url": "http://twitter.com"
|
7
|
-
},
|
8
|
-
"url": "http://button.topsy.com/urlinfo.json?url=http%3A%2F%2Ftwitter.com"
|
9
|
-
},
|
10
|
-
"response": {
|
11
|
-
"oneforty": "trending topics - -amp09 right up there past the president today! :) http://tiny.cc/3yNbv",
|
12
|
-
"description": "Social networking",
|
13
|
-
"trackback_total": 39379,
|
14
|
-
"topsy_trackback_url": "http://topsy.com/tb/twitter.com/",
|
15
|
-
"description_attribution": "From DMOZ",
|
16
|
-
"url": "http://twitter.com/",
|
17
|
-
"title": "trending topics - -amp09 right up there past the president today! :)"
|
18
|
-
}
|
19
|
-
}
|
data/topsy.gemspec
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{topsy}
|
8
|
-
s.version = "0.3.0"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Wynn Netherland", "Ernesto Tagwerker"]
|
12
|
-
s.date = %q{2010-01-11}
|
13
|
-
s.description = %q{Ruby wrapper for the Topsy otterapi}
|
14
|
-
s.email = %q{wynn.netherland@gmail.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE",
|
17
|
-
"README.markdown",
|
18
|
-
"TODO"
|
19
|
-
]
|
20
|
-
s.files = [
|
21
|
-
".gitignore",
|
22
|
-
"LICENSE",
|
23
|
-
"README.markdown",
|
24
|
-
"Rakefile",
|
25
|
-
"TODO",
|
26
|
-
"VERSION",
|
27
|
-
"changelog.markdown",
|
28
|
-
"lib/topsy.rb",
|
29
|
-
"lib/topsy/author.rb",
|
30
|
-
"lib/topsy/client.rb",
|
31
|
-
"lib/topsy/link_search_result.rb",
|
32
|
-
"lib/topsy/linkpost.rb",
|
33
|
-
"lib/topsy/linkpost_count.rb",
|
34
|
-
"lib/topsy/page.rb",
|
35
|
-
"lib/topsy/rate_limit_info.rb",
|
36
|
-
"lib/topsy/search_counts.rb",
|
37
|
-
"lib/topsy/stats.rb",
|
38
|
-
"lib/topsy/tag.rb",
|
39
|
-
"lib/topsy/target.rb",
|
40
|
-
"lib/topsy/trend.rb",
|
41
|
-
"lib/topsy/tweet.rb",
|
42
|
-
"lib/topsy/url_info.rb",
|
43
|
-
"script/console",
|
44
|
-
"script/destroy",
|
45
|
-
"script/generate",
|
46
|
-
"test/fixtures/authorinfo.json",
|
47
|
-
"test/fixtures/authorsearch-page2.json",
|
48
|
-
"test/fixtures/authorsearch.json",
|
49
|
-
"test/fixtures/credit.json",
|
50
|
-
"test/fixtures/linkpostcount.json",
|
51
|
-
"test/fixtures/linkposts-page2.json",
|
52
|
-
"test/fixtures/linkposts.json",
|
53
|
-
"test/fixtures/profilesearch.json",
|
54
|
-
"test/fixtures/related.json",
|
55
|
-
"test/fixtures/search.json",
|
56
|
-
"test/fixtures/searchcount.json",
|
57
|
-
"test/fixtures/stats.json",
|
58
|
-
"test/fixtures/tags.json",
|
59
|
-
"test/fixtures/trackbacks.json",
|
60
|
-
"test/fixtures/trending.json",
|
61
|
-
"test/fixtures/urlinfo.json",
|
62
|
-
"test/helper.rb",
|
63
|
-
"test/test_topsy.rb",
|
64
|
-
"topsy.gemspec"
|
65
|
-
]
|
66
|
-
s.homepage = %q{http://github.com/pengwynn/topsy}
|
67
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
68
|
-
s.require_paths = ["lib"]
|
69
|
-
s.rubygems_version = %q{1.3.5}
|
70
|
-
s.summary = %q{Ruby wrapper for the Topsy otterapi}
|
71
|
-
s.test_files = [
|
72
|
-
"test/helper.rb",
|
73
|
-
"test/test_topsy.rb"
|
74
|
-
]
|
75
|
-
|
76
|
-
if s.respond_to? :specification_version then
|
77
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
78
|
-
s.specification_version = 3
|
79
|
-
|
80
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
81
|
-
s.add_runtime_dependency(%q<hashie>, ["~> 0.1.3"])
|
82
|
-
s.add_runtime_dependency(%q<httparty>, ["~> 0.4.5"])
|
83
|
-
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 2.10.1"])
|
84
|
-
s.add_development_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
|
85
|
-
s.add_development_dependency(%q<mocha>, ["= 0.9.4"])
|
86
|
-
s.add_development_dependency(%q<fakeweb>, [">= 1.2.5"])
|
87
|
-
else
|
88
|
-
s.add_dependency(%q<hashie>, ["~> 0.1.3"])
|
89
|
-
s.add_dependency(%q<httparty>, ["~> 0.4.5"])
|
90
|
-
s.add_dependency(%q<thoughtbot-shoulda>, [">= 2.10.1"])
|
91
|
-
s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
|
92
|
-
s.add_dependency(%q<mocha>, ["= 0.9.4"])
|
93
|
-
s.add_dependency(%q<fakeweb>, [">= 1.2.5"])
|
94
|
-
end
|
95
|
-
else
|
96
|
-
s.add_dependency(%q<hashie>, ["~> 0.1.3"])
|
97
|
-
s.add_dependency(%q<httparty>, ["~> 0.4.5"])
|
98
|
-
s.add_dependency(%q<thoughtbot-shoulda>, [">= 2.10.1"])
|
99
|
-
s.add_dependency(%q<jnunemaker-matchy>, ["= 0.4.0"])
|
100
|
-
s.add_dependency(%q<mocha>, ["= 0.9.4"])
|
101
|
-
s.add_dependency(%q<fakeweb>, [">= 1.2.5"])
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|