guard-spork 0.1.4 → 0.1.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Spork guard allows to automatically & intelligently start/reload your RSpec/Cucumber Spork server(s).
4
4
 
5
- - Compatible with Spork 0.8.4 & 0.9.0.rc2
5
+ - Compatible with Spork 0.8.4 & 0.9.0.rc3
6
6
  - Tested on Ruby 1.8.6, 1.8.7 & 1.9.2.
7
7
 
8
8
  == Install
@@ -42,6 +42,18 @@ Please read {Guard doc}[http://github.com/guard/guard#readme] for more info abou
42
42
  watch('spec/spec_helper.rb')
43
43
  end
44
44
 
45
+ === Running specs over Spork
46
+
47
+ Pass the :drb => true option to {guard-rspec}[http://github.com/guard/guard-rspec] and/or {guard-cucumber}[http://github.com/guard/guard-cucumber] to run them over the Spork DRb server:
48
+
49
+ guard 'rspec', :drb => true do
50
+ ...
51
+ end
52
+
53
+ guard 'cucumber', :drb => true do
54
+ ...
55
+ end
56
+
45
57
  == Options
46
58
 
47
59
  Spork guard automatically detect RSpec/Cucumber/Bundler presence but you can disable any of them with the corresponding options:
@@ -14,8 +14,8 @@ module Guard
14
14
 
15
15
  def launch_sporks(action)
16
16
  UI.info "#{action.capitalize}ing Spork for #{sporked_gems} ", :reset => true
17
- system(spork_command("rspec")) if rspec?
18
- system(spork_command("cucumber")) if cucumber?
17
+ spawn(spork_command("rspec")) if rspec?
18
+ spawn(spork_command("cucumber")) if cucumber?
19
19
  verify_launches(action)
20
20
  end
21
21
 
@@ -38,7 +38,6 @@ module Guard
38
38
  cmd_parts << "-p #{options[:cucumber_port]}"
39
39
  end
40
40
 
41
- cmd_parts << ">/dev/null 2>&1 < /dev/null &"
42
41
  cmd_parts.join(" ")
43
42
  end
44
43
 
@@ -49,7 +48,6 @@ module Guard
49
48
  TCPSocket.new('localhost', options[:rspec_port]).close if rspec?
50
49
  TCPSocket.new('localhost', options[:cucumber_port]).close if cucumber?
51
50
  rescue Errno::ECONNREFUSED
52
- print '.'
53
51
  next
54
52
  end
55
53
  UI.info "Spork for #{sporked_gems} successfully #{action}ed", :reset => true
@@ -86,4 +84,4 @@ module Guard
86
84
 
87
85
  end
88
86
  end
89
- end
87
+ end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module SporkVersion
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-spork
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thibaud Guillaume-Gentil
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-08 00:00:00 +01:00
18
+ date: 2011-03-14 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency