Skip to content

Commit cc056fd

Browse files
Update commands.rb
1 parent 8f7c0a3 commit cc056fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/tailwindcss/commands.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ def executable(exe_path: DEFAULT_DIR)
3535
MESSAGE
3636
end
3737
else
38-
if Tailwindcss::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match_gem?(Gem::Platform.new(p), GEM_NAME) }
38+
if Tailwindcss::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match(Gem::Platform.new(p)) }
3939
raise UnsupportedPlatformException, <<~MESSAGE
4040
tailwindcss-rails does not support the #{platform} platform
4141
Please install tailwindcss following instructions at https://tailwindcss.com/docs/installation
4242
MESSAGE
4343
end
4444

4545
exe_file = Dir.glob(File.expand_path(File.join(exe_path, "*", "tailwindcss"))).find do |f|
46-
Gem::Platform.match_gem?(Gem::Platform.new(File.basename(File.dirname(f))), GEM_NAME)
46+
Gem::Platform.match(Gem::Platform.new(File.basename(File.dirname(f))))
4747
end
4848
end
4949

0 commit comments

Comments
 (0)