I was trying to use Mechanize when it kept throwing an exception at me.
After trying to debug it, I found this code snippet starting at line 441
url = ((base && base.uri && base.uri.absolute?) ?
cur_page.uri) + url
url = cur_page.uri + url
Now, without knowing anything about what this method does or how
mechanize even works, I’m pretty sure that this is a bug. The method
literally crashes when trying to call method “uri” of the variable
Commenting out the first assignment seems to allow the code to work
(although I don’t understand how). Hopefully, mechanize doesn’t depend
any side effects of the various methods called in the first assignment.
Does anyone know of a proper fix to this bug?