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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Rakefile +13 -2
- data/lib/rspec/loop/formatter.rb +3 -2
- data/lib/rspec/loop/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7402c8cc78a45ea9a4a4ed83b0338ac274ea7bee23dc514af032f7908dd65d76
|
4
|
+
data.tar.gz: e106267104f781f31be4c6fec4f3c468eef429516a2dea81cdb4cdede7861d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49c399fba4ea6e1e967c7ccec2d344caf8b69cfd6e55b671797ca09fc75b3154962bdc565c4e2cafe794cadc4f1e7c7827599026b07f8673a337d9b2b7838ee4
|
7
|
+
data.tar.gz: 39eaa277af6c9f5fcff453628d51b0fc3f029ebd017b536c0ac9310e195bc3ae2e17080bf2fd3257481d26b628d3402ab3dae2f286da31a129b87c557cf4cf47
|
data/CHANGELOG.md
CHANGED
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
|
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
|
data/lib/rspec/loop/formatter.rb
CHANGED
@@ -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
|
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)
|
data/lib/rspec/loop/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
82
|
+
version: 3.13.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|