Gems every Rails and Ruby project should use

Photo by Don Agnello from Unsplash

TLDR

pry-byebug
rspec (or rspec-rails for Rails)
rubocop (or rubocop-rails for Rails)

TSPE

RuboCop

👉 For consistency and linting

# Show files that are violating rules
> bundle exec rubocop --color --force-exclusion --format simple
# Show files that are violating rules and auto-correct
> bundle exec rubocop --color --force-exclusion --format simple --auto-correct
# Generate "TODO" list of files that break rules
> bundle exec rubocop --auto-gen-config
Does anybody else feel weirdly satisfied after auto-correcting their projects with RuboCop?

RSpec

👉 For testing

Example RSpec test

Pry-Byebug

👉 For debugging

binding.pry
Sample debugging session

Other 👌 gems

factory_bot_rails ⟶ Generating model records in Rails
faker ⟶ Creating fake data (ex. Faker::Hacker.say_something_smart)
httparty ⟶ Make HTTP requests

Meet me at the intersection of tech, astrology, and dank memes. @juliannaseiki

Meet me at the intersection of tech, astrology, and dank memes. @juliannaseiki