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

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 19 16:10:13 PDT 2009


Revision: 998
          http://trac.macosforge.org/projects/ruby/changeset/998
Author:   eloy.de.enige at gmail.com
Date:     2009-03-19 16:09:50 -0700 (Thu, 19 Mar 2009)
Log Message:
-----------
For now don't load fileutils. The first thing we need it for is to create tags and for that we first need to run something. Added a rake spec:language task which runs the language rubyspecs, these should cover most of the stuff being covered in test_roxor.rb, so getting this to boot is the priority. However, it probably includes 1.8 tests as well so we need tags to work asap.

Modified Paths:
--------------
    MacRuby/branches/experimental/mspec/lib/mspec/commands/mkspec.rb
    MacRuby/branches/experimental/mspec/lib/mspec/matchers/output_to_fd.rb
    MacRuby/branches/experimental/mspec/lib/mspec/runner/formatters/spinner.rb
    MacRuby/branches/experimental/mspec/lib/mspec/runner/mspec.rb
    MacRuby/branches/experimental/rakelib/spec.rake

Modified: MacRuby/branches/experimental/mspec/lib/mspec/commands/mkspec.rb
===================================================================
--- MacRuby/branches/experimental/mspec/lib/mspec/commands/mkspec.rb	2009-03-19 22:44:41 UTC (rev 997)
+++ MacRuby/branches/experimental/mspec/lib/mspec/commands/mkspec.rb	2009-03-19 23:09:50 UTC (rev 998)
@@ -2,7 +2,7 @@
 
 MSPEC_HOME = File.expand_path(File.dirname(__FILE__) + '/../../..')
 
-require 'fileutils'
+#require 'fileutils'
 require 'rbconfig'
 require 'mspec/version'
 require 'mspec/utils/options'

Modified: MacRuby/branches/experimental/mspec/lib/mspec/matchers/output_to_fd.rb
===================================================================
--- MacRuby/branches/experimental/mspec/lib/mspec/matchers/output_to_fd.rb	2009-03-19 22:44:41 UTC (rev 997)
+++ MacRuby/branches/experimental/mspec/lib/mspec/matchers/output_to_fd.rb	2009-03-19 23:09:50 UTC (rev 998)
@@ -1,5 +1,5 @@
 require 'mspec/helpers/tmp'
-require 'fileutils'
+#require 'fileutils'
 
 # Lower-level output speccing mechanism for a single
 # output stream. Unlike OutputMatcher which provides

Modified: MacRuby/branches/experimental/mspec/lib/mspec/runner/formatters/spinner.rb
===================================================================
--- MacRuby/branches/experimental/mspec/lib/mspec/runner/formatters/spinner.rb	2009-03-19 22:44:41 UTC (rev 997)
+++ MacRuby/branches/experimental/mspec/lib/mspec/runner/formatters/spinner.rb	2009-03-19 23:09:50 UTC (rev 998)
@@ -56,8 +56,11 @@
     @percent = @loaded * 100 / @total
     bar = ("=" * (@percent / @ratio)).ljust @length
     label = "%d%%" % @percent
-    bar[@position, label.size] = label
-    bar
+    first_part = bar[0, at position]
+    last_part = bar[@position + label.size, -1]
+    "#{first_part}#{label}#{last_part}"
+    # bar[@position, label.size] = label
+    # bar
   end
 
   def spin

Modified: MacRuby/branches/experimental/mspec/lib/mspec/runner/mspec.rb
===================================================================
--- MacRuby/branches/experimental/mspec/lib/mspec/runner/mspec.rb	2009-03-19 22:44:41 UTC (rev 997)
+++ MacRuby/branches/experimental/mspec/lib/mspec/runner/mspec.rb	2009-03-19 23:09:50 UTC (rev 998)
@@ -1,7 +1,7 @@
 require 'mspec/runner/context'
 require 'mspec/runner/exception'
 require 'mspec/runner/tag'
-require 'fileutils'
+#require 'fileutils'
 
 module MSpec
 

Modified: MacRuby/branches/experimental/rakelib/spec.rake
===================================================================
--- MacRuby/branches/experimental/rakelib/spec.rake	2009-03-19 22:44:41 UTC (rev 997)
+++ MacRuby/branches/experimental/rakelib/spec.rake	2009-03-19 23:09:50 UTC (rev 998)
@@ -1,4 +1,6 @@
 namespace :spec do
+  MSPEC = "./miniruby -v -I./mspec/lib -I./lib ./mspec/bin/mspec"
+  
   desc "Run continuous integration examples for Ruby 1.9 including stdlib"
   task :ci do
     #sh "./mspec/bin/mspec ci -t ./miniruby -B spec/frozen/macruby.mspec"
@@ -6,6 +8,11 @@
     # TODO: Still fails at another require statment.
     # It seems to spawns yet another process which also needs the proper laod path.
     # Anyways load paths are currently broken on roxor. Will find out a tmp workaround tonight.
-    sh "./miniruby -v -I./mspec/lib -I./lib ./mspec/bin/mspec-ci -B spec/frozen/macruby.mspec"
+    sh "#{MSPEC}-ci -B spec/frozen/macruby.mspec"
   end
+  
+  desc "Run language examples"
+  task :language do
+    sh "#{MSPEC} spec/frozen/language/**/*_spec.rb"
+  end
 end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090319/8e1b5e79/attachment-0001.html>


More information about the macruby-changes mailing list