[macruby-changes] [1141] MacRuby/branches/experimental/mspec/lib/mspec/utils/script.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 24 14:49:37 PDT 2009
Revision: 1141
http://trac.macosforge.org/projects/ruby/changeset/1141
Author: eloy.de.enige at gmail.com
Date: 2009-03-24 14:49:37 -0700 (Tue, 24 Mar 2009)
Log Message:
-----------
Removed the nasty Dir[] workaround.
Modified Paths:
--------------
MacRuby/branches/experimental/mspec/lib/mspec/utils/script.rb
Modified: MacRuby/branches/experimental/mspec/lib/mspec/utils/script.rb
===================================================================
--- MacRuby/branches/experimental/mspec/lib/mspec/utils/script.rb 2009-03-24 20:40:05 UTC (rev 1140)
+++ MacRuby/branches/experimental/mspec/lib/mspec/utils/script.rb 2009-03-24 21:49:37 UTC (rev 1141)
@@ -1,14 +1,6 @@
require 'mspec/guards/guard'
require 'mspec/runner/formatters/dotted'
-# MR Hack: Dir[]/Dir.glob only return the first entry, use ls in backticks.
-# I know I feel dirty too ;)
-class Dir
- def self.[](pattern)
- `ls #{pattern}`.split("\n")
- end
-end
-
# MSpecScript provides a skeleton for all the MSpec runner scripts.
class MSpecScript
@@ -195,10 +187,7 @@
if File.file?(expanded)
res = [pattern]
elsif File.directory?(expanded)
- # MR Hack: Atm we only really care about those in spec/frozen/language,
- # and using backticks doesn't handle the same glob pattern.
- #specs = File.join(pattern, "/**/*_spec.rb")
- specs = File.join(pattern, "/*_spec.rb")
+ specs = File.join(pattern, "/**/*_spec.rb")
specs = File.expand_path(specs) rescue specs
res = Dir[specs].sort
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090324/c9b241f8/attachment.html>
More information about the macruby-changes
mailing list