The Helipad Ruby interface is now available on GitHub in addition to its original home on RubyForge.
There’s no difference at all between the two, apart from the GitHub copy bearing my name, which is GitHub’s convention for preventing collision between identically-named gems. If you wish to install the gem from GitHub instead of RubyForge, you can do the following:
> gem sources -a http://gems.github.com > sudo gem install lonnon-Helipad
Originally published at nyerm. You can comment here or there.
Spurred by my need to upload a bunch of notes from the now-defunct Stikkit to my account on Helipad, I wrote a Ruby wrapper for Helipad’s XML-over-HTTP API. The interface takes care of all the XML magic, letting you concentrate on the fun stuff: playing with your documents on Helipad.
hp = Helipad.new("lonnon@example.com",
"password")
source = File.read("cake_recipe.txt")
response = hp.create(:title => "Cake",
:tags => "recipe",
:source => source)
puts "Recipe saved" if response.saved?
The Helipad Ruby interface can be installed through rubygems:
gem install Helipad --remote
Documentation is available here:
If you’re interested in the source code and current state of development, you can find the Helipad Ruby interface over on RubyForge:
Originally published at nyerm. You can comment here or there.
