File: Run-command-with-correct-ruby-version.patch

package info (click to toggle)
ruby-html-proofer 3.19.2-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,932 kB
  • sloc: ruby: 3,304; sh: 8; makefile: 4; php: 1; javascript: 1
file content (21 lines) | stat: -rw-r--r-- 665 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Daniel Leidert <dleidert@debian.org>
Date: Sun, 28 Nov 2021 18:55:06 +0100
Subject: Run command with correct ruby version

---
 spec/spec_helper.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index daf4819..eb48533 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -78,7 +78,7 @@ def capture_proofer_http(item, type, opts = {})
 end
 
 def make_bin(args)
-  stdout, stderr = Open3.capture3("bin/htmlproofer #{args}")
+  stdout, stderr = Open3.capture3("#{RbConfig.ruby} bin/htmlproofer #{args}")
   "#{stdout}\n#{stderr}".encode('UTF-8', invalid: :replace, undef: :replace)
 end