ZenTest 3.7.1 → 3.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +7 -0
  2. data/lib/autotest.rb +4 -3
  3. data/lib/zentest.rb +1 -1
  4. metadata +2 -2
@@ -1,3 +1,10 @@
1
+ === 3.7.2 / 2008-01-09
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Extended file map for tests to include subdirs correctly.
6
+ * Added debugging output on bad maps if -v set.
7
+
1
8
  === 3.7.1 / 2007-12-27
2
9
 
3
10
  * 2 minor enhancements:
@@ -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\/test_.*rb$/ => proc { |filename, _|
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
@@ -56,7 +56,7 @@ end
56
56
 
57
57
  class ZenTest
58
58
 
59
- VERSION = '3.7.1'
59
+ VERSION = '3.7.2'
60
60
 
61
61
  include ZenTestMapping
62
62
 
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.1
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: 2007-12-27 00:00:00 -08:00
13
+ date: 2008-01-09 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency