rest-client and SSL Hackery

Code Projects, Software Tweaking — Tags: , , , , — Ardekantur @ 9:32 pm

I’ve forked Adam Wiggins’ wonderful project rest-client and added a horrible hack for SSL support. To wit, adding a header :ssl with any non-nil value in a request will add SSL authentication. Fo’ example:

a = RestClient::Resource.new 'https://api.del.icio.us/v1/posts/update', 'username', 'password'
a.get :user_agent => 'random_service/1.0.0', :ssl => true
 
# => "<?xml version='1.0' standalone='yes'?>\n<update time=\"2008-03-24T13:11:50Z\"/>\n"

The catch? It breaks a few specs, but they appear to be breaking because they attempt to access a web URL of ‘http://some/location’, and fail the address lookup. So eventually I’ll fix up those specs. Or someone else could. You know, whatever. :-)

The commit in question: f82206d.

Uproar Gits

Code Projects, Ruby, uproar — Tags: , , , — Ardekantur @ 10:06 pm

Uproar has made its home at GitHub. The project is ripe for the taking, and there’s a vague Roadmap in the wiki, for the things I want to do with it. I’ll be hopefully making some updates to it this week. Enjoy!

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2008 Ardekantur | powered by WordPress with Barecity