RubyTube

This is a micro gem simply for posting screencasts to rubytu.be

rubytu.be is a community driven collection of Ruby related videos.

Unfortunately, the site doesn’t seem to have any API, it merely has 1 page that shows the listings (with pagination) and it has a feed containing the most recent videos posted.

Having to manually post screencasts to rubytu.be each time I create a screencast doesn’t sound pleasant … so I figured I’d automate it.

Install

sudo gem install mechanize
sudo gem install remi-rubytube

Usage

>> require 'rubytube'
=> true

>> screencast = RubyTube::Screencast.new :name        => 'remi',
                                         :twitter     => '@remitaylor', 
                                         :title       => 'Ruby Basics', 
                                         :url         => 'http://remi.org/2009/09/13/ruby-basics.html',

:duration => ‘00:50:33’,

				           :tags        => %w( ruby tutorial basics ),

:description => “…”

=> #<RubyTube::Screencast:0x7fcc8a831c98...>

>> screencast.submit!
=> <WWW::Mechanize::Page...>