[macruby-changes] [1036] MacRuby/branches/experimental/mspec/lib/mspec/runner/formatters/ spinner.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 20 17:59:43 PDT 2009
Revision: 1036
http://trac.macosforge.org/projects/ruby/changeset/1036
Author: eloy.de.enige at gmail.com
Date: 2009-03-20 17:59:42 -0700 (Fri, 20 Mar 2009)
Log Message:
-----------
Reverted workaround for substring assignment as this bug is now fixed.
Modified Paths:
--------------
MacRuby/branches/experimental/mspec/lib/mspec/runner/formatters/spinner.rb
Modified: MacRuby/branches/experimental/mspec/lib/mspec/runner/formatters/spinner.rb
===================================================================
--- MacRuby/branches/experimental/mspec/lib/mspec/runner/formatters/spinner.rb 2009-03-21 00:58:08 UTC (rev 1035)
+++ MacRuby/branches/experimental/mspec/lib/mspec/runner/formatters/spinner.rb 2009-03-21 00:59:42 UTC (rev 1036)
@@ -56,11 +56,8 @@
@percent = @loaded * 100 / @total
bar = ("=" * (@percent / @ratio)).ljust @length
label = "%d%%" % @percent
- first_part = bar[0, at position]
- last_part = bar[@position + label.size, -1]
- "#{first_part}#{label}#{last_part}"
- # bar[@position, label.size] = label
- # bar
+ bar[@position, label.size] = label
+ bar
end
def spin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090320/8577410a/attachment.html>
More information about the macruby-changes
mailing list