test-loop 12.0.3 → 12.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +3 -3
- data/lib/test/loop.rb +3 -0
- data/lib/test/loop/notify.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -32,7 +32,7 @@ Features
|
|
32
32
|
|
33
33
|
* Configurable through a `.test-loop` file in your working directory.
|
34
34
|
|
35
|
-
* Implemented in less than
|
35
|
+
* Implemented in less than 240 lines (SLOC) of pure Ruby code! :-)
|
36
36
|
|
37
37
|
------------------------------------------------------------------------------
|
38
38
|
Prerequisites
|
@@ -211,7 +211,7 @@ preset does this for you):
|
|
211
211
|
|
212
212
|
message = test_file
|
213
213
|
|
214
|
-
|
214
|
+
Thread.new do # run in background
|
215
215
|
system 'notify-send', '-i', 'dialog-error', title, message or
|
216
216
|
system 'growlnotify', '-a', 'Xcode', '-m', message, title or
|
217
217
|
system 'xmessage', '-timeout', '5', '-title', title, message
|
@@ -233,7 +233,7 @@ configuration file:
|
|
233
233
|
|
234
234
|
message = test_file
|
235
235
|
|
236
|
-
|
236
|
+
Thread.new do # run in background
|
237
237
|
system 'notify-send', '-i', "dialog-#{success ? 'information' : 'error'}", title, message or
|
238
238
|
system 'growlnotify', '-a', 'Xcode', '-m', message, title or
|
239
239
|
system 'xmessage', '-timeout', '5', '-title', title, message
|
data/lib/test/loop.rb
CHANGED
@@ -124,6 +124,9 @@ module Test
|
|
124
124
|
if File.exist? config_file = File.join(Dir.pwd, '.test-loop')
|
125
125
|
notify 'Loading configuration...'
|
126
126
|
load config_file
|
127
|
+
|
128
|
+
# ...and if the configuration file changes, reload everything.
|
129
|
+
reabsorb_file_globs.push config_file
|
127
130
|
end
|
128
131
|
end
|
129
132
|
|
data/lib/test/loop/notify.rb
CHANGED
@@ -5,7 +5,7 @@ Test::Loop.after_each_test.push lambda {
|
|
5
5
|
unless run_status.success? or run_status.signaled?
|
6
6
|
title = 'FAIL at %s in %0.1fs' % [started_at.strftime('%r'), elapsed_time]
|
7
7
|
message = test_file
|
8
|
-
|
8
|
+
Thread.new do # run in background
|
9
9
|
system 'notify-send', '-i', 'dialog-error', title, message or
|
10
10
|
system 'growlnotify', '-a', 'Xcode', '-m', message, title or
|
11
11
|
system 'xmessage', '-timeout', '5', '-title', title, message
|
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.
|
5
|
+
version: 12.0.4
|
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-
|
15
|
+
date: 2011-04-29 00:00:00 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: diff-lcs
|