[rubygems/rubygems] Unify win_platform? to Gem.win_platform?

b18a4ef076
This commit is contained in:
Hiroshi SHIBATA 2023-04-05 10:50:15 +09:00 committed by git
parent cbeea5f3e6
commit a464951fc7
24 changed files with 63 additions and 77 deletions

View file

@ -500,7 +500,7 @@ Removed '/CN=alternate/DC=example'
mask = 0100600 & (~File.umask)
assert_equal mask, File.stat(path).mode unless win_platform?
assert_equal mask, File.stat(path).mode unless Gem.win_platform?
end
def test_execute_sign_encrypted_key
@ -529,7 +529,7 @@ Removed '/CN=alternate/DC=example'
mask = 0100600 & (~File.umask)
assert_equal mask, File.stat(path).mode unless win_platform?
assert_equal mask, File.stat(path).mode unless Gem.win_platform?
end
def test_execute_sign_default
@ -561,7 +561,7 @@ Removed '/CN=alternate/DC=example'
mask = 0100600 & (~File.umask)
assert_equal mask, File.stat(path).mode unless win_platform?
assert_equal mask, File.stat(path).mode unless Gem.win_platform?
end
def test_execute_sign_default_encrypted_key
@ -593,7 +593,7 @@ Removed '/CN=alternate/DC=example'
mask = 0100600 & (~File.umask)
assert_equal mask, File.stat(path).mode unless win_platform?
assert_equal mask, File.stat(path).mode unless Gem.win_platform?
end
def test_execute_sign_no_cert