Favorite Ruby gems
A list of my favorite Ruby gems, mostly for Rails projects.
Dec 6, 2020
·
2 min read
- flipper - release new features behind a feature flag
- sidekiq + sidekiq-cron - async jobs + scheduled jobs
- turbolinks + StimulusJS (JS) + TailwindCSS (CSS) - better than a JS framework like React for smaller teams, with rapid iteration and a snappy-enough web app.
- rubocop + rubocop-performance + rubocop-rails - lint everything! Set
NewCops: enable
. Use auto-correct for quick formatting in a VS Code task + keyboard shortcut "command": "bundle exec rubocop -A ${relativeFile}"
- brakeman + bundler-audit + ruby_audit - CI audit tools to create a CI audit/scan job that scans your code for vulnerabilities
- blazer - use SQL to make dashboard and event alerts, instead of building internal dashboards.
- annotate - annotate Rails models with db schema info
- counter_culture - turbo-charged counter caches for Rails
- stripe + money-rails / money - for payments
- premailer - inline CSS for mailers
- rack-attack - middleware for throttling and blocking
- better_errors - better debugging
- sitemap_generator - generate sitemaps for search engines
- attr_encrypted - attr_accessors that transparently encrypt and decrypt attributes
- geocoder - geocode / lookup location of visitors using various API’s like
ipstack
- pagy - pagination
- vcr - record and replay interactions with external API’s, like Stripe, in your test suite
- faker - generate fake data for tests
- i18n-tasks - autoformat and prune i18n translations
- devise + auth_trail + recaptcha - authentication + (suspicious) login tracking + block bots using recaptcha
- pundit or cancancan - authorization
- pg + pghero + activerecord-import - PosgreSQL + performance dashboard + bulk insert
- view_component - framework for reusable and testable view components in Rails, inspired by React