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