-
Receives a log as argument
-
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
-
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