spork 0.9.0.rc9-x86-mingw32 → 0.9.0-x86-mingw32
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.rdoc +8 -8
- data/assets/bootstrap.rb +2 -0
- data/lib/spork/run_strategy/magazine.rb +10 -6
- data/lib/spork/server.rb +1 -1
- metadata +36 -55
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
|
|
@@ -29,7 +29,7 @@ Actually, Spork ~can~ work with any application framework. But, it ships with h
|
|
29
29
|
|
30
30
|
=== rubygems:
|
31
31
|
|
32
|
-
[sudo] gem install spork --
|
32
|
+
[sudo] gem install spork --version 0.9.0
|
33
33
|
|
34
34
|
(Rails 2.x)
|
35
35
|
|
@@ -39,7 +39,7 @@ Actually, Spork ~can~ work with any application framework. But, it ships with h
|
|
39
39
|
|
40
40
|
Add to your Gemfile:
|
41
41
|
|
42
|
-
gem 'spork', '~> 0.9.0
|
42
|
+
gem 'spork', '~> 0.9.0'
|
43
43
|
|
44
44
|
(Rails 2.x, use this)
|
45
45
|
|
@@ -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,51 +1,38 @@
|
|
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: x86-mingw32
|
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
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
13
|
+
date: 2012-01-22 00:00:00.000000000Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: win32-process
|
17
|
+
requirement: &70323225463580 !ruby/object:Gem::Requirement
|
26
18
|
none: false
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
|
31
|
-
segments:
|
32
|
-
- 0
|
33
|
-
version: "0"
|
34
|
-
prerelease: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
35
23
|
type: :runtime
|
36
|
-
|
37
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *70323225463580
|
38
26
|
description: A forking Drb spec server
|
39
|
-
email:
|
27
|
+
email:
|
40
28
|
- timcharper+spork@gmail.com
|
41
|
-
executables:
|
29
|
+
executables:
|
42
30
|
- spork
|
43
31
|
extensions: []
|
44
|
-
|
45
|
-
extra_rdoc_files:
|
32
|
+
extra_rdoc_files:
|
46
33
|
- MIT-LICENSE
|
47
34
|
- README.rdoc
|
48
|
-
files:
|
35
|
+
files:
|
49
36
|
- Gemfile
|
50
37
|
- README.rdoc
|
51
38
|
- MIT-LICENSE
|
@@ -104,42 +91,36 @@ files:
|
|
104
91
|
- spec/support/fake_framework.rb
|
105
92
|
- spec/support/fake_run_strategy.rb
|
106
93
|
- bin/spork
|
107
|
-
has_rdoc: true
|
108
94
|
homepage: http://github.com/timcharper/spork
|
109
95
|
licenses: []
|
110
|
-
|
111
96
|
post_install_message:
|
112
|
-
rdoc_options:
|
97
|
+
rdoc_options:
|
113
98
|
- --main
|
114
99
|
- README.rdoc
|
115
|
-
require_paths:
|
100
|
+
require_paths:
|
116
101
|
- lib
|
117
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
118
103
|
none: false
|
119
|
-
requirements:
|
120
|
-
- -
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
|
123
|
-
segments:
|
104
|
+
requirements:
|
105
|
+
- - ! '>='
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
segments:
|
124
109
|
- 0
|
125
|
-
|
126
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
|
+
hash: -1185783682866595048
|
111
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
112
|
none: false
|
128
|
-
requirements:
|
129
|
-
- -
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
|
132
|
-
segments:
|
133
|
-
- 0
|
134
|
-
version: "0"
|
113
|
+
requirements:
|
114
|
+
- - ! '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
135
117
|
requirements: []
|
136
|
-
|
137
118
|
rubyforge_project: spork
|
138
|
-
rubygems_version: 1.
|
119
|
+
rubygems_version: 1.8.7
|
139
120
|
signing_key:
|
140
121
|
specification_version: 3
|
141
122
|
summary: spork
|
142
|
-
test_files:
|
123
|
+
test_files:
|
143
124
|
- features/at_exit_during_each_run.feature
|
144
125
|
- features/cucumber_rails_integration.feature
|
145
126
|
- features/diagnostic_mode.feature
|