ZenTest 3.7.1 → 3.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/lib/autotest.rb +4 -3
- data/lib/zentest.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/autotest.rb
CHANGED
@@ -153,7 +153,7 @@ class Autotest
|
|
153
153
|
/^lib\/.*\.rb$/ => proc { |filename, _|
|
154
154
|
files_matching %r%^test/.*#{File.basename(filename).gsub '_', '_?'}$%
|
155
155
|
},
|
156
|
-
/^test
|
156
|
+
/^test.*\/test_.*rb$/ => proc { |filename, _|
|
157
157
|
filename
|
158
158
|
}
|
159
159
|
}
|
@@ -281,7 +281,6 @@ class Autotest
|
|
281
281
|
f.join('::')
|
282
282
|
end
|
283
283
|
|
284
|
-
|
285
284
|
def consolidate_failures(failed)
|
286
285
|
filters = Hash.new { |h,k| h[k] = [] }
|
287
286
|
|
@@ -305,6 +304,7 @@ class Autotest
|
|
305
304
|
def find_files
|
306
305
|
result = {}
|
307
306
|
targets = ['.'] + self.extra_files
|
307
|
+
|
308
308
|
Find.find(*targets) do |f|
|
309
309
|
Find.prune if @exceptions and f =~ @exceptions
|
310
310
|
|
@@ -316,6 +316,7 @@ class Autotest
|
|
316
316
|
|
317
317
|
result[filename] = File.stat(filename).mtime rescue next
|
318
318
|
end
|
319
|
+
|
319
320
|
return result
|
320
321
|
end
|
321
322
|
|
@@ -415,7 +416,7 @@ class Autotest
|
|
415
416
|
result = @test_mappings.find { |file_re, ignored| filename =~ file_re }
|
416
417
|
result = result.nil? ? [] : Array(result.last.call(filename, $~))
|
417
418
|
|
418
|
-
@output.puts "Dunno! #{filename}" if $TESTING and result.empty?
|
419
|
+
@output.puts "Dunno! #{filename}" if ($VERBOSE or $TESTING) and result.empty?
|
419
420
|
|
420
421
|
result.sort.uniq
|
421
422
|
end
|
data/lib/zentest.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ZenTest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2008-01-09 00:00:00 -08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|