Skip to content

Version 5.0.0 - #92

Merged
kigster merged 1 commit into
mainfrom
kig/version-5.0.0
Dec 2, 2026
Merged

kigster merged 1 commit into
mainfrom
kig/version-5.0.0

Conversation

@kigster

@kigster kigster commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

This pull request includes a set of updates across dependencies, configuration, and styling, as well as a version bump for the application. The most significant changes are updates to key gem versions, an application version increment, and a deployment configuration change.

Dependency updates:

  • Upgraded laser-cutter gem to version ~> 3.0, which introduces support for sloped boxes and all lid types.
  • Updated puma gem to ~> 7 and relaxed the rails gem constraint to ~> 8 to allow for future minor version updates.

Application versioning:

  • Incremented the application VERSION constant from 4.0.1 to 5.0.0 in lib/makeabox.rb to reflect significant changes.

Deployment configuration:

  • Changed the deployment user from 'ubuntu' to 'kig' in config/deploy.rb.

Styling:

  • Added a new CSS variable --error for error coloring in app/assets/stylesheets/tokens.css.

@kigster kigster self-assigned this Dec 2, 2026

@kigster kigster left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙁 This overlaps with #91. Both branch from 344b21f, and #92 is basically #91's first commit (6f741e5, laser-cutter 3.0 + Puma 7) plus the version bump, the deploy user, the looser Rails constraint and Bundler 4.1.1. Gemfile and Gemfile.lock auto-merge either way, but app/assets/stylesheets/tokens.css conflicts (same --error line, with and without its comment). Suggested order: merge #92, then rebase #91 and keep #91's commented --error line. Or drop the token from #92.
🙁 With laser-cutter pinned to ~> 3.0, the 2.0 fallback is dead code: BoxRequest.lids_supported?, the lidsSupported flag in home_controller.rb, the disabled lid options and the "needs laser-cutter 2.0.1" notes in _generator.html.haml and box_request.rb, plus the stale "2.0.0 and 2.0.1" comment in lib/makeabox/svg_renderer.rb. #91 removes most of it, so this only matters if #91 is delayed.
🙁 The deploy toolchain takes major bumps that CI never runs: net-ssh 7 → 8 (now pulls in the native openssl 4.0 gem), and Puma 6 → 7 on the old server. Run cap production deploy:check before the next deploy.
🙁 The PR body says this "introduces support for sloped boxes". The gem supports them, but the app does not until #91 lands. The footer will show v5.0.0 with no visible change.
👍 Moving BUNDLED WITH off 4.1.0.beta1 to the released 4.1.1 is a good catch.
🙁 bin/deploy still says the SSH key is for the "root" or "ubuntu" user. The config/deploy.rb change to kig is right (it matches config/deploy/production.rb and user_home /home/kig), so update that comment to match.

Comment thread Gemfile
gem 'newrelic_rpm'
gem 'propshaft'
gem 'puma', '~> 6'
gem 'puma', '~> 7'

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙁 Puma 7 deprecates the on_* hooks. config/puma.rb still calls on_restart, which Puma 7.2.4 aliases to before_restart and warns about (Puma.deprecate_method_change :on_restart). Rename it to before_restart so the deprecation does not become a boot failure in Puma 8. Also: the systemd/pumactl path on the old server is not covered by CI, so smoke-test a restart there.

Comment thread Gemfile
gem 'puma', '~> 7'
gem 'rack-timeout', require: 'rack/timeout/base'
gem 'rails', '~> 8.1'
gem 'rails', '~> 8'

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙁 '~> 8' means >= 8.0, < 9. It drops the 8.1 floor this app needs, and a plain bundle update can now take Rails 8.2+, whose minor releases tend to carry framework default and deprecation changes. '~> 8.1' (as #91 keeps it) still picks up 8.1.x patches like 8.1.4.1. If the goal is to opt into 8.2 later, that is one character to change when it happens.

Comment thread Gemfile
# Lids are merged but not on RubyGems yet; once 2.0.1 is released, go back to '~> 2.0', '>= 2.0.1'.
gem 'laser-cutter'
# 3.0 draws the sloped box (slope, front_height) and every lid.
gem 'laser-cutter', '~> 3.0'

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙁 Pinning ~> 3.0 makes BoxRequest.lids_supported? always true, so the 2.0 fallback (the lidsSupported flag, the disabled <option>s, the "needs laser-cutter 2.0.1" messages, and the stubbed spec at spec/models/box_request_spec.rb:61) is unreachable. #91 removes it. Fine to leave here if #91 follows right after, otherwise worth a cleanup.

Comment thread Gemfile.lock
net-smtp (0.5.2)
net-protocol
net-ssh (7.3.6)
net-ssh (8.2.0)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙁 net-ssh 7 → 8 is a major bump on the Capistrano path, and nothing in CI exercises it. It now requires the native openssl gem (4.0.2), which compiles against the local OpenSSL on whichever machine runs cap. Run bundle exec cap production deploy:check once before relying on it.

--beam: #ff5a2b; /* the laser */
--amber: #ffb53d; /* the accent: headings, edges, whatever is being edited */
--alarm: #ff7a6b;
--error: #ff2020;

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙁 --error is not used anywhere on this branch; its only consumer is in #91. It is also the one line that conflicts with #91, which adds the same token with a /* the error pill */ comment. Drop it here and let #91 own it, or copy #91's exact line so the merge is clean.

Comment thread lib/makeabox.rb
end

VERSION = '4.0.1'
VERSION = '5.0.0'

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙁 A major bump to 5.0.0 with no user-visible change: the footer will advertise v5.0.0 while the sloped box (the reason for 3.0) only arrives with #91. Consider landing both back to back so 5.0.0 means something on the site.

@kigster

kigster commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

✅✅✅✅✅ No 💩 findings, CI green (test, lint, e2e), merges cleanly into main. The 🙁 items don't block this PR. Merge it before #91, then rebase #91 and fix its one-line tokens.css conflict. Run cap production deploy:check before the next deploy (net-ssh 8, Puma 7).

@kigster
kigster merged commit 05ebfc0 into main Dec 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant