The Microverse 5th project for the Ruby module that consists of reproducing some of the methods from the Enumerable class with the Ruby programming language and testing this methods with the rspec framework.
- Ruby programming language
- VS Code
- Rubocop
- Rspec
- 👤GitHub: Jose Abel Ramirez
- Linkedin: Jose Abel Ramirez Frontany
- 👤GitHub: Tazoh Yanick
- Linkedin: Tazoh Yanick
- For the tdd_rspec branch
- 👤GitHub: Alvaro Ruiz
- Linkedin: Alvaro Ruiz
You can clone this code anytime and run it with the Ruby interpreter in the Windows console or Unix terminal by typing 'ruby bin/main.rb' or it can run in Unix OS by typing 'bin/main.rb' in the terminal, without the 'ruby' interpreter command, since the main file has the shebang instruction at the top that makes it an executable file.
You can either copy the code with git clone or with any other method and run it on your local environment. The commands to clone it and then run the game are:
- git clone https://github.com/jose-Abel/enumerable-methods.git
- cd enumerable-methods
- bin/main.rb (if you are in Linux or Mac)
- ruby bin/main.rb (for Windows)
Run the tests for the linters.yml and rubocop and everything passes. The instructions to setup this tests are at this repository: Rubocop instructions
For the linters, this tests runs once you make a PR, if you have it in the respective folder. In order to have this tests, after cloning this project:
- cd enumerable-methods
- From the root of this project create the folders .github/workflows
- Add a copy of .github/workflows/tests.yml to the .github/workflows
To download rubocop and run the tests on your local environment, this are the commands to type in the Linux, Mac terminal or Windows cmd:
- gem install rubocop
- cd enumerable-methods
- copy this file .rubocop.yml in the root directory of the project
- type in the terminal 'rubocop'
The commands to install and run rspecs in the Linux, Mac terminal or Windows cmd are:
- gem install rspec
- cd enumerable-methods
- rspec
Appreciate the Ruby Team, and a special acknowledgment to Microverse for pushing us further to increase our knowledge.
This project is MIT licensed.
Give a ⭐️ if you like this project!