remi / rubytube

Micro gem for posting new screencasts to http://rubytu.be

This URL has Read+Write access

name age message
file .gitignore Loading commit data...
file README.rdoc
file Rakefile
file VERSION
directory lib/
file rubytube.gemspec
directory spec/
README.rdoc

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!
  => "Thanks for the submission! We'll post it after a quick review!"

  # If you try to submit the same screencast again:

  >> screencast.submit!
  => "There was a problem, most likely a wrong or duplicate URL, sorry!"

After you’ve called RubyTube::Screencast#submit! you can goto a URL like rubytu.be/ruby-basics to see if your screencast was created. It will show up here before it is added to the home page of the site (my guess is that the site owner approves all videos?)

Resources

RubyTube Site:rubytu.be
RDoc:remi.github.com/rubytube
Code:github.com/remi/rubytube