Repository navigation
Version 5.0.0 - #92
Conversation
kigster
left a comment
There was a problem hiding this comment.
🙁 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.
| gem 'newrelic_rpm' | ||
| gem 'propshaft' | ||
| gem 'puma', '~> 6' | ||
| gem 'puma', '~> 7' |
There was a problem hiding this comment.
🙁 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.
| gem 'puma', '~> 7' | ||
| gem 'rack-timeout', require: 'rack/timeout/base' | ||
| gem 'rails', '~> 8.1' | ||
| gem 'rails', '~> 8' |
There was a problem hiding this comment.
🙁 '~> 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.
| # 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' |
There was a problem hiding this comment.
🙁 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.
| net-smtp (0.5.2) | ||
| net-protocol | ||
| net-ssh (7.3.6) | ||
| net-ssh (8.2.0) |
There was a problem hiding this comment.
🙁 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; |
There was a problem hiding this comment.
| end | ||
|
|
||
| VERSION = '4.0.1' | ||
| VERSION = '5.0.0' |
There was a problem hiding this comment.
🙁 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.
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:
laser-cuttergem to version~> 3.0, which introduces support for sloped boxes and all lid types.pumagem to~> 7and relaxed therailsgem constraint to~> 8to allow for future minor version updates.Application versioning:
VERSIONconstant from4.0.1to5.0.0inlib/makeabox.rbto reflect significant changes.Deployment configuration:
'ubuntu'to'kig'inconfig/deploy.rb.Styling:
--errorfor error coloring inapp/assets/stylesheets/tokens.css.