spec 5.0.17 → 5.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minitest.rb +11 -11
- data/release_notes.md +6 -0
- data/test/manual/ctrl_c.rb +11 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccfcc8e1904aaae95d69f1595e96a0bc9e241b47
|
4
|
+
data.tar.gz: 5b9c315d81625b1f34862d39f8d218a79c769787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b66017678f7e5f4d4da15d4feeae02a727021f5f90213ae0d7911068a18067590d17758251a26429a4eb55d42b4976ffd6e01361805c2664f99dc611c60de42e
|
7
|
+
data.tar.gz: df2f66b6fb64f17492212dbdaa699a0d4147be5f2f4ea01ac911d36e7c26851b5d71c6c0b4d79431862363bf26f8cc57a6b0de7d9a6b7a411b936912c70d532d
|
data/lib/minitest.rb
CHANGED
@@ -5,8 +5,8 @@ require 'chronic_duration'
|
|
5
5
|
# :include: README.txt
|
6
6
|
|
7
7
|
module Minitest
|
8
|
-
VERSION = '5.0.
|
9
|
-
DATE = '2013-08-
|
8
|
+
VERSION = '5.0.18' # :nodoc:
|
9
|
+
DATE = '2013-08-13' # :nodoc:
|
10
10
|
|
11
11
|
@@installed_at_exit ||= false
|
12
12
|
@@after_run = []
|
@@ -173,6 +173,11 @@ module Minitest
|
|
173
173
|
end)
|
174
174
|
end
|
175
175
|
|
176
|
+
def self.on_exit exit_code
|
177
|
+
@@after_run.reverse_each(&:call)
|
178
|
+
exit exit_code || false
|
179
|
+
end
|
180
|
+
|
176
181
|
##
|
177
182
|
# Run specs. Does not print dots (ProgressReporter)
|
178
183
|
#
|
@@ -186,6 +191,10 @@ module Minitest
|
|
186
191
|
reporter << Minitest::SummaryReporter.new(options[:io], options)
|
187
192
|
reporter.start
|
188
193
|
|
194
|
+
at_exit { on_exit reporter.passed? }
|
195
|
+
# exit on ctrl+c to trigger at_exit
|
196
|
+
trap('SIGINT') { exit }
|
197
|
+
|
189
198
|
trace_specs spec_opts
|
190
199
|
|
191
200
|
begin
|
@@ -194,15 +203,6 @@ module Minitest
|
|
194
203
|
rescue Minitest::Runnable::ExitAfterFirstFail
|
195
204
|
# Minitest calls .report on exception
|
196
205
|
end
|
197
|
-
|
198
|
-
# handle exit. code from self.autorun
|
199
|
-
at_exit {
|
200
|
-
next if $! and not $!.kind_of? SystemExit
|
201
|
-
at_exit {
|
202
|
-
@@after_run.reverse_each(&:call)
|
203
|
-
exit reporter.passed? || false
|
204
|
-
}
|
205
|
-
}
|
206
206
|
end
|
207
207
|
|
208
208
|
def self.process_args args = [] # :nodoc:
|
data/release_notes.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
#### v5.0.17 2013-08-12
|
2
|
+
|
3
|
+
- [605696d](https://github.com/bootstraponline/spec/commit/605696d4952c9a8b9107e3a338c8713d6f979d18) Release 5.0.17
|
4
|
+
- [6665bda](https://github.com/bootstraponline/spec/commit/6665bdab8c57a3ec19849df9098593e36203cb46) Fix after_run
|
5
|
+
|
6
|
+
|
1
7
|
#### v5.0.16 2013-08-10
|
2
8
|
|
3
9
|
- [01269eb](https://github.com/bootstraponline/spec/commit/01269eb8f6e6209c5de9f55a0735ce23935d995a) Release 5.0.16
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- code@bootstraponline.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chronic_duration
|
@@ -94,6 +94,7 @@ files:
|
|
94
94
|
- test/manual/assert.rb
|
95
95
|
- test/manual/before_first_0.rb
|
96
96
|
- test/manual/before_first_1.rb
|
97
|
+
- test/manual/ctrl_c.rb
|
97
98
|
- test/manual/debug.rb
|
98
99
|
- test/manual/do_end.rb
|
99
100
|
- test/manual/raise.rb
|