spork 0.9.0.rc8-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +10 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +134 -0
- data/assets/bootstrap.rb +47 -0
- data/bin/spork +20 -0
- data/features/at_exit_during_each_run.feature +36 -0
- data/features/cucumber_rails_integration.feature +107 -0
- data/features/diagnostic_mode.feature +41 -0
- data/features/gemfiles/rails3.0/Gemfile +14 -0
- data/features/gemfiles/rails3.0/Gemfile.lock +120 -0
- data/features/rails_delayed_loading_workarounds.feature +177 -0
- data/features/rspec_rails_integration.feature +92 -0
- data/features/spork_debugger.feature +108 -0
- data/features/steps/general_steps.rb +3 -0
- data/features/steps/rails_steps.rb +67 -0
- data/features/steps/sandbox_steps.rb +115 -0
- data/features/support/background_job.rb +63 -0
- data/features/support/bundler_helpers.rb +41 -0
- data/features/support/env.rb +105 -0
- data/features/unknown_app_framework.feature +42 -0
- data/lib/spork.rb +155 -0
- data/lib/spork/app_framework.rb +80 -0
- data/lib/spork/app_framework/padrino.rb +22 -0
- data/lib/spork/app_framework/rails.rb +82 -0
- data/lib/spork/app_framework/unknown.rb +6 -0
- data/lib/spork/custom_io_streams.rb +25 -0
- data/lib/spork/diagnoser.rb +105 -0
- data/lib/spork/ext/rails-reloader.rb +14 -0
- data/lib/spork/ext/ruby-debug.rb +150 -0
- data/lib/spork/forker.rb +71 -0
- data/lib/spork/gem_helpers.rb +38 -0
- data/lib/spork/run_strategy.rb +48 -0
- data/lib/spork/run_strategy/forking.rb +35 -0
- data/lib/spork/run_strategy/magazine.rb +151 -0
- data/lib/spork/run_strategy/magazine/magazine_slave.rb +30 -0
- data/lib/spork/run_strategy/magazine/magazine_slave_provider.rb +30 -0
- data/lib/spork/run_strategy/magazine/ring_server.rb +10 -0
- data/lib/spork/runner.rb +90 -0
- data/lib/spork/server.rb +77 -0
- data/lib/spork/test_framework.rb +167 -0
- data/lib/spork/test_framework/cucumber.rb +38 -0
- data/lib/spork/test_framework/rspec.rb +14 -0
- data/spec/spec_helper.rb +113 -0
- data/spec/spork/app_framework/rails_spec.rb +22 -0
- data/spec/spork/app_framework/unknown_spec.rb +12 -0
- data/spec/spork/app_framework_spec.rb +16 -0
- data/spec/spork/diagnoser_spec.rb +105 -0
- data/spec/spork/forker_spec.rb +44 -0
- data/spec/spork/run_strategy/forking_spec.rb +38 -0
- data/spec/spork/runner_spec.rb +50 -0
- data/spec/spork/server_spec.rb +15 -0
- data/spec/spork/test_framework/cucumber_spec.rb +11 -0
- data/spec/spork/test_framework/rspec_spec.rb +10 -0
- data/spec/spork/test_framework_shared_examples.rb +23 -0
- data/spec/spork/test_framework_spec.rb +90 -0
- data/spec/spork_spec.rb +153 -0
- data/spec/support/fake_framework.rb +15 -0
- data/spec/support/fake_run_strategy.rb +21 -0
- metadata +173 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
class FakeFramework < Spork::TestFramework
|
2
|
+
include Spork::TestIOStreams
|
3
|
+
|
4
|
+
attr_accessor :wait_time
|
5
|
+
DEFAULT_PORT = 1000
|
6
|
+
|
7
|
+
def self.helper_file
|
8
|
+
SPEC_TMP_DIR + "/fake/test_helper.rb"
|
9
|
+
end
|
10
|
+
|
11
|
+
def run_tests(argv, input, output)
|
12
|
+
sleep(@wait_time || 0.5)
|
13
|
+
true
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class FakeRunStrategy < Spork::RunStrategy
|
2
|
+
def initialize(*args)
|
3
|
+
end
|
4
|
+
|
5
|
+
def self.available?
|
6
|
+
true
|
7
|
+
end
|
8
|
+
|
9
|
+
def run(argv, stderr, stdout)
|
10
|
+
sleep(@wait_time || 0.5)
|
11
|
+
true
|
12
|
+
end
|
13
|
+
|
14
|
+
def running?
|
15
|
+
false
|
16
|
+
end
|
17
|
+
|
18
|
+
def preload
|
19
|
+
true
|
20
|
+
end
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,173 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spork
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 15424149
|
5
|
+
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 9
|
9
|
+
- 0
|
10
|
+
- rc
|
11
|
+
- 8
|
12
|
+
version: 0.9.0.rc8
|
13
|
+
platform: x86-mingw32
|
14
|
+
authors:
|
15
|
+
- Tim Harper
|
16
|
+
- Donald Parish
|
17
|
+
autorequire:
|
18
|
+
bindir: bin
|
19
|
+
cert_chain: []
|
20
|
+
|
21
|
+
date: 2011-05-27 00:00:00 -06:00
|
22
|
+
default_executable:
|
23
|
+
dependencies:
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
34
|
+
prerelease: false
|
35
|
+
type: :runtime
|
36
|
+
requirement: *id001
|
37
|
+
name: win32-process
|
38
|
+
description: A forking Drb spec server
|
39
|
+
email:
|
40
|
+
- timcharper+spork@gmail.com
|
41
|
+
executables:
|
42
|
+
- spork
|
43
|
+
extensions: []
|
44
|
+
|
45
|
+
extra_rdoc_files:
|
46
|
+
- MIT-LICENSE
|
47
|
+
- README.rdoc
|
48
|
+
files:
|
49
|
+
- Gemfile
|
50
|
+
- README.rdoc
|
51
|
+
- MIT-LICENSE
|
52
|
+
- lib/spork/app_framework/padrino.rb
|
53
|
+
- lib/spork/app_framework/rails.rb
|
54
|
+
- lib/spork/app_framework/unknown.rb
|
55
|
+
- lib/spork/app_framework.rb
|
56
|
+
- lib/spork/custom_io_streams.rb
|
57
|
+
- lib/spork/diagnoser.rb
|
58
|
+
- lib/spork/ext/rails-reloader.rb
|
59
|
+
- lib/spork/ext/ruby-debug.rb
|
60
|
+
- lib/spork/forker.rb
|
61
|
+
- lib/spork/gem_helpers.rb
|
62
|
+
- lib/spork/run_strategy/forking.rb
|
63
|
+
- lib/spork/run_strategy/magazine/magazine_slave.rb
|
64
|
+
- lib/spork/run_strategy/magazine/magazine_slave_provider.rb
|
65
|
+
- lib/spork/run_strategy/magazine/ring_server.rb
|
66
|
+
- lib/spork/run_strategy/magazine.rb
|
67
|
+
- lib/spork/run_strategy.rb
|
68
|
+
- lib/spork/runner.rb
|
69
|
+
- lib/spork/server.rb
|
70
|
+
- lib/spork/test_framework/cucumber.rb
|
71
|
+
- lib/spork/test_framework/rspec.rb
|
72
|
+
- lib/spork/test_framework.rb
|
73
|
+
- lib/spork.rb
|
74
|
+
- assets/bootstrap.rb
|
75
|
+
- features/at_exit_during_each_run.feature
|
76
|
+
- features/cucumber_rails_integration.feature
|
77
|
+
- features/diagnostic_mode.feature
|
78
|
+
- features/gemfiles/rails3.0/Gemfile
|
79
|
+
- features/gemfiles/rails3.0/Gemfile.lock
|
80
|
+
- features/rails_delayed_loading_workarounds.feature
|
81
|
+
- features/rspec_rails_integration.feature
|
82
|
+
- features/spork_debugger.feature
|
83
|
+
- features/steps/general_steps.rb
|
84
|
+
- features/steps/rails_steps.rb
|
85
|
+
- features/steps/sandbox_steps.rb
|
86
|
+
- features/support/background_job.rb
|
87
|
+
- features/support/bundler_helpers.rb
|
88
|
+
- features/support/env.rb
|
89
|
+
- features/unknown_app_framework.feature
|
90
|
+
- spec/spec_helper.rb
|
91
|
+
- spec/spork/app_framework/rails_spec.rb
|
92
|
+
- spec/spork/app_framework/unknown_spec.rb
|
93
|
+
- spec/spork/app_framework_spec.rb
|
94
|
+
- spec/spork/diagnoser_spec.rb
|
95
|
+
- spec/spork/forker_spec.rb
|
96
|
+
- spec/spork/run_strategy/forking_spec.rb
|
97
|
+
- spec/spork/runner_spec.rb
|
98
|
+
- spec/spork/server_spec.rb
|
99
|
+
- spec/spork/test_framework/cucumber_spec.rb
|
100
|
+
- spec/spork/test_framework/rspec_spec.rb
|
101
|
+
- spec/spork/test_framework_shared_examples.rb
|
102
|
+
- spec/spork/test_framework_spec.rb
|
103
|
+
- spec/spork_spec.rb
|
104
|
+
- spec/support/fake_framework.rb
|
105
|
+
- spec/support/fake_run_strategy.rb
|
106
|
+
- bin/spork
|
107
|
+
has_rdoc: true
|
108
|
+
homepage: http://github.com/timcharper/spork
|
109
|
+
licenses: []
|
110
|
+
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options:
|
113
|
+
- --main
|
114
|
+
- README.rdoc
|
115
|
+
require_paths:
|
116
|
+
- lib
|
117
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
hash: 3
|
123
|
+
segments:
|
124
|
+
- 0
|
125
|
+
version: "0"
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
hash: 3
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
version: "0"
|
135
|
+
requirements: []
|
136
|
+
|
137
|
+
rubyforge_project: spork
|
138
|
+
rubygems_version: 1.5.0
|
139
|
+
signing_key:
|
140
|
+
specification_version: 3
|
141
|
+
summary: spork
|
142
|
+
test_files:
|
143
|
+
- features/at_exit_during_each_run.feature
|
144
|
+
- features/cucumber_rails_integration.feature
|
145
|
+
- features/diagnostic_mode.feature
|
146
|
+
- features/gemfiles/rails3.0/Gemfile
|
147
|
+
- features/gemfiles/rails3.0/Gemfile.lock
|
148
|
+
- features/rails_delayed_loading_workarounds.feature
|
149
|
+
- features/rspec_rails_integration.feature
|
150
|
+
- features/spork_debugger.feature
|
151
|
+
- features/steps/general_steps.rb
|
152
|
+
- features/steps/rails_steps.rb
|
153
|
+
- features/steps/sandbox_steps.rb
|
154
|
+
- features/support/background_job.rb
|
155
|
+
- features/support/bundler_helpers.rb
|
156
|
+
- features/support/env.rb
|
157
|
+
- features/unknown_app_framework.feature
|
158
|
+
- spec/spec_helper.rb
|
159
|
+
- spec/spork/app_framework/rails_spec.rb
|
160
|
+
- spec/spork/app_framework/unknown_spec.rb
|
161
|
+
- spec/spork/app_framework_spec.rb
|
162
|
+
- spec/spork/diagnoser_spec.rb
|
163
|
+
- spec/spork/forker_spec.rb
|
164
|
+
- spec/spork/run_strategy/forking_spec.rb
|
165
|
+
- spec/spork/runner_spec.rb
|
166
|
+
- spec/spork/server_spec.rb
|
167
|
+
- spec/spork/test_framework/cucumber_spec.rb
|
168
|
+
- spec/spork/test_framework/rspec_spec.rb
|
169
|
+
- spec/spork/test_framework_shared_examples.rb
|
170
|
+
- spec/spork/test_framework_spec.rb
|
171
|
+
- spec/spork_spec.rb
|
172
|
+
- spec/support/fake_framework.rb
|
173
|
+
- spec/support/fake_run_strategy.rb
|