diff --git a/lib/tailwindcss/commands.rb b/lib/tailwindcss/commands.rb index 136b5ee..745b16c 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