guard-rspec 0.4.4 → 0.4.5
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 +2 -2
- data/lib/guard/rspec.rb +1 -1
- data/lib/guard/rspec/runner.rb +1 -2
- data/lib/guard/rspec/templates/Guardfile +3 -3
- data/lib/guard/rspec/version.rb +1 -1
- metadata +8 -8
data/README.md
CHANGED
@@ -80,7 +80,7 @@ guard 'rspec', :cli => "--color --format nested --fail-fast --drb" do
|
|
80
80
|
end
|
81
81
|
```
|
82
82
|
|
83
|
-
By default, Guard::RSpec will only look for spec files within `spec
|
83
|
+
By default, Guard::RSpec will only look for spec files within `spec` in your project root. You can configure Guard::RSpec to look in additional paths by using the `:spec_paths` option:
|
84
84
|
|
85
85
|
``` ruby
|
86
86
|
guard 'rspec', :spec_paths => ["spec", "vendor/engines/reset/spec"] do
|
@@ -110,7 +110,7 @@ Former `:color`, `:drb`, `:fail_fast` and `:formatter` options are thus deprecat
|
|
110
110
|
:all_on_start => false # don't run all the specs at startup, default: true
|
111
111
|
:keep_failed => false # don't keep failed specs until they pass, default: true
|
112
112
|
:run_all => { :cli => "-p" } # override any option when running all specs
|
113
|
-
:spec_paths => ["spec
|
113
|
+
:spec_paths => ["spec"] # specify an array of paths that contain spec files
|
114
114
|
```
|
115
115
|
|
116
116
|
Notification
|
data/lib/guard/rspec.rb
CHANGED
data/lib/guard/rspec/runner.rb
CHANGED
@@ -8,8 +8,7 @@ module Guard
|
|
8
8
|
return false if paths.empty?
|
9
9
|
message = options[:message] || "Running: #{paths.join(' ')}"
|
10
10
|
UI.info(message, :reset => true)
|
11
|
-
system(rspec_command(paths, options))
|
12
|
-
Notifier.notify("Failed", :title => "RSpec results", :image => :failed, :priority => 2)
|
11
|
+
system(rspec_command(paths, options))
|
13
12
|
end
|
14
13
|
|
15
14
|
def set_rspec_version(options={})
|
@@ -1,15 +1,15 @@
|
|
1
1
|
guard 'rspec', :version => 2 do
|
2
2
|
watch(%r{^spec/.+_spec\.rb$})
|
3
3
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
4
|
-
watch('spec/spec_helper.rb') { "spec
|
4
|
+
watch('spec/spec_helper.rb') { "spec" }
|
5
5
|
|
6
6
|
# Rails example
|
7
7
|
watch(%r{^spec/.+_spec\.rb$})
|
8
8
|
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
9
9
|
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
10
10
|
watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
|
11
|
-
watch(%r{^spec/support/(.+)\.rb$}) { "spec
|
12
|
-
watch('spec/spec_helper.rb') { "spec
|
11
|
+
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
12
|
+
watch('spec/spec_helper.rb') { "spec" }
|
13
13
|
watch('config/routes.rb') { "spec/routing" }
|
14
14
|
watch('app/controllers/application_controller.rb') { "spec/controllers" }
|
15
15
|
# Capybara request specs
|
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: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
12
|
+
date: 2011-09-11 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
16
|
-
requirement: &
|
16
|
+
requirement: &70173358142740 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.4.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70173358142740
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &70173358142020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '1.0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70173358142020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70173358140980 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '2.6'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70173358140980
|
47
47
|
description: Guard::RSpec automatically run your specs (much like autotest).
|
48
48
|
email:
|
49
49
|
- thibaud@thibaud.me
|