rspec-loop 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8667d1825205e831c4814925c75c4b3a04bab53a1ca677974ef2bce571244649
4
- data.tar.gz: 9bcef5be4f00e17644174eeab35a1832eb491db3d8f701dc90abd8653f883983
3
+ metadata.gz: 7402c8cc78a45ea9a4a4ed83b0338ac274ea7bee23dc514af032f7908dd65d76
4
+ data.tar.gz: e106267104f781f31be4c6fec4f3c468eef429516a2dea81cdb4cdede7861d8a
5
5
  SHA512:
6
- metadata.gz: bb1c2b8f30dd8e01a1e6b6e871f06f8f8d19c3469660e45c6656bb313d63e12b9b92939f134882146dc81e49feb125b6beec335561b637a7f87b1d34c5e4236b
7
- data.tar.gz: b1150c5c626c960fe8d02fa83f6887de401ef389b7f55b9864af44388c82fa4984d3ebde3d3026bc0fa6b5f8ef22dccb8d22096253f0c6e2f8cd4f626ccef7cb
6
+ metadata.gz: 49c399fba4ea6e1e967c7ccec2d344caf8b69cfd6e55b671797ca09fc75b3154962bdc565c4e2cafe794cadc4f1e7c7827599026b07f8673a337d9b2b7838ee4
7
+ data.tar.gz: 39eaa277af6c9f5fcff453628d51b0fc3f029ebd017b536c0ac9310e195bc3ae2e17080bf2fd3257481d26b628d3402ab3dae2f286da31a129b87c557cf4cf47
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.1] - 2025-07-21
4
+
5
+ - Fix error when attempting to show summary of pending examples' exceptions with rspec-core < 3.13
6
+
3
7
  ## [0.2.0] - 2025-07-18
4
8
 
5
9
  - Display each failure iteration in rspec summary.
data/Rakefile CHANGED
@@ -3,7 +3,9 @@
3
3
  require "bundler/gem_tasks"
4
4
  require "rspec/core/rake_task"
5
5
 
6
- RSpec::Core::RakeTask.new(:spec)
6
+ RSpec::Core::RakeTask.new(:spec) do |t|
7
+ t.pattern = "spec/rspec/**/*_spec.rb"
8
+ end
7
9
 
8
10
  require "rubocop/rake_task"
9
11
 
@@ -12,8 +14,17 @@ RuboCop::RakeTask.new
12
14
  task default: %i[spec rubocop]
13
15
 
14
16
  namespace :spec do
15
- desc "Run specs in a loop"
17
+ desc "Run specs with the rspec-loop formatter"
16
18
  RSpec::Core::RakeTask.new(:loop) do |t|
19
+ t.pattern = "spec/rspec/**/*_spec.rb"
17
20
  t.rspec_opts = "--format RSpec::Loop::Formatter"
18
21
  end
22
+
23
+ namespace :formatter do
24
+ desc "Run example specs to demonstrate formatter"
25
+ RSpec::Core::RakeTask.new(:example) do |t|
26
+ t.pattern = "spec/example/**/*_spec.rb"
27
+ t.rspec_opts = "--format RSpec::Loop::Formatter"
28
+ end
29
+ end
19
30
  end
@@ -91,7 +91,8 @@ module RSpec
91
91
  end
92
92
 
93
93
  def dump_pending(notification)
94
- return if RSpec.configuration.pending_failure_output == :skip
94
+ return if RSpec.configuration.respond_to?(:pending_failure_output) &&
95
+ RSpec.configuration.pending_failure_output == :skip
95
96
  return if notification.pending_notifications.empty?
96
97
 
97
98
  formatted = "\nPending: (Failures listed here are expected and do not affect your suite's status)\n".dup
@@ -99,7 +100,7 @@ module RSpec
99
100
  pending_examples.each_with_index do |pending, index|
100
101
  formatted << pending.fully_formatted(index.next)
101
102
  end
102
- puts formatted
103
+ output.puts formatted
103
104
  end
104
105
 
105
106
  def dump_failures(notification)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  class Loop
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-loop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kcboschert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-19 00:00:00.000000000 Z
11
+ date: 2025-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 3.10.0
75
+ version: 3.13.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 3.10.0
82
+ version: 3.13.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement