1
0
Go to file
2024-12-12 10:54:04 +01:00
bin Stop reading in all content 2024-12-11 20:13:35 +01:00
lib Start using an object pool for shipments 2024-12-12 10:54:04 +01:00
sig First commit 2023-09-02 08:35:10 +02:00
spec Stop reading in all content 2024-12-11 20:13:35 +01: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