Skip to content

Commit

Permalink
fix: explicitly cast the platform string to a Gem::Platform
Browse files Browse the repository at this point in the history
to work around rubygems/rubygems#5938

Closes #200
  • Loading branch information
flavorjones committed Sep 19, 2022
1 parent cd847bc commit 10a3725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tailwindcss/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10a3725

Please sign in to comment.