Challenge done during the second week of the Codeminer42 trainee program.
- First of all, install
rvm
in your machine. Here is a guide to install it on Ubuntu. - With
rvm
installed, use it to installRuby 3.1.0
: - Run
rvm install ruby 3.1.0
in 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 init
in your terminal in order to generate a Gemfile. - Go into the
Gemfile
and 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