Skip to content

Commit

Permalink
Merge pull request #120 from avdv/patch-1
Browse files Browse the repository at this point in the history
Require `open3` unconditionally
  • Loading branch information
samg authored Oct 21, 2024
2 parents 85b18fa + 50a723b commit 8a49026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/diffy.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require 'tempfile'
require 'erb'
require 'rbconfig'
require 'open3'

module Diffy
WINDOWS = (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
end
require 'open3' unless Diffy::WINDOWS
require File.join(File.dirname(__FILE__), 'diffy', 'format')
require File.join(File.dirname(__FILE__), 'diffy', 'html_formatter')
require File.join(File.dirname(__FILE__), 'diffy', 'diff')
Expand Down

0 comments on commit 8a49026

Please sign in to comment.