#1218: Mechanize fails under MacRuby, runs under 1.9.2 (similar to ticket #1182) ------------------------------+--------------------------------------------- Reporter: lonny6@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------+--------------------------------------------- Comment(by lonny6@…): I did find a way to patch this file that works for my purposes. I do not pretend that it addresses the underlying problem. After line 565 of mechanize.rb (v 1.0.0), which reads page = options[:page] add the following line: page.mech = options[:agent] if page.is_a?(Mechanize::Page) It appears that the "mech" attribute of the page object is not getting set for some reason. So if I set it manually at that point, the library works fine... again, for my purposes. I do not claim this is a general fix. -- Ticket URL: <http://www.macruby.org/trac/ticket/1218#comment:2> MacRuby <http://macruby.org/>