guard-rspec 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -119,6 +119,7 @@ Former `:color`, `:drb`, `:fail_fast` and `:formatter` options are deprecated an
119
119
  :run_all => { :cli => "-p" } # cli arguments to use when running all specs, default: same as :cli
120
120
  :spec_paths => ["spec"] # specify an array of paths that contain spec files
121
121
  :turnip => true # enable turnip support; default: false
122
+ :zeus => true # enable zeus support; default: false
122
123
  ```
123
124
 
124
125
  You can also use a custom binstubs directory using `:binstubs => 'some-dir'`.
@@ -15,7 +15,8 @@ module Guard
15
15
  :cli => nil,
16
16
  :env => nil,
17
17
  :notification => true,
18
- :turnip => false
18
+ :turnip => false,
19
+ :zeus => false
19
20
  }.merge(options)
20
21
 
21
22
  deprecations_warnings
@@ -89,6 +90,7 @@ module Guard
89
90
  cmd_parts << environment_variables
90
91
  cmd_parts << "rvm #{@options[:rvm].join(',')} exec" if @options[:rvm].respond_to?(:join)
91
92
  cmd_parts << "bundle exec" if bundle_exec?
93
+ cmd_parts << 'zeus' if zeus?
92
94
  cmd_parts << rspec_executable
93
95
  cmd_parts << rspec_arguments(paths, options)
94
96
  cmd_parts.compact.join(' ')
@@ -167,6 +169,10 @@ module Guard
167
169
  @binstubs ||= !!@options[:binstubs]
168
170
  end
169
171
 
172
+ def zeus?
173
+ @options[:zeus] || false
174
+ end
175
+
170
176
  def binstubs
171
177
  @options[:binstubs] == true ? "bin" : @options[:binstubs]
172
178
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RSpecVersion
3
- VERSION = "2.0.0"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.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-09-29 00:00:00.000000000 Z
12
+ date: 2012-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard