[macruby-changes] [4717] DietRB/trunk/lib/irb/formatter.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 8 04:04:01 PDT 2010


Revision: 4717
          http://trac.macosforge.org/projects/ruby/changeset/4717
Author:   eloy.de.enige at gmail.com
Date:     2010-10-08 04:04:00 -0700 (Fri, 08 Oct 2010)
Log Message:
-----------
Make the specs green when running with MSpec, which loads pp.

From: Eloy Duran <eloy.de.enige at gmail.com>

Modified Paths:
--------------
    DietRB/trunk/lib/irb/formatter.rb

Modified: DietRB/trunk/lib/irb/formatter.rb
===================================================================
--- DietRB/trunk/lib/irb/formatter.rb	2010-10-08 11:03:51 UTC (rev 4716)
+++ DietRB/trunk/lib/irb/formatter.rb	2010-10-08 11:04:00 UTC (rev 4717)
@@ -38,7 +38,9 @@
     
     def inspect_object(object)
       if @inspect
-        object.respond_to?(:pretty_inspect) ? object.pretty_inspect : object.inspect
+        result = object.respond_to?(:pretty_inspect) ? object.pretty_inspect : object.inspect
+        result.strip!
+        result
       else
         address = object.__id__ * 2
         address += 0x100000000 if address < 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101008/e1704a61/attachment.html>


More information about the macruby-changes mailing list