guard-cucumber 1.3.2 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
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', :cli => '--format progress --no-profile', :command_prefix => 'zeus' do
177
+ guard 'cucumber', :command_prefix => 'zeus', :bundler => false do
178
178
  ...
179
179
  end
180
180
  ```
181
- You may also want to set `:bundler => false` to avoid using Bundler, as recommended in the Zeus documenation.
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 (bundler? && options[:bundler] != false) || (bundler? && options[:binstubs].is_a?(TrueClass))
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 && ( bundler? || options[:bundler] != false ) ? 'bin/cucumber' : 'cucumber'
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`.
@@ -1,6 +1,6 @@
1
1
  module Guard
2
2
  module CucumberVersion
3
3
  # Guard::Cucumber version that is used for the Gem specification
4
- VERSION = '1.3.2'
4
+ VERSION = '1.4.0'
5
5
  end
6
6
  end
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.3.2
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-15 00:00:00.000000000 Z
12
+ date: 2013-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard