Barebones to start any ruby application.
- 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
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
$ rspec
$ bundle exec rubocop
If you want to correct all cops
$ bundle exec rubocop -A
After running the rspec command, a new directory is created to show test coverage
$ open coverage/index.html
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 .