spork 1.0.0rc0 → 1.0.0rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/assets/bootstrap.rb +49 -0
- metadata +3 -2
data/assets/bootstrap.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'spork'
|
3
|
+
#uncomment the following line to use spork with the debugger
|
4
|
+
#require 'spork/ext/ruby-debug'
|
5
|
+
|
6
|
+
Spork.prefork do
|
7
|
+
# Loading more in this block will cause your tests to run faster. However,
|
8
|
+
# if you change any configuration or code from libraries loaded here, you'll
|
9
|
+
# need to restart spork for it take effect.
|
10
|
+
|
11
|
+
end
|
12
|
+
|
13
|
+
Spork.each_run do
|
14
|
+
# This code will be run each time you run your specs.
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
# --- Instructions ---
|
19
|
+
# Sort the contents of this file into a Spork.prefork and a Spork.each_run
|
20
|
+
# block.
|
21
|
+
#
|
22
|
+
# The Spork.prefork block is run only once when the spork server is started.
|
23
|
+
# You typically want to place most of your (slow) initializer code in here, in
|
24
|
+
# particular, require'ing any 3rd-party gems that you don't normally modify
|
25
|
+
# during development.
|
26
|
+
#
|
27
|
+
# The Spork.each_run block is run each time you run your specs. In case you
|
28
|
+
# need to load files that tend to change during development, require them here.
|
29
|
+
# With Rails, your application modules are loaded automatically, so sometimes
|
30
|
+
# this block can remain empty.
|
31
|
+
#
|
32
|
+
# Note: You can modify files loaded *from* the Spork.each_run block without
|
33
|
+
# restarting the spork server. However, this file itself will not be reloaded,
|
34
|
+
# so if you change any of the code inside the each_run block, you still need to
|
35
|
+
# restart the server. In general, if you have non-trivial code in this file,
|
36
|
+
# it's advisable to move it into a separate file so you can easily edit it
|
37
|
+
# without restarting spork. (For example, with RSpec, you could move
|
38
|
+
# non-trivial code into a file spec/support/my_helper.rb, making sure that the
|
39
|
+
# spec/support/* files are require'd from inside the each_run block.)
|
40
|
+
#
|
41
|
+
# Any code that is left outside the two blocks will be run during preforking
|
42
|
+
# *and* during each_run -- that's probably not what you want.
|
43
|
+
#
|
44
|
+
# These instructions should self-destruct in 10 seconds. If they don't, feel
|
45
|
+
# free to delete them.
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.0rc1
|
5
5
|
prerelease: 5
|
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-01-
|
13
|
+
date: 2012-01-28 00:00:00.000000000Z
|
14
14
|
dependencies: []
|
15
15
|
description: A forking Drb spec server
|
16
16
|
email:
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- spec/support/should_include_a_string_like.rb
|
64
64
|
- spec/support/test_io_streams.rb
|
65
65
|
- spec/support/tmp_project_helpers.rb
|
66
|
+
- assets/bootstrap.rb
|
66
67
|
- features/at_exit_during_each_run.feature
|
67
68
|
- features/diagnostic_mode.feature
|
68
69
|
- features/spork_debugger.feature
|