guard-spork 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,6 +52,7 @@ Spork guard automatically detect RSpec/Cucumber/Bundler presence but you can dis
52
52
 
53
53
  Available options:
54
54
 
55
+ :wait => 30 # Seconds to wait server launch, default 20
55
56
  :cucumber => false
56
57
  :rspec => false
57
58
  :bundler => false # don't use "bundle exec"
@@ -6,7 +6,8 @@ module Guard
6
6
  attr_accessor :options
7
7
 
8
8
  def initialize(options = {})
9
- options[:rspec_port] ||= 8989
9
+ options[:wait] ||= 20 # seconds
10
+ options[:rspec_port] ||= 8989
10
11
  options[:cucumber_port] ||= 8990
11
12
  @options = options
12
13
  end
@@ -42,7 +43,7 @@ module Guard
42
43
  end
43
44
 
44
45
  def verify_launches(action)
45
- 30.times do
46
+ options[:wait].times do
46
47
  sleep 1
47
48
  begin
48
49
  TCPSocket.new('localhost', options[:rspec_port]).close if rspec?
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module SporkVersion
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
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: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thibaud Guillaume-Gentil