Cheerful gem allows you to customize the color of syntax errors in the terminal logs of a Rails application, adding some fun and cheer to the development process!
... see how you're squinting your eyes 🧐 and needing to zoom in?
Now spotting syntax errors 😎 is much more fun!
However, if you want to play with it you can do so by downloading and installing it locally:
- Add
gem 'cheerful', github: 'https://github.com/ionajosephine/cheerful', branch 'main'
to your Rail's app's gemfile. - Run bundle config command in your terminal:
$ cd /path/to/rails/app $ bundle config --local local.cheerful /full/path/to/local/cheerful/gem
- Confirm the bundle config with
$ bundle config
- Run the
bundle install
command in your terminal - You will notice that in the output of the bundle you'll see the source of the gem rather than just the gem name. Something similar to:
Using cheerful-0.1.0 from https://github.com/ionajosephine/cheerful.git (at /full/path/to/local/cheerful/gem@git-hash)
- You can now modify the gem in your local directory and the changes will also be reflected in your Rails app.
As it is still in development the gem is
If you wish to remove the Cheerful gem from your Rails app:
- Run
$ bundle config --delete local.cheerful
in your terminal - Delete the line referring to the cheerful gem in your Rails Gemfile
- Run
bundle install
in your terminal
Bug reports and pull requests are welcome on GitHub at https://github.com/ionajosephine/cheerful.
The gem is available as open source under the terms of the MIT License.