Skip to content

Commit 1278b73

Browse files
committed
Fix problem with Open3.popen3 where confirm_documentation task never finishes waiting for child processes
see: https://github.com/rubocop/rubocop-rspec/actions/runs/11360936578/job/31599655573
1 parent 961e544 commit 1278b73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ end
7272

7373
desc 'Confirm documentation is up to date'
7474
task confirm_documentation: :generate_cops_documentation do
75-
_, _, _, process =
76-
Open3.popen3('git diff --exit-code docs/')
75+
_, _, status =
76+
Open3.capture3('git diff --exit-code docs/')
7777

78-
unless process.value.success?
78+
unless status.success?
7979
raise 'Please run `rake generate_cops_documentation` ' \
8080
'and add docs/ to the commit.'
8181
end

0 commit comments

Comments
 (0)