ruby-changes:20223
From: nahi <ko1@a...>
Date: Tue, 28 Jun 2011 20:46:00 +0900 (JST)
Subject: [ruby-changes:20223] nahi:r32271 (trunk): * lib/debug.rb (var_list): Command 'var *' did not work on 1.9(!).
nahi 2011-06-28 20:45:50 +0900 (Tue, 28 Jun 2011) New Revision: 32271 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32271 Log: * lib/debug.rb (var_list): Command 'var *' did not work on 1.9(!). global_variables, local_variables, and instance_variables returns Symbols from 1.9 and need to stringify before evaling it. See #4931. Modified files: trunk/ChangeLog trunk/lib/debug.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 32270) +++ ChangeLog (revision 32271) @@ -1,3 +1,10 @@ +Tue Jun 28 20:39:29 2011 Hiroshi Nakamura <nahi@r...> + + * lib/debug.rb (var_list): Command 'var *' did not work on 1.9(!). + global_variables, local_variables, and instance_variables returns + Symbols from 1.9 and need to stringify before evaling it. + See #4931. + Tue Jun 28 19:23:01 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * signal.c: Now, USE_TRAP_SIGMASK depend on HAVE_PTHREAD_SIGMASK. Index: lib/debug.rb =================================================================== --- lib/debug.rb (revision 32270) +++ lib/debug.rb (revision 32271) @@ -147,7 +147,7 @@ def var_list(ary, binding) ary.sort! for v in ary - stdout.printf " %s => %s\n", v, eval(v, binding).inspect + stdout.printf " %s => %s\n", v, eval(v.to_s, binding).inspect end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/