1
0
Go to file
2024-09-27 20:17:31 +02:00
bin Allow to repeat a day in the example data sets 2024-08-25 10:23:38 +02:00
lib Remove unused sequential id from shipments 2024-08-27 18:01:44 +02:00
sig First commit 2023-09-02 08:35:10 +02:00
spec Add L edge case to input file 2024-08-27 17:43:02 +02:00
.gitignore Remove Gemfile.lock and start ignoring it 2024-08-27 17:46:09 +02:00
.rspec First commit 2023-09-02 08:35:10 +02:00
.standard.yml First commit 2023-09-02 08:35:10 +02:00
.tool-versions Add tool-version file 2024-08-25 10:04:13 +02:00
CODE_OF_CONDUCT.md First commit 2023-09-02 08:35:10 +02:00
Gemfile Add integration spec 2024-08-25 10:09:43 +02:00
Gemfile.lock Use structs instead of hashes for shipments 2024-08-27 17:57:33 +02:00
planet_express_express.gemspec Fill in gemspec placeholders 2023-09-02 08:35:29 +02:00
Rakefile First commit 2023-09-02 08:35:10 +02:00
README.md Fix generate data command in readme 2024-09-27 20:17:31 +02:00

PlanetExpressExpress

A data driven approach for solving a shipping discount calculator.

Setup

  • Ruby 3.x

Usage

Generating sample data

$ ruby bin/generate_data.rb $SAMPLE_SIZE $SHIPMENTS_PER_DAY > sample_file.txt

Run the calculator

$ ruby bin/run.rb sample_file.txt