guard-rspec 4.2.9 → 4.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.travis.yml +1 -1
- data/gemfiles/Gemfile.rspec-3.0 +1 -1
- data/lib/guard/rspec/formatter.rb +10 -2
- data/lib/guard/rspec/version.rb +1 -1
- data/spec/spec_helper.rb +8 -2
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZjI0OTI0ODkwNjUxNjhhYTJjZmZhMmMxZGZlNzU5ODU3YmRmZWNkMg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f57a6766ffd007d4a2e7127e6af6980bf6de9913
|
4
|
+
data.tar.gz: 520368ee18516a03137dad77da4cd1793e1f2db0
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
N2JlNmE5YjM1ODgxOWQxYWIyOWI0ZTgyMzE4MWU3YmNlMTViYWUyYTU3ZDcw
|
11
|
-
YzY2ZWJhNzIyZGI2Nzg1ODFlMTNmNGNmYWI5MjRmODY3YzA5YTE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NjRmOGZjOTc4MWQwNmFlNjRiNzNiNTdmNTFlOTUzMWM2NTBhYWQ2YjUwYjhl
|
14
|
-
Yjc5OGIxNDcyNjZjYjNmZDU1MzlmNmMxMjgxMzY5NDJhODg3OWU2MjlhMzdl
|
15
|
-
MTg0N2JjNjc5NTNmM2Y1MWFiNWEwNjEyNDc2NzMwOGZiNjA4OWI=
|
6
|
+
metadata.gz: 456c281b2de5e96b79466a1f7d335521f34ab32994c4d4748567ac7f2e5a1672c3b016bf3c24acfe49f506850af2bf26a281b2460befc76f349745b080cc1722
|
7
|
+
data.tar.gz: dac1d282bf1987eb9231e69a852a31c5201dcfc6b2a5f58d081722bd2f417806f0ce79db9dd6d5ac310e2b06c989f0c837f0419e4f633f22260752c457eec1e5
|
data/.travis.yml
CHANGED
data/gemfiles/Gemfile.rspec-3.0
CHANGED
@@ -11,7 +11,15 @@ module Guard
|
|
11
11
|
end
|
12
12
|
|
13
13
|
if rspec_3?
|
14
|
-
::RSpec::Core::Formatters.register self, :dump_summary
|
14
|
+
::RSpec::Core::Formatters.register self, :dump_summary, :example_failed
|
15
|
+
|
16
|
+
def example_failed(failure)
|
17
|
+
examples.push failure.example
|
18
|
+
end
|
19
|
+
|
20
|
+
def examples
|
21
|
+
@examples ||= []
|
22
|
+
end
|
15
23
|
end
|
16
24
|
|
17
25
|
# rspec issue https://github.com/rspec/rspec-core/issues/793
|
@@ -74,7 +82,7 @@ module Guard
|
|
74
82
|
end
|
75
83
|
|
76
84
|
def _failed_paths
|
77
|
-
failed = examples.select { |e| e.execution_result[:status] == 'failed' }
|
85
|
+
failed = examples.select { |e| e.execution_result[:status].to_s == 'failed' }
|
78
86
|
failed.map { |e| self.class.extract_spec_location(e.metadata) }.sort.uniq
|
79
87
|
end
|
80
88
|
|
data/lib/guard/rspec/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -6,11 +6,17 @@ if ENV['CI']
|
|
6
6
|
Coveralls.wear!
|
7
7
|
end
|
8
8
|
|
9
|
+
rspec_major_version = RSpec::Version::STRING.to_i
|
10
|
+
|
9
11
|
RSpec.configure do |config|
|
10
|
-
|
12
|
+
if rspec_major_version < 3
|
13
|
+
config.color_enabled = true
|
14
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
15
|
+
else
|
16
|
+
config.color = true
|
17
|
+
end
|
11
18
|
config.order = :random
|
12
19
|
config.filter_run focus: ENV['CI'] != 'true'
|
13
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true if RSpec::Version::STRING.to_i < 3
|
14
20
|
config.run_all_when_everything_filtered = true
|
15
21
|
config.expect_with :rspec do |c|
|
16
22
|
c.syntax = :expect
|
metadata
CHANGED
@@ -1,95 +1,95 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibaud Guillaume-Gentil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '2.14'
|
34
|
-
- - <
|
34
|
+
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '4.0'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '2.14'
|
44
|
-
- - <
|
44
|
+
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '4.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: 1.3.5
|
54
|
-
- - <
|
54
|
+
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '2.0'
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: 1.3.5
|
64
|
-
- - <
|
64
|
+
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '2.0'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: rake
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- - ~>
|
71
|
+
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '10.1'
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- - ~>
|
78
|
+
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '10.1'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: launchy
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- - ~>
|
85
|
+
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '2.4'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
90
|
version_requirements: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- - ~>
|
92
|
+
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '2.4'
|
95
95
|
description: Guard::RSpec automatically run your specs (much like autotest).
|
@@ -98,8 +98,8 @@ executables: []
|
|
98
98
|
extensions: []
|
99
99
|
extra_rdoc_files: []
|
100
100
|
files:
|
101
|
-
- .gitignore
|
102
|
-
- .travis.yml
|
101
|
+
- ".gitignore"
|
102
|
+
- ".travis.yml"
|
103
103
|
- CONTRIBUTING.md
|
104
104
|
- Gemfile
|
105
105
|
- Guardfile
|
@@ -146,17 +146,17 @@ require_paths:
|
|
146
146
|
- lib
|
147
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- -
|
149
|
+
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: '0'
|
152
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
|
-
- -
|
154
|
+
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.
|
159
|
+
rubygems_version: 2.2.2
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: Guard gem for RSpec
|