Skip to content

kientran/RubyTwitterBadge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Author::    Kien Tran(mailto:kientran@kientran.com)
Copyright:: Copyright (c) 2009
License::   MIT 
Date:: June 12, 2009

Ruby version of the Twitter Badge php script.  This script
supports caching of twitter updates to prevent API flooding.

Note, that unlike the PHP version, I have not gotten around
to making the date display pretty.  As time permits, or if
I find a good script written by someone else, I'll implement.

Required external gems
curb (cURL for Ruby)
  gem instal curb

yajl (YAJL C Bindings for Ruby)
  See http://github.com/brianmario/yajl-ruby/tree/master

To implement this on your page, simply use the following code.

require 'TwitterBadge.rb'
puts twitterBadge('username', 'password')

This can go inside any Ruby templating you might be using.

Future implementation will include oAUTH as well as database
storage of tweets.

About

Ruby based version of the Twitter Badge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages