tork 19.2.0 → 19.2.1
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 +11 -0
- data/LICENSE +2 -0
- data/README.markdown +2 -2
- 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/config/dotlog/onfork.rb +1 -1
- data/lib/tork/config/logdir/onfork.rb +1 -1
- data/lib/tork/config/rails/master.rb +1 -0
- data/lib/tork/master.rb +6 -9
- 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,14 @@
|
|
1
|
+
## Version 19.2.1 (2013-02-08)
|
2
|
+
|
3
|
+
Patch:
|
4
|
+
|
5
|
+
* GH-46: allow reassigning `$tork_*` variable values. Thanks to Joe
|
6
|
+
Escalante for reminding me to fix this issue.
|
7
|
+
|
8
|
+
* GH-48: disable class caching at the ActiveSupport level for Devise.
|
9
|
+
Thanks to Ryan Ahearn for fixing this issue and to Jonathan Cairns for
|
10
|
+
reporting it.
|
11
|
+
|
1
12
|
## Version 19.2.0 (2012-12-30)
|
2
13
|
|
3
14
|
Minor:
|
data/LICENSE
CHANGED
@@ -22,6 +22,8 @@ Thanks to 2012 Adam Grant <https://github.com/harmon>
|
|
22
22
|
Thanks to 2012 Kyle Peyton <https://github.com/weexpectedthis>
|
23
23
|
Thanks to 2012 Ryan Ahearn <https://github.com/rahearn>
|
24
24
|
Thanks to 2012 Thibaud Guillaume-Gentil <https://github.com/thibaudgg>
|
25
|
+
Thanks to 2013 Joe Escalante <https://github.com/jescalante>
|
26
|
+
Thanks to 2013 Jonathan Cairns <https://github.com/joonty>
|
25
27
|
|
26
28
|
Permission to use, copy, modify, and/or distribute this software for any
|
27
29
|
purpose with or without fee is hereby granted, provided that the above
|
data/README.markdown
CHANGED
@@ -134,8 +134,8 @@ You can monitor your test processes from another terminal:
|
|
134
134
|
MiniTest 1.3.2 and newer contain a bug where `minitest/autorun` won't run any
|
135
135
|
tests if someone calls `Kernel#exit` explicitly or simply loads a library
|
136
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
|
138
|
-
https://github.com/seattlerb/minitest/pull/183 ) to fix the problem.
|
137
|
+
this problem or [apply this patch to the minitest library](
|
138
|
+
https://github.com/seattlerb/minitest/pull/183/files ) to fix the problem.
|
139
139
|
|
140
140
|
### With RSpec
|
141
141
|
|
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
@@ -1,2 +1,2 @@
|
|
1
1
|
dirname, basename = File.split($tork_log_file)
|
2
|
-
$tork_log_file
|
2
|
+
$tork_log_file = File.join(dirname, '.' + basename)
|
data/lib/tork/master.rb
CHANGED
@@ -33,19 +33,15 @@ class Master < Server
|
|
33
33
|
# throttle forking rate to meet the maximum concurrent workers limit
|
34
34
|
sleep 1 until @command_by_worker_pid.size < @worker_number_pool.size
|
35
35
|
|
36
|
-
log_file = test_file + '.log'
|
37
|
-
worker_number = @worker_number_pool.shift
|
38
|
-
@command.push log_file, worker_number
|
39
|
-
|
40
36
|
$tork_test_file = test_file
|
41
37
|
$tork_line_numbers = line_numbers
|
42
|
-
$tork_log_file =
|
43
|
-
$tork_worker_number =
|
38
|
+
$tork_log_file = $tork_test_file + '.log'
|
39
|
+
$tork_worker_number = @worker_number_pool.shift
|
44
40
|
Tork.config :onfork
|
45
41
|
|
46
42
|
worker_pid = fork do
|
47
43
|
# make the process title Test::Unit friendly and ps(1) searchable
|
48
|
-
$0 = "tork-worker[#{
|
44
|
+
$0 = "tork-worker[#{$tork_worker_number}] #{$tork_test_file}"
|
49
45
|
|
50
46
|
# detach worker process from master process' group for kill -pgrp
|
51
47
|
Process.setsid
|
@@ -55,7 +51,7 @@ class Master < Server
|
|
55
51
|
|
56
52
|
# capture test output in log file because tests are run in parallel
|
57
53
|
# which makes it difficult to understand interleaved output thereof
|
58
|
-
STDERR.reopen(STDOUT.reopen(
|
54
|
+
STDERR.reopen(STDOUT.reopen($tork_log_file, 'w')).sync = true
|
59
55
|
|
60
56
|
Tork.config :worker
|
61
57
|
|
@@ -63,9 +59,10 @@ class Master < Server
|
|
63
59
|
# testing framework will take care of running the tests and reflecting
|
64
60
|
# any failures in the worker process' exit status, which will then be
|
65
61
|
# handled by the reaping thread registered in the master process (below)
|
66
|
-
Kernel.load
|
62
|
+
Kernel.load $tork_test_file if $tork_test_file.end_with? '.rb'
|
67
63
|
end
|
68
64
|
|
65
|
+
@command.push $tork_log_file, $tork_worker_number
|
69
66
|
@command_by_worker_pid[worker_pid] = @command
|
70
67
|
send @clients, @command
|
71
68
|
|
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.2.
|
4
|
+
version: 19.2.1
|
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:
|
13
|
+
date: 2013-02-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: binman
|
@@ -186,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
186
|
version: '0'
|
187
187
|
segments:
|
188
188
|
- 0
|
189
|
-
hash:
|
189
|
+
hash: -1155655632951033828
|
190
190
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
191
|
none: false
|
192
192
|
requirements:
|
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
version: '0'
|
196
196
|
segments:
|
197
197
|
- 0
|
198
|
-
hash:
|
198
|
+
hash: -1155655632951033828
|
199
199
|
requirements: []
|
200
200
|
rubyforge_project:
|
201
201
|
rubygems_version: 1.8.24
|