Sha256: 4b076e8491093bc0674bc0ddf8fc3082ead02635b754f00b11533a5ecdf0ae73

Contents?: true

Size: 567 Bytes

Versions: 8

Compression:

Stored size: 567 Bytes

Contents

#! /usr/bin/env ruby
# because rubygems shims assume a gem's executables are Ruby

require "shellwords"

platform_dir = Dir.glob(File.join(__dir__, "*")).select do |f|
  File.directory?(f) && Gem::Platform.match(File.basename(f))
end.first
if platform_dir.nil?
  raise "Cannot find the tailwindcss executable in #{__dir__} (1)"
end

exe_path = File.join(platform_dir, "tailwindcss")
if !File.exist?(exe_path)
  raise "Cannot find the tailwindcss executable in #{__dir__} (2)"
end

command = Shellwords.join([exe_path, ARGV].flatten)
puts "+ #{command}"
exec(command)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tailwindcss-rails-2.0.0-arm64-darwin exe/tailwindcss
tailwindcss-rails-2.0.0-x86_64-linux exe/tailwindcss
tailwindcss-rails-2.0.0-x86_64-darwin exe/tailwindcss
tailwindcss-rails-2.0.0-x64-mingw32 exe/tailwindcss
tailwindcss-rails-2.0.0.rc1-x86_64-linux exe/tailwindcss
tailwindcss-rails-2.0.0.rc1-x86_64-darwin exe/tailwindcss
tailwindcss-rails-2.0.0.rc1-x64-mingw32 exe/tailwindcss
tailwindcss-rails-2.0.0.rc1-arm64-darwin exe/tailwindcss