bin/rougify in rouge-2.1.1 vs bin/rougify in rouge-2.2.0
- old
+ new
@@ -2,10 +2,10 @@
require 'pathname'
ROOT_DIR = Pathname.new(__FILE__).dirname.parent
load ROOT_DIR.join('lib/rouge.rb')
load ROOT_DIR.join('lib/rouge/cli.rb')
-Signal.trap('SIGPIPE', 'SYSTEM_DEFAULT')
+Signal.trap('PIPE', 'SYSTEM_DEFAULT') if Signal.list.include? 'PIPE'
begin
Rouge::CLI.parse(ARGV).run
rescue Rouge::CLI::Error => e
puts e.message