Commit b6594c0
committed
Update Framework to Rails 7.1
Dockerfile:
* Replace `libvips42` with `libyaml-dev`
We have never used VIPS in Framework; this was mistakenly copied
from UCBEARS. We need libyaml-dev for the `psych` gem that Rails
7.1's required `irb` pulls in.
* Update Bundler to 2.7.2
Otherwise, we hit a lot of duplicate constant errors when bundling.
Gemfile:
* Remove the Gems that Rails explicitly requires now
We only had `drb` and `mutex_m` to avoid Ruby 3.3 deprecation
warnings.
* Update Good Job to at least 3.25
3.25 is the minimum for Rails 7.1 compatibility. We pin to lower
than 3.99.0 because we aren't ready to migrate to 4.x yet.
* Update Rails to 7.1.6
* Change `mingw mswin x64_mingw` to `windows`
This is part of the Bundler 2.7 update.
* Update database_cleaner to at least 2.1
This is the minimum version for Rails 7.1 compatibility.
* Update RSpec to 3.13
This is required for the `receive(…).with(…)` syntax to work
correctly on Rails 7.1.
* Update RSpec-Rails to 6.1
This update is necessary for Rails 7.1 compatibility and removes
multiple deprecation warnings.
* Update simplecov Gems
This is required for Rails 7.1 compatibility.
TindDownloadController:
* Add `_options` param to the cache fetch block
This is a new addition in Rails 7.1.
jobs:
* Don't `require 'request_mailer'`
Rails 7.1 no long adds autoloaded paths to `$LOAD_PATH`. The
documentation clearly states you should not be requiring files
autoloaded anyway, so stop doing that.
config:
* Updates for Rails 7.1 compatibility
Note that after this is live, rolling back to Rails 7.0 will
require invalidation of cache as the cache format on-disk has
changed with 7.1 defaults.
db:
* Update Good Job schema
This is required to update past 3.15.3.
spec:
* Completely rewrite async_job_context
Good Job has had a lot of internal rework, and the old way we were
doing this wasn't working. The new way uses a lot fewer "private"
APIs, and hopefully this new code will serve us well as we continue
to update.
Closes: AP-561
Ref: AP-2701 parent 1630dea commit b6594c0
File tree
37 files changed
+917
-440
lines changed- .idea
- app
- controllers
- jobs
- bin
- config
- environments
- initializers
- db
- migrate
- spec/support
37 files changed
+917
-440
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
| 32 | + | |
35 | 33 | | |
36 | 34 | | |
37 | | - | |
| 35 | + | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | | - | |
| 42 | + | |
45 | 43 | | |
46 | | - | |
| 44 | + | |
47 | 45 | | |
48 | | - | |
| 46 | + | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
| |||
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | | - | |
69 | | - | |
| 66 | + | |
| 67 | + | |
70 | 68 | | |
0 commit comments