topsy 0.3.0 → 0.3.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.
data/Rakefile DELETED
@@ -1,58 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "topsy"
8
- gem.summary = %Q{Ruby wrapper for the Topsy otterapi}
9
- gem.description = %Q{Ruby wrapper for the Topsy otterapi}
10
- gem.email = "wynn.netherland@gmail.com"
11
- gem.homepage = "http://github.com/pengwynn/topsy"
12
- gem.authors = ["Wynn Netherland", "Ernesto Tagwerker"]
13
-
14
- gem.add_dependency('hashie', '~> 0.1.3')
15
- gem.add_dependency('httparty', '~> 0.4.5')
16
-
17
- gem.add_development_dependency('thoughtbot-shoulda', '>= 2.10.1')
18
- gem.add_development_dependency('jnunemaker-matchy', '0.4.0')
19
- gem.add_development_dependency('mocha', '0.9.4')
20
- gem.add_development_dependency('fakeweb', '>= 1.2.5')
21
- end
22
- Jeweler::GemcutterTasks.new
23
- rescue LoadError
24
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
25
- end
26
-
27
- require 'rake/testtask'
28
- Rake::TestTask.new(:test) do |test|
29
- test.libs << 'lib' << 'test'
30
- test.pattern = 'test/**/test_*.rb'
31
- test.verbose = true
32
- end
33
-
34
- begin
35
- require 'rcov/rcovtask'
36
- Rcov::RcovTask.new do |test|
37
- test.libs << 'test'
38
- test.pattern = 'test/**/test_*.rb'
39
- test.verbose = true
40
- end
41
- rescue LoadError
42
- task :rcov do
43
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
44
- end
45
- end
46
-
47
- task :test => :check_dependencies
48
-
49
- task :default => :test
50
-
51
- begin
52
- require 'yard'
53
- YARD::Rake::YardocTask.new
54
- rescue LoadError
55
- task :yardoc do
56
- abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
57
- end
58
- end
data/TODO DELETED
@@ -1,5 +0,0 @@
1
- # Topsy
2
-
3
- Here is the TODO list for the topsy gem.
4
-
5
- Nothing!
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.3.0
@@ -1,10 +0,0 @@
1
- # Changelog
2
-
3
- ## 0.2.0 January 6, 2010
4
-
5
- * Ernesto implemented biz objects for all return types, thanks!
6
- * Added rate_limit info
7
-
8
- ## 0.1.0 January 1, 2010
9
-
10
- * Initial version
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # File: script/console
3
- irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
-
5
- libs = " -r irb/completion"
6
- # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
- # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
- libs << " -r #{File.dirname(__FILE__) + '/../lib/topsy.rb'}"
9
- puts "Loading topsy gem"
10
- exec "#{irb} #{libs} --simple-prompt"
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/destroy'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Destroy.new.run(ARGV)
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/generate'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Generate.new.run(ARGV)
@@ -1,19 +0,0 @@
1
- {
2
- "request": {
3
- "response_type": "json",
4
- "resource": "authorinfo",
5
- "parameters": {
6
- "q": "http://twitter.com/pengwynn"
7
- },
8
- "url": "http://button.topsy.com/authorinfo.json?q=http%3A%2F%2Ftwitter.com%2Fpengwynn"
9
- },
10
- "response": {
11
- "name": "Wynn Netherland",
12
- "nick": "pengwynn",
13
- "description": "Christian husband and father, Ruby developer and web designer. Co-founder of TweetCongress.org and Squeejee, makers of Good clean fun!™",
14
- "influence_level": 10,
15
- "url": "http://twitter.com/pengwynn",
16
- "type": "twitter",
17
- "topsy_author_url": "http://topsy.com/twitter/pengwynn"
18
- }
19
- }
@@ -1,115 +0,0 @@
1
- {
2
- "request": {
3
- "response_type": "json",
4
- "resource": "authorsearch",
5
- "parameters": {
6
- "q": "pengwynn"
7
- },
8
- "url": "http://button.topsy.com/authorsearch.json?q=pengwynn"
9
- },
10
- "response": {
11
- "page": 2,
12
- "total": 512,
13
- "perpage": 10,
14
- "list": [{
15
- "name": "Bradley Joyce",
16
- "nick": "bradleyjoyce",
17
- "photo_url": "http://a3.twimg.com/profile_images/421303551/bradley_normal.png",
18
- "description": "Entrepreneur and Web Developer -- TweetAbout.com, TickStart.com, TweetCongress.org, Floxee.org, Sherflock.com, Squeejee.com",
19
- "influence_level": "7",
20
- "hits": 47,
21
- "url": "http://twitter.com/bradleyjoyce",
22
- "topsy_author_url": "http://topsy.com/twitter/bradleyjoyce"
23
- },
24
- {
25
- "name": "tweetcongress",
26
- "nick": "tweetcongress",
27
- "photo_url": "http://s.twimg.com/a/1253209888/images/default_profile_0_normal.png",
28
- "description": "Grassroots effort to get Congress tweeting!",
29
- "influence_level": "10",
30
- "hits": 13,
31
- "url": "http://twitter.com/tweetcongress",
32
- "topsy_author_url": "http://topsy.com/twitter/tweetcongress"
33
- },
34
- {
35
- "name": "Jim Mulholland",
36
- "nick": "mully",
37
- "photo_url": "http://a3.twimg.com/profile_images/385459831/twitterProfilePhoto_normal.jpg",
38
- "description": "Partner at Squeejee, a Ruby / Rails consultancy; Co-Creator of TweetCongress; Husband and father of 3; ",
39
- "influence_level": "4",
40
- "hits": 19,
41
- "url": "http://twitter.com/mully",
42
- "topsy_author_url": "http://topsy.com/twitter/mully"
43
- },
44
- {
45
- "name": "Chris McCroskey",
46
- "nick": "curvezilla",
47
- "photo_url": "http://a1.twimg.com/profile_images/413047412/chrisheadshot_normal.jpg",
48
- "description": "Mission Control at Squeejee and Co-Founder of TweetCongress.org &amp; Founder of Heroes4Heroes a charity that sends care packets to the troops. Proud Razorback!",
49
- "influence_level": "4",
50
- "hits": 16,
51
- "url": "http://twitter.com/curvezilla",
52
- "topsy_author_url": "http://topsy.com/twitter/curvezilla"
53
- },
54
- {
55
- "name": "Steve Lunceford",
56
- "nick": "dslunceford",
57
- "photo_url": "http://a3.twimg.com/profile_images/420259957/headshot_tight_normal.JPG",
58
- "description": "20-year media and PR pro focusing on Government; TiVo, Home Theater & general gadget fanatic. Creator of http://GovTwit.com",
59
- "influence_level": "10",
60
- "hits": 11,
61
- "url": "http://twitter.com/dslunceford",
62
- "topsy_author_url": "http://topsy.com/twitter/dslunceford"
63
- },
64
- {
65
- "name": "Damon Clinkscales",
66
- "nick": "damon",
67
- "photo_url": "http://a1.twimg.com/profile_images/561257818/mo5_crop_normal.jpg",
68
- "description": "I'm a shepherd. Software engineer at VitalSource and leader of Austin On Rails. I also build apps like http://snaptweet.com and http://doesfollow.com. ",
69
- "influence_level": "10",
70
- "hits": 8,
71
- "url": "http://twitter.com/damon",
72
- "topsy_author_url": "http://topsy.com/twitter/damon"
73
- },
74
- {
75
- "name": "Wynn Netherland",
76
- "nick": "pengwynn",
77
- "photo_url": "http://a1.twimg.com/profile_images/485575482/komikazee_normal.png",
78
- "description": "Christian husband and father, Ruby developer and web designer. Co-founder of TweetCongress.org and Squeejee, makers of Good clean fun!™",
79
- "influence_level": "10",
80
- "hits": 8,
81
- "url": "http://twitter.com/pengwynn",
82
- "topsy_author_url": "http://topsy.com/twitter/pengwynn"
83
- },
84
- {
85
- "name": "Luigi Montanez",
86
- "nick": "luigimontanez",
87
- "photo_url": "http://a3.twimg.com/profile_images/523899985/Comic_Book_normal.png",
88
- "description": "Web App Developer at the Sunlight Labs",
89
- "influence_level": "10",
90
- "hits": 6,
91
- "url": "http://twitter.com/luigimontanez",
92
- "topsy_author_url": "http://topsy.com/twitter/luigimontanez"
93
- },
94
- {
95
- "name": "Locomotivation",
96
- "nick": "locomotivation",
97
- "photo_url": "http://a1.twimg.com/profile_images/386446850/twitterProfilePhoto_normal.jpg",
98
- "description": "The code blog from the guys at Squeejee.",
99
- "influence_level": "5",
100
- "hits": 12,
101
- "url": "http://twitter.com/locomotivation",
102
- "topsy_author_url": "http://topsy.com/twitter/locomotivation"
103
- },
104
- {
105
- "name": "Adam Stacoviak",
106
- "nick": "adamstac",
107
- "photo_url": "http://a1.twimg.com/profile_images/493267610/twitterProfilePhoto_normal.jpg",
108
- "description": "Co-founder of Handcrafted, co-producer of The Web 2.0 Show podcast, and a lover of beautiful UI/UX. You should follow me :)",
109
- "influence_level": "3",
110
- "hits": 11,
111
- "url": "http://twitter.com/adamstac",
112
- "topsy_author_url": "http://topsy.com/twitter/adamstac"
113
- }]
114
- }
115
- }
@@ -1,165 +0,0 @@
1
- {
2
- "request": {
3
- "response_type": "json",
4
- "resource": "authorsearch",
5
- "parameters": {
6
- "q": "pengwynn"
7
- },
8
- "url": "http://button.topsy.com/authorsearch.json?q=pengwynn"
9
- },
10
- "response": {
11
- "page": 1,
12
- "total": 491,
13
- "perpage": 15,
14
- "list": [{
15
- "name": "Bradley Joyce",
16
- "nick": "bradleyjoyce",
17
- "photo_url": "http://a3.twimg.com/profile_images/421303551/bradley_normal.png",
18
- "description": "Entrepreneur and Web Developer -- TweetAbout.com, TickStart.com, TweetCongress.org, Floxee.org, Sherflock.com, Squeejee.com",
19
- "influence_level": "7",
20
- "hits": 47,
21
- "url": "http://twitter.com/bradleyjoyce",
22
- "topsy_author_url": "http://topsy.com/twitter/bradleyjoyce"
23
- },
24
- {
25
- "name": "tweetcongress",
26
- "nick": "tweetcongress",
27
- "photo_url": "http://s.twimg.com/a/1253209888/images/default_profile_0_normal.png",
28
- "description": "Grassroots effort to get Congress tweeting!",
29
- "influence_level": "10",
30
- "hits": 13,
31
- "url": "http://twitter.com/tweetcongress",
32
- "topsy_author_url": "http://topsy.com/twitter/tweetcongress"
33
- },
34
- {
35
- "name": "Jim Mulholland",
36
- "nick": "mully",
37
- "photo_url": "http://a3.twimg.com/profile_images/385459831/twitterProfilePhoto_normal.jpg",
38
- "description": "Partner at Squeejee, a Ruby / Rails consultancy; Co-Creator of TweetCongress; Husband and father of 3; ",
39
- "influence_level": "4",
40
- "hits": 19,
41
- "url": "http://twitter.com/mully",
42
- "topsy_author_url": "http://topsy.com/twitter/mully"
43
- },
44
- {
45
- "name": "Chris McCroskey",
46
- "nick": "curvezilla",
47
- "photo_url": "http://a1.twimg.com/profile_images/413047412/chrisheadshot_normal.jpg",
48
- "description": "Mission Control at Squeejee and Co-Founder of TweetCongress.org &amp; Founder of Heroes4Heroes a charity that sends care packets to the troops. Proud Razorback!",
49
- "influence_level": "4",
50
- "hits": 16,
51
- "url": "http://twitter.com/curvezilla",
52
- "topsy_author_url": "http://topsy.com/twitter/curvezilla"
53
- },
54
- {
55
- "name": "Steve Lunceford",
56
- "nick": "dslunceford",
57
- "photo_url": "http://a3.twimg.com/profile_images/420259957/headshot_tight_normal.JPG",
58
- "description": "20-year media and PR pro focusing on Government; TiVo, Home Theater & general gadget fanatic. Creator of http://GovTwit.com",
59
- "influence_level": "10",
60
- "hits": 11,
61
- "url": "http://twitter.com/dslunceford",
62
- "topsy_author_url": "http://topsy.com/twitter/dslunceford"
63
- },
64
- {
65
- "name": "Damon Clinkscales",
66
- "nick": "damon",
67
- "photo_url": "http://a1.twimg.com/profile_images/561257818/mo5_crop_normal.jpg",
68
- "description": "I'm a shepherd. Software engineer at VitalSource and leader of Austin On Rails. I also build apps like http://snaptweet.com and http://doesfollow.com. ",
69
- "influence_level": "10",
70
- "hits": 8,
71
- "url": "http://twitter.com/damon",
72
- "topsy_author_url": "http://topsy.com/twitter/damon"
73
- },
74
- {
75
- "name": "Wynn Netherland",
76
- "nick": "pengwynn",
77
- "photo_url": "http://a1.twimg.com/profile_images/485575482/komikazee_normal.png",
78
- "description": "Christian husband and father, Ruby developer and web designer. Co-founder of TweetCongress.org and Squeejee, makers of Good clean fun!™",
79
- "influence_level": "10",
80
- "hits": 8,
81
- "url": "http://twitter.com/pengwynn",
82
- "topsy_author_url": "http://topsy.com/twitter/pengwynn"
83
- },
84
- {
85
- "name": "Luigi Montanez",
86
- "nick": "luigimontanez",
87
- "photo_url": "http://a3.twimg.com/profile_images/523899985/Comic_Book_normal.png",
88
- "description": "Web App Developer at the Sunlight Labs",
89
- "influence_level": "10",
90
- "hits": 6,
91
- "url": "http://twitter.com/luigimontanez",
92
- "topsy_author_url": "http://topsy.com/twitter/luigimontanez"
93
- },
94
- {
95
- "name": "Locomotivation",
96
- "nick": "locomotivation",
97
- "photo_url": "http://a1.twimg.com/profile_images/386446850/twitterProfilePhoto_normal.jpg",
98
- "description": "The code blog from the guys at Squeejee.",
99
- "influence_level": "5",
100
- "hits": 12,
101
- "url": "http://twitter.com/locomotivation",
102
- "topsy_author_url": "http://topsy.com/twitter/locomotivation"
103
- },
104
- {
105
- "name": "Adam Stacoviak",
106
- "nick": "adamstac",
107
- "photo_url": "http://a1.twimg.com/profile_images/493267610/twitterProfilePhoto_normal.jpg",
108
- "description": "Co-founder of Handcrafted, co-producer of The Web 2.0 Show podcast, and a lover of beautiful UI/UX. You should follow me :)",
109
- "influence_level": "3",
110
- "hits": 11,
111
- "url": "http://twitter.com/adamstac",
112
- "topsy_author_url": "http://topsy.com/twitter/adamstac"
113
- },
114
- {
115
- "name": "Rupak Ganguly",
116
- "nick": "rupakg",
117
- "photo_url": "http://a3.twimg.com/profile_images/469869723/twitterProfilePhoto_normal.jpg",
118
- "description": "RoR freelancer. .NET architect. Love C#. Rails Magazine Editor.",
119
- "influence_level": "1",
120
- "hits": 9,
121
- "url": "http://twitter.com/rupakg",
122
- "topsy_author_url": "http://topsy.com/twitter/rupakg"
123
- },
124
- {
125
- "name": "cglee",
126
- "nick": "cglee",
127
- "photo_url": "http://s.twimg.com/a/1253209888/images/default_profile_4_normal.png",
128
- "description": "Rails developer",
129
- "influence_level": "1",
130
- "hits": 9,
131
- "url": "http://twitter.com/cglee",
132
- "topsy_author_url": "http://topsy.com/twitter/cglee"
133
- },
134
- {
135
- "name": "DarthMolen",
136
- "nick": "darthmolen",
137
- "photo_url": "http://a3.twimg.com/profile_images/53887999/avatar_12_normal.gif",
138
- "description": "MMA Radio Show Co-Host &quot;The No Holds Barred Show&quot;",
139
- "influence_level": "8",
140
- "hits": 6,
141
- "url": "http://twitter.com/darthmolen",
142
- "topsy_author_url": "http://topsy.com/twitter/darthmolen"
143
- },
144
- {
145
- "name": "Chris Eppstein",
146
- "nick": "chriseppstein",
147
- "photo_url": "http://a1.twimg.com/profile_images/51769630/Photo_5_normal.jpg",
148
- "description": "Father, Software Engineer, Drinker of Beer",
149
- "influence_level": "4",
150
- "hits": 8,
151
- "url": "http://twitter.com/chriseppstein",
152
- "topsy_author_url": "http://topsy.com/twitter/chriseppstein"
153
- },
154
- {
155
- "name": "Squeejee",
156
- "nick": "squeejeeinc",
157
- "photo_url": "http://a3.twimg.com/profile_images/69807891/tool_normal.png",
158
- "description": "Ruby on Rails Developers, Entrepreneurs, Builders",
159
- "influence_level": "3",
160
- "hits": 7,
161
- "url": "http://twitter.com/squeejeeinc",
162
- "topsy_author_url": "http://topsy.com/twitter/squeejeeinc"
163
- }]
164
- }
165
- }
@@ -1,15 +0,0 @@
1
- {
2
- "request": {
3
- "response_type": "json",
4
- "resource": "credit",
5
- "parameters": {},
6
- "url": "http://button.topsy.com/credit.json"
7
- },
8
- "response": {
9
- "remaining": 10000,
10
- "reset": 1262707200,
11
- "limit": 10000,
12
- "refresh_in_secs": 1503
13
- }
14
- }
15
-
@@ -1,14 +0,0 @@
1
- {
2
- "request": {
3
- "response_type": "json",
4
- "resource": "linkpostcount",
5
- "parameters": {
6
- "url": "http://twitter.com/pengwynn"
7
- },
8
- "url": "http://button.topsy.com/linkpostcount.json?url=http%3A%2F%2Ftwitter.com%2Fpengwynn"
9
- },
10
- "response": {
11
- "all": 1004,
12
- "contains": 0
13
- }
14
- }