Subscribe to RSS

Monthly Archives: March 2008

Extending Ruby’s RSS Parser

A fun, Ruby-hackery post about extending the built-in RSS feed parser to deal with custom namespaces and such.

A Redaction of Sorts

A while ago I wrote that Merb reads in custom rake tasks in lib/tasks/*.rake. This doesn’t appear to be the case anymore, at least not the last few times I tried. The latest commits of Merb core have a Rakefile with the friendly reminder to put custom rake tasks at the bottom of it. I’m [...]

rest-client and SSL Hackery

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 [...]

Feedsweep

Why Rails is total overkill and why I love Rack:

That’s why Rails is overkill: You can easily build web applications without the “magic”, and without the interdependencies and all the rest that comes with it.

This may be the case, but if it weren’t for Rails providing the exact methodology for programmers to use [...]

Page Searching in Merb Specs with Hpricot

I’m not entirely sure what the status of this code is, but it seems to be working for me. I tried throwing it a little further upstream and got hit with 42 failed specs, so I’m content to use it as a spec helper for now.

In any event, yeah. There’s Hpricot goodness available for your [...]