Let the Ruby parade begin! Twittering with Ruby and Grackle

Here is the first of a series of small ruby scripts. This little thing will create a randomly generate one liners in the hopes of getting free stuff. Run it with your cron job.

#!/usr/bin/ruby
require 'grackle'
 
givemes = ["John Searle", "Chipotle", "Dadaism", "Firaxis games", "Steve Jackson games"]
predicates = ["... awesome!", "... soooo cool", "... the best!"]
 
subject = rand(givemes.length)
verbPhrase = rand(predicates.length)
 
text = "#{givemes[subject]} #{predicates[verbPhrase]}"
 
client = Grackle::Client.new(:auth=>{:type=>:basic,:username=>'shupercute32',:password=>'xoxoxo'})
 
result = client.statuses.update.json! :status=>text

As you can see, I am a man of little material wants.