Challenge done during the second week of the Codeminer42 trainee program.
- First of all, install
rvmin your machine. Here is a guide to install it on Ubuntu. - With
rvminstalled, use it to installRuby 3.1.0: - Run
rvm install ruby 3.1.0in your terminal and you should be fine.
- In your terminal, run
git clone https://github.com/jesrodri/LogParserChallenge.git- Make sure you are on the desired directory.
- Inside the project's directory, run
bundle initin your terminal in order to generate a Gemfile. - Go into the
Gemfileand add the RSpec gem to it by typinggem 'rspec', '~>3.0'in a new line.- Don't forget to save the file!
- In your terminal, run
bundle binstubs rspec-core - Run
bin/rspec --init
- Place the log file in the root of the repository.
- Run
ruby main.rb
- Run
bin/rspec