File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ 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
2525 MESSAGE
2626 end
2727
2828 exe_path = Dir . glob ( File . expand_path ( File . join ( exe_path , "*" , "tailwindcss" ) ) ) . find do |f |
29- Gem ::Platform . match ( File . basename ( File . dirname ( f ) ) )
29+ Gem ::Platform . match ( Gem :: Platform . new ( File . basename ( File . dirname ( f ) ) ) )
3030 end
3131
3232 if exe_path . nil?
You can’t perform that action at this time.
0 commit comments