With Ruby gems, you can use open source code to make your life a lot easier when developing Ruby applications.
Through my experience with this language I bring you seven of my favorite and useful ruby gems that I consider "must have":
When writing code, it's nice to make sure it's readable to any good programmer. Of course, that programmer could be your future self. You may have heard this famous joke: 'When I wrote this code only me and God knew what it does, now only God knows'. This gem will check your static code and say if it's good or not based on Ruby community guidelines of code style. By Bozhidar Batsov.
This gem will provide an easy way to set up authentication with your rails application. With this you don’t have to worry about creating DB relationships or even adding a bunch of code to verify if a user is or isn't logged. You can either add its default DB settings or integrate with your schema. Back in time I remember how hard was to do it in any application and ensure all scenarios were being covered. By Platformatec.
When developing a rails project, you'll make yourself familiar with `rake db:migrate` which needs to be done when you modify your current models. With time, you may have run it more times than you wanted and need to fall back a version. That will turn into a nightmare. With this gem, you can track changes to provide auditing and/or versioning. Andy Stewart made it possible; thank you! By Andy Stewart.
7. Delayed Job
Let me know which gems you would have put on the list in the comments.
Check out some of our other Gem-related posts:
- How to make your own Ruby Gem
- Wrapping your API in a custom Ruby Gem
- Introducing Gem Testers
- Concurrency and the AASM Gem
- Engine Yard Gem version 2.0