[前][次][番号順一覧][スレッド一覧]

ruby-changes:20866

From: yugui <ko1@a...>
Date: Thu, 11 Aug 2011 09:38:51 +0900 (JST)
Subject: [ruby-changes:20866] yugui:r32915 (ruby_1_9_2): merges r32271 from trunk into ruby_1_9_2.

yugui	2011-08-11 09:38:13 +0900 (Thu, 11 Aug 2011)

  New Revision: 32915

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32915

  Log:
    merges r32271 from trunk into ruby_1_9_2.
    --
    * 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:
    branches/ruby_1_9_2/ChangeLog
    branches/ruby_1_9_2/lib/debug.rb
    branches/ruby_1_9_2/version.h

Index: ruby_1_9_2/ChangeLog
===================================================================
--- ruby_1_9_2/ChangeLog	(revision 32914)
+++ ruby_1_9_2/ChangeLog	(revision 32915)
@@ -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 07:50:32 2011  Eric Hodel  <drbrain@s...>
 
 	* object.c (Init_Object):  Teach RDoc what Init_class_hierarchy does to
Index: ruby_1_9_2/lib/debug.rb
===================================================================
--- ruby_1_9_2/lib/debug.rb	(revision 32914)
+++ ruby_1_9_2/lib/debug.rb	(revision 32915)
@@ -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
 
Index: ruby_1_9_2/version.h
===================================================================
--- ruby_1_9_2/version.h	(revision 32914)
+++ ruby_1_9_2/version.h	(revision 32915)
@@ -1,5 +1,5 @@
 #define RUBY_VERSION "1.9.2"
-#define RUBY_PATCHLEVEL 300
+#define RUBY_PATCHLEVEL 301
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 9
 #define RUBY_VERSION_TEENY 1

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]