diff --git a/lib/github/markup/command_implementation.rb b/lib/github/markup/command_implementation.rb index 1b43dd71..92e1923d 100644 --- a/lib/github/markup/command_implementation.rb +++ b/lib/github/markup/command_implementation.rb @@ -36,8 +36,8 @@ def call_block(rendered, content) rendered end end - - if defined?(Posix::Spawn) + + if defined?(POSIX::Spawn) def execute(command, target) spawn = POSIX::Spawn::Child.new(*command, :input => target) if spawn.status.success? @@ -60,11 +60,11 @@ def execute(command, target) sanitize(output.join(''), target.encoding) end end - + def sanitize(input, encoding) input.gsub("\r", '').force_encoding(encoding) end - + end end end