Add this line to your application's Gemfile:
gem 'slayer_rails'After checking out the repo, run bin/setup to install dependencies. Then, run bundle exec rake to lint and run the appraisal test matrix. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, commit the change, and then run bin/release. The script creates and pushes the version tag; the Publish GitHub Actions workflow builds and publishes the gem to rubygems.org using trusted publishing.
Create a release from main:
bin/release {major|minor|patch|pre}
git push --follow-tagsThe release script validates the repository, bumps the version, creates a git tag.
Publishing to RubyGems and creating a GitHub Release are handled automatically by GitHub Actions.
Testing against various Rails versions is handled with appraisal. To test, run:
$ bundle exec rakeBug reports and pull requests are welcome on GitHub at https://github.com/apsislabs/slayer_rails.
The gem is available as open source under the terms of the MIT License.
slayer_rails was built by Apsis Labs. We love sharing what we build! Check out our other libraries on Github, and if you like our work you can hire us to build your vision.
