guard-spork 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/guard/spork/spork_instance.rb +5 -0
- data/lib/guard/spork/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -110,7 +110,7 @@ Available options:
|
|
110
110
|
:cucumber_env => { 'RAILS_ENV' => 'bar' } # Default: nil
|
111
111
|
:aggressive_kill => false # Default: true, will search Spork pids from `ps aux` and kill them all on start.
|
112
112
|
:notify_on_start => true # Default: false, will notify as soon as starting begins.
|
113
|
-
:foreman => true # Default: false, will start Spork through `foreman run` to pick up environment variables used by Foreman.
|
113
|
+
:foreman => true # Default: false, will start Spork through `foreman run` to pick up environment variables used by Foreman. Pass an env file {:env => ".env.test"}
|
114
114
|
:quiet => true # Default: false, will silence some of the debugging output which can get repetitive (only work with Spork edge at the moment).
|
115
115
|
```
|
116
116
|
|
@@ -62,6 +62,7 @@ module Guard
|
|
62
62
|
if use_foreman?
|
63
63
|
parts << "foreman"
|
64
64
|
parts << "run"
|
65
|
+
parts << "-e=#{options[:foreman].fetch(:env, '.env')}" if foreman_options?
|
65
66
|
end
|
66
67
|
parts << "spork"
|
67
68
|
|
@@ -93,6 +94,10 @@ module Guard
|
|
93
94
|
options[:foreman]
|
94
95
|
end
|
95
96
|
|
97
|
+
def foreman_options?
|
98
|
+
options[:foreman].is_a?(Hash)
|
99
|
+
end
|
100
|
+
|
96
101
|
end
|
97
102
|
end
|
98
103
|
end
|
data/lib/guard/spork/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-spork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|