Here below documentation provided for accomplished task for the Thrive Challenge.
Oleg Saltykov
oleg.saltykov@gmail.com
This application built using using pure Ruby 3.1.2 (no db all in memory) with several application dependencies listed at the Gemfile
For starting given rails application locally it is required to run next console commands:
bundle install # install all Ruby gems
As intended for running console application need to trigger challenge.rb over the console
ruby challenge.rb
Follow simple Q&A prompts suggested in the app for outputing result to target txt file.
Run basic unit test for Reports::Company::Txt service, which is basically assemble context for writing for each company
rspec text_spec.rb # run basic unit test
- Unit tests and manual testing is available. So that can prove correctness in some fashion.
- Code might be not the cleanest and test coverage only covered base one record assembling case. But I hope it brings some main idea.