Permalink
Browse files

initial import of all my public projects

git-svn-id: http://svn.addictedtonew.com/public/gems/twitter@1 fe7eae16-9a24-0410-a59d-9e59979e88be
  • Loading branch information...
0 parents commit cd7aecde450157ae2ec0c07a2171d7149bebb74a jnunemaker committed Dec 15, 2006
Showing with 10,019 additions and 0 deletions.
  1. +2 −0 CHANGELOG
  2. +12 −0 Manifest.txt
  3. +46 −0 README
  4. +57 −0 Rakefile
  5. +35 −0 bin/twitter
  6. +113 −0 doc/classes/Twitter/BadResponse.html
  7. +250 −0 doc/classes/Twitter/Base.html
  8. +18 −0 doc/classes/Twitter/Base.src/M000015.html
  9. +18 −0 doc/classes/Twitter/Base.src/M000016.html
  10. +20 −0 doc/classes/Twitter/Base.src/M000017.html
  11. +18 −0 doc/classes/Twitter/Base.src/M000018.html
  12. +18 −0 doc/classes/Twitter/Base.src/M000019.html
  13. +25 −0 doc/classes/Twitter/Base.src/M000020.html
  14. +113 −0 doc/classes/Twitter/CantConnect.html
  15. +261 −0 doc/classes/Twitter/Command.html
  16. +32 −0 doc/classes/Twitter/Command.src/M000007.html
  17. +18 −0 doc/classes/Twitter/Command.src/M000008.html
  18. +32 −0 doc/classes/Twitter/Command.src/M000009.html
  19. +31 −0 doc/classes/Twitter/Command.src/M000010.html
  20. +28 −0 doc/classes/Twitter/Command.src/M000011.html
  21. +43 −0 doc/classes/Twitter/Command.src/M000012.html
  22. +28 −0 doc/classes/Twitter/Command.src/M000013.html
  23. +43 −0 doc/classes/Twitter/Command.src/M000014.html
  24. +179 −0 doc/classes/Twitter/EasyClassMaker.html
  25. +18 −0 doc/classes/Twitter/EasyClassMaker.src/M000001.html
  26. +18 −0 doc/classes/Twitter/EasyClassMaker.src/M000002.html
  27. +156 −0 doc/classes/Twitter/EasyClassMaker/ClassMethods.html
  28. +19 −0 doc/classes/Twitter/EasyClassMaker/ClassMethods.src/M000003.html
  29. +16 −0 doc/classes/Twitter/EasyClassMaker/ClassMethods.src/M000004.html
  30. +147 −0 doc/classes/Twitter/Status.html
  31. +24 −0 doc/classes/Twitter/Status.src/M000005.html
  32. +111 −0 doc/classes/Twitter/UnknownTimeline.html
  33. +111 −0 doc/classes/Twitter/Untwitterable.html
  34. +147 −0 doc/classes/Twitter/User.html
  35. +23 −0 doc/classes/Twitter/User.src/M000006.html
  36. +1 −0 doc/created.rid
  37. +148 −0 doc/files/bin/twitter.html
  38. +123 −0 doc/files/lib/twitter/base_rb.html
  39. +115 −0 doc/files/lib/twitter/command_rb.html
  40. +108 −0 doc/files/lib/twitter/easy_class_maker_rb.html
  41. +123 −0 doc/files/lib/twitter/status_rb.html
  42. +122 −0 doc/files/lib/twitter/user_rb.html
  43. +101 −0 doc/files/lib/twitter/version_rb.html
  44. +154 −0 doc/files/lib/twitter_rb.html
  45. +36 −0 doc/fr_class_index.html
  46. +34 −0 doc/fr_file_index.html
  47. +47 −0 doc/fr_method_index.html
  48. +24 −0 doc/index.html
  49. +208 −0 doc/rdoc-style.css
  50. +45 −0 lib/twitter.rb
  51. +109 −0 lib/twitter/base.rb
  52. +195 −0 lib/twitter/command.rb
  53. +43 −0 lib/twitter/easy_class_maker.rb
  54. +33 −0 lib/twitter/status.rb
  55. +32 −0 lib/twitter/user.rb
  56. +9 −0 lib/twitter/version.rb
  57. BIN pkg/twitter-0.0.1.gem
  58. BIN pkg/twitter-0.0.1.tgz
  59. +2 −0 pkg/twitter-0.0.1/CHANGELOG
  60. +12 −0 pkg/twitter-0.0.1/Manifest.txt
  61. +46 −0 pkg/twitter-0.0.1/README
  62. +57 −0 pkg/twitter-0.0.1/Rakefile
  63. +35 −0 pkg/twitter-0.0.1/bin/twitter
  64. +45 −0 pkg/twitter-0.0.1/lib/twitter.rb
  65. +109 −0 pkg/twitter-0.0.1/lib/twitter/base.rb
  66. +195 −0 pkg/twitter-0.0.1/lib/twitter/command.rb
  67. +43 −0 pkg/twitter-0.0.1/lib/twitter/easy_class_maker.rb
  68. +33 −0 pkg/twitter-0.0.1/lib/twitter/status.rb
  69. +32 −0 pkg/twitter-0.0.1/lib/twitter/user.rb
  70. +9 −0 pkg/twitter-0.0.1/lib/twitter/version.rb
  71. +1,585 −0 pkg/twitter-0.0.1/setup.rb
  72. BIN pkg/twitter-0.0.2.gem
  73. BIN pkg/twitter-0.0.2.tgz
  74. +2 −0 pkg/twitter-0.0.2/CHANGELOG
  75. +46 −0 pkg/twitter-0.0.2/README
  76. +57 −0 pkg/twitter-0.0.2/Rakefile
  77. +35 −0 pkg/twitter-0.0.2/bin/twitter
  78. +45 −0 pkg/twitter-0.0.2/lib/twitter.rb
  79. +109 −0 pkg/twitter-0.0.2/lib/twitter/base.rb
  80. +195 −0 pkg/twitter-0.0.2/lib/twitter/command.rb
  81. +43 −0 pkg/twitter-0.0.2/lib/twitter/easy_class_maker.rb
  82. +33 −0 pkg/twitter-0.0.2/lib/twitter/status.rb
  83. +32 −0 pkg/twitter-0.0.2/lib/twitter/user.rb
  84. +9 −0 pkg/twitter-0.0.2/lib/twitter/version.rb
  85. +1,585 −0 pkg/twitter-0.0.2/setup.rb
  86. +1,585 −0 setup.rb
@@ -0,0 +1,2 @@
+0.0.2 - added the command line options i forgot to add (friend and follower); improved some docs
+0.0.1 - initial release
@@ -0,0 +1,12 @@
+README
+CHANGELOG
+Rakefile
+setup.rb
+bin/twitter
+lib/twitter.rb
+lib/twitter/base.rb
+lib/twitter/command.rb
+lib/twitter/easy_class_maker.rb
+lib/twitter/status.rb
+lib/twitter/user.rb
+lib/twitter/version.rb
@@ -0,0 +1,46 @@
+addicted to twitter
+==================
+
+... a sweet little diddy that helps you twitter your life away
+
+
+== Command Line Use
+
+$ twitter
+
+That will show the commands and each command will either run or show you the options it needs to run
+
+$ twitter post "releasing my new twitter gem"
+
+That will post a status update to your twitter
+
+== 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
@@ -0,0 +1,57 @@
+require 'rubygems'
+require 'rake'
+require 'rake/clean'
+require 'rake/testtask'
+require 'rake/packagetask'
+require 'rake/gempackagetask'
+require 'rake/rdoctask'
+require 'rake/contrib/rubyforgepublisher'
+require 'fileutils'
+require 'hoe'
+include FileUtils
+require File.join(File.dirname(__FILE__), 'lib', 'twitter', 'version')
+
+AUTHOR = "John Nunemaker" # can also be an array of Authors
+EMAIL = "nunemaker@gmail.com"
+DESCRIPTION = "a command line interface for twitter, also a library which wraps the twitter api"
+GEM_NAME = "twitter" # what ppl will type to install your gem
+RUBYFORGE_PROJECT = "twitter" # The unix name for your project
+HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
+RELEASE_TYPES = %w( gem ) # can use: gem, tar, zip
+
+
+NAME = "twitter"
+REV = nil # UNCOMMENT IF REQUIRED: File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
+VERS = ENV['VERSION'] || (Twitter::VERSION::STRING + (REV ? ".#{REV}" : ""))
+CLEAN.include ['**/.*.sw?', '*.gem', '.config']
+RDOC_OPTS = ['--quiet', '--title', "twitter documentation",
+ "--opname", "index.html",
+ "--line-numbers",
+ "--main", "README",
+ "--inline-source"]
+
+# Generate all the Rake tasks
+# Run 'rake -T' to see list of generated tasks (from gem root directory)
+hoe = Hoe.new(GEM_NAME, VERS) do |p|
+ p.author = AUTHOR
+ p.description = DESCRIPTION
+ p.email = EMAIL
+ p.summary = DESCRIPTION
+ p.url = HOMEPATH
+ p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
+ p.test_globs = ["test/**/*_test.rb"]
+ p.clean_globs = CLEAN #An array of file patterns to delete on clean.
+
+ # == Optional
+ #p.changes - A description of the release's latest changes.
+ p.extra_deps = %w( hpricot )
+ #p.spec_extras - A hash of extra values to set in the gemspec.
+end
+
+
+
+desc "Package and Install Gem"
+task :package_and_install do
+ `rake package`
+ `sudo gem install pkg/#{NAME}-#{VERS}.gem`
+end
@@ -0,0 +1,35 @@
+#!/usr/bin/env ruby
+# = addicted to twitter
+#
+# ... a sweet little diddy that helps you twitter your life away from the command line
+#
+# == Install
+#
+# $ sudo gem install twitter
+#
+# == Command Line Use
+#
+# $ twitter
+#
+# Usage: twitter <command> [options]
+#
+# Available Commands:
+# - post
+# - timeline
+# - friends
+# - friend
+# - followers
+# - follower
+#
+# That will show the commands and each command will either run or show you the options it needs to run
+#
+# $ twitter post "releasing my new twitter gem"
+#
+# Got it! New twitter created at: Mon Nov 27 00:22:27 UTC 2006
+#
+# That will post a status update to your twitter
+require 'rubygems'
+require 'twitter'
+require 'twitter/command'
+
+Twitter::Command.process(ARGV)
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: Twitter::BadResponse</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">Twitter::BadResponse</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/twitter/base_rb.html">
+ lib/twitter/base.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ <a href="Untwitterable.html">
+ Untwitterable
+ </a>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
Oops, something went wrong. Retry.

0 comments on commit cd7aecd

Please sign in to comment.