This script parses and sorts a log file.
Ensure you have installed Ruby, Rubygems (a package manager framework for Ruby) and Bundler (a Ruby gem management gem).
-
Fork this repo (see here for instructions)
-
In your terminal or command prompt navigate to the directory where you have saved the repo
-
Install gems:
bundle install
-
Run the programme:
ruby parse.rb
-
Run the tests:
ruby parse_test.rb
If it's your first time running the interactive Ruby shell (IRB) in your terminal, see this helpful tutorial.
If you run into any problems in the setup or installation of this programme, please raise an issue or if you're not familiar with GitHub, please feel free to reach out on Twitter.
Remember, as the late great Jim Weirich noted, mountains are merely mountains, so don't worry if you get stuck - we are here to help ❤️