guard-rspec 0.1.0.beta.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ require 'rspec/core/formatters/progress_formatter'
|
|
2
2
|
require "#{File.dirname(__FILE__)}/../formatter"
|
3
3
|
require "#{File.dirname(__FILE__)}/../../rspec"
|
4
4
|
|
5
|
-
class
|
5
|
+
class RSpecNotify < RSpec::Core::Formatters::ProgressFormatter
|
6
6
|
include Formatter
|
7
7
|
|
8
8
|
def dump_summary(duration, total, failures, pending)
|
@@ -2,7 +2,7 @@ require 'spec/runner/formatter/base_formatter'
|
|
2
2
|
require "#{File.dirname(__FILE__)}/../formatter"
|
3
3
|
require "#{File.dirname(__FILE__)}/../../rspec"
|
4
4
|
|
5
|
-
class
|
5
|
+
class SpecNotify < Spec::Runner::Formatter::BaseFormatter
|
6
6
|
include Formatter
|
7
7
|
|
8
8
|
def dump_summary(duration, total, failures, pending)
|
data/lib/guard/rspec/runner.rb
CHANGED
@@ -22,10 +22,10 @@ module Guard
|
|
22
22
|
case rspec_version
|
23
23
|
when 1
|
24
24
|
cmd_parts << "spec"
|
25
|
-
cmd_parts << "-f progress --require #{File.dirname(__FILE__)}/
|
25
|
+
cmd_parts << "-f progress --require #{File.dirname(__FILE__)}/formatters/spec_notify.rb --format SpecNotify:STDOUT"
|
26
26
|
when 2
|
27
27
|
cmd_parts << "rspec"
|
28
|
-
cmd_parts << "--require #{File.dirname(__FILE__)}/
|
28
|
+
cmd_parts << "--require #{File.dirname(__FILE__)}/formatters/rspec_notify.rb --format RSpecNotify"
|
29
29
|
end
|
30
30
|
cmd_parts << "--color"
|
31
31
|
cmd_parts << paths.join(' ')
|
@@ -0,0 +1,12 @@
|
|
1
|
+
guard 'rspec', :version => 2 do
|
2
|
+
watch('^spec/(.*)_spec.rb')
|
3
|
+
watch('^lib/(.*)\.rb') { |m| "spec/lib/#{m[1]}_spec.rb" }
|
4
|
+
watch('^spec/spec_helper.rb') { "spec" }
|
5
|
+
|
6
|
+
# Rails example
|
7
|
+
watch('^app/(.*)\.rb') { |m| "spec/#{m[1]}_spec.rb" }
|
8
|
+
# watch('^lib/(.*)\.rb') { |m| "spec/lib/#{m[1]}_spec.rb" }
|
9
|
+
watch('^config/routes.rb') { "spec/routing" }
|
10
|
+
watch('^app/controllers/application_controller.rb') { "spec/controllers" }
|
11
|
+
watch('^spec/factories.rb') { "spec/models" }
|
12
|
+
end
|
data/lib/guard/rspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 27
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
9
|
- 0
|
10
|
-
|
11
|
-
- 2
|
12
|
-
version: 0.1.0.beta.2
|
10
|
+
version: 0.1.0
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- Thibaud Guillaume-Gentil
|
@@ -17,31 +15,29 @@ autorequire:
|
|
17
15
|
bindir: bin
|
18
16
|
cert_chain: []
|
19
17
|
|
20
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-08 00:00:00 +02:00
|
21
19
|
default_executable:
|
22
20
|
dependencies:
|
23
21
|
- !ruby/object:Gem::Dependency
|
24
|
-
|
25
|
-
prerelease: false
|
26
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
27
23
|
none: false
|
28
24
|
requirements:
|
29
25
|
- - ~>
|
30
26
|
- !ruby/object:Gem::Version
|
31
|
-
hash:
|
27
|
+
hash: 62196407
|
32
28
|
segments:
|
33
29
|
- 0
|
34
30
|
- 1
|
35
31
|
- 0
|
36
32
|
- beta
|
37
|
-
-
|
38
|
-
version: 0.1.0.beta.
|
33
|
+
- 2
|
34
|
+
version: 0.1.0.beta.2
|
35
|
+
name: guard
|
36
|
+
prerelease: false
|
37
|
+
requirement: *id001
|
39
38
|
type: :runtime
|
40
|
-
version_requirements: *id001
|
41
39
|
- !ruby/object:Gem::Dependency
|
42
|
-
|
43
|
-
prerelease: false
|
44
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
45
41
|
none: false
|
46
42
|
requirements:
|
47
43
|
- - ~>
|
@@ -53,12 +49,12 @@ dependencies:
|
|
53
49
|
- 0
|
54
50
|
- rc
|
55
51
|
version: 2.0.0.rc
|
52
|
+
name: rspec
|
53
|
+
prerelease: false
|
54
|
+
requirement: *id002
|
56
55
|
type: :runtime
|
57
|
-
version_requirements: *id002
|
58
56
|
- !ruby/object:Gem::Dependency
|
59
|
-
|
60
|
-
prerelease: false
|
61
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
62
58
|
none: false
|
63
59
|
requirements:
|
64
60
|
- - ~>
|
@@ -69,8 +65,10 @@ dependencies:
|
|
69
65
|
- 0
|
70
66
|
- 2
|
71
67
|
version: 1.0.2
|
68
|
+
name: bundler
|
69
|
+
prerelease: false
|
70
|
+
requirement: *id003
|
72
71
|
type: :development
|
73
|
-
version_requirements: *id003
|
74
72
|
description: Guard::RSpec automatically run your specs (much like autotest)
|
75
73
|
email:
|
76
74
|
- thibaud@thibaud.me
|
@@ -81,11 +79,12 @@ extensions: []
|
|
81
79
|
extra_rdoc_files: []
|
82
80
|
|
83
81
|
files:
|
84
|
-
- lib/guard/rspec/formatter/rspec1.rb
|
85
|
-
- lib/guard/rspec/formatter/rspec2.rb
|
86
82
|
- lib/guard/rspec/formatter.rb
|
83
|
+
- lib/guard/rspec/formatters/rspec_notify.rb
|
84
|
+
- lib/guard/rspec/formatters/spec_notify.rb
|
87
85
|
- lib/guard/rspec/inspector.rb
|
88
86
|
- lib/guard/rspec/runner.rb
|
87
|
+
- lib/guard/rspec/templates/Guardfile
|
89
88
|
- lib/guard/rspec/version.rb
|
90
89
|
- lib/guard/rspec.rb
|
91
90
|
- LICENSE
|