Revert "Ruby 4.0.9, in the image and the flake"
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
This commit is contained in:
parent
7b344540fe
commit
c56469f323
4 changed files with 7 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM ruby:4.0.9-slim-bookworm
|
||||
FROM ruby:3.4.12-slim-bookworm
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
|
|
@ -17,8 +17,7 @@ ENV PATH="${GEM_HOME}/bin:${PATH}"
|
|||
|
||||
COPY --chown=asxpio Gemfile Gemfile.lock* ./
|
||||
ENV BUNDLE_FROZEN=true
|
||||
ENV BUNDLE_WITHOUT=development:test
|
||||
RUN bundle install
|
||||
RUN bundle install --without development:test
|
||||
|
||||
COPY --chown=asxpio . .
|
||||
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ DEPENDENCIES
|
|||
sinatra-contrib (~> 4.2)
|
||||
|
||||
RUBY VERSION
|
||||
ruby 4.0.9p0
|
||||
ruby 3.4.9p82
|
||||
|
||||
BUNDLED WITH
|
||||
2.7.2
|
||||
|
|
|
|||
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1794386569,
|
||||
"narHash": "sha256-x9sADJvoVG0L6RejZB+/BB4YiGZFBZrfTlhF4uBq1tQ=",
|
||||
"lastModified": 1777578337,
|
||||
"narHash": "sha256-Ad49moKWeXtKBJNy2ebiTQUEgdLyvGmTeykAQ9xM+Z4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d4f25a3e562008648d45bcf2d70bcc7422cad84e",
|
||||
"rev": "15f4ee454b1dce334612fa6843b3e05cf546efab",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
{
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.ruby_4_0
|
||||
pkgs.ruby_3_4
|
||||
pkgs.bundler
|
||||
pkgs.openssl
|
||||
pkgs.zlib
|
||||
|
|
|
|||
Loading…
Reference in a new issue