Ruby 3 cheatsheet
Ruby 3: Command line and gems
9 common Ruby 3 tasks.
Install the bundle
Install the gems listed in the Gemfile and record exact versions in Gemfile.lock.
bundle install
Run a command with the bundle
Run a command using the gem versions in Gemfile.lock.
bundle exec rspec
Lint the code
Check style and common mistakes with RuboCop. Add -a to fix what is safe.
bundle exec rubocop