spork 0.9.0.rc9 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -6
- data/assets/bootstrap.rb +2 -0
- data/lib/spork/run_strategy/magazine.rb +10 -6
- data/lib/spork/server.rb +1 -1
- metadata +25 -44
data/README.rdoc
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
= Spork
|
2
2
|
|
3
|
-
* Repository: http://github.com/
|
4
|
-
* Issues: http://github.com/
|
5
|
-
* Changes: http://github.com/
|
3
|
+
* Repository: http://github.com/sporkrb/spork
|
4
|
+
* Issues: http://github.com/sporkrb/spork/issues
|
5
|
+
* Changes: http://github.com/sporkrb/spork/blob/master/History.txt
|
6
6
|
* Mailing list: http://groups.google.com/group/sporkgem
|
7
|
-
* Wiki: http://wiki.github.com/
|
7
|
+
* Wiki: http://wiki.github.com/sporkrb/spork
|
8
8
|
|
9
9
|
== SYNOPSIS:
|
10
10
|
|
@@ -70,7 +70,7 @@ It will output a lot of stuff. At the top you'll find a summary of all project
|
|
70
70
|
|
71
71
|
Some project changes will require a spork restart, and you shouldn't expect them to not (IE: modifying your project gem dependencies or core application config). Any file that is loaded during Spork start-up will be cached until Spork is restarted. You can restart spork by sending a USR2 signal to the server process. This could be automated with a gem such as Kicker (https://github.com/alloy/kicker). Since a native hook is required for each operating system to efficiently watch for filesystem changes, automatic restarting has not been built into Spork.
|
72
72
|
|
73
|
-
You may find this wiki page useful for common ways to battle a variety of common pre-loading issues: http://github.com/
|
73
|
+
You may find this wiki page useful for common ways to battle a variety of common pre-loading issues: http://github.com/sporkrb/spork/wiki/Spork.trap_method-Jujutsu
|
74
74
|
|
75
75
|
== Running specs over Spork
|
76
76
|
|
@@ -120,7 +120,7 @@ Essentially:
|
|
120
120
|
|
121
121
|
== Some potential issues and ways to overcome them:
|
122
122
|
|
123
|
-
See http://wiki.github.com/
|
123
|
+
See http://wiki.github.com/sporkrb/spork/troubleshooting
|
124
124
|
|
125
125
|
== Kudos to
|
126
126
|
|
data/assets/bootstrap.rb
CHANGED
@@ -106,22 +106,26 @@ class Spork::RunStrategy::Magazine < Spork::RunStrategy
|
|
106
106
|
|
107
107
|
def restart_slave(id)
|
108
108
|
pid = @pids[id]
|
109
|
-
|
109
|
+
kill_slave(pid)
|
110
110
|
start_slave(id)
|
111
111
|
end
|
112
112
|
|
113
113
|
def windows?
|
114
114
|
ENV['OS'] == 'Windows_NT'
|
115
115
|
end
|
116
|
+
|
117
|
+
def kill_slave(pid)
|
118
|
+
if windows?
|
119
|
+
system("taskkill /f /t /pid #{pid} > nul")
|
120
|
+
else
|
121
|
+
Process.kill(9, pid)
|
122
|
+
end
|
123
|
+
end
|
116
124
|
|
117
125
|
def kill_all_processes
|
118
126
|
|
119
127
|
@pids.each {|pid|
|
120
|
-
|
121
|
-
system("taskkill /f /pid #{pid}")
|
122
|
-
else
|
123
|
-
Process.kill(9, pid)
|
124
|
-
end
|
128
|
+
kill_slave(pid)
|
125
129
|
}
|
126
130
|
puts "\nKilling processes."; $stdout.flush
|
127
131
|
end
|
data/lib/spork/server.rb
CHANGED
metadata
CHANGED
@@ -1,38 +1,27 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: spork
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 9
|
9
|
-
- 0
|
10
|
-
- rc
|
11
|
-
- 9
|
12
|
-
version: 0.9.0.rc9
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
5
|
+
prerelease:
|
13
6
|
platform: ruby
|
14
|
-
authors:
|
7
|
+
authors:
|
15
8
|
- Tim Harper
|
16
9
|
- Donald Parish
|
17
10
|
autorequire:
|
18
11
|
bindir: bin
|
19
12
|
cert_chain: []
|
20
|
-
|
21
|
-
date: 2011-06-30 00:00:00 -06:00
|
22
|
-
default_executable:
|
13
|
+
date: 2012-01-22 00:00:00.000000000Z
|
23
14
|
dependencies: []
|
24
|
-
|
25
15
|
description: A forking Drb spec server
|
26
|
-
email:
|
16
|
+
email:
|
27
17
|
- timcharper+spork@gmail.com
|
28
|
-
executables:
|
18
|
+
executables:
|
29
19
|
- spork
|
30
20
|
extensions: []
|
31
|
-
|
32
|
-
extra_rdoc_files:
|
21
|
+
extra_rdoc_files:
|
33
22
|
- MIT-LICENSE
|
34
23
|
- README.rdoc
|
35
|
-
files:
|
24
|
+
files:
|
36
25
|
- Gemfile
|
37
26
|
- README.rdoc
|
38
27
|
- MIT-LICENSE
|
@@ -91,42 +80,33 @@ files:
|
|
91
80
|
- spec/support/fake_framework.rb
|
92
81
|
- spec/support/fake_run_strategy.rb
|
93
82
|
- bin/spork
|
94
|
-
has_rdoc: true
|
95
83
|
homepage: http://github.com/timcharper/spork
|
96
84
|
licenses: []
|
97
|
-
|
98
85
|
post_install_message:
|
99
|
-
rdoc_options:
|
86
|
+
rdoc_options:
|
100
87
|
- --main
|
101
88
|
- README.rdoc
|
102
|
-
require_paths:
|
89
|
+
require_paths:
|
103
90
|
- lib
|
104
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
105
92
|
none: false
|
106
|
-
requirements:
|
107
|
-
- -
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
|
110
|
-
|
111
|
-
- 0
|
112
|
-
version: "0"
|
113
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
98
|
none: false
|
115
|
-
requirements:
|
116
|
-
- -
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
|
119
|
-
segments:
|
120
|
-
- 0
|
121
|
-
version: "0"
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
122
103
|
requirements: []
|
123
|
-
|
124
104
|
rubyforge_project: spork
|
125
|
-
rubygems_version: 1.
|
105
|
+
rubygems_version: 1.8.7
|
126
106
|
signing_key:
|
127
107
|
specification_version: 3
|
128
108
|
summary: spork
|
129
|
-
test_files:
|
109
|
+
test_files:
|
130
110
|
- features/at_exit_during_each_run.feature
|
131
111
|
- features/cucumber_rails_integration.feature
|
132
112
|
- features/diagnostic_mode.feature
|
@@ -158,3 +138,4 @@ test_files:
|
|
158
138
|
- spec/spork_spec.rb
|
159
139
|
- spec/support/fake_framework.rb
|
160
140
|
- spec/support/fake_run_strategy.rb
|
141
|
+
has_rdoc:
|