[Parsetree] ruby_parser hacks StringIO

Sven Fuchs svenfuchs at artweb-design.de
Sat Apr 26 16:24:19 PDT 2008


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)





More information about the Parsetree mailing list