guard-rspec 1.0.1 → 1.1.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 +7 -0
- data/lib/guard/rspec/runner.rb +3 -1
- data/lib/guard/rspec/templates/Guardfile +5 -0
- data/lib/guard/rspec/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -96,6 +96,12 @@ guard 'rspec', :spec_paths => "test" do
|
|
96
96
|
# ...
|
97
97
|
end
|
98
98
|
```
|
99
|
+
[Turnip](https://github.com/jnicklas/turnip) is supported (Ruby 1.9.X only), but you must enable it:
|
100
|
+
``` ruby
|
101
|
+
guard 'rspec', :turnip => true do
|
102
|
+
# ...
|
103
|
+
end
|
104
|
+
```
|
99
105
|
|
100
106
|
|
101
107
|
Former `:color`, `:drb`, `:fail_fast` and `:formatter` options are deprecated and have no effect anymore.
|
@@ -114,6 +120,7 @@ Former `:color`, `:drb`, `:fail_fast` and `:formatter` options are deprecated an
|
|
114
120
|
:keep_failed => false # keep failed specs until they pass, default: true
|
115
121
|
:run_all => { :cli => "-p" } # cli arguments to use when running all specs, default: same as :cli
|
116
122
|
:spec_paths => ["spec"] # specify an array of paths that contain spec files
|
123
|
+
:turnip => true # enable turnip support; default: false
|
117
124
|
```
|
118
125
|
|
119
126
|
### DRb mode
|
data/lib/guard/rspec/runner.rb
CHANGED
@@ -11,7 +11,8 @@ module Guard
|
|
11
11
|
:binstubs => false,
|
12
12
|
:rvm => nil,
|
13
13
|
:cli => nil,
|
14
|
-
:notification => true
|
14
|
+
:notification => true,
|
15
|
+
:turnip => false
|
15
16
|
}.merge(options)
|
16
17
|
|
17
18
|
deprecations_warnings
|
@@ -85,6 +86,7 @@ module Guard
|
|
85
86
|
arg_parts << "-f Guard::RSpec::Formatter::Notification#{rspec_class}#{rspec_version == 1 ? ":" : " --out "}/dev/null"
|
86
87
|
end
|
87
88
|
arg_parts << "--failure-exit-code #{FAILURE_EXIT_CODE}" if failure_exit_code_supported?
|
89
|
+
arg_parts << "-r turnip/rspec" if @options[:turnip]
|
88
90
|
arg_parts << paths.join(' ')
|
89
91
|
|
90
92
|
arg_parts.compact.join(' ')
|
@@ -10,7 +10,12 @@ guard 'rspec', :version => 2 do
|
|
10
10
|
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
11
11
|
watch('config/routes.rb') { "spec/routing" }
|
12
12
|
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
13
|
+
|
13
14
|
# Capybara request specs
|
14
15
|
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
|
16
|
+
|
17
|
+
# Turnip features and steps
|
18
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
19
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
|
15
20
|
end
|
16
21
|
|
data/lib/guard/rspec/version.rb
CHANGED
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: 1.0
|
4
|
+
version: 1.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-06-
|
12
|
+
date: 2012-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
segments:
|
92
92
|
- 0
|
93
|
-
hash:
|
93
|
+
hash: 2822986214998298860
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|