c42/wrest — pull request #110 by TMaYaD (2012-09-15 21:11:21+00:00)
Title: Error with callbacks and sub paths

Fixes the issue where callbacks are not being cloned into sub path uris

[1] pry(main)> b = 'http://google.com'.to_uri(
[1] pry(main)* :callback => {
[1] pry(main)* 200..499 => lambda { |r| p r.message }
[1] pry(main)* }
[1] pry(main)* )
=> http://google.com
[2] pry(main)> b['contacts'].get
TypeError: can't clone NilClass
from /home/phoenix/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/wrest-1.5.0/lib/wrest/callback.rb:24:in `clone'