guard-spork 0.0.3 → 0.0.4
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.
- data/README.rdoc +1 -0
- data/lib/guard/spork/runner.rb +3 -2
- data/lib/guard/spork/version.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
data/lib/guard/spork/runner.rb
CHANGED
@@ -6,7 +6,8 @@ module Guard
|
|
6
6
|
attr_accessor :options
|
7
7
|
|
8
8
|
def initialize(options = {})
|
9
|
-
options[:
|
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
|
-
|
46
|
+
options[:wait].times do
|
46
47
|
sleep 1
|
47
48
|
begin
|
48
49
|
TCPSocket.new('localhost', options[:rspec_port]).close if rspec?
|
data/lib/guard/spork/version.rb
CHANGED
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thibaud Guillaume-Gentil
|