madking55 / smart_counter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smart Counter

Description

  1. Receives a log as argument

  2. Returns the following:

    a. list of webpages with most page views ordered from most pages views to less page views

    b. list of webpages with most unique page views also ordered

Running the script

  • Clone this repository

    $ git clone https://github.com/madking55/smart_counter

  • Run the script and see lists of webpages

    $ cd smart_counter

    $ ruby list_webpages.rb webserver.log

  • Running tests

    $ rspec

About


Languages

Language:HTML 70.0%Language:Ruby 30.0%