rspec-core 3.3.1 → 3.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87afec860d1dd3babbfce0db2ae19280a96b2ae8
4
- data.tar.gz: ba04ec0a5494006db9f7acb76bdf0522ab775801
3
+ metadata.gz: ed490eba43a1bc1c89b22c0fa7af696ad9871c95
4
+ data.tar.gz: 6920d6d13e2a80cf8a07730a874776e405693833
5
5
  SHA512:
6
- metadata.gz: 80a5347f44415ebac75f1d32cb5c162d7f3514fdad43b9b806e5081faa350fbe17b0b37884367a5258c9e1126b16c397aa038fe653fe3c81fbbecf868d1018c8
7
- data.tar.gz: acb47e5a2aa11bbb38fde5e139798e8e20c33ab4dfcfa37ff99e36bf16c5b8758fc61f6fa1e9d19bfd0e61ffd0399bdb1f3bda75438f0f2c1ac7f137c315af82
6
+ metadata.gz: d488e49c9e089b44e33fbc0a3842d10208a0fec083b2bfe34f3b5de099df78b4c11b033edf6b097189059ba975b1cb4159c3205e21f5301dc68d2103b7280a0a
7
+ data.tar.gz: f51830dffbc16c9baf5170dcccba7b969578627154e1cca492a8aaad29f37832ea1fc5d31f16bd39e558beb28fdf52f2121a4fc5394ed2b1c5b9ff52144f65d5
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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 === new_formatter && formatter.output == new_formatter.output
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(exception.backtrace, example.metadata)
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
- exception.backtrace.find do |line|
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!
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec Core.
4
4
  module Version
5
5
  # Current version of RSpec Core, in semantic versioning format.
6
- STRING = '3.3.1'
6
+ STRING = '3.3.2'
7
7
  end
8
8
  end
9
9
  end
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.1
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-06-18 00:00:00.000000000 Z
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: '0.6'
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: '0.6'
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.1
310
+ summary: rspec-core-3.3.2
311
311
  test_files: []
312
312
  has_rdoc:
metadata.gz.sig CHANGED
Binary file