blackwinter/wadl — pull request #4 by cavefish (2012-10-11 08:48:38+00:00)
Title: Update lib/wadl/address.rb

There is an issue with resources that require basic_auth, and have template parameters in its URI.
This way, if there are not path parameters in the args, all the section of the code is ignored (also, more efficient)

Typical problem that is solved:
driver.resource(:service_id_json).with_basic_auth('u1','u1').bind(:path => {:id => id})