rspec-core 3.11.0 → 3.12.1

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
  SHA256:
3
- metadata.gz: c9793ccaf293fdd1820e28574b1b6db9999ee75618d8abfe3238d3bcaaffcd95
4
- data.tar.gz: 767dee6f32f9d5c84df489e7a92ecc13ccf0b5becee1ce350b9250e1c994a763
3
+ metadata.gz: e01c33b1114655d8891136890c285805fe715c6167fdd8c00985064a179efa73
4
+ data.tar.gz: e11728db974b653edc413b7fdcfa4e63bb4946fbd3735513236e12ae3718916c
5
5
  SHA512:
6
- metadata.gz: 88fbe10e6f8e2ce1a4ba1c3e72283990e4dbf4dbf897067e297f7b3084e42f65e752c8c4381761b630ebef42c204e897208392b1421163eb645351d511249750
7
- data.tar.gz: 6759b7780dfe8b1e5fedf1d55f864acda4d9ad635013e885ae2457c4c1c37ea28ed3d141e358966da290c3ff4a7de50da8e794933778a393e383c25cbcd95d82
6
+ metadata.gz: c0efeeb10be27c4870f0ef68196bfef4aca0b1c13cb0b3453071ff29a08de0cedcfd0f56d80d90ff71fffee275f30b8089b65fdcdd99398bfe6a16673ba5aff6
7
+ data.tar.gz: 2f8d22e60bbb22e2de141c4cf6d92cd6cccd4ad90d61d862aa35049d5e2d0636a92655800e64577091496df787217eecf433a8138c147e60aa373e8777b0c9a8
checksums.yaml.gz.sig CHANGED
Binary file
data/Changelog.md CHANGED
@@ -1,5 +1,18 @@
1
1
  ### Development
2
- [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.11.0...3-11-maintenance)
2
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.12.1...3-12-maintenance)
3
+
4
+ ### 3.12.1 / 2023-02-03
5
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.12.0...v3.12.1)
6
+
7
+ Bug fixes:
8
+
9
+ * Prevent multiple calls to `extra_failure_lines` from adding additional whitespace
10
+ around them when the lines already contain whitespace. (Jon Rowe, #3006)
11
+
12
+ ### 3.12.0 / 2022-10-26
13
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.11.0...v3.12.0)
14
+
15
+ * No changes, released to support other gems.
3
16
 
4
17
  ### 3.11.0 / 2022-02-09
5
18
  [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.10.2...v3.11.0)
data/README.md CHANGED
@@ -322,14 +322,14 @@ Failures:
322
322
  got: nil
323
323
 
324
324
  (compared using ==)
325
- # ./spec/calcalator_spec.rb:6:in `block (3 levels) in <top (required)>'
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/calcalator_spec.rb:5 # Calculator#add returns the sum of its arguments
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:
@@ -502,7 +502,8 @@ module RSpec
502
502
  # @private
503
503
  attr_reader :backtrace_formatter, :ordering_manager, :loaded_spec_files
504
504
 
505
- # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
505
+ # rubocop:disable Metrics/AbcSize
506
+ # rubocop:disable Metrics/MethodLength
506
507
 
507
508
  # Build an object to store runtime configuration options and set defaults
508
509
  def initialize
@@ -561,7 +562,8 @@ module RSpec
561
562
 
562
563
  define_built_in_hooks
563
564
  end
564
- # rubocop:enable Metrics/MethodLength, Metrics/AbcSize
565
+ # rubocop:enable Metrics/AbcSize
566
+ # rubocop:enable Metrics/MethodLength
565
567
 
566
568
  # @private
567
569
  #
@@ -676,7 +678,7 @@ module RSpec
676
678
  end
677
679
 
678
680
  # Set regular expressions used to exclude lines in backtrace.
679
- # @param patterns [Array<Regexp>] set backtrace_formatter exlusion_patterns
681
+ # @param patterns [Array<Regexp>] set backtrace_formatter exclusion_patterns
680
682
  def backtrace_exclusion_patterns=(patterns)
681
683
  @backtrace_formatter.exclusion_patterns = patterns
682
684
  end
@@ -1818,7 +1820,7 @@ module RSpec
1818
1820
  # by not setting `mock_with` or `expect_with` to anything else).
1819
1821
  #
1820
1822
  # @note If the user uses this options with `mock_with :mocha`
1821
- # (or similiar) they will still have monkey patching active
1823
+ # (or similar) they will still have monkey patching active
1822
1824
  # in their test environment from mocha.
1823
1825
  #
1824
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 willl produce a new list that:
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
- @foramtted_value_rows ||= rows.map do |row|
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
@@ -242,6 +242,10 @@ module RSpec
242
242
  line_regex = RSpec.configuration.in_project_source_dir_regex
243
243
  loaded_spec_files = RSpec.configuration.loaded_spec_files
244
244
 
245
+ exception_backtrace.reject! do |line|
246
+ line.start_with?("<internal:")
247
+ end
248
+
245
249
  exception_backtrace.find do |line|
246
250
  next unless (line_path = line[/(.+?):(\d+)(|:\d+)/, 1])
247
251
  path = File.expand_path(line_path)
@@ -33,10 +33,8 @@ module RSpec
33
33
  "<span class='duration'>#{formatted_run_time}s</span></dd>"
34
34
  end
35
35
 
36
- # rubocop:disable Metrics/ParameterLists
37
36
  def print_example_failed(pending_fixed, description, run_time, failure_id,
38
37
  exception, extra_content)
39
- # rubocop:enable Metrics/ParameterLists
40
38
  formatted_run_time = "%.5f" % run_time
41
39
 
42
40
  @output.puts " <dd class=\"example #{pending_fixed ? 'pending_fixed' : 'failed'}\">"
@@ -215,7 +213,7 @@ function assign_display_style_for_group(classname, display_flag, subgroup_flag)
215
213
  }
216
214
  }
217
215
  EOF
218
- # rubocop:enable LineLength
216
+ # rubocop:enable Layout/LineLength
219
217
 
220
218
  GLOBAL_STYLES = <<-EOF
221
219
  #rspec-header {
@@ -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 occured
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 occured
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 examle
95
+ # but will not be queried frequently by other examples or example
96
96
  # groups.
97
97
  # @private
98
98
  class UpdateOptimized
@@ -32,11 +32,10 @@ module RSpec::Core
32
32
 
33
33
  private
34
34
 
35
- # rubocop:disable MethodLength
36
35
  # rubocop:disable Metrics/AbcSize
37
- # rubocop:disable CyclomaticComplexity
38
- # rubocop:disable PerceivedComplexity
39
- # rubocop:disable Metrics/BlockLength
36
+ # rubocop:disable Metrics/MethodLength
37
+ # rubocop:disable Metrics/CyclomaticComplexity
38
+ # rubocop:disable Metrics/PerceivedComplexity
40
39
  def parser(options)
41
40
  OptionParser.new do |parser|
42
41
  parser.summary_width = 34
@@ -303,11 +302,10 @@ FILTERING
303
302
  end
304
303
  end
305
304
  end
306
- # rubocop:enable Metrics/BlockLength
307
305
  # rubocop:enable Metrics/AbcSize
308
- # rubocop:enable MethodLength
309
- # rubocop:enable CyclomaticComplexity
310
- # rubocop:enable PerceivedComplexity
306
+ # rubocop:enable Metrics/MethodLength
307
+ # rubocop:enable Metrics/CyclomaticComplexity
308
+ # rubocop:enable Metrics/PerceivedComplexity
311
309
 
312
310
  def add_tag_filter(options, filter_type, tag_name, value=true)
313
311
  (options[filter_type] ||= {})[tag_name] = value
@@ -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.11.0'
6
+ STRING = '3.12.1'
7
7
  end
8
8
  end
9
9
  end
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.11.0
4
+ version: 3.12.1
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: 2022-02-09 00:00:00.000000000 Z
49
+ date: 2023-02-03 00:00:00.000000000 Z
50
50
  dependencies:
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: rspec-support
@@ -54,26 +54,26 @@ dependencies:
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: 3.11.0
57
+ version: 3.12.0
58
58
  type: :runtime
59
59
  prerelease: false
60
60
  version_requirements: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: 3.11.0
64
+ version: 3.12.0
65
65
  - !ruby/object:Gem::Dependency
66
66
  name: cucumber
67
67
  requirement: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - "~>"
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
71
  version: '1.3'
72
72
  type: :development
73
73
  prerelease: false
74
74
  version_requirements: !ruby/object:Gem::Requirement
75
75
  requirements:
76
- - - "~>"
76
+ - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: '1.3'
79
79
  - !ruby/object:Gem::Dependency
@@ -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.11.0/Changelog.md
270
+ changelog_uri: https://github.com/rspec/rspec-core/blob/v3.12.1/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.3.3
290
+ rubygems_version: 3.3.26
291
291
  signing_key:
292
292
  specification_version: 4
293
- summary: rspec-core-3.11.0
293
+ summary: rspec-core-3.12.1
294
294
  test_files: []
metadata.gz.sig CHANGED
Binary file