From svenfuchs at artweb-design.de Sat Apr 26 16:24:19 2008 From: svenfuchs at artweb-design.de (Sven Fuchs) Date: Sun, 27 Apr 2008 01:24:19 +0200 Subject: [Parsetree] ruby_parser hacks StringIO Message-ID: <4F263327-8D83-4F38-A9B7-F7ABAB5C11EA@artweb-design.de> I've finally come around to check this out. RubyParser overwrites quite some stuff in StringIO which breaks Rails (or is it Mongrel?). Fixing this is quite easy: just don't monkeypatch StringIO directly but extend the class and use that one in RubyParser. I've attached a patch that works for me. Ryan, do you want me to file a bug somewhere? If so, where? Would be awesome if you could apply this at some point. Thanks :) -------------- next part -------------- A non-text attachment was scrubbed... Name: ruby_parser_string_io_patch.diff Type: application/octet-stream Size: 4775 bytes Desc: not available Url : http://www.zenspider.com/pipermail/parsetree/attachments/20080426/b06ee995/ruby_parser_string_io_patch.obj -------------- next part -------------- -- sven fuchs svenfuchs at artweb-design.de artweb design http://www.artweb-design.de gr?nberger 65 + 49 (0) 30 - 47 98 69 96 (phone) d-10245 berlin + 49 (0) 171 - 35 20 38 4 (mobile)