We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents edcd80e + 1e3f810 commit 0d056eaCopy full SHA for 0d056ea
lib/wicked_pdf/progress.rb
@@ -1,10 +1,10 @@
1
class WickedPdf
2
module Progress
3
- 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
4
require 'English'
5
6
def track_progress?(options)
7
- options[:progress] && !on_windows?
+ options[:progress] && !(on_windows? || RUBY_ENGINE == 'truffleruby')
8
end
9
10
def invoke_with_progress(command, options)
0 commit comments