rspec-core 3.13.3 → 3.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Changelog.md +16 -2
- data/lib/rspec/core/example_group.rb +7 -0
- data/lib/rspec/core/formatters/exception_presenter.rb +7 -6
- data/lib/rspec/core/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +9 -8
- 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: 3d31adb02f40e9eaaf16e133409328b5d5b7497647ecbd9d106149c9c1abcaeb
|
4
|
+
data.tar.gz: '09d8a1a1d098b6d89a43884b9bfef7bc9ffa18407699735c26c129047e2f21cb'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f799a9ae09df696d7d4e065e5251a2394b39d170c69eb1b0e31446ee10829cca648fc60636d61b5db8036ed8e2f4b469c63334b344e12ea5c57c7ad4b9e3f5e
|
7
|
+
data.tar.gz: fc46bbb3ea126ed52210c5a376b09b4465d711dcba0973bfd469142deeb417ebc2f4711c0deb4319a3367a63c4b962d0afcb07a85015fa704fc7b8b4db87ab27
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,8 +1,22 @@
|
|
1
1
|
### Development
|
2
|
-
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-core-v3.13.
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec/compare/rspec-core-v3.13.5...3-13-maintenance)
|
3
|
+
|
4
|
+
### 3.13.5 / 2025-06-25
|
5
|
+
[Full Changelog](http://github.com/rspec/rspec/compare/rspec-core-v3.13.4...rspec-core-v3.13.5)
|
6
|
+
|
7
|
+
Bug Fixes:
|
8
|
+
|
9
|
+
* Fix finding failed lines from frozen backtrace arrays. (Jon Rowe, #225)
|
10
|
+
|
11
|
+
### 3.13.4 / 2025-05-27
|
12
|
+
[Full Changelog](http://github.com/rspec/rspec/compare/rspec-core-v3.13.3...rspec-core-v3.13.4)
|
13
|
+
|
14
|
+
Bug Fixes:
|
15
|
+
|
16
|
+
* Fix links in gemspec to point to the monorepo / homepage.
|
3
17
|
|
4
18
|
### 3.13.3 / 2025-02-06
|
5
|
-
[Full Changelog](http://github.com/rspec/rspec
|
19
|
+
[Full Changelog](http://github.com/rspec/rspec/compare/rspec-core-v3.13.4...rspec-core-v3.13.3)
|
6
20
|
|
7
21
|
Bug fixes:
|
8
22
|
|
@@ -204,6 +204,7 @@ module RSpec
|
|
204
204
|
# @private
|
205
205
|
# @macro [attach] define_example_group_method
|
206
206
|
# @!scope class
|
207
|
+
# @method $1
|
207
208
|
# @overload $1
|
208
209
|
# @overload $1(&example_group_definition)
|
209
210
|
# @param example_group_definition [Block] The definition of the example group.
|
@@ -212,6 +213,7 @@ module RSpec
|
|
212
213
|
# @param metadata [Array<Symbol>, Hash] Metadata for the group.
|
213
214
|
# Symbols will be transformed into hash entries with `true` values.
|
214
215
|
# @param example_group_definition [Block] The definition of the example group.
|
216
|
+
# @return [RSpec::Core::ExampleGroup]
|
215
217
|
#
|
216
218
|
# Generates a subclass of this example group which inherits
|
217
219
|
# everything except the examples themselves.
|
@@ -312,6 +314,11 @@ module RSpec
|
|
312
314
|
# @private
|
313
315
|
# @macro [attach] define_nested_shared_group_method
|
314
316
|
# @!scope class
|
317
|
+
# @method $1(name, *args, &block)
|
318
|
+
# @param name [String, Symbol] The name of the shared group to include.
|
319
|
+
# @param args [Array] Pass parameters to a shared example group
|
320
|
+
# @param block [Block] Additional context to pass to the shared group.
|
321
|
+
# @return [RSpec::Core::ExampleGroup]
|
315
322
|
#
|
316
323
|
# @see SharedExampleGroup
|
317
324
|
def self.define_nested_shared_group_method(new_name, report_label="it should behave like")
|
@@ -263,15 +263,16 @@ module RSpec
|
|
263
263
|
line_regex = RSpec.configuration.in_project_source_dir_regex
|
264
264
|
loaded_spec_files = RSpec.configuration.loaded_spec_files
|
265
265
|
|
266
|
-
|
267
|
-
line
|
268
|
-
|
266
|
+
reduced_backtrace =
|
267
|
+
exception_backtrace.reject do |line|
|
268
|
+
line.start_with?("<internal:")
|
269
|
+
end
|
269
270
|
|
270
|
-
|
271
|
+
reduced_backtrace.find do |line|
|
271
272
|
next unless (line_path = line[/(.+?):(\d+)(|:\d+)/, 1])
|
272
273
|
path = File.expand_path(line_path)
|
273
274
|
loaded_spec_files.include?(path) || path =~ line_regex
|
274
|
-
end ||
|
275
|
+
end || reduced_backtrace.first
|
275
276
|
end
|
276
277
|
|
277
278
|
def formatted_message_and_backtrace(colorizer)
|
@@ -403,7 +404,7 @@ module RSpec
|
|
403
404
|
failure = common_backtrace_truncater.with_truncated_backtrace(failure)
|
404
405
|
presenter = ExceptionPresenter.new(failure, @example, options)
|
405
406
|
presenter.fully_formatted_lines(
|
406
|
-
"#{
|
407
|
+
"#{"#{failure_number}." if failure_number}#{index + 1}",
|
407
408
|
colorizer
|
408
409
|
)
|
409
410
|
end
|
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.13.
|
4
|
+
version: 3.13.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Baker
|
@@ -44,7 +44,7 @@ cert_chain:
|
|
44
44
|
AwP+qZPPf97FXXZGEGIYhhHpnj+Ltx9nCetRPiZ4rvYBcXgCWVQSg6eiEofrMwn/
|
45
45
|
AKMCABhZ1Y2eATsfMgdkmIZk7JIPZiSi6eUxPiCMP9M/pw==
|
46
46
|
-----END CERTIFICATE-----
|
47
|
-
date:
|
47
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
48
48
|
dependencies:
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: rspec-support
|
@@ -148,15 +148,16 @@ files:
|
|
148
148
|
- lib/rspec/core/version.rb
|
149
149
|
- lib/rspec/core/warnings.rb
|
150
150
|
- lib/rspec/core/world.rb
|
151
|
-
homepage: https://
|
151
|
+
homepage: https://rspec.info
|
152
152
|
licenses:
|
153
153
|
- MIT
|
154
154
|
metadata:
|
155
|
-
bug_tracker_uri: https://github.com/rspec/rspec
|
156
|
-
changelog_uri: https://github.com/rspec/rspec
|
155
|
+
bug_tracker_uri: https://github.com/rspec/rspec/issues
|
156
|
+
changelog_uri: https://github.com/rspec/rspec/blob/rspec-core-v3.13.5/rspec-core/Changelog.md
|
157
157
|
documentation_uri: https://rspec.info/documentation/
|
158
158
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
159
|
-
|
159
|
+
rubygems_mfa_required: 'true'
|
160
|
+
source_code_uri: https://github.com/rspec/rspec/blob/rspec-core-v3.13.5/rspec-core
|
160
161
|
rdoc_options:
|
161
162
|
- "--charset=UTF-8"
|
162
163
|
require_paths:
|
@@ -172,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
173
|
- !ruby/object:Gem::Version
|
173
174
|
version: '0'
|
174
175
|
requirements: []
|
175
|
-
rubygems_version: 3.6.
|
176
|
+
rubygems_version: 3.6.7
|
176
177
|
specification_version: 4
|
177
|
-
summary: rspec-core-3.13.
|
178
|
+
summary: rspec-core-3.13.5
|
178
179
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|