[macruby-changes] [959] MacRuby/branches/experimental

source_changes at macosforge.org source_changes at macosforge.org
Tue Mar 17 15:31:06 PDT 2009


Revision: 959
          http://trac.macosforge.org/projects/ruby/changeset/959
Author:   eloy.de.enige at gmail.com
Date:     2009-03-17 15:31:06 -0700 (Tue, 17 Mar 2009)
Log Message:
-----------
Worked around some bugs in mspec and fileutils. Added a faling test for ?\226?\128?\152until?\226?\128?\153.

Modified Paths:
--------------
    MacRuby/branches/experimental/lib/fileutils.rb
    MacRuby/branches/experimental/mspec/lib/mspec/runner/mspec.rb
    MacRuby/branches/experimental/test_roxor.rb

Modified: MacRuby/branches/experimental/lib/fileutils.rb
===================================================================
--- MacRuby/branches/experimental/lib/fileutils.rb	2009-03-17 22:17:55 UTC (rev 958)
+++ MacRuby/branches/experimental/lib/fileutils.rb	2009-03-17 22:31:06 UTC (rev 959)
@@ -196,7 +196,7 @@
     fu_check_options options, OPT_TABLE['mkdir_p']
     list = fu_list(list)
     fu_output_message "mkdir -p #{options[:mode] ? ('-m %03o ' % options[:mode]) : ''}#{list.join ' '}" if options[:verbose]
-    return *list if options[:noop]
+    return list if options[:noop]
 
     list.map {|path| path.sub(%r</\z>, '') }.each do |path|
       # optimize for the most common case
@@ -208,7 +208,7 @@
       end
 
       stack = []
-      until path == stack.last   # dirname("/")=="/", dirname("C:/")=="C:/"
+      while path != stack.last   # dirname("/")=="/", dirname("C:/")=="C:/"
         stack.push path
         path = File.dirname(path)
       end

Modified: MacRuby/branches/experimental/mspec/lib/mspec/runner/mspec.rb
===================================================================
--- MacRuby/branches/experimental/mspec/lib/mspec/runner/mspec.rb	2009-03-17 22:17:55 UTC (rev 958)
+++ MacRuby/branches/experimental/mspec/lib/mspec/runner/mspec.rb	2009-03-17 22:31:06 UTC (rev 959)
@@ -163,11 +163,11 @@
   end
 
   def self.retrieve(symbol)
-    instance_variable_get :"@#{symbol}"
+    instance_variable_get "@#{symbol}"
   end
 
   def self.store(symbol, value)
-    instance_variable_set :"@#{symbol}", value
+    instance_variable_set "@#{symbol}", value
   end
 
   # This method is used for registering actions that are

Modified: MacRuby/branches/experimental/test_roxor.rb
===================================================================
--- MacRuby/branches/experimental/test_roxor.rb	2009-03-17 22:17:55 UTC (rev 958)
+++ MacRuby/branches/experimental/test_roxor.rb	2009-03-17 22:31:06 UTC (rev 959)
@@ -415,6 +415,13 @@
     p x
   }
 
+  assert "42", %q{
+    foo = [42]
+    until (x = foo.pop).nil?
+      p x
+    end
+  }
+
 end
 
 test "class" do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090317/a2216eb0/attachment.html>


More information about the macruby-changes mailing list