From a1a52e02543ecf90d8eebca1f0c5959b850da0a7 Mon Sep 17 00:00:00 2001 From: Kenshi Muto Date: Thu, 24 Mar 2016 19:48:43 +0900 Subject: [PATCH] Provide review-preproc-ext.rb feature for review-preproc. --- bin/review-preproc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/review-preproc b/bin/review-preproc index ee0941d1d..f6ba150c7 100755 --- a/bin/review-preproc +++ b/bin/review-preproc @@ -35,6 +35,14 @@ rescue Errno::EPIPE end def main + if File.file?("review-preproc-ext.rb") + if ENV["REVIEW_SAFE_MODE"].to_i & 2 > 0 + warn "review-preproc-ext.rb is prohibited in safe mode. ignored." + else + Kernel.load File.expand_path("review-preproc-ext.rb") + end + end + param = {} mode = :output