Skip to content

Commit

Permalink
Merge pull request #1 from bwmeier/edwinf-patch
Browse files Browse the repository at this point in the history
Only include the winhelper.rb file if we are running on windows...
  • Loading branch information
edwinf committed Dec 2, 2013
2 parents c1a8a47 + 5955726 commit d00f2ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/filewatch/tail.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require "filewatch/buftok"
require "filewatch/watch"
require "filewatch/winhelper"
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
require "filewatch/winhelper"
end
require "logger"
require "rbconfig"

Expand Down
4 changes: 3 additions & 1 deletion lib/filewatch/watch.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require "logger"
require "filewatch/winhelper"
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
require "filewatch/winhelper"
end

module FileWatch
class Watch
Expand Down

0 comments on commit d00f2ef

Please sign in to comment.