Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider cygwin a Windows platform #50

Merged
merged 1 commit into from
Sep 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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