Skip to content

Commit

Permalink
Merge pull request #1028 from Tiikara/master
Browse files Browse the repository at this point in the history
Add support for truffleruby (22.1.0) on Linux
  • Loading branch information
unixmonkey authored Sep 29, 2023
2 parents edcd80e + 1e3f810 commit 0d056ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wicked_pdf/progress.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class WickedPdf
module Progress
require 'pty' if RbConfig::CONFIG['target_os'] !~ /mswin|mingw/ # no support for windows
require 'pty' if RbConfig::CONFIG['target_os'] !~ /mswin|mingw/ && RUBY_ENGINE != 'truffleruby' # no support for windows and truffleruby
require 'English'

def track_progress?(options)
options[:progress] && !on_windows?
options[:progress] && !(on_windows? || RUBY_ENGINE == 'truffleruby')
end

def invoke_with_progress(command, options)
Expand Down

0 comments on commit 0d056ea

Please sign in to comment.