guard-cucumber 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -97,6 +97,11 @@ Former `:color`, `:drb`, `:port` and `:profile` options are thus deprecated and
97
97
  :change_format => 'pretty' # Use a different cucumber format when running individual features
98
98
  # This replaces the Cucumber --format option within the :cli option
99
99
  # default: nil
100
+
101
+ :command_prefix => 'xvfb-run' # Add a prefix to the cucumber command such as 'xvfb-run' or any
102
+ # other shell script.
103
+ # The example generates: 'xvfb-run bundle exec cucumber ...'
104
+ # default: nil
100
105
  ```
101
106
 
102
107
  ## Cucumber configuration
@@ -34,10 +34,12 @@ module Guard
34
34
  # @option options [Boolean] :bundler use bundler or not
35
35
  # @option options [Array<String>] :rvm a list of rvm version to use for the test
36
36
  # @option options [Boolean] :notification show notifications
37
+ # @option options [Boolean] :command_prefix allows adding an additional prefix to the cucumber command. Ideal for running xvfb-run for terminal only cucumber tests.
37
38
  # @return [String] the Cucumber command
38
39
  #
39
40
  def cucumber_command(paths, options)
40
41
  cmd = []
42
+ cmd << options[:command_prefix] if options[:command_prefix]
41
43
  cmd << "rvm #{options[:rvm].join(',')} exec" if options[:rvm].is_a?(Array)
42
44
  cmd << 'bundle exec' if (bundler? && options[:bundler] != false) || (bundler? && options[:binstubs].is_a?(TrueClass))
43
45
  cmd << cucumber_exec(options)
@@ -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.1.0'
4
+ VERSION = '1.2.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.1.0
4
+ version: 1.2.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-06-06 00:00:00.000000000 Z
12
+ date: 2012-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
@@ -153,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  segments:
155
155
  - 0
156
- hash: -522388081409437433
156
+ hash: -162567122808560821
157
157
  required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  none: false
159
159
  requirements: