[前][次][番号順一覧][スレッド一覧]

ruby-changes:63905

From: Jeremy <ko1@a...>
Date: Fri, 4 Dec 2020 20:16:20 +0900 (JST)
Subject: [ruby-changes:63905] 6f14a30022 (master): [ruby/logger] Consider cygwin a Windows platform

https://git.ruby-lang.org/ruby.git/commit/?id=6f14a30022

From 6f14a30022e284398017b47d37f3f717f384f985 Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Tue, 22 Sep 2020 11:22:04 -0700
Subject: [ruby/logger] Consider cygwin a Windows platform

This should fix Ruby Bug 12468.

https://github.com/ruby/logger/commit/49de53d1fc

diff --git a/lib/logger/log_device.rb b/lib/logger/log_device.rb
index fe7d54f..96d77b7 100644
--- a/lib/logger/log_device.rb
+++ b/lib/logger/log_device.rb
@@ -135,7 +135,7 @@ class Logger https://github.com/ruby/ruby/blob/trunk/lib/logger/log_device.rb#L135
       end
     end
 
-    if /mswin|mingw/ =~ RUBY_PLATFORM
+    if /mswin|mingw|cygwin/ =~ RUBY_PLATFORM
       def lock_shift_log
         yield
       end
diff --git a/test/logger/test_logdevice.rb b/test/logger/test_logdevice.rb
index 2a01dab..6fefd35 100644
--- a/test/logger/test_logdevice.rb
+++ b/test/logger/test_logdevice.rb
@@ -451,7 +451,7 @@ class TestLogDevice < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/logger/test_logdevice.rb#L451
     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|
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]