summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-10-11 23:51:14 -0600
committerDan Allen <dan.j.allen@gmail.com>2020-10-12 02:31:19 -0600
commitbaf032dcd342bb6d23ec8bfd0db8b43bf9f5f612 (patch)
treef4a56ebfe6e2437c7af6078088c6dccf6b5bcdc4 /lib
parentab6b4a01d830697aa764b8722964942dd7ab0776 (diff)
ignore debug parameter in patched GSAlone class
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/pdf/optimizer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asciidoctor/pdf/optimizer.rb b/lib/asciidoctor/pdf/optimizer.rb
index b5b96e66..09519d1e 100644
--- a/lib/asciidoctor/pdf/optimizer.rb
+++ b/lib/asciidoctor/pdf/optimizer.rb
@@ -8,7 +8,7 @@ require 'tmpdir'
RGhost::GSAlone.prepend (Module.new do
WindowsRx = /win|ming/
- def initialize params, debug = false
+ def initialize params, debug
(@params = params.dup).push(*(@params.pop.split File::PATH_SEPARATOR))
@debug = debug
end
@@ -16,7 +16,7 @@ RGhost::GSAlone.prepend (Module.new do
def run
RGhost::Config.config_platform unless File.exist? RGhost::Config::GS[:path].to_s
(cmd = @params.slice 1, @params.length).unshift RGhost::Config::GS[:path].to_s
- puts cmd.join ' ' if @debug
+ #puts cmd if @debug
system(*cmd)
end
end)