From: Eric Hodel Date: 2011-09-17T14:53:23+09:00 Subject: [ruby-core:39603] [Ruby 1.9 - Bug #5331] Ripper#yydebug and friends don't work Issue #5331 has been updated by Eric Hodel. Category set to ext Target version set to 1.9.4 ruby -v changed from - to ruby 1.9.4dev (2011-09-15 trunk 33272) [x86_64-darwin11.1.0] ---------------------------------------- Bug #5331: Ripper#yydebug and friends don't work http://redmine.ruby-lang.org/issues/5331 Author: Eric Hodel Status: Open Priority: Normal Assignee: Category: ext Target version: 1.9.4 ruby -v: ruby 1.9.4dev (2011-09-15 trunk 33272) [x86_64-darwin11.1.0] Ripper#yydebug, #yydebug=, #end_seen? and #encoding all fail to work with a TypeError due to using a different parser_data_type. The attached patch fixes this by defining static implementations: ripper_end_seen_p ripper_encoding ripper_get_yydebug ripper_set_yydebug I don't know if it's the right patch, though. I tried making parser_data_type an exported symbol but had no luck. The attached test file adds tests for each of these methods to ensure they work. PS: redmine is down -- http://redmine.ruby-lang.org