From 2791f2effad6e729cacc28495faa10115eb13a4d Mon Sep 17 00:00:00 2001 From: Billy Barrese Date: Thu, 21 Nov 2024 10:03:21 -0800 Subject: [PATCH] Update RUBY_PLATFORM conditional to Ruby 3.1 Differential Revision: D65979906 fbshipit-source-id: bc7e0e3856ea7006213ccf212a40b59086aad148 --- itchef/cookbooks/cpe_helpers/libraries/cpe_helpers.rb | 2 +- itchef/cookbooks/fb_helpers/libraries/fb_helpers.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/itchef/cookbooks/cpe_helpers/libraries/cpe_helpers.rb b/itchef/cookbooks/cpe_helpers/libraries/cpe_helpers.rb index 46a6c01d..9444c70d 100644 --- a/itchef/cookbooks/cpe_helpers/libraries/cpe_helpers.rb +++ b/itchef/cookbooks/cpe_helpers/libraries/cpe_helpers.rb @@ -224,7 +224,7 @@ def self.linux? end def self.windows? - RUBY_PLATFORM =~ /mswin|mingw32|windows/ + RUBY_PLATFORM =~ /mswin|mingw|windows/ end def self.logged_on_user_query diff --git a/itchef/cookbooks/fb_helpers/libraries/fb_helpers.rb b/itchef/cookbooks/fb_helpers/libraries/fb_helpers.rb index 5d3b9d1d..2bd0f8a6 100644 --- a/itchef/cookbooks/fb_helpers/libraries/fb_helpers.rb +++ b/itchef/cookbooks/fb_helpers/libraries/fb_helpers.rb @@ -558,7 +558,7 @@ def self.linux? end def self.windows? - RUBY_PLATFORM =~ /mswin|mingw32|windows/ + RUBY_PLATFORM =~ /mswin|mingw|windows/ end # mountpoint? determines if a path string represents a mountpoint