Write a ruby script that:
- Receives a log as argument (webserver.log is provided) e.g.: ./parser.rb webserver.log
- Returns the following:
- list of webpages with most page views ordered from most pages views to less page views
- list of webpages with most unique page views also ordered
Ensure you have installed Ruby 2.x+ and run
bundle install
Help - bundle exec ./bin/parser
bundle exec bin/parser --file logs/webserver.log
bundle exec bin/parser --file logs/webserver.log -m unique
bundle exec bin/parser --file logs/webserver.log -q
bundle exec bin/console
bundle exec rubocop
bundle exec rspec and then open coverage/index.html
