Skip to content

Commit d4f1861

Browse files
committed
Merge pull request #456 from github/fix-posix-check
The module is POSIX, not Posix
2 parents 9ab60bf + b6111b9 commit d4f1861

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/github/markup/command_implementation.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def call_block(rendered, content)
3636
rendered
3737
end
3838
end
39-
40-
if defined?(Posix::Spawn)
39+
40+
if defined?(POSIX::Spawn)
4141
def execute(command, target)
4242
spawn = POSIX::Spawn::Child.new(*command, :input => target)
4343
if spawn.status.success?
@@ -60,11 +60,11 @@ def execute(command, target)
6060
sanitize(output.join(''), target.encoding)
6161
end
6262
end
63-
63+
6464
def sanitize(input, encoding)
6565
input.gsub("\r", '').force_encoding(encoding)
6666
end
67-
67+
6868
end
6969
end
7070
end

0 commit comments

Comments
 (0)