Skip to content

Commit 60c56cc

Browse files
committed
Update technology stack
- Update to Rails 8 and run `rails app:update` - Advise to install Node 22 - Improve dependabot - Remove sqlite production warning suppression as per rails/rails#50463
1 parent f86606d commit 60c56cc

20 files changed

+717
-452
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ updates:
1717
bundler:
1818
patterns:
1919
- "*"
20-
ignore:
21-
- dependency-name: sqlite3
22-
versions: ">= 2" # FIXME: Remove when rails/rails#51636 will be released
2320
- package-ecosystem: npm
2421
directory: /
2522
schedule:

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ source "https://rubygems.org"
22

33
ruby "3.4.3"
44

5-
gem "rails", "~> 7.2.0"
5+
gem "rails", "~> 8.0.2"
66
gem "sqlite3"
77
gem "puma"
88

Gemfile.lock

Lines changed: 77 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (7.2.2.1)
5-
actionpack (= 7.2.2.1)
6-
activesupport (= 7.2.2.1)
4+
actioncable (8.0.2)
5+
actionpack (= 8.0.2)
6+
activesupport (= 8.0.2)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
99
zeitwerk (~> 2.6)
10-
actionmailbox (7.2.2.1)
11-
actionpack (= 7.2.2.1)
12-
activejob (= 7.2.2.1)
13-
activerecord (= 7.2.2.1)
14-
activestorage (= 7.2.2.1)
15-
activesupport (= 7.2.2.1)
10+
actionmailbox (8.0.2)
11+
actionpack (= 8.0.2)
12+
activejob (= 8.0.2)
13+
activerecord (= 8.0.2)
14+
activestorage (= 8.0.2)
15+
activesupport (= 8.0.2)
1616
mail (>= 2.8.0)
17-
actionmailer (7.2.2.1)
18-
actionpack (= 7.2.2.1)
19-
actionview (= 7.2.2.1)
20-
activejob (= 7.2.2.1)
21-
activesupport (= 7.2.2.1)
17+
actionmailer (8.0.2)
18+
actionpack (= 8.0.2)
19+
actionview (= 8.0.2)
20+
activejob (= 8.0.2)
21+
activesupport (= 8.0.2)
2222
mail (>= 2.8.0)
2323
rails-dom-testing (~> 2.2)
24-
actionpack (7.2.2.1)
25-
actionview (= 7.2.2.1)
26-
activesupport (= 7.2.2.1)
24+
actionpack (8.0.2)
25+
actionview (= 8.0.2)
26+
activesupport (= 8.0.2)
2727
nokogiri (>= 1.8.5)
28-
racc
29-
rack (>= 2.2.4, < 3.2)
28+
rack (>= 2.2.4)
3029
rack-session (>= 1.0.1)
3130
rack-test (>= 0.6.3)
3231
rails-dom-testing (~> 2.2)
3332
rails-html-sanitizer (~> 1.6)
3433
useragent (~> 0.16)
35-
actiontext (7.2.2.1)
36-
actionpack (= 7.2.2.1)
37-
activerecord (= 7.2.2.1)
38-
activestorage (= 7.2.2.1)
39-
activesupport (= 7.2.2.1)
34+
actiontext (8.0.2)
35+
actionpack (= 8.0.2)
36+
activerecord (= 8.0.2)
37+
activestorage (= 8.0.2)
38+
activesupport (= 8.0.2)
4039
globalid (>= 0.6.0)
4140
nokogiri (>= 1.8.5)
42-
actionview (7.2.2.1)
43-
activesupport (= 7.2.2.1)
41+
actionview (8.0.2)
42+
activesupport (= 8.0.2)
4443
builder (~> 3.1)
4544
erubi (~> 1.11)
4645
rails-dom-testing (~> 2.2)
@@ -54,22 +53,22 @@ GEM
5453
kaminari (>= 1.2.1)
5554
railties (>= 7.0)
5655
ransack (>= 4.0)
57-
activejob (7.2.2.1)
58-
activesupport (= 7.2.2.1)
56+
activejob (8.0.2)
57+
activesupport (= 8.0.2)
5958
globalid (>= 0.3.6)
60-
activemodel (7.2.2.1)
61-
activesupport (= 7.2.2.1)
62-
activerecord (7.2.2.1)
63-
activemodel (= 7.2.2.1)
64-
activesupport (= 7.2.2.1)
59+
activemodel (8.0.2)
60+
activesupport (= 8.0.2)
61+
activerecord (8.0.2)
62+
activemodel (= 8.0.2)
63+
activesupport (= 8.0.2)
6564
timeout (>= 0.4.0)
66-
activestorage (7.2.2.1)
67-
actionpack (= 7.2.2.1)
68-
activejob (= 7.2.2.1)
69-
activerecord (= 7.2.2.1)
70-
activesupport (= 7.2.2.1)
65+
activestorage (8.0.2)
66+
actionpack (= 8.0.2)
67+
activejob (= 8.0.2)
68+
activerecord (= 8.0.2)
69+
activesupport (= 8.0.2)
7170
marcel (~> 1.0)
72-
activesupport (7.2.2.1)
71+
activesupport (8.0.2)
7372
base64
7473
benchmark (>= 0.3)
7574
bigdecimal
@@ -81,14 +80,15 @@ GEM
8180
minitest (>= 5.1)
8281
securerandom (>= 0.3)
8382
tzinfo (~> 2.0, >= 2.0.5)
83+
uri (>= 0.13.1)
8484
addressable (2.8.7)
8585
public_suffix (>= 2.0.2, < 7.0)
8686
arbre (2.2.0)
8787
activesupport (>= 7.0)
88-
base64 (0.2.0)
88+
base64 (0.3.0)
8989
bcrypt (3.1.20)
90-
benchmark (0.4.0)
91-
bigdecimal (3.1.9)
90+
benchmark (0.4.1)
91+
bigdecimal (3.2.1)
9292
builder (3.3.0)
9393
capybara (3.40.0)
9494
addressable
@@ -104,7 +104,7 @@ GEM
104104
crass (1.0.6)
105105
cssbundling-rails (1.4.3)
106106
railties (>= 6.0.0)
107-
csv (3.3.4)
107+
csv (3.3.5)
108108
date (3.4.1)
109109
debug (1.10.0)
110110
irb (~> 1.10)
@@ -116,7 +116,8 @@ GEM
116116
responders
117117
warden (~> 1.2.3)
118118
docile (1.4.1)
119-
drb (2.2.1)
119+
drb (2.2.3)
120+
erb (5.0.1)
120121
erubi (1.13.1)
121122
formtastic (5.0.0)
122123
actionpack (>= 6.0.0)
@@ -155,7 +156,7 @@ GEM
155156
kaminari-core (= 1.2.2)
156157
kaminari-core (1.2.2)
157158
logger (1.7.0)
158-
loofah (2.24.0)
159+
loofah (2.24.1)
159160
crass (~> 1.0.2)
160161
nokogiri (>= 1.12.0)
161162
mail (2.8.1)
@@ -166,9 +167,9 @@ GEM
166167
marcel (1.0.4)
167168
matrix (0.4.2)
168169
mini_mime (1.1.5)
169-
mini_portile2 (2.8.8)
170+
mini_portile2 (2.8.9)
170171
minitest (5.25.5)
171-
net-imap (0.5.7)
172+
net-imap (0.5.8)
172173
date
173174
net-protocol
174175
net-pop (0.1.2)
@@ -189,56 +190,57 @@ GEM
189190
pp (0.6.2)
190191
prettyprint
191192
prettyprint (0.2.0)
192-
psych (5.2.3)
193+
psych (5.2.6)
193194
date
194195
stringio
195-
public_suffix (6.0.1)
196+
public_suffix (6.0.2)
196197
puma (6.6.0)
197198
nio4r (~> 2.0)
198199
racc (1.8.1)
199-
rack (3.1.14)
200+
rack (3.1.15)
200201
rack-session (2.1.1)
201202
base64 (>= 0.1.0)
202203
rack (>= 3.0.0)
203204
rack-test (2.2.0)
204205
rack (>= 1.3)
205206
rackup (2.2.1)
206207
rack (>= 3)
207-
rails (7.2.2.1)
208-
actioncable (= 7.2.2.1)
209-
actionmailbox (= 7.2.2.1)
210-
actionmailer (= 7.2.2.1)
211-
actionpack (= 7.2.2.1)
212-
actiontext (= 7.2.2.1)
213-
actionview (= 7.2.2.1)
214-
activejob (= 7.2.2.1)
215-
activemodel (= 7.2.2.1)
216-
activerecord (= 7.2.2.1)
217-
activestorage (= 7.2.2.1)
218-
activesupport (= 7.2.2.1)
208+
rails (8.0.2)
209+
actioncable (= 8.0.2)
210+
actionmailbox (= 8.0.2)
211+
actionmailer (= 8.0.2)
212+
actionpack (= 8.0.2)
213+
actiontext (= 8.0.2)
214+
actionview (= 8.0.2)
215+
activejob (= 8.0.2)
216+
activemodel (= 8.0.2)
217+
activerecord (= 8.0.2)
218+
activestorage (= 8.0.2)
219+
activesupport (= 8.0.2)
219220
bundler (>= 1.15.0)
220-
railties (= 7.2.2.1)
221-
rails-dom-testing (2.2.0)
221+
railties (= 8.0.2)
222+
rails-dom-testing (2.3.0)
222223
activesupport (>= 5.0.0)
223224
minitest
224225
nokogiri (>= 1.6)
225226
rails-html-sanitizer (1.6.2)
226227
loofah (~> 2.21)
227228
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
228-
railties (7.2.2.1)
229-
actionpack (= 7.2.2.1)
230-
activesupport (= 7.2.2.1)
229+
railties (8.0.2)
230+
actionpack (= 8.0.2)
231+
activesupport (= 8.0.2)
231232
irb (~> 1.13)
232233
rackup (>= 1.0.0)
233234
rake (>= 12.2)
234235
thor (~> 1.0, >= 1.2.2)
235236
zeitwerk (~> 2.6)
236-
rake (13.2.1)
237+
rake (13.3.0)
237238
ransack (4.3.0)
238239
activerecord (>= 6.1.5)
239240
activesupport (>= 6.1.5)
240241
i18n
241-
rdoc (6.13.1)
242+
rdoc (6.14.0)
243+
erb
242244
psych (>= 4.0.0)
243245
regexp_parser (2.10.0)
244246
reline (0.6.1)
@@ -249,7 +251,7 @@ GEM
249251
rexml (3.4.1)
250252
rubyzip (2.4.1)
251253
securerandom (0.4.1)
252-
selenium-webdriver (4.31.0)
254+
selenium-webdriver (4.33.0)
253255
base64 (~> 0.2)
254256
logger (~> 1.4)
255257
rexml (~> 3.2, >= 3.2.5)
@@ -281,17 +283,18 @@ GEM
281283
timeout (0.4.3)
282284
tzinfo (2.0.6)
283285
concurrent-ruby (~> 1.0)
286+
uri (1.0.3)
284287
useragent (0.16.11)
285288
warden (1.2.9)
286289
rack (>= 2.0.9)
287290
websocket (1.2.11)
288-
websocket-driver (0.7.7)
291+
websocket-driver (0.8.0)
289292
base64
290293
websocket-extensions (>= 0.1.0)
291294
websocket-extensions (0.1.5)
292295
xpath (3.2.0)
293296
nokogiri (~> 1.8)
294-
zeitwerk (2.7.2)
297+
zeitwerk (2.7.3)
295298

296299
PLATFORMS
297300
arm64-darwin-22
@@ -307,7 +310,7 @@ DEPENDENCIES
307310
devise
308311
importmap-rails
309312
puma
310-
rails (~> 7.2.0)
313+
rails (~> 8.0.2)
311314
selenium-webdriver
312315
simplecov
313316
simplecov-cobertura
@@ -319,4 +322,4 @@ RUBY VERSION
319322
ruby 3.4.3p32
320323

321324
BUNDLED WITH
322-
2.6.8
325+
2.6.9

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://activeadmin-demo.onrender.com
88

99
- Clone this repository
1010
- Install Ruby 3 with [rbenv](https://github.com/rbenv/rbenv)
11-
- Install Node 20 with [nodenv](https://github.com/nodenv/nodenv)
11+
- Install Node 22 with [nodenv](https://github.com/nodenv/nodenv)
1212
- `corepack enable`
1313
- `bundle install`
1414
- `yarn install`

bin/dev

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
1-
#!/usr/bin/env sh
2-
3-
if ! gem list foreman -i --silent; then
4-
echo "Installing foreman..."
5-
gem install foreman
6-
fi
7-
8-
bin/rails db:migrate
9-
10-
exec foreman start -f Procfile.dev "$@"
1+
#!/usr/bin/env ruby
2+
exec "./bin/rails", "server", *ARGV

bin/setup

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
require "fileutils"
33

44
APP_ROOT = File.expand_path("..", __dir__)
5-
APP_NAME = "active-admin-demo"
65

76
def system!(*args)
87
system(*args, exception: true)
@@ -14,7 +13,6 @@ FileUtils.chdir APP_ROOT do
1413
# Add necessary setup steps to this file.
1514

1615
puts "== Installing dependencies =="
17-
system! "gem install bundler --conservative"
1816
system("bundle check") || system!("bundle install")
1917

2018
# puts "\n== Copying sample files =="
@@ -28,10 +26,9 @@ FileUtils.chdir APP_ROOT do
2826
puts "\n== Removing old logs and tempfiles =="
2927
system! "bin/rails log:clear tmp:clear"
3028

31-
puts "\n== Restarting application server =="
32-
system! "bin/rails restart"
33-
34-
# puts "\n== Configuring puma-dev =="
35-
# system "ln -nfs #{APP_ROOT} ~/.puma-dev/#{APP_NAME}"
36-
# system "curl -Is https://#{APP_NAME}.test/up | head -n 1"
29+
unless ARGV.include?("--skip-server")
30+
puts "\n== Starting development server =="
31+
STDOUT.flush # flush the output before exec(2) so that it displays
32+
exec "bin/dev"
33+
end
3734
end

config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
module ActiveAdminDemo
2222
class Application < Rails::Application
2323
# Initialize configuration defaults for originally generated Rails version.
24-
config.load_defaults 7.2
24+
config.load_defaults 8.0
2525

2626
# Please, add to the `ignore` list any other `lib` subdirectories that do
2727
# not contain `.rb` files, or that should not be reloaded or eager loaded.

0 commit comments

Comments
 (0)