handcrafted-twitter 0.4.0 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/{History.txt → History} +16 -0
  2. data/{License.txt → License} +0 -0
  3. data/{Manifest.txt → Manifest} +14 -16
  4. data/{README.txt → README} +0 -0
  5. data/Rakefile +41 -3
  6. data/bin/twitter +1 -2
  7. data/examples/direct_messages.rb +1 -0
  8. data/examples/favorites.rb +4 -4
  9. data/examples/replies.rb +1 -0
  10. data/examples/search.rb +1 -0
  11. data/examples/sent_messages.rb +1 -0
  12. data/examples/timeline.rb +1 -0
  13. data/lib/twitter.rb +13 -2
  14. data/lib/twitter/base.rb +52 -19
  15. data/lib/twitter/cli.rb +13 -7
  16. data/lib/twitter/cli/helpers.rb +20 -8
  17. data/lib/twitter/direct_message.rb +7 -7
  18. data/lib/twitter/rate_limit_status.rb +4 -4
  19. data/lib/twitter/search.rb +10 -3
  20. data/lib/twitter/search_result.rb +83 -0
  21. data/lib/twitter/search_result_info.rb +82 -0
  22. data/lib/twitter/status.rb +8 -8
  23. data/lib/twitter/user.rb +18 -18
  24. data/lib/twitter/version.rb +1 -7
  25. data/spec/base_spec.rb +32 -2
  26. data/spec/cli/helper_spec.rb +21 -7
  27. data/spec/fixtures/follower_ids.xml +11 -0
  28. data/spec/fixtures/friend_ids.xml +12 -0
  29. data/spec/fixtures/friendship_already_exists.xml +5 -0
  30. data/spec/fixtures/friendship_created.xml +12 -0
  31. data/spec/fixtures/search_result_info.yml +147 -0
  32. data/spec/search_spec.rb +12 -1
  33. data/spec/spec_helper.rb +12 -1
  34. data/twitter.gemspec +17 -21
  35. data/website/index.html +4 -1
  36. metadata +49 -46
  37. data/config/hoe.rb +0 -74
  38. data/config/requirements.rb +0 -17
  39. data/script/destroy +0 -14
  40. data/script/generate +0 -14
  41. data/script/txt2html +0 -74
  42. data/setup.rb +0 -1585
  43. data/tasks/deployment.rake +0 -50
  44. data/tasks/environment.rake +0 -7
  45. data/tasks/website.rake +0 -17
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ids>
3
+ <id>1192</id>
4
+ <id>750823</id>
5
+ <id>813198</id>
6
+ <id>10718</id>
7
+ <id>13046</id>
8
+ <id>79543</id>
9
+ <id>813775</id>
10
+ <id>681473</id>
11
+ </ids>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ids>
3
+ <id>1192</id>
4
+ <id>780561</id>
5
+ <id>10718</id>
6
+ <id>750823</id>
7
+ <id>643443</id>
8
+ <id>813198</id>
9
+ <id>13046</id>
10
+ <id>147093</id>
11
+ </ids>
12
+
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <hash>
3
+ <request>/friendships/create/billymeltdown.xml</request>
4
+ <error>Could not follow user: billymeltdown is already on your list.</error>
5
+ </hash>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <user>
3
+ <id>4243</id>
4
+ <name>John Nunemaker</name>
5
+ <screen_name>jnunemaker</screen_name>
6
+ <location>Indiana</location>
7
+ <description>Loves his wife, ruby, notre dame football and iu basketball</description>
8
+ <profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
9
+ <url>http://addictedtonew.com</url>
10
+ <protected>false</protected>
11
+ <followers_count>363</followers_count>
12
+ </user>
@@ -0,0 +1,147 @@
1
+ --- !map:Twitter::SearchResultInfo
2
+ results:
3
+ - !map:Twitter::SearchResult
4
+ text: "@jqr - wow. just really looked at httparty for first time - sweet! - have you been using that a lot?"
5
+ to_user_id: 176589
6
+ to_user: jqr
7
+ from_user: baldwindavid
8
+ id: 1073680192
9
+ from_user_id: 804487
10
+ iso_language_code: en
11
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/67146299/before_400_normal.jpg
12
+ created_at: Tue, 23 Dec 2008 04:20:12 +0000
13
+ - !map:Twitter::SearchResult
14
+ text: the httparty gem rocks my socks. no better way to consume web services in ruby.
15
+ to_user_id:
16
+ from_user: mildmojo
17
+ id: 1073135700
18
+ from_user_id: 2090305
19
+ iso_language_code: en
20
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/65215459/appicon_normal.png
21
+ created_at: Mon, 22 Dec 2008 22:20:43 +0000
22
+ - !map:Twitter::SearchResult
23
+ text: It's an HTTParty and everyone is invited!
24
+ to_user_id:
25
+ from_user: mypheme
26
+ id: 1067975762
27
+ from_user_id: 3067473
28
+ iso_language_code: en
29
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/67872558/Picture_3_normal.png
30
+ created_at: Fri, 19 Dec 2008 22:09:23 +0000
31
+ - !map:Twitter::SearchResult
32
+ text: dans la famille des clients http,vous connaissiez curb, httparty, mais connaissiez-vous httpclient ? http://dev.ctor.org/httpclient/
33
+ to_user_id:
34
+ from_user: rubyfrance
35
+ id: 1064812719
36
+ from_user_id: 70780
37
+ iso_language_code: fr
38
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/51884877/twitter_normal.png
39
+ created_at: Thu, 18 Dec 2008 12:46:27 +0000
40
+ - !map:Twitter::SearchResult
41
+ text: "@jnunemaker have you ever seen httparty get a Net::HTTPServerException: 411 &quot;Length Required&quot; back?"
42
+ to_user_id: 19106
43
+ to_user: jnunemaker
44
+ from_user: techpickles
45
+ id: 1064375973
46
+ from_user_id: 22902
47
+ iso_language_code: en
48
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/64410494/Photo_9_normal.jpg
49
+ created_at: Thu, 18 Dec 2008 05:24:23 +0000
50
+ - !map:Twitter::SearchResult
51
+ text: playing with the tumblr api, httparty style
52
+ to_user_id:
53
+ from_user: techpickles
54
+ id: 1064355666
55
+ from_user_id: 22902
56
+ iso_language_code: en
57
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/64410494/Photo_9_normal.jpg
58
+ created_at: Thu, 18 Dec 2008 05:07:59 +0000
59
+ - !map:Twitter::SearchResult
60
+ text: Testing from HTTParty, awesome ruby gem that allows for easy access to APIs over http.
61
+ to_user_id:
62
+ from_user: simonreed
63
+ id: 1063822669
64
+ from_user_id: 63911
65
+ iso_language_code: en
66
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/53963586/fu_normal.jpg
67
+ created_at: Wed, 17 Dec 2008 23:21:34 +0000
68
+ - !map:Twitter::SearchResult
69
+ text: It's an HTTParty and everyone is invited!
70
+ to_user_id:
71
+ from_user: bernsno
72
+ id: 1063277742
73
+ from_user_id: 1495935
74
+ iso_language_code: en
75
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/63820805/me_normal.gif
76
+ created_at: Wed, 17 Dec 2008 18:25:31 +0000
77
+ - !map:Twitter::SearchResult
78
+ text: "[ruby] Using Context and Stump to HTTParty like a Wufoo"
79
+ to_user_id:
80
+ from_user: rubymentary
81
+ id: 1062068801
82
+ from_user_id: 474717
83
+ iso_language_code: en
84
+ profile_image_url: http://static.twitter.com/images/default_profile_normal.png
85
+ created_at: Wed, 17 Dec 2008 03:37:00 +0000
86
+ - !map:Twitter::SearchResult
87
+ text: "net/http\xE3\x81\xAEwrapper\xE3\x81\xA0\xE3\x81\xA3\xE3\x81\x9F\xE3\x80\x82\xE3\x80\x82\xE3\x80\x82 &gt; HTTParty re: http://ff.im/h1Dg"
88
+ to_user_id:
89
+ from_user: nahi
90
+ id: 1061821371
91
+ from_user_id: 36221
92
+ iso_language_code: "no"
93
+ profile_image_url: http://static.twitter.com/images/default_profile_normal.png
94
+ created_at: Wed, 17 Dec 2008 00:58:19 +0000
95
+ - !map:Twitter::SearchResult
96
+ text: Using HTTParty to wrap the Wufoo form submit API, as we are switching the Ordered List contact form to Wufoo.
97
+ to_user_id:
98
+ from_user: jnunemaker
99
+ id: 1061117717
100
+ from_user_id: 19106
101
+ iso_language_code: en
102
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/61024905/black250_normal.jpg
103
+ created_at: Tue, 16 Dec 2008 18:25:28 +0000
104
+ - !map:Twitter::SearchResult
105
+ text: Playing with HTTParty. Like it already. :)
106
+ to_user_id:
107
+ from_user: atog
108
+ id: 1058725999
109
+ from_user_id: 21795
110
+ iso_language_code: en
111
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/61430136/ikke_vierkant_normal.jpg
112
+ created_at: Mon, 15 Dec 2008 16:06:26 +0000
113
+ - !map:Twitter::SearchResult
114
+ text: HTTParty is like sweet candy...
115
+ to_user_id:
116
+ from_user: levicole
117
+ id: 1055553905
118
+ from_user_id: 111971
119
+ iso_language_code: en
120
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/24274692/Photo_2_normal.jpg
121
+ created_at: Sat, 13 Dec 2008 17:52:01 +0000
122
+ - !map:Twitter::SearchResult
123
+ text: "thinking httparty needs a bit of morph class generation magic: http://tinyurl.com/6774gz"
124
+ to_user_id:
125
+ from_user: delineator
126
+ id: 1054352107
127
+ from_user_id: 102024
128
+ iso_language_code: en
129
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/63867007/rob_64_64_normal.png
130
+ created_at: Fri, 12 Dec 2008 22:53:41 +0000
131
+ - !map:Twitter::SearchResult
132
+ text: To use HTTParty, or just net/http? I'm going to have to change some headers, which means digging around. Hrm.
133
+ to_user_id:
134
+ from_user: HibiscuS4
135
+ id: 1050622779
136
+ from_user_id: 8780
137
+ iso_language_code: en
138
+ profile_image_url: http://s3.amazonaws.com/twitter_production/profile_images/60311231/Photo_9_normal.jpg
139
+ created_at: Thu, 11 Dec 2008 04:13:06 +0000
140
+ since_id: 0
141
+ max_id: 1078578631
142
+ refresh_url: ?since_id=1078578631&q=httparty
143
+ results_per_page: 15
144
+ next_page: ?page=2&max_id=1078578631&q=httparty
145
+ completed_in: 0.018799
146
+ page: 1
147
+ query: httparty
@@ -49,6 +49,10 @@ describe Twitter::Search do
49
49
  @search.per_page(25).query[:rpp].should == 25
50
50
  end
51
51
 
52
+ it "should be able to specify the page number" do
53
+ @search.page(20).query[:page].should == 20
54
+ end
55
+
52
56
  it "should be able to specify only returning results greater than an id" do
53
57
  @search.since(1234).query[:since_id].should == 1234
54
58
  end
@@ -73,7 +77,7 @@ describe Twitter::Search do
73
77
 
74
78
  describe "fetching" do
75
79
  before do
76
- @response = open(File.dirname(__FILE__) + '/fixtures/friends_timeline.xml').read
80
+ @response = YAML.load_file(File.dirname(__FILE__) + '/fixtures/search_result_info.yml')
77
81
  @search.class.stub!(:get).and_return(@response)
78
82
  end
79
83
 
@@ -81,6 +85,13 @@ describe Twitter::Search do
81
85
  @search.class.should_receive(:get).and_return(@response)
82
86
  @search.from('jnunemaker').fetch().should == @response
83
87
  end
88
+
89
+ it "should support dot notation" do
90
+ @search.class.should_receive(:get).and_return(@response)
91
+ info = @search.from('httparty').fetch()
92
+ info["max_id"].should == info.max_id
93
+ info["results"].first["text"].should == info.results.first.text
94
+ end
84
95
  end
85
96
 
86
97
  it "should be able to iterate over results" do
@@ -9,4 +9,15 @@ end
9
9
  dir = File.dirname(__FILE__)
10
10
 
11
11
  $:.unshift(File.join(dir, '/../lib/'))
12
- require dir + '/../lib/twitter'
12
+ require dir + '/../lib/twitter'
13
+
14
+
15
+ def stdout_for(&block)
16
+ # Inspired by http://www.ruby-forum.com/topic/58647
17
+ old_stdout = $stdout
18
+ $stdout = StringIO.new
19
+ yield
20
+ output = $stdout.string
21
+ $stdout = old_stdout
22
+ output
23
+ end
@@ -1,49 +1,45 @@
1
+ # -*- encoding: utf-8 -*-
2
+
1
3
  Gem::Specification.new do |s|
2
4
  s.name = %q{twitter}
3
- s.version = "0.4.0"
5
+ s.version = "0.4.2"
4
6
 
5
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
8
  s.authors = ["John Nunemaker"]
7
- s.date = %q{2008-08-26}
9
+ s.date = %q{2009-02-07}
8
10
  s.default_executable = %q{twitter}
9
11
  s.description = %q{a command line interface for twitter, also a library which wraps the twitter api}
10
12
  s.email = %q{nunemaker@gmail.com}
11
13
  s.executables = ["twitter"]
12
- s.extra_rdoc_files = ["History.txt", "License.txt", "Manifest.txt", "README.txt"]
13
- s.files = ["History.txt", "License.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/twitter", "config/hoe.rb", "config/requirements.rb", "examples/blocks.rb", "examples/direct_messages.rb", "examples/favorites.rb", "examples/friends_followers.rb", "examples/friendships.rb", "examples/identica_timeline.rb", "examples/location.rb", "examples/posting.rb", "examples/replies.rb", "examples/search.rb", "examples/sent_messages.rb", "examples/timeline.rb", "examples/twitter.rb", "examples/verify_credentials.rb", "lib/twitter.rb", "lib/twitter/base.rb", "lib/twitter/cli.rb", "lib/twitter/cli/config.rb", "lib/twitter/cli/helpers.rb", "lib/twitter/cli/migrations/20080722194500_create_accounts.rb", "lib/twitter/cli/migrations/20080722194508_create_tweets.rb", "lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb", "lib/twitter/cli/migrations/20080722214606_create_configurations.rb", "lib/twitter/cli/models/account.rb", "lib/twitter/cli/models/configuration.rb", "lib/twitter/cli/models/tweet.rb", "lib/twitter/direct_message.rb", "lib/twitter/easy_class_maker.rb", "lib/twitter/rate_limit_status.rb", "lib/twitter/search.rb", "lib/twitter/status.rb", "lib/twitter/user.rb", "lib/twitter/version.rb", "script/destroy", "script/generate", "script/txt2html", "setup.rb", "spec/base_spec.rb", "spec/cli/helper_spec.rb", "spec/direct_message_spec.rb", "spec/fixtures/followers.xml", "spec/fixtures/friends.xml", "spec/fixtures/friends_for.xml", "spec/fixtures/friends_lite.xml", "spec/fixtures/friends_timeline.xml", "spec/fixtures/public_timeline.xml", "spec/fixtures/rate_limit_status.xml", "spec/fixtures/search_results.json", "spec/fixtures/status.xml", "spec/fixtures/user.xml", "spec/fixtures/user_timeline.xml", "spec/search_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/status_spec.rb", "spec/user_spec.rb", "tasks/deployment.rake", "tasks/environment.rake", "tasks/website.rake", "twitter.gemspec", "website/css/common.css", "website/images/terminal_output.png", "website/index.html"]
14
+ s.extra_rdoc_files = ["bin/twitter", "lib/twitter/base.rb", "lib/twitter/cli/config.rb", "lib/twitter/cli/helpers.rb", "lib/twitter/cli/migrations/20080722194500_create_accounts.rb", "lib/twitter/cli/migrations/20080722194508_create_tweets.rb", "lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb", "lib/twitter/cli/migrations/20080722214606_create_configurations.rb", "lib/twitter/cli/models/account.rb", "lib/twitter/cli/models/configuration.rb", "lib/twitter/cli/models/tweet.rb", "lib/twitter/cli.rb", "lib/twitter/direct_message.rb", "lib/twitter/easy_class_maker.rb", "lib/twitter/rate_limit_status.rb", "lib/twitter/search.rb", "lib/twitter/search_result.rb", "lib/twitter/search_result_info.rb", "lib/twitter/status.rb", "lib/twitter/user.rb", "lib/twitter/version.rb", "lib/twitter.rb", "README"]
15
+ s.files = ["bin/twitter", "examples/blocks.rb", "examples/direct_messages.rb", "examples/favorites.rb", "examples/friends_followers.rb", "examples/friendships.rb", "examples/identica_timeline.rb", "examples/location.rb", "examples/posting.rb", "examples/replies.rb", "examples/search.rb", "examples/sent_messages.rb", "examples/timeline.rb", "examples/twitter.rb", "examples/verify_credentials.rb", "History", "lib/twitter/base.rb", "lib/twitter/cli/config.rb", "lib/twitter/cli/helpers.rb", "lib/twitter/cli/migrations/20080722194500_create_accounts.rb", "lib/twitter/cli/migrations/20080722194508_create_tweets.rb", "lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb", "lib/twitter/cli/migrations/20080722214606_create_configurations.rb", "lib/twitter/cli/models/account.rb", "lib/twitter/cli/models/configuration.rb", "lib/twitter/cli/models/tweet.rb", "lib/twitter/cli.rb", "lib/twitter/direct_message.rb", "lib/twitter/easy_class_maker.rb", "lib/twitter/rate_limit_status.rb", "lib/twitter/search.rb", "lib/twitter/search_result.rb", "lib/twitter/search_result_info.rb", "lib/twitter/status.rb", "lib/twitter/user.rb", "lib/twitter/version.rb", "lib/twitter.rb", "License", "Manifest", "Rakefile", "README", "spec/base_spec.rb", "spec/cli/helper_spec.rb", "spec/direct_message_spec.rb", "spec/fixtures/follower_ids.xml", "spec/fixtures/followers.xml", "spec/fixtures/friend_ids.xml", "spec/fixtures/friends.xml", "spec/fixtures/friends_for.xml", "spec/fixtures/friends_lite.xml", "spec/fixtures/friends_timeline.xml", "spec/fixtures/friendship_already_exists.xml", "spec/fixtures/friendship_created.xml", "spec/fixtures/public_timeline.xml", "spec/fixtures/rate_limit_status.xml", "spec/fixtures/search_result_info.yml", "spec/fixtures/search_results.json", "spec/fixtures/status.xml", "spec/fixtures/user.xml", "spec/fixtures/user_timeline.xml", "spec/search_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/status_spec.rb", "spec/user_spec.rb", "twitter.gemspec", "website/css/common.css", "website/images/terminal_output.png", "website/index.html"]
14
16
  s.has_rdoc = true
15
17
  s.homepage = %q{http://twitter.rubyforge.org}
16
- s.rdoc_options = ["--main", "README.txt"]
18
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Twitter", "--main", "README"]
17
19
  s.require_paths = ["lib"]
18
20
  s.rubyforge_project = %q{twitter}
19
- s.rubygems_version = %q{1.2.0}
21
+ s.rubygems_version = %q{1.3.1}
20
22
  s.summary = %q{a command line interface for twitter, also a library which wraps the twitter api}
21
23
 
22
24
  if s.respond_to? :specification_version then
23
25
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
26
  s.specification_version = 2
25
27
 
26
- if current_version >= 3 then
28
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
27
29
  s.add_runtime_dependency(%q<hpricot>, [">= 0.6"])
28
30
  s.add_runtime_dependency(%q<activesupport>, [">= 2.1"])
29
- s.add_runtime_dependency(%q<main>, [">= 2.8.2"])
30
- s.add_runtime_dependency(%q<highline>, [">= 1.4.0"])
31
- s.add_runtime_dependency(%q<activerecord>, [">= 2.1"])
32
- s.add_runtime_dependency(%q<httparty>, [">= 0.1.0"])
31
+ s.add_runtime_dependency(%q<httparty>, [">= 0.2.4"])
32
+ s.add_development_dependency(%q<echoe>, [">= 0"])
33
33
  else
34
34
  s.add_dependency(%q<hpricot>, [">= 0.6"])
35
35
  s.add_dependency(%q<activesupport>, [">= 2.1"])
36
- s.add_dependency(%q<main>, [">= 2.8.2"])
37
- s.add_dependency(%q<highline>, [">= 1.4.0"])
38
- s.add_dependency(%q<activerecord>, [">= 2.1"])
39
- s.add_dependency(%q<httparty>, [">= 0.1.0"])
36
+ s.add_dependency(%q<httparty>, [">= 0.2.4"])
37
+ s.add_dependency(%q<echoe>, [">= 0"])
40
38
  end
41
39
  else
42
40
  s.add_dependency(%q<hpricot>, [">= 0.6"])
43
41
  s.add_dependency(%q<activesupport>, [">= 2.1"])
44
- s.add_dependency(%q<main>, [">= 2.8.2"])
45
- s.add_dependency(%q<highline>, [">= 1.4.0"])
46
- s.add_dependency(%q<activerecord>, [">= 2.1"])
47
- s.add_dependency(%q<httparty>, [">= 0.1.0"])
42
+ s.add_dependency(%q<httparty>, [">= 0.2.4"])
43
+ s.add_dependency(%q<echoe>, [">= 0"])
48
44
  end
49
- end
45
+ end
@@ -87,7 +87,10 @@ Twitter::Search.new.from('jnunemaker').to('oaknd1').fetch()
87
87
 
88
88
  <p><img src="images/terminal_output.png" alt="Terminal Output" style="width:560px;" /></p>
89
89
 
90
- <p><strong>Note: If you want to use twitter from the command line be sure that sqlite3 and the sqlite3-ruby gem are installed.</strong> I removed the sqlite3-ruby gem as a dependency because you shouldn't need that to just use the API wrapper. Eventually I'll move the CLI interface into another gem.</p>
90
+ <p>I removed the command line dependencies from the gem dependencies list so if you want to use the command line part of the twitter gem be sure to install the following gems as well.</p>
91
+
92
+ <pre><code>$ sudo gem install main highline sqlite3-ruby
93
+ $ sudo gem install activerecord -v 2.2.2</code></pre>
91
94
 
92
95
  <p>The first thing you'll want to do is install the database so your account(s) can be stored.</p>
93
96
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handcrafted-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-26 00:00:00 -07:00
12
+ date: 2009-02-07 00:00:00 -08:00
13
13
  default_executable: twitter
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -31,40 +31,22 @@ dependencies:
31
31
  version: "2.1"
32
32
  version:
33
33
  - !ruby/object:Gem::Dependency
34
- name: main
35
- version_requirement:
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 2.8.2
41
- version:
42
- - !ruby/object:Gem::Dependency
43
- name: highline
44
- version_requirement:
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 1.4.0
50
- version:
51
- - !ruby/object:Gem::Dependency
52
- name: activerecord
34
+ name: httparty
53
35
  version_requirement:
54
36
  version_requirements: !ruby/object:Gem::Requirement
55
37
  requirements:
56
38
  - - ">="
57
39
  - !ruby/object:Gem::Version
58
- version: "2.1"
40
+ version: 0.2.4
59
41
  version:
60
42
  - !ruby/object:Gem::Dependency
61
- name: httparty
43
+ name: echoe
62
44
  version_requirement:
63
45
  version_requirements: !ruby/object:Gem::Requirement
64
46
  requirements:
65
47
  - - ">="
66
48
  - !ruby/object:Gem::Version
67
- version: 0.1.0
49
+ version: "0"
68
50
  version:
69
51
  description: a command line interface for twitter, also a library which wraps the twitter api
70
52
  email: nunemaker@gmail.com
@@ -73,19 +55,31 @@ executables:
73
55
  extensions: []
74
56
 
75
57
  extra_rdoc_files:
76
- - History.txt
77
- - License.txt
78
- - Manifest.txt
79
- - README.txt
58
+ - bin/twitter
59
+ - lib/twitter/base.rb
60
+ - lib/twitter/cli/config.rb
61
+ - lib/twitter/cli/helpers.rb
62
+ - lib/twitter/cli/migrations/20080722194500_create_accounts.rb
63
+ - lib/twitter/cli/migrations/20080722194508_create_tweets.rb
64
+ - lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb
65
+ - lib/twitter/cli/migrations/20080722214606_create_configurations.rb
66
+ - lib/twitter/cli/models/account.rb
67
+ - lib/twitter/cli/models/configuration.rb
68
+ - lib/twitter/cli/models/tweet.rb
69
+ - lib/twitter/cli.rb
70
+ - lib/twitter/direct_message.rb
71
+ - lib/twitter/easy_class_maker.rb
72
+ - lib/twitter/rate_limit_status.rb
73
+ - lib/twitter/search.rb
74
+ - lib/twitter/search_result.rb
75
+ - lib/twitter/search_result_info.rb
76
+ - lib/twitter/status.rb
77
+ - lib/twitter/user.rb
78
+ - lib/twitter/version.rb
79
+ - lib/twitter.rb
80
+ - README
80
81
  files:
81
- - History.txt
82
- - License.txt
83
- - Manifest.txt
84
- - README.txt
85
- - Rakefile
86
82
  - bin/twitter
87
- - config/hoe.rb
88
- - config/requirements.rb
89
83
  - examples/blocks.rb
90
84
  - examples/direct_messages.rb
91
85
  - examples/favorites.rb
@@ -100,9 +94,8 @@ files:
100
94
  - examples/timeline.rb
101
95
  - examples/twitter.rb
102
96
  - examples/verify_credentials.rb
103
- - lib/twitter.rb
97
+ - History
104
98
  - lib/twitter/base.rb
105
- - lib/twitter/cli.rb
106
99
  - lib/twitter/cli/config.rb
107
100
  - lib/twitter/cli/helpers.rb
108
101
  - lib/twitter/cli/migrations/20080722194500_create_accounts.rb
@@ -112,27 +105,36 @@ files:
112
105
  - lib/twitter/cli/models/account.rb
113
106
  - lib/twitter/cli/models/configuration.rb
114
107
  - lib/twitter/cli/models/tweet.rb
108
+ - lib/twitter/cli.rb
115
109
  - lib/twitter/direct_message.rb
116
110
  - lib/twitter/easy_class_maker.rb
117
111
  - lib/twitter/rate_limit_status.rb
118
112
  - lib/twitter/search.rb
113
+ - lib/twitter/search_result.rb
114
+ - lib/twitter/search_result_info.rb
119
115
  - lib/twitter/status.rb
120
116
  - lib/twitter/user.rb
121
117
  - lib/twitter/version.rb
122
- - script/destroy
123
- - script/generate
124
- - script/txt2html
125
- - setup.rb
118
+ - lib/twitter.rb
119
+ - License
120
+ - Manifest
121
+ - Rakefile
122
+ - README
126
123
  - spec/base_spec.rb
127
124
  - spec/cli/helper_spec.rb
128
125
  - spec/direct_message_spec.rb
126
+ - spec/fixtures/follower_ids.xml
129
127
  - spec/fixtures/followers.xml
128
+ - spec/fixtures/friend_ids.xml
130
129
  - spec/fixtures/friends.xml
131
130
  - spec/fixtures/friends_for.xml
132
131
  - spec/fixtures/friends_lite.xml
133
132
  - spec/fixtures/friends_timeline.xml
133
+ - spec/fixtures/friendship_already_exists.xml
134
+ - spec/fixtures/friendship_created.xml
134
135
  - spec/fixtures/public_timeline.xml
135
136
  - spec/fixtures/rate_limit_status.xml
137
+ - spec/fixtures/search_result_info.yml
136
138
  - spec/fixtures/search_results.json
137
139
  - spec/fixtures/status.xml
138
140
  - spec/fixtures/user.xml
@@ -142,9 +144,6 @@ files:
142
144
  - spec/spec_helper.rb
143
145
  - spec/status_spec.rb
144
146
  - spec/user_spec.rb
145
- - tasks/deployment.rake
146
- - tasks/environment.rake
147
- - tasks/website.rake
148
147
  - twitter.gemspec
149
148
  - website/css/common.css
150
149
  - website/images/terminal_output.png
@@ -153,8 +152,12 @@ has_rdoc: true
153
152
  homepage: http://twitter.rubyforge.org
154
153
  post_install_message:
155
154
  rdoc_options:
155
+ - --line-numbers
156
+ - --inline-source
157
+ - --title
158
+ - Twitter
156
159
  - --main
157
- - README.txt
160
+ - README
158
161
  require_paths:
159
162
  - lib
160
163
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -167,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
170
  requirements:
168
171
  - - ">="
169
172
  - !ruby/object:Gem::Version
170
- version: "0"
173
+ version: "1.2"
171
174
  version:
172
175
  requirements: []
173
176