github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

stilist / turpentine

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • master ✓
    • ruby-only
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A simple Twitter client — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

API-call method: Crappy faked OAuth support; miscellaneous other cleanup. 
stilist (author)
Thu Apr 02 18:43:56 -0700 2009
commit  74a278f1b3d17ec872ba7283ca5f87528c011918
tree    ba72f55513bec8b8b534283beeb0f744575a83f3
parent  a28f9cbecbdcfd4de5b57dd9a24ae2d5f1c9f6c3
turpentine /
name age
history
message
file .gitignore Loading commit data...
file LICENSE
file README.mdown
file authenticate.rb
file config-example.yaml
file engine.rb
file turpentine.rb
file twitter.rb
README.mdown

Turpentine

A delightful Twitter/Ruby on Rails learning project.

How to use

  1. sudo gem install json yaml rest-open-uri
  2. Rename config-example.yaml to config.yaml
  3. Edit user and password to match yours
  4. chmod +x turpentine.rb
  5. ./turpentine.rb
  6. To post tweets, open a new window and run ./turpentine.rb out

OAuth mode

  1. gem sources -a http://gems.github.com
  2. sudo gem install moomerman-twitter_oauth
  3. Edit the auth_mode line of config.yaml to read oauth. You’ll need to register for OAuth and edit the oauth section of config.yaml for your consumer key and secret.

Issues

This is all pretty clumsy at the moment, but it’s getting better. Here are some of the bigger concerns:

  • The only things that currently work are tweeting, viewing @replies, and seeing the friends_timeline. Favorites, direct messages, &c. don’t exist.
  • It would be good to verify that successful responses have a 200 code. I’m not sure how to do it; rest-open-uri doesn’t seem to expose such information.
  • Currently there is no time zone support, so you’ll see weird timestamps.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server