My wife enjoys it when I use my geek abilities to be "romantic" so I had an idea for a ruby script to install on her Mac that would send her quotes and little notes from me throughout the day. I already figured out that I'll be using GeekTool to run a script in the background and I'll use growlnotify to display the messages. Now what I need is a way to update the script from the web in case I change it. I know basically nothing about ruby other than how to interact with the console.
I have 2 goals: 1) Have an XML file with messages. This needs to be update-able from the internet, but be local in case she doesn't have a network connection. 2) Update the script itself from the internet in case I find bugs or want to improve it.
Now I know that I could obviously just manually update the script on her Mac if I wanted to, but I figured this would be a good way to learn some more advanced ruby.
Priority 1 would be the XML file, be able to download a new version if it changes. What ruby things can I use to download a file and save it to a certain place locally?
I have used hpricot before, would that be a good way to go?
Note: My wife's mac is a Macbook, running Leopard (but maybe 10.4, not 100% sure).
EDIT
If anyone is interested in the first version of the script you can find it here
p.s. --> the first version of the script doesn't update itself actually, it just updates the messages.xml file and that's all.