1
0
Go to file
2024-08-27 17:43:02 +02:00
bin Allow to repeat a day in the example data sets 2024-08-25 10:23:38 +02:00
lib Use structs instead of hashes for shipments 2024-08-27 17:57:33 +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 First commit 2023-09-02 08:35:10 +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 Add decent readme 2023-09-07 12:47:46 +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 > sample_file.txt

Run the calculator

$ ruby bin/run.rb sample_file.txt