This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This gem wraps the rustywind CLI binary (a Tailwind CSS class sorter) for use in Ruby projects. It downloads and packages platform-specific binaries for macOS, Linux, and Windows.
bin/setup- Install dependenciesrake test- Run testsbundle exec standardrb- Run linter (Standard Ruby)bundle exec standardrb --fix- Auto-fix lint issuesbundle exec rustywind- Run the wrapped binary
The gem has two version constants that must be kept in sync when updating:
lib/rustywind/ruby/version.rb- Gem version (Rustywind::Ruby::VERSION)lib/rustywind/ruby/upstream.rb- Upstream rustywind version (Rustywind::Ruby::Upstream::VERSION)
Key components:
exe/rustywind- Entry point that executes the platform-appropriate binarylib/rustywind/ruby/binary.rb- Detects platform/arch and returns the correct binary pathlib/rustywind/ruby/upstream.rb- Maps platform/arch to upstream binary URLs
Binaries are stored in exe/{platform}/{arch}/rustywind and downloaded via rake download_binaries.
- Update version in both
version.rbandupstream.rb bundle exec rake clobber- Remove old binariesbundle exec rake download_binaries- Download new binaries- Commit changes and update CHANGELOG.md
bundle exec rake release- Tag and push to RubyGems