rspec-core 3.3.1 → 3.3.2
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.tar.gz.sig +0 -0
- data/Changelog.md +10 -0
- data/lib/rspec/core/formatters.rb +1 -1
- data/lib/rspec/core/formatters/exception_presenter.rb +6 -2
- data/lib/rspec/core/formatters/html_formatter.rb +1 -1
- data/lib/rspec/core/version.rb +1 -1
- metadata +5 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed490eba43a1bc1c89b22c0fa7af696ad9871c95
|
4
|
+
data.tar.gz: 6920d6d13e2a80cf8a07730a874776e405693833
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d488e49c9e089b44e33fbc0a3842d10208a0fec083b2bfe34f3b5de099df78b4c11b033edf6b097189059ba975b1cb4159c3205e21f5301dc68d2103b7280a0a
|
7
|
+
data.tar.gz: f51830dffbc16c9baf5170dcccba7b969578627154e1cca492a8aaad29f37832ea1fc5d31f16bd39e558beb28fdf52f2121a4fc5394ed2b1c5b9ff52144f65d5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
### 3.3.2 / 2015-07-15
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.3.1...v3.3.2)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Fix formatters to handle exceptions for which `backtrace` returns `nil`.
|
7
|
+
(Myron Marston, #2023)
|
8
|
+
* Fix duplicate formatter detection so that it allows subclasses of formatters
|
9
|
+
to be added. (Sebastián Tello, #2019)
|
10
|
+
|
1
11
|
### 3.3.1 / 2015-06-18
|
2
12
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.3.0...v3.3.1)
|
3
13
|
|
@@ -182,7 +182,7 @@ module RSpec::Core::Formatters
|
|
182
182
|
|
183
183
|
def duplicate_formatter_exists?(new_formatter)
|
184
184
|
@formatters.any? do |formatter|
|
185
|
-
formatter.class
|
185
|
+
formatter.class == new_formatter.class && formatter.output == new_formatter.output
|
186
186
|
end
|
187
187
|
end
|
188
188
|
|
@@ -31,7 +31,7 @@ module RSpec
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def formatted_backtrace
|
34
|
-
backtrace_formatter.format_backtrace(
|
34
|
+
backtrace_formatter.format_backtrace(exception_backtrace, example.metadata)
|
35
35
|
end
|
36
36
|
|
37
37
|
def colorized_formatted_backtrace(colorizer=::RSpec::Core::Formatters::ConsoleCodes)
|
@@ -129,7 +129,7 @@ module RSpec
|
|
129
129
|
|
130
130
|
def find_failed_line
|
131
131
|
example_path = example.metadata[:absolute_file_path].downcase
|
132
|
-
|
132
|
+
exception_backtrace.find do |line|
|
133
133
|
next unless (line_path = line[/(.+?):(\d+)(|:\d+)/, 1])
|
134
134
|
File.expand_path(line_path).downcase == example_path
|
135
135
|
end
|
@@ -147,6 +147,10 @@ module RSpec
|
|
147
147
|
formatted
|
148
148
|
end
|
149
149
|
|
150
|
+
def exception_backtrace
|
151
|
+
exception.backtrace || []
|
152
|
+
end
|
153
|
+
|
150
154
|
# @private
|
151
155
|
# Configuring the `ExceptionPresenter` with the right set of options to handle
|
152
156
|
# pending vs failed vs skipped and aggregated (or not) failures is not simple.
|
@@ -138,7 +138,7 @@ module RSpec
|
|
138
138
|
# produced during the specs.
|
139
139
|
def extra_failure_content(failure)
|
140
140
|
RSpec::Support.require_rspec_core "formatters/snippet_extractor"
|
141
|
-
backtrace = failure.exception.backtrace.map do |line|
|
141
|
+
backtrace = (failure.exception.backtrace || []).map do |line|
|
142
142
|
RSpec.configuration.backtrace_formatter.backtrace_line(line)
|
143
143
|
end
|
144
144
|
backtrace.compact!
|
data/lib/rspec/core/version.rb
CHANGED
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.3.
|
4
|
+
version: 3.3.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: 2015-
|
49
|
+
date: 2015-07-15 00:00:00.000000000 Z
|
50
50
|
dependencies:
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
name: rspec-support
|
@@ -110,14 +110,14 @@ dependencies:
|
|
110
110
|
requirements:
|
111
111
|
- - "~>"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
113
|
+
version: 0.6.2
|
114
114
|
type: :development
|
115
115
|
prerelease: false
|
116
116
|
version_requirements: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
118
|
- - "~>"
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
120
|
+
version: 0.6.2
|
121
121
|
- !ruby/object:Gem::Dependency
|
122
122
|
name: nokogiri
|
123
123
|
requirement: !ruby/object:Gem::Requirement
|
@@ -307,6 +307,6 @@ rubyforge_project:
|
|
307
307
|
rubygems_version: 2.2.2
|
308
308
|
signing_key:
|
309
309
|
specification_version: 4
|
310
|
-
summary: rspec-core-3.3.
|
310
|
+
summary: rspec-core-3.3.2
|
311
311
|
test_files: []
|
312
312
|
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|