guard-cucumber 1.3.2 → 1.4.0
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.md +14 -2
- data/lib/guard/cucumber/runner.rb +2 -2
- data/lib/guard/cucumber/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -174,11 +174,23 @@ There is a section with alternative configurations on the [Wiki](https://github.
|
|
174
174
|
|
175
175
|
To use Guard::Cucumber with [Zeus](https://github.com/burke/zeus), just set the command prefix:
|
176
176
|
```
|
177
|
-
guard 'cucumber', :
|
177
|
+
guard 'cucumber', :command_prefix => 'zeus', :bundler => false do
|
178
178
|
...
|
179
179
|
end
|
180
180
|
```
|
181
|
-
|
181
|
+
|
182
|
+
You need to set `:bundler => false` to avoid using Bundler, as recommended in the Zeus documenation.
|
183
|
+
|
184
|
+
## Cucumber with Spring
|
185
|
+
|
186
|
+
To use Guard::Cucumber with [Spring](https://github.com/jonleighton/spring), just set the command prefix:
|
187
|
+
```
|
188
|
+
guard 'cucumber', :command_prefix => 'spring', :bundler => false do
|
189
|
+
...
|
190
|
+
end
|
191
|
+
```
|
192
|
+
|
193
|
+
You need to set `:bundler => false` to avoid using Bundler, as recommended in the Spring documenation.
|
182
194
|
|
183
195
|
Issues
|
184
196
|
------
|
@@ -44,7 +44,7 @@ module Guard
|
|
44
44
|
cmd = []
|
45
45
|
cmd << options[:command_prefix] if options[:command_prefix]
|
46
46
|
cmd << "rvm #{ options[:rvm].join(',') } exec" if options[:rvm].is_a?(Array)
|
47
|
-
cmd << 'bundle exec' if
|
47
|
+
cmd << 'bundle exec' if bundler? && options[:bundler] != false
|
48
48
|
cmd << cucumber_exec(options)
|
49
49
|
cmd << options[:cli] if options[:cli]
|
50
50
|
|
@@ -64,7 +64,7 @@ module Guard
|
|
64
64
|
# @return [String] Cucumber executable
|
65
65
|
#
|
66
66
|
def cucumber_exec(options = {})
|
67
|
-
options[:binstubs] == true
|
67
|
+
options[:binstubs] == true ? 'bin/cucumber' : 'cucumber'
|
68
68
|
end
|
69
69
|
|
70
70
|
# Simple test if bundler should be used. it just checks for the `Gemfile`.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-cucumber
|
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: 2013-01
|
12
|
+
date: 2013-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|