spork 0.5.4 → 0.5.5

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.
@@ -10,7 +10,7 @@ Because Spork uses Kernel.fork, it only works on POSIX systems. This means Wind
10
10
 
11
11
  == INSTALL:
12
12
 
13
- [sudo] gem install timcharper-spork --source http://gems.github.com/
13
+ [sudo] gem install spork
14
14
 
15
15
  alternatively:
16
16
 
@@ -32,9 +32,9 @@ Feature: Cucumber integration with rails
32
32
  require 'spec/rails'
33
33
  require 'cucumber/rails/rspec'
34
34
 
35
- # ---- this is for this test only ----
36
- $loaded_stuff << 'prefork block'
37
- # ---- end test stuff ----
35
+ #### this is for this test only #######
36
+ $loaded_stuff << 'prefork block' ######
37
+ #######################################
38
38
  end
39
39
 
40
40
  Spork.each_run do
@@ -44,9 +44,9 @@ Feature: Cucumber integration with rails
44
44
  Cucumber::Rails.bypass_rescue # Comment out this line if you want Rails own error handling
45
45
  # (e.g. rescue_action_in_public / rescue_responses / rescue_from)
46
46
 
47
- # ---- this is for this test only ----
48
- $loaded_stuff << 'each_run block'
49
- # ---- end test stuff ----
47
+ #### this is for this test only #######
48
+ $loaded_stuff << 'each_run block' #####
49
+ #######################################
50
50
  end
51
51
  """
52
52
  And a file named "features/cucumber_rails.feature" with:
@@ -19,17 +19,17 @@ Feature: Rails Integration
19
19
  require 'spec'
20
20
  require 'spec/rails'
21
21
 
22
- # ---- this is for this test only ----
23
- $loaded_stuff << 'prefork block'
24
- # ---- end test stuff ----
22
+ #### this is for this test only #######
23
+ $loaded_stuff << 'prefork block' ######
24
+ #######################################
25
25
  end
26
26
 
27
27
  Spork.each_run do
28
28
  # This code will be run each time you run your specs.
29
29
 
30
- # ---- this is for this test only ----
31
- $loaded_stuff << 'each_run block'
32
- # ---- end test stuff ----
30
+ #### this is for this test only #######
31
+ $loaded_stuff << 'each_run block' #####
32
+ #######################################
33
33
  end
34
34
  """
35
35
  And the application has a model, observer, route, and application helper
@@ -53,7 +53,6 @@ class SporkWorld
53
53
  parent_stderr, child_stderr = IO::pipe
54
54
 
55
55
  background_jobs << Kernel.fork do
56
- # grandchild
57
56
  [parent_stdin, parent_stdout, parent_stderr].each { |io| io.close }
58
57
 
59
58
  STDIN.reopen(child_stdin)
@@ -94,7 +94,7 @@ class Spork::Server
94
94
  end
95
95
 
96
96
  def run(argv, stderr, stdout)
97
- return false if running?
97
+ abort if running?
98
98
 
99
99
  @child = ::Spork::Forker.new do
100
100
  $stdout, $stderr = stdout, stderr
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: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Harper
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-08 00:00:00 -06:00
12
+ date: 2009-06-10 00:00:00 -06:00
13
13
  default_executable: spork
14
14
  dependencies: []
15
15