Skip to content

Instantly share code, notes, and snippets.

@olistik
Created April 29, 2010 09:32
Show Gist options
  • Save olistik/383371 to your computer and use it in GitHub Desktop.
Save olistik/383371 to your computer and use it in GitHub Desktop.
# run me with: ruby wait_for_lucid_lynx.rb
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'ruby-growl'
g = Growl.new "localhost", "ruby-growl",
["ruby-growl Notification"]
ubuntu_url = 'http://www.ubuntu.com'
released = false
until released
g.notify "ruby-growl Notification", "Ubuntu celebration", "still waiting.. :'-("
home = Nokogiri::HTML(open(ubuntu_url))
released = home.css('.headings h1').first.content != "Change is coming."
sleep 60
end
g.notify "ruby-growl Notification", "Ubuntu celebration", "Lucid Lynx has been released!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment