The deploy (run 458) crash-looped: under Ruby 4 the default bigdecimal
is 4.0.1, and ttfunk 1.8.0 (prawn, invoice PDFs) requires bigdecimal
~> 3.1, so the app fails to load (Gem::ConflictError). The pre-merge
boot test stopped at the database connection, before prawn was
loaded, so it missed this. Production was rolled back by hand to
768b10e1; this puts main back in step.
Assisted-by: Claude:opus-5-5
Move the production image to ruby:4.0.9-slim-bookworm (same distro, so
native gems build against the same libraries) and the dev shell to
nixpkgs' ruby_4_0, also 4.0.9, so the tests run on the Ruby that ships.
Ruby 4's Bundler 4 dropped `bundle install --without`; set
BUNDLE_WITHOUT instead, which Bundler 2 reads too. The lockfile stays
BUNDLED WITH 2.7.2 (nixpkgs' bundler; Bundler 4 switches to it).
Checked before merging: the image builds, keeps the test gems out, and
boots Puma 8.0.2 on Ruby 4.0.9 through to opening the database.
Rollback: revert this commit and redeploy (or re-tag the previous image).
Assisted-by: Claude:opus-5-5
- pg + sequel: connect to the storage stack's Postgres.
- prawn + prawn-table: render invoice PDFs.
- aws-sdk-s3: upload PDFs to MinIO and mint presigned download URLs.
Also pulls libpq-dev into the Docker build (for the pg gem) and the
postgresql client lib into the Nix dev shell.