10000 Fallback on open3 if posix-spawn is unavailable. · github/markup@ad4359f · GitHub
[go: up one dir, main page]

Skip to content

Commit ad4359f

Browse files
author
Dawa Ometto
committed
Fallback on open3 if posix-spawn is unavailable.
1 parent c272303 commit ad4359f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/github/markup/command_implementation.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
if RUBY_PLATFORM == 'java'
2-
require "open3"
3-
else
1+
begin
42
require "posix-spawn"
3+
rescue LoadError
4+
require "open3"
55
end
66

77
require "github/markup/implementation"

0 commit comments

Comments
 (0)
0