Merge pull request #15 from ruby/vais/windows · ruby/mspec@f90efa0 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit f90efa0
Merge pull request #15 from ruby/vais/windows
Fix ruby executable path resolution on Windows
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -108,7 +108,9 @@ def resolve_ruby_exe | ||
108 | 108 | exe, *rest = cmd.split(" ") |
109 | 109 | |
110 | 110 | if File.file?(exe) and File.executable?(exe) |
111 | -return [File.expand_path(exe), *rest].join(" ") | |
111 | +exe = File.expand_path(exe) | |
112 | +exe = exe.tr('/', '\\') if PlatformGuard.windows? | |
113 | +return [exe, *rest].join(" ") | |
112 | 114 | end |
113 | 115 | end |
114 | 116 | nil |