Skip to content

Commit

Permalink
Merge pull request #50 from jeremyevans/log-shift-cygwin
Browse files Browse the repository at this point in the history
Consider cygwin a Windows platform
  • Loading branch information
sonots authored Sep 23, 2020
2 parents daf1dc5 + 49de53d commit 6e6ab9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/logger/log_device.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def check_shift_log
end
end

if /mswin|mingw/ =~ RUBY_PLATFORM
if /mswin|mingw|cygwin/ =~ RUBY_PLATFORM
def lock_shift_log
yield
end
Expand Down
2 changes: 1 addition & 1 deletion test/logger/test_logdevice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def test_shifting_size_not_rotate_too_much
end
ensure
logdev0.close
end unless /mswin|mingw/ =~ RUBY_PLATFORM
end unless /mswin|mingw|cygwin/ =~ RUBY_PLATFORM

def test_shifting_midnight
Dir.mktmpdir do |tmpdir|
Expand Down

0 comments on commit 6e6ab9e

Please sign in to comment.