tork 19.0.1 → 19.0.2
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/HISTORY.markdown +16 -0
- data/README.markdown +14 -0
- data/bin/tork +1 -1
- data/bin/tork-driver +1 -1
- data/bin/tork-engine +1 -1
- data/bin/tork-herald +1 -1
- data/bin/tork-master +1 -1
- data/bin/tork-notify +1 -1
- data/lib/tork/master.rb +28 -0
- data/lib/tork/version.rb +1 -1
- data/man/man1/tork-driver.1 +1 -1
- data/man/man1/tork-engine.1 +1 -1
- data/man/man1/tork-herald.1 +1 -1
- data/man/man1/tork-master.1 +1 -1
- data/man/man1/tork-notify.1 +1 -1
- data/man/man1/tork.1 +1 -1
- metadata +4 -4
data/HISTORY.markdown
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
## Version 19.0.2 (2012-11-07)
|
2
|
+
|
3
|
+
Patch:
|
4
|
+
|
5
|
+
* Monkeypatch `at_exit()` to fix RSpec and MiniTest:
|
6
|
+
|
7
|
+
https://github.com/rspec/rspec-core/pull/720
|
8
|
+
|
9
|
+
https://github.com/seattlerb/minitest/pull/183
|
10
|
+
|
11
|
+
Other:
|
12
|
+
|
13
|
+
* README: document RSpec 2.9.0+ autorun skipping bug
|
14
|
+
|
15
|
+
* README: MiniTest 1.3.2+ also has autorun skip bug
|
16
|
+
|
1
17
|
## Version 19.0.1 (2012-10-26)
|
2
18
|
|
3
19
|
Patch:
|
data/README.markdown
CHANGED
@@ -129,8 +129,22 @@ You can monitor your test processes from another terminal:
|
|
129
129
|
|
130
130
|
watch 'pgrep -f ^tork | xargs -r ps u'
|
131
131
|
|
132
|
+
### With MiniTest
|
133
|
+
|
134
|
+
MiniTest 1.3.2 and newer contain a bug where `minitest/autorun` won't run any
|
135
|
+
tests if someone calls `Kernel#exit` explicitly or simply loads a library
|
136
|
+
(such as RSpec) which makes the call implicitly. Use Tork 19.0.2+ to avoid
|
137
|
+
this problem or [apply this patch to the rspec-core library](
|
138
|
+
https://github.com/seattlerb/minitest/pull/183 ) to fix the problem.
|
139
|
+
|
132
140
|
### With RSpec
|
133
141
|
|
142
|
+
RSpec 2.9.0 and newer contain a bug where RSpec's autorun helper won't run any
|
143
|
+
specs if someone calls `Kernel#exit` explicitly or simply loads a library
|
144
|
+
(such as Test::Unit) which makes the call implicitly. Use Tork 19.0.2+ to
|
145
|
+
avoid this problem or [apply this patch to the rspec-core library](
|
146
|
+
https://github.com/rspec/rspec-core/pull/720/files ) to fix the problem.
|
147
|
+
|
134
148
|
RSpec 2.8.0 and older contain [a bug](
|
135
149
|
https://github.com/sunaku/tork/issues/31 ) where a nonzero exit status (caused
|
136
150
|
by an uncaught exception) is overridden by RSpec's `Kernel#at_exit` handler to
|
data/bin/tork
CHANGED
data/bin/tork-driver
CHANGED
data/bin/tork-engine
CHANGED
data/bin/tork-herald
CHANGED
data/bin/tork-master
CHANGED
data/bin/tork-notify
CHANGED
data/lib/tork/master.rb
CHANGED
@@ -88,3 +88,31 @@ class Master < Server
|
|
88
88
|
|
89
89
|
end
|
90
90
|
end
|
91
|
+
|
92
|
+
# monkeypatch at_exit to fix RSpec and MiniTest
|
93
|
+
# https://github.com/rspec/rspec-core/pull/720
|
94
|
+
# https://github.com/seattlerb/minitest/pull/183
|
95
|
+
module Kernel
|
96
|
+
alias _d20922b4_a7b3_48d6_ad66_3d23e7310cf0 at_exit
|
97
|
+
def at_exit &block
|
98
|
+
_d20922b4_a7b3_48d6_ad66_3d23e7310cf0 do
|
99
|
+
# prevent SystemExit from inhibiting testing libraries' autorun helpers:
|
100
|
+
# RSpec and MiniTest don't run any tests if $! is present during at_exit
|
101
|
+
if $! and $!.kind_of? SystemExit
|
102
|
+
begin
|
103
|
+
cleared_exit = $!
|
104
|
+
$! = nil # works in Ruby 1.8; raises NameError in Ruby 1.9
|
105
|
+
rescue NameError
|
106
|
+
# $! becomes nil after this rescue block ends in Ruby 1.9
|
107
|
+
end
|
108
|
+
raise NotImplementedError, 'tork/master: could not clear $!' if $!
|
109
|
+
end
|
110
|
+
|
111
|
+
block.call
|
112
|
+
|
113
|
+
# if calling the block didn't raise any exceptions, then restore the
|
114
|
+
# SystemExit exception that we cleared away above (if there was any)
|
115
|
+
raise cleared_exit if cleared_exit
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
data/lib/tork/version.rb
CHANGED
data/man/man1/tork-driver.1
CHANGED
data/man/man1/tork-engine.1
CHANGED
data/man/man1/tork-herald.1
CHANGED
data/man/man1/tork-master.1
CHANGED
data/man/man1/tork-notify.1
CHANGED
data/man/man1/tork.1
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 19.0.
|
4
|
+
version: 19.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-11-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: binman
|
@@ -184,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
184
|
version: '0'
|
185
185
|
segments:
|
186
186
|
- 0
|
187
|
-
hash:
|
187
|
+
hash: 4253367635986543475
|
188
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
189
|
none: false
|
190
190
|
requirements:
|
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
193
|
version: '0'
|
194
194
|
segments:
|
195
195
|
- 0
|
196
|
-
hash:
|
196
|
+
hash: 4253367635986543475
|
197
197
|
requirements: []
|
198
198
|
rubyforge_project:
|
199
199
|
rubygems_version: 1.8.23
|