Skip to content

Commit 657b7f0

Browse files
committed
fix: explicitly cast the platform string to a Gem::Platform
to work around rubygems/rubygems#5938 Closes #200
1 parent 5aea4f5 commit 657b7f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tailwindcss/commands.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def platform
1818
def executable(
1919
exe_path: File.expand_path(File.join(__dir__, "..", "..", "exe"))
2020
)
21-
if Tailwindcss::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match(p) }
21+
if Tailwindcss::Upstream::NATIVE_PLATFORMS.keys.none? { |p| Gem::Platform.match(Gem::Platform.new(p)) }
2222
raise UnsupportedPlatformException, <<~MESSAGE
2323
tailwindcss-rails does not support the #{platform} platform
2424
Please install tailwindcss following instructions at https://tailwindcss.com/docs/installation

0 commit comments

Comments
 (0)