Created
April 29, 2010 09:32
-
-
Save olistik/383371 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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