Skip to content

Latest commit

History

History
79 lines (51 loc) 路 1.56 KB

README.md

File metadata and controls

79 lines (51 loc) 路 1.56 KB

Strawberry 馃崜

Barebones to start any ruby application.

What is provided

Tools to consider

What you should know

  • Your code goes inside the lib folder
  • Remember to do your code in small chunks
  • Remember to test your code
  • Remember clean code and SOLID principles
  • Remember to open Pull Requests with your features isolated

Commands

Installation

This project was created using ruby 3.0.0 (see .ruby-version).

I use rbenv to install different ruby versions, you may need to install homebrew.

$ brew install ruby-build rbenv

$ rbenv install

$ gem install bundler

$ bundle install

Testing with rspec

$ rspec

Linting with RuboCop

$ bundle exec rubocop

If you want to correct all cops

$ bundle exec rubocop -A

Test coverage

After running the rspec command, a new directory is created to show test coverage

$ open coverage/index.html

RubyCritic

Whenever you want to check the status of your code and want a nice report. This will create a report into tmp/ folder and open the browser for you to see the report.

$ rubycritic .