Skip to content

Commit

Permalink
The command is POSIX, not Posix
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Feb 18, 2015
1 parent 9ab60bf commit b6111b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/github/markup/command_implementation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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

0 comments on commit b6111b9

Please sign in to comment.