diff --git a/lib/tailwindcss/commands.rb b/lib/tailwindcss/commands.rb index 136b5ee..e7f34cb 100644 --- a/lib/tailwindcss/commands.rb +++ b/lib/tailwindcss/commands.rb @@ -18,7 +18,7 @@ def platform def executable( exe_path: File.expand_path(File.join(__dir__, "..", "..", "exe")) ) - if Tailwindcss::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match(p) } + 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 @@ -26,7 +26,7 @@ def executable( end exe_path = Dir.glob(File.expand_path(File.join(exe_path, "*", "tailwindcss"))).find do |f| - Gem::Platform.match(File.basename(File.dirname(f))) + Gem::Platform.match(Gem::Platform.new(File.basename(File.dirname(f)))) end if exe_path.nil?