From cc056fdae51b9f2de87a6fc1a615fbe1b7707998 Mon Sep 17 00:00:00 2001 From: Rajnish Kumar Mishra <81736743+rajnish-jarvis@users.noreply.github.com> Date: Wed, 27 Dec 2023 21:37:51 +0530 Subject: [PATCH] Update commands.rb --- lib/tailwindcss/commands.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tailwindcss/commands.rb b/lib/tailwindcss/commands.rb index b1367c66..34d382ea 100644 --- a/lib/tailwindcss/commands.rb +++ b/lib/tailwindcss/commands.rb @@ -35,7 +35,7 @@ def executable(exe_path: DEFAULT_DIR) MESSAGE end else - if Tailwindcss::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match_gem?(Gem::Platform.new(p), GEM_NAME) } + if Tailwindcss::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match(Gem::Platform.new(p)) } raise UnsupportedPlatformException, <<~MESSAGE tailwindcss-rails does not support the #{platform} platform Please install tailwindcss following instructions at https://tailwindcss.com/docs/installation @@ -43,7 +43,7 @@ def executable(exe_path: DEFAULT_DIR) end exe_file = Dir.glob(File.expand_path(File.join(exe_path, "*", "tailwindcss"))).find do |f| - Gem::Platform.match_gem?(Gem::Platform.new(File.basename(File.dirname(f))), GEM_NAME) + Gem::Platform.match(Gem::Platform.new(File.basename(File.dirname(f)))) end end