- rvm or rbenv
- ruby 3.0.3
- bundler version 2.2.32
$ cd gifthealth/
$ chmod +x bin/gifthealth
$ rspec
$ bin/gifthealth public/pharmacy_system.txt
- docker
$ docker build -t gifthealth .
$ docker run -it gifthealth
rspec
bin/gifthealth public/pharmacy_system.txt
- gifthealth - a written script for calling a class, to which I will pass the necessary classes as parameters. ARGV - array of arguments that we pass when running the script on the command line (or bash, if you use docker).
- reader.rb
- data_collector.rb
- drug_counter.rb
- total_income.rb
- printer.rb
- performance.rb
- pharmacy_system.txt - the file with the sample of input data.
- Integration test for my script.
- Unit tests for my classes.
- test.txt - the file with the test data.