rspec-core 3.12.0 → 3.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Changelog.md +16 -1
- data/README.md +2 -2
- data/lib/rspec/core/configuration.rb +2 -2
- data/lib/rspec/core/example_status_persister.rb +2 -2
- data/lib/rspec/core/formatters/exception_presenter.rb +2 -2
- data/lib/rspec/core/formatters/html_snippet_extractor.rb +2 -2
- data/lib/rspec/core/metadata_filter.rb +1 -1
- data/lib/rspec/core/project_initializer/spec/spec_helper.rb +1 -1
- data/lib/rspec/core/reporter.rb +1 -1
- data/lib/rspec/core/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +5 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e105bb79ced0094703c116de121aced72afd16f580c3faba5aa9da6c7d84316d
|
4
|
+
data.tar.gz: 7f5df2dec8edeb01d39c2296331d5a24aa2b8c2f4122763045edf4d27531df56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64d5b3ad7ccd921c553ef73c7870d4118d5ad6de826a5ed26190983d802455c1caf80f62a9982aad70492ba40b568d2e84fb19f8ffde6940ecf37100953a20d7
|
7
|
+
data.tar.gz: 04ac5e2f690218999a7a936319d7e4f2a995cc796364d9c3af5a0db6065d271be0e2445c5f7038b85ccfe4bf03ae7d263600e4de36cca4c8e6e241e51fcb4bbb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
### Development
|
2
|
-
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.12.
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.12.2...3-12-maintenance)
|
3
|
+
|
4
|
+
### 3.12.2 / 2023-04-18
|
5
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.12.1...v3.12.2)
|
6
|
+
|
7
|
+
Bug fixes:
|
8
|
+
|
9
|
+
* Remove link to outdated documentation in generated output. (Jon Rowe, #3035)
|
10
|
+
|
11
|
+
### 3.12.1 / 2023-02-03
|
12
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.12.0...v3.12.1)
|
13
|
+
|
14
|
+
Bug fixes:
|
15
|
+
|
16
|
+
* Prevent multiple calls to `extra_failure_lines` from adding additional whitespace
|
17
|
+
around them when the lines already contain whitespace. (Jon Rowe, #3006)
|
3
18
|
|
4
19
|
### 3.12.0 / 2022-10-26
|
5
20
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.11.0...v3.12.0)
|
data/README.md
CHANGED
@@ -322,14 +322,14 @@ Failures:
|
|
322
322
|
got: nil
|
323
323
|
|
324
324
|
(compared using ==)
|
325
|
-
# ./spec/
|
325
|
+
# ./spec/calculator_spec.rb:6:in `block (3 levels) in <top (required)>'
|
326
326
|
|
327
327
|
Finished in 0.00131 seconds (files took 0.10968 seconds to load)
|
328
328
|
1 example, 1 failure
|
329
329
|
|
330
330
|
Failed examples:
|
331
331
|
|
332
|
-
rspec ./spec/
|
332
|
+
rspec ./spec/calculator_spec.rb:5 # Calculator#add returns the sum of its arguments
|
333
333
|
```
|
334
334
|
|
335
335
|
Implement the simplest solution, by changing the definition of `Calculator#add` to:
|
@@ -678,7 +678,7 @@ module RSpec
|
|
678
678
|
end
|
679
679
|
|
680
680
|
# Set regular expressions used to exclude lines in backtrace.
|
681
|
-
# @param patterns [Array<Regexp>] set backtrace_formatter
|
681
|
+
# @param patterns [Array<Regexp>] set backtrace_formatter exclusion_patterns
|
682
682
|
def backtrace_exclusion_patterns=(patterns)
|
683
683
|
@backtrace_formatter.exclusion_patterns = patterns
|
684
684
|
end
|
@@ -1820,7 +1820,7 @@ module RSpec
|
|
1820
1820
|
# by not setting `mock_with` or `expect_with` to anything else).
|
1821
1821
|
#
|
1822
1822
|
# @note If the user uses this options with `mock_with :mocha`
|
1823
|
-
# (or
|
1823
|
+
# (or similar) they will still have monkey patching active
|
1824
1824
|
# in their test environment from mocha.
|
1825
1825
|
#
|
1826
1826
|
# @example
|
@@ -63,7 +63,7 @@ module RSpec
|
|
63
63
|
# were loaded but not executed (due to filtering, `--fail-fast`
|
64
64
|
# or whatever) should have a `:status` of `UNKNOWN_STATUS`.
|
65
65
|
#
|
66
|
-
# This
|
66
|
+
# This will produce a new list that:
|
67
67
|
# - Will be missing examples from previous runs that we know for sure
|
68
68
|
# no longer exist.
|
69
69
|
# - Will have the latest known status for any examples that either
|
@@ -164,7 +164,7 @@ module RSpec
|
|
164
164
|
end
|
165
165
|
|
166
166
|
def formatted_value_rows
|
167
|
-
@
|
167
|
+
@formatted_value_rows ||= rows.map do |row|
|
168
168
|
formatted_row_from(row)
|
169
169
|
end
|
170
170
|
end
|
@@ -197,8 +197,8 @@ module RSpec
|
|
197
197
|
@extra_failure_lines ||= begin
|
198
198
|
lines = Array(example.metadata[:extra_failure_lines])
|
199
199
|
unless lines.empty?
|
200
|
-
lines.unshift('')
|
201
|
-
lines.push('')
|
200
|
+
lines.unshift('') unless lines.first == ''
|
201
|
+
lines.push('') unless lines.last == ''
|
202
202
|
end
|
203
203
|
lines
|
204
204
|
end
|
@@ -43,7 +43,7 @@ module RSpec
|
|
43
43
|
#
|
44
44
|
# @param backtrace [String] the backtrace from a test failure
|
45
45
|
# @return [String] highlighted code snippet indicating where the test
|
46
|
-
# failure
|
46
|
+
# failure occurred
|
47
47
|
#
|
48
48
|
# @see #post_process
|
49
49
|
def snippet(backtrace)
|
@@ -103,7 +103,7 @@ module RSpec
|
|
103
103
|
#
|
104
104
|
# @param highlighted [String] syntax-highlighted snippet surrounding the
|
105
105
|
# offending line of code
|
106
|
-
# @param offending_line [Fixnum] line where failure
|
106
|
+
# @param offending_line [Fixnum] line where failure occurred
|
107
107
|
# @return [String] completed snippet
|
108
108
|
def post_process(highlighted, offending_line)
|
109
109
|
new_lines = []
|
@@ -92,7 +92,7 @@ module RSpec
|
|
92
92
|
#
|
93
93
|
# This is ideal for use by a example or example group, which may
|
94
94
|
# be updated multiple times with globally configured hooks, etc,
|
95
|
-
# but will not be queried frequently by other examples or
|
95
|
+
# but will not be queried frequently by other examples or example
|
96
96
|
# groups.
|
97
97
|
# @private
|
98
98
|
class UpdateOptimized
|
@@ -61,7 +61,7 @@ RSpec.configure do |config|
|
|
61
61
|
|
62
62
|
# Limits the available syntax to the non-monkey patched syntax that is
|
63
63
|
# recommended. For more details, see:
|
64
|
-
# https://
|
64
|
+
# https://rspec.info/features/3-12/rspec-core/configuration/zero-monkey-patching-mode/
|
65
65
|
config.disable_monkey_patching!
|
66
66
|
|
67
67
|
# This setting enables warnings. It's recommended, but in some cases may
|
data/lib/rspec/core/reporter.rb
CHANGED
@@ -30,7 +30,7 @@ module RSpec::Core
|
|
30
30
|
# Registers a listener to a list of notifications. The reporter will send
|
31
31
|
# notification of events to all registered listeners.
|
32
32
|
#
|
33
|
-
# @param listener [Object] An
|
33
|
+
# @param listener [Object] An object that wishes to be notified of reporter
|
34
34
|
# events
|
35
35
|
# @param notifications [Array] Array of symbols represents the events a
|
36
36
|
# listener wishes to subscribe too
|
data/lib/rspec/core/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.12.
|
4
|
+
version: 3.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Baker
|
@@ -46,7 +46,7 @@ cert_chain:
|
|
46
46
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
47
47
|
F3MdtaDehhjC
|
48
48
|
-----END CERTIFICATE-----
|
49
|
-
date:
|
49
|
+
date: 2023-04-18 00:00:00.000000000 Z
|
50
50
|
dependencies:
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
name: rspec-support
|
@@ -267,7 +267,7 @@ licenses:
|
|
267
267
|
- MIT
|
268
268
|
metadata:
|
269
269
|
bug_tracker_uri: https://github.com/rspec/rspec-core/issues
|
270
|
-
changelog_uri: https://github.com/rspec/rspec-core/blob/v3.12.
|
270
|
+
changelog_uri: https://github.com/rspec/rspec-core/blob/v3.12.2/Changelog.md
|
271
271
|
documentation_uri: https://rspec.info/documentation/
|
272
272
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
273
273
|
source_code_uri: https://github.com/rspec/rspec-core
|
@@ -287,8 +287,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
287
287
|
- !ruby/object:Gem::Version
|
288
288
|
version: '0'
|
289
289
|
requirements: []
|
290
|
-
rubygems_version: 3.
|
290
|
+
rubygems_version: 3.4.10
|
291
291
|
signing_key:
|
292
292
|
specification_version: 4
|
293
|
-
summary: rspec-core-3.12.
|
293
|
+
summary: rspec-core-3.12.2
|
294
294
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|