vendor/albino.rb in slidedown-0.1.0 vs vendor/albino.rb in slidedown-0.1.1
- old
+ new
@@ -39,11 +39,11 @@
# To see all lexers and formatters available, run `pygmentize -L`.
#
# Chris Wanstrath // chris@ozmm.org
# GitHub // http://github.com
#
-require 'open4'
+require 'open3'
class Albino
@@bin = '/usr/local/bin/pygmentize'
def self.bin=(path)
@@ -58,10 +58,10 @@
@target = File.exists?(target) ? File.read(target) : target rescue target
@options = { :l => lexer, :f => format }
end
def execute(command)
- pid, stdin, stdout, stderr = Open4.popen4(command)
+ stdin, stdout, stderr = Open3.popen3(command)
stdin.puts @target
stdin.close
stdout.read.strip
end
\ No newline at end of file