/parsento

Special for Siarhei (Epam)

Primary LanguageRuby

README

This is a Ruby Developer Test

Firstly, the test should take you no more than 2.5 hours to complete.
Secondly, the test is for us to see how you code and the methodologies you use, what we will be looking for in this test are the following:
● Functionality
● Efficiency – We like clean, simple code.
● Readability
● Tests (we have 96% test coverage in our code and we aim to keep it that way).
● Also, we would like to understand your ability to use TDD and OO, so please ensure
these are part of your complete test.
● Feel free to submit your solution as a link to your version control repository
The test is as follows:
1. ruby_app
Write a ruby script that:
a. Receives a log as argument (webserver.log is provided) e.g.: ./parser.rb webserver.log
b. Returns the following:
> list of webpages with most page views ordered from most pages views to less page views e.g.:
/home 90 visits /index 80 visits etc... > list of webpages with most unique page views also ordered
e.g.:
/about/2 8 unique views /index 5 unique views etc...

Installation

git clone https://github.com/cre-o/parsento.git

cd parsento rbenv install 2.7.1 gem install bundler bundle install

Finally, run it ./bin/parsento

Development

bundle exec guard

Test

RSpec bundle exec rspec -f Fuubar --color

Code style bundle exec rubocop


Made with fun & ❤️ by Siarhei Shukhta (aka cre-o)