File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ def platform
18
18
def executable (
19
19
exe_path : File . expand_path ( File . join ( __dir__ , ".." , ".." , "exe" ) )
20
20
)
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 ) ) }
22
22
raise UnsupportedPlatformException , <<~MESSAGE
23
23
tailwindcss-rails does not support the #{ platform } platform
24
24
Please install tailwindcss following instructions at https://tailwindcss.com/docs/installation
25
25
MESSAGE
26
26
end
27
27
28
28
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 ) ) ) )
30
30
end
31
31
32
32
if exe_path . nil?
You can’t perform that action at this time.
0 commit comments