Skip to content

Commit 0d056ea

Browse files
authored
Merge pull request #1028 from Tiikara/master
Add support for truffleruby (22.1.0) on Linux
2 parents edcd80e + 1e3f810 commit 0d056ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/wicked_pdf/progress.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
class WickedPdf
22
module Progress
3-
require 'pty' if RbConfig::CONFIG['target_os'] !~ /mswin|mingw/ # no support for windows
3+
require 'pty' if RbConfig::CONFIG['target_os'] !~ /mswin|mingw/ && RUBY_ENGINE != 'truffleruby' # no support for windows and truffleruby
44
require 'English'
55

66
def track_progress?(options)
7-
options[:progress] && !on_windows?
7+
options[:progress] && !(on_windows? || RUBY_ENGINE == 'truffleruby')
88
end
99

1010
def invoke_with_progress(command, options)

0 commit comments

Comments
 (0)