test-loop 12.0.4 → 12.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +4 -0
  2. data/lib/test/loop.rb +3 -1
  3. metadata +2 -2
data/README.md CHANGED
@@ -102,6 +102,10 @@ test-loop looks for a configuration file named `.test-loop` in the current
102
102
  working directory. This configuration file is a normal Ruby script in which
103
103
  you can query and modify the `Test::Loop` OpenStruct configuration as follows:
104
104
 
105
+ ### Test::Loop.delay_per_iteration
106
+
107
+ Number of seconds to wait after each loop iteration. The default value is 1.
108
+
105
109
  ### Test::Loop.overhead_file_globs
106
110
 
107
111
  Array of file globbing patterns that describe a set of Ruby scripts that are
data/lib/test/loop.rb CHANGED
@@ -4,6 +4,8 @@ require 'diff/lcs'
4
4
  module Test
5
5
  Loop = OpenStruct.new
6
6
 
7
+ Loop.delay_per_iteration = 1
8
+
7
9
  Loop.overhead_file_globs = ['{test,spec}/{test,spec}_helper.rb']
8
10
 
9
11
  Loop.reabsorb_file_globs = Loop.overhead_file_globs.dup
@@ -90,7 +92,7 @@ module Test
90
92
  end
91
93
 
92
94
  def pause_momentarily
93
- sleep 1
95
+ sleep delay_per_iteration
94
96
  end
95
97
 
96
98
  def init_shared_vars
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: test-loop
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 12.0.4
5
+ version: 12.1.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Suraj N. Kurapati
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2011-04-29 00:00:00 Z
15
+ date: 2011-04-30 00:00:00 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: diff-lcs