guard-rspec 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
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/` in your project root. You can configure Guard::RSpec to look in additional paths by using the `:spec_paths` option:
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/"] # specify an array of paths that contain spec files
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
@@ -12,7 +12,7 @@ module Guard
12
12
  :all_after_pass => true,
13
13
  :all_on_start => true,
14
14
  :keep_failed => true,
15
- :spec_paths => ["spec/"]
15
+ :spec_paths => ["spec"]
16
16
  }.update(options)
17
17
  @last_failed = false
18
18
  @failed_paths = []
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module RSpecVersion
3
- VERSION = "0.4.4"
3
+ VERSION = "0.4.5"
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: 0.4.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-05 00:00:00.000000000Z
12
+ date: 2011-09-11 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &70233880535160 !ruby/object:Gem::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: *70233880535160
24
+ version_requirements: *70173358142740
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70233880674960 !ruby/object:Gem::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: *70233880674960
35
+ version_requirements: *70173358142020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70233880749260 !ruby/object:Gem::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: *70233880749260
46
+ version_requirements: *70173358140980
47
47
  description: Guard::RSpec automatically run your specs (much like autotest).
48
48
  email:
49
49
  - thibaud@thibaud.me