-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
jnunemaker
committed
Dec 15, 2006
0 parents
commit cd7aecd
Showing
86 changed files
with
10,019 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
addicted to twitter | ||
================== | ||
|
||
... a sweet little diddy that helps you twitter your life away | ||
|
||
|
||
== Command Line Use | ||
|
||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = "[email protected]" | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
# | ||
# | ||
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.