guard-rspec 4.6.5 → 4.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -219,7 +219,7 @@ RSpec.describe Guard::RSpecFormatter do
219
219
  context "with only success" do
220
220
  it "notifies success" do
221
221
  formatter.dump_summary(*summary_with_no_failures)
222
- expect(result).to match /^3 examples, 0 failures in 123\.0 seconds\n$/
222
+ expect(result).to match(/^3 examples, 0 failures in 123\.0 seconds\n$/)
223
223
  end
224
224
  end
225
225
 
@@ -251,7 +251,8 @@ RSpec.describe Guard::RSpecFormatter do
251
251
  end.to raise_error(
252
252
  described_class::Error::UnsupportedPattern,
253
253
  "Your RSpec.configuration.pattern uses characters unsupported "\
254
- "by your Ruby version (File::FNM_EXTGLOB is undefined)")
254
+ "by your Ruby version (File::FNM_EXTGLOB is undefined)"
255
+ )
255
256
  end
256
257
  end
257
258
  end
@@ -16,9 +16,13 @@ rspec_version = ::RSpec::Version::STRING.to_f
16
16
  old_rspec = (rspec_version < 3)
17
17
 
18
18
  if old_rspec
19
- class RSpec::Core::ExampleGroup
20
- def instance_double(*args)
21
- double(*args)
19
+ module RSpec
20
+ module Core
21
+ class ExampleGroup
22
+ def instance_double(*args)
23
+ double(*args)
24
+ end
25
+ end
22
26
  end
23
27
  end
24
28
  end
@@ -47,9 +51,7 @@ RSpec.configure do |config|
47
51
  # Prevents you from mocking or stubbing a method that does not exist on
48
52
  # a real object. This is generally recommended, and will default to
49
53
  # `true` in RSpec 4.
50
- unless old_rspec
51
- mocks.verify_partial_doubles = true
52
- end
54
+ mocks.verify_partial_doubles = true unless old_rspec
53
55
  end
54
56
 
55
57
  # These two settings work together to allow you to limit a spec run
@@ -66,9 +68,7 @@ RSpec.configure do |config|
66
68
  # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
67
69
  # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
68
70
 
69
- unless old_rspec
70
- config.disable_monkey_patching!
71
- end
71
+ config.disable_monkey_patching! unless old_rspec
72
72
 
73
73
  # This setting enables warnings. It's recommended, but in some cases may
74
74
  # be too noisy due to issues in dependencies.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.5
4
+ version: 4.7.0
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: 2016-04-02 00:00:00.000000000 Z
11
+ date: 2016-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -113,7 +113,6 @@ extensions: []
113
113
  extra_rdoc_files: []
114
114
  files:
115
115
  - ".gitignore"
116
- - ".hound.yml"
117
116
  - ".rspec"
118
117
  - ".rubocop.yml"
119
118
  - ".rubocop_todo.yml"
@@ -124,9 +123,8 @@ files:
124
123
  - LICENSE.txt
125
124
  - README.md
126
125
  - Rakefile
127
- - gemfiles/Gemfile.rspec-2.14
128
126
  - gemfiles/Gemfile.rspec-2.99
129
- - gemfiles/Gemfile.rspec-3.3
127
+ - gemfiles/Gemfile.rspec-3.4
130
128
  - guard-rspec.gemspec
131
129
  - lib/guard/rspec.rb
132
130
  - lib/guard/rspec/command.rb
@@ -146,6 +144,7 @@ files:
146
144
  - lib/guard/rspec/version.rb
147
145
  - lib/guard/rspec_defaults.rb
148
146
  - lib/guard/rspec_formatter.rb
147
+ - lib/guard/rspec_formatter_results_path.rb
149
148
  - spec/lib/guard/rspec/command_spec.rb
150
149
  - spec/lib/guard/rspec/deprecator_spec.rb
151
150
  - spec/lib/guard/rspec/inspectors/base_inspector_spec.rb
@@ -182,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
181
  version: '0'
183
182
  requirements: []
184
183
  rubyforge_project:
185
- rubygems_version: 2.5.1
184
+ rubygems_version: 2.6.4
186
185
  signing_key:
187
186
  specification_version: 4
188
187
  summary: Guard gem for RSpec
data/.hound.yml DELETED
@@ -1,259 +0,0 @@
1
- inherit_from:
2
- .rubocop_todo.yml
3
-
4
- #AllCops:
5
- # Exclude:
6
- # - db/schema.rb
7
-
8
- AccessorMethodName:
9
- Enabled: false
10
-
11
- ActionFilter:
12
- Enabled: false
13
-
14
- Alias:
15
- Enabled: false
16
-
17
- ArrayJoin:
18
- Enabled: false
19
-
20
- AsciiComments:
21
- Enabled: false
22
-
23
- AsciiIdentifiers:
24
- Enabled: false
25
-
26
- Attr:
27
- Enabled: false
28
-
29
- BlockNesting:
30
- Enabled: false
31
-
32
- CaseEquality:
33
- Enabled: false
34
-
35
- CharacterLiteral:
36
- Enabled: false
37
-
38
- ClassAndModuleChildren:
39
- Enabled: false
40
-
41
- ClassLength:
42
- Enabled: false
43
-
44
- ClassVars:
45
- Enabled: false
46
-
47
- CollectionMethods:
48
- PreferredMethods:
49
- find: detect
50
- reduce: inject
51
- collect: map
52
- find_all: select
53
-
54
- ColonMethodCall:
55
- Enabled: false
56
-
57
- CommentAnnotation:
58
- Enabled: false
59
-
60
- CyclomaticComplexity:
61
- Enabled: false
62
-
63
- Delegate:
64
- Enabled: false
65
-
66
- DeprecatedHashMethods:
67
- Enabled: false
68
-
69
- Documentation:
70
- Enabled: false
71
-
72
- DotPosition:
73
- EnforcedStyle: trailing
74
-
75
- DoubleNegation:
76
- Enabled: false
77
-
78
- EachWithObject:
79
- Enabled: false
80
-
81
- EmptyLiteral:
82
- Enabled: false
83
-
84
- Encoding:
85
- Enabled: false
86
-
87
- EvenOdd:
88
- Enabled: false
89
-
90
- FileName:
91
- Enabled: false
92
-
93
- FlipFlop:
94
- Enabled: false
95
-
96
- FormatString:
97
- Enabled: false
98
-
99
- GlobalVars:
100
- Enabled: false
101
-
102
- GuardClause:
103
- Enabled: false
104
-
105
- IfUnlessModifier:
106
- Enabled: false
107
-
108
- IfWithSemicolon:
109
- Enabled: false
110
-
111
- InlineComment:
112
- Enabled: false
113
-
114
- Lambda:
115
- Enabled: false
116
-
117
- LambdaCall:
118
- Enabled: false
119
-
120
- LineEndConcatenation:
121
- Enabled: false
122
-
123
- LineLength:
124
- Max: 80
125
-
126
- MethodLength:
127
- Enabled: false
128
-
129
- ModuleFunction:
130
- Enabled: false
131
-
132
- NegatedIf:
133
- Enabled: false
134
-
135
- NegatedWhile:
136
- Enabled: false
137
-
138
- Next:
139
- Enabled: false
140
-
141
- NilComparison:
142
- Enabled: false
143
-
144
- Not:
145
- Enabled: false
146
-
147
- NumericLiterals:
148
- Enabled: false
149
-
150
- OneLineConditional:
151
- Enabled: false
152
-
153
- OpMethod:
154
- Enabled: false
155
-
156
- ParameterLists:
157
- Enabled: false
158
-
159
- PercentLiteralDelimiters:
160
- Enabled: false
161
-
162
- PerlBackrefs:
163
- Enabled: false
164
-
165
- PredicateName:
166
- NamePrefixBlacklist:
167
- - is_
168
-
169
- Proc:
170
- Enabled: false
171
-
172
- RaiseArgs:
173
- Enabled: false
174
-
175
- RegexpLiteral:
176
- Enabled: false
177
-
178
- SelfAssignment:
179
- Enabled: false
180
-
181
- SingleLineBlockParams:
182
- Enabled: false
183
-
184
- SingleLineMethods:
185
- Enabled: false
186
-
187
- SignalException:
188
- Enabled: false
189
-
190
- SpecialGlobalVars:
191
- Enabled: false
192
-
193
- StringLiterals:
194
- EnforcedStyle: double_quotes
195
-
196
- VariableInterpolation:
197
- Enabled: false
198
-
199
- TrivialAccessors:
200
- Enabled: false
201
-
202
- VariableInterpolation:
203
- Enabled: false
204
-
205
- WhenThen:
206
- Enabled: false
207
-
208
- WhileUntilModifier:
209
- Enabled: false
210
-
211
- WordArray:
212
- Enabled: false
213
-
214
- # Lint
215
-
216
- AmbiguousOperator:
217
- Enabled: false
218
-
219
- AmbiguousRegexpLiteral:
220
- Enabled: false
221
-
222
- AssignmentInCondition:
223
- Enabled: false
224
-
225
- ConditionPosition:
226
- Enabled: false
227
-
228
- DeprecatedClassMethods:
229
- Enabled: false
230
-
231
- ElseLayout:
232
- Enabled: false
233
-
234
- HandleExceptions:
235
- Enabled: false
236
-
237
- InvalidCharacterLiteral:
238
- Enabled: false
239
-
240
- LiteralInCondition:
241
- Enabled: false
242
-
243
- LiteralInInterpolation:
244
- Enabled: false
245
-
246
- Loop:
247
- Enabled: false
248
-
249
- ParenthesesAsGroupedExpression:
250
- Enabled: false
251
-
252
- RequireParentheses:
253
- Enabled: false
254
-
255
- UnderscorePrefixedVariableName:
256
- Enabled: false
257
-
258
- Void:
259
- Enabled: false
@@ -1,14 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec path: '../'
4
-
5
- gem 'rspec', '~> 3.3.0'
6
-
7
- group :test do
8
- gem 'coveralls', require: false
9
- gem "guard-compat", ">= 0.0.2", require: false
10
- end
11
-
12
- group :tool do
13
- gem 'ruby_gntp', require: false
14
- end