Permalink
Browse files

Removed all the old stuff. Rewrites are fun!!!!!

  • Loading branch information...
1 parent 4397254 commit dd2445e3e2c97f38b28a3f32ea902536b3897adf @jnunemaker jnunemaker committed Apr 3, 2009
Showing with 0 additions and 5,378 deletions.
  1. +0 −68 Manifest
  2. +0 −84 README
  3. +0 −42 Rakefile
  4. +0 −14 bin/twitter
  5. +0 −15 examples/blocks.rb
  6. +0 −29 examples/direct_messages.rb
  7. +0 −20 examples/favorites.rb
  8. +0 −25 examples/friends_followers.rb
  9. +0 −13 examples/friendships.rb
  10. +0 −7 examples/identica_timeline.rb
  11. +0 −8 examples/location.rb
  12. +0 −60 examples/oauth.rb
  13. +0 −9 examples/posting.rb
  14. +0 −27 examples/replies.rb
  15. +0 −18 examples/search.rb
  16. +0 −27 examples/sent_messages.rb
  17. +0 −34 examples/timeline.rb
  18. +0 −27 examples/twitter.rb
  19. +0 −13 examples/verify_credentials.rb
  20. +0 −38 lib/twitter.rb
  21. +0 −284 lib/twitter/base.rb
  22. +0 −334 lib/twitter/cli.rb
  23. +0 −9 lib/twitter/cli/config.rb
  24. +0 −109 lib/twitter/cli/helpers.rb
  25. +0 −13 lib/twitter/cli/migrations/20080722194500_create_accounts.rb
  26. +0 −16 lib/twitter/cli/migrations/20080722194508_create_tweets.rb
  27. +0 −9 lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb
  28. +0 −13 lib/twitter/cli/migrations/20080722214606_create_configurations.rb
  29. +0 −33 lib/twitter/cli/models/account.rb
  30. +0 −13 lib/twitter/cli/models/configuration.rb
  31. +0 −20 lib/twitter/cli/models/tweet.rb
  32. +0 −22 lib/twitter/direct_message.rb
  33. +0 −43 lib/twitter/easy_class_maker.rb
  34. +0 −32 lib/twitter/oauth.rb
  35. +0 −19 lib/twitter/rate_limit_status.rb
  36. +0 −101 lib/twitter/search.rb
  37. +0 −83 lib/twitter/search_result.rb
  38. +0 −82 lib/twitter/search_result_info.rb
  39. +0 −22 lib/twitter/status.rb
  40. +0 −38 lib/twitter/user.rb
  41. +0 −3 lib/twitter/version.rb
  42. +0 −139 spec/base_spec.rb
  43. +0 −49 spec/cli/helper_spec.rb
  44. +0 −35 spec/direct_message_spec.rb
  45. +0 −11 spec/fixtures/follower_ids.xml
  46. +0 −706 spec/fixtures/followers.xml
  47. +0 −12 spec/fixtures/friend_ids.xml
  48. +0 −609 spec/fixtures/friends.xml
  49. +0 −584 spec/fixtures/friends_for.xml
  50. +0 −192 spec/fixtures/friends_lite.xml
  51. +0 −66 spec/fixtures/friends_timeline.xml
  52. +0 −5 spec/fixtures/friendship_already_exists.xml
  53. +0 −12 spec/fixtures/friendship_created.xml
  54. +0 −148 spec/fixtures/public_timeline.xml
  55. +0 −7 spec/fixtures/rate_limit_status.xml
  56. +0 −147 spec/fixtures/search_result_info.yml
  57. +0 −1 spec/fixtures/search_results.json
  58. +0 −25 spec/fixtures/status.xml
  59. +0 −38 spec/fixtures/user.xml
  60. +0 −465 spec/fixtures/user_timeline.xml
  61. +0 −100 spec/search_spec.rb
  62. +0 −1 spec/spec.opts
  63. +0 −23 spec/spec_helper.rb
  64. +0 −40 spec/status_spec.rb
  65. +0 −42 spec/user_spec.rb
  66. +0 −45 twitter.gemspec
View
@@ -1,68 +0,0 @@
-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
-website/css/common.css
-website/images/terminal_output.png
-website/index.html
View
@@ -1,84 +0,0 @@
-= addicted to twitter
-
-... a sweet little diddy that helps you twitter your life away
-
-== Install
-
-sudo gem install twitter will work just fine. For command line use, you'll need a few other gems: sudo gem install main highline activerecord sqlite3-ruby
-
-== Examples
-
- Twitter::Base.new('your email', 'your password').update('watching veronica mars')
-
- # or you can use post
- Twitter::Base.new('your email', 'your password').post('post works too')
-
- puts "Public Timeline", "=" * 50
- Twitter::Base.new('your email', 'your password').timeline(:public).each do |s|
- puts s.text, s.user.name
- puts
- end
-
- puts '', "Friends Timeline", "=" * 50
- Twitter::Base.new('your email', 'your password').timeline.each do |s|
- puts s.text, s.user.name
- puts
- end
-
- puts '', "Friends", "=" * 50
- Twitter::Base.new('your email', 'your password').friends.each do |u|
- puts u.name, u.status.text
- puts
- end
-
- puts '', "Followers", "=" * 50
- Twitter::Base.new('your email', 'your password').followers.each do |u|
- puts u.name, u.status.text
- puts
- end
-
-== Search Examples
-
- Twitter::Search.new('httparty').each { |r| puts r.inspect }
- Twitter::Search.new('httparty').from('jnunemaker').each { |r| puts r.inspect }
- Twitter::Search.new.from('jnunemaker').to('oaknd1').each { |r| puts r.inspect }
-
-
-== Command Line Use
-
-Note: If you want to use twitter from the command line be sure that sqlite3 and the sqlite3-ruby gem are installed. 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.
-
- $ twitter
-
-Will give you a list of all the commands. You can get the help for each command by running twitter [command] -h.
-
-The first thing you'll want to do is install the database so your account(s) can be stored.
-
- $ twitter install
-
-You can always uninstall twitter like this:
-
- $ twitter uninstall
-
-Once the twitter database is installed and migrated, you can add accounts like this:
-
- $ twitter add
- Add New Account:
- Username: jnunemaker
- Password (won't be displayed):
- Account added.
-
-You can also list all the accounts you've added.
-
- $ twitter list
- Account List
- * jnunemaker
- snitch_test
-
-The * means denotes the account that will be used when posting, befriending, defriending, following, leaving or viewing a timeline.
-
-To post using the account marked with the *, simply type the following:
-
- $ twitter post "releasing my new twitter gem"
-
-That is about it. You can do pretty much anything that you can do with twitter from the command line interface.
View
@@ -1,42 +0,0 @@
-ProjectName = 'twitter'
-WebsitePath = "jnunemaker@rubyforge.org:/var/www/gforge-projects/#{ProjectName}"
-
-require 'rubygems'
-require 'rake'
-require 'echoe'
-require 'spec/rake/spectask'
-require "lib/#{ProjectName}/version"
-
-Echoe.new(ProjectName, Twitter::Version) do |p|
- p.description = "a command line interface for twitter, also a library which wraps the twitter api"
- p.url = "http://#{ProjectName}.rubyforge.org"
- p.author = "John Nunemaker"
- p.email = "nunemaker@gmail.com"
- p.extra_deps = [['oauth', '>= 0.3.2'], ['hpricot', '>= 0.6'], ['activesupport', '>= 2.1'], ['httparty', '>= 0.2.4']]
- p.need_tar_gz = false
- p.docs_host = WebsitePath
-end
-
-desc 'Upload website files to rubyforge'
-task :website do
- sh %{rsync -av website/ #{WebsitePath}}
- Rake::Task['website_docs'].invoke
-end
-
-task :website_docs do
- Rake::Task['redocs'].invoke
- sh %{rsync -av doc/ #{WebsitePath}/docs}
-end
-
-desc 'Preps the gem for a new release'
-task :prepare do
- %w[manifest build_gemspec].each do |task|
- Rake::Task[task].invoke
- end
-end
-
-Rake::Task[:default].prerequisites.clear
-task :default => :spec
-Spec::Rake::SpecTask.new do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
-end
View
@@ -1,14 +0,0 @@
-#!/usr/bin/env ruby
-
-# if we have stdin, let's prepend it to the message for post
-if ARGV[0] && ARGV[0] == 'post' && !STDIN.tty?
- ARGV[1] = "#{STDIN.read}#{ARGV[1]}"
-end
-
-# if we have stdin, let's prepend it to the message for d
-if ARGV[0] && ARGV[0] == 'd' && !STDIN.tty?
- ARGV[2] = "#{STDIN.read}#{ARGV[2]}"
-end
-
-require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'twitter'))
-require 'twitter/cli'
View
@@ -1,15 +0,0 @@
-require 'rubygems'
-require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
-config = YAML::load(open(ENV['HOME'] + '/.twitter'))
-
-twitter = Twitter::Base.new(config['email'], config['password'])
-
-puts 'BLOCK CREATE'
-puts twitter.block('project_rockne').name
-puts
-puts
-
-puts 'BLOCK DESTROY'
-puts twitter.block('project_rockne').name
-puts
-puts
@@ -1,29 +0,0 @@
-require 'rubygems'
-require 'activesupport'
-require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
-config = YAML::load(open(ENV['HOME'] + '/.twitter'))
-
-twitter = Twitter::Base.new(config['email'], config['password'])
-
-puts 'SINCE'
-twitter.direct_messages(:since => Time.now - 5.day).each do |s|
- puts "- #{s.id} #{s.text}"
-end
-puts
-puts
-
-# puts 'SINCE_ID'
-# twitter.direct_messages(:since_id => 33505386).each do |s|
-# puts "- #{s.text}"
-# end
-# puts
-# puts
-#
-# puts 'PAGE'
-# twitter.direct_messages(:page => 1).each do |s|
-# puts "- #{s.text}"
-# end
-# puts
-# puts
-
-# puts twitter.destroy_direct_message(34489057).inspect
View
@@ -1,20 +0,0 @@
-require 'rubygems'
-require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
-config = YAML::load(open(ENV['HOME'] + '/.twitter'))
-
-twitter = Twitter::Base.new(config['email'], config['password'])
-
-puts 'CREATE'
-puts twitter.create_favorite(865416114).text
-puts
-puts
-
-puts 'FAVORITES'
-twitter.favorites.each { |f| puts f.text }
-puts
-puts
-
-puts 'DESTROY'
-puts twitter.destroy_favorite(865416114).text
-puts
-puts
@@ -1,25 +0,0 @@
-require 'rubygems'
-require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
-config = YAML::load(open(ENV['HOME'] + '/.twitter'))
-
-twitter = Twitter::Base.new(config['email'], config['password'])
-
-puts "FRIENDS"
-twitter.friends.each { |f| puts f.name }
-puts
-puts
-
-puts "FRIENDS FOR"
-twitter.friends_for('orderedlist', :lite => true).each { |f| puts f.name }
-puts
-puts
-
-puts "FOLLOWERS"
-twitter.followers(:lite => true).each { |f| puts f.name }
-puts
-puts
-
-puts "FOLLOWERS FOR"
-twitter.followers_for('orderedlist', :lite => true).each { |f| puts f.name }
-puts
-puts
@@ -1,13 +0,0 @@
-require 'rubygems'
-require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
-config = YAML::load(open(ENV['HOME'] + '/.twitter'))
-
-twitter = Twitter::Base.new(config['email'], config['password'])
-
-puts twitter.create_friendship('orderedlist').name
-puts twitter.follow('orderedlist').name
-puts twitter.leave('orderedlist').name
-puts twitter.destroy_friendship('orderedlist').name
-
-puts twitter.friendship_exists?('jnunemaker', 'orderedlist').inspect
-puts twitter.friendship_exists?('jnunemaker', 'ze').inspect
@@ -1,7 +0,0 @@
-require 'rubygems'
-require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
-config = YAML::load(open(ENV['HOME'] + '/.twitter'))
-
-identica = Twitter::Base.new(config['email'], config['password'], :api_host => 'identi.ca/api')
-
-identica.timeline(:public).each { |s| puts s.text, s.user.name, '' }
@@ -1,8 +0,0 @@
-require 'rubygems'
-require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
-config = YAML::load(open(ENV['HOME'] + '/.twitter'))
-
-twitter = Twitter::Base.new(config['email'], config['password'])
-
-puts twitter.update_location('Hollywood, CA').location
-puts twitter.update_delivery_device('none')
Oops, something went wrong. Retry.

0 comments on commit dd2445e

Please sign in to comment.