Skip to content

Commit f5fa82e

Browse files
committed
Migration à rails 7.1
1 parent dadd54f commit f5fa82e

File tree

135 files changed

+1251
-1345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+1251
-1345
lines changed

Gemfile.lock

Lines changed: 103 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -54,72 +54,80 @@ GIT
5454
GEM
5555
remote: https://rubygems.org/
5656
specs:
57-
actioncable (7.0.8)
58-
actionpack (= 7.0.8)
59-
activesupport (= 7.0.8)
57+
actioncable (7.1.0)
58+
actionpack (= 7.1.0)
59+
activesupport (= 7.1.0)
6060
nio4r (~> 2.0)
6161
websocket-driver (>= 0.6.1)
62-
actionmailbox (7.0.8)
63-
actionpack (= 7.0.8)
64-
activejob (= 7.0.8)
65-
activerecord (= 7.0.8)
66-
activestorage (= 7.0.8)
67-
activesupport (= 7.0.8)
62+
zeitwerk (~> 2.6)
63+
actionmailbox (7.1.0)
64+
actionpack (= 7.1.0)
65+
activejob (= 7.1.0)
66+
activerecord (= 7.1.0)
67+
activestorage (= 7.1.0)
68+
activesupport (= 7.1.0)
6869
mail (>= 2.7.1)
6970
net-imap
7071
net-pop
7172
net-smtp
72-
actionmailer (7.0.8)
73-
actionpack (= 7.0.8)
74-
actionview (= 7.0.8)
75-
activejob (= 7.0.8)
76-
activesupport (= 7.0.8)
73+
actionmailer (7.1.0)
74+
actionpack (= 7.1.0)
75+
actionview (= 7.1.0)
76+
activejob (= 7.1.0)
77+
activesupport (= 7.1.0)
7778
mail (~> 2.5, >= 2.5.4)
7879
net-imap
7980
net-pop
8081
net-smtp
81-
rails-dom-testing (~> 2.0)
82-
actionpack (7.0.8)
83-
actionview (= 7.0.8)
84-
activesupport (= 7.0.8)
85-
rack (~> 2.0, >= 2.2.4)
82+
rails-dom-testing (~> 2.2)
83+
actionpack (7.1.0)
84+
actionview (= 7.1.0)
85+
activesupport (= 7.1.0)
86+
nokogiri (>= 1.8.5)
87+
rack (>= 2.2.4)
88+
rack-session (>= 1.0.1)
8689
rack-test (>= 0.6.3)
87-
rails-dom-testing (~> 2.0)
88-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
90+
rails-dom-testing (~> 2.2)
91+
rails-html-sanitizer (~> 1.6)
8992
actionpack-page_caching (1.2.4)
9093
actionpack (>= 4.0.0)
91-
actiontext (7.0.8)
92-
actionpack (= 7.0.8)
93-
activerecord (= 7.0.8)
94-
activestorage (= 7.0.8)
95-
activesupport (= 7.0.8)
94+
actiontext (7.1.0)
95+
actionpack (= 7.1.0)
96+
activerecord (= 7.1.0)
97+
activestorage (= 7.1.0)
98+
activesupport (= 7.1.0)
9699
globalid (>= 0.6.0)
97100
nokogiri (>= 1.8.5)
98-
actionview (7.0.8)
99-
activesupport (= 7.0.8)
101+
actionview (7.1.0)
102+
activesupport (= 7.1.0)
100103
builder (~> 3.1)
101-
erubi (~> 1.4)
102-
rails-dom-testing (~> 2.0)
103-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
104-
activejob (7.0.8)
105-
activesupport (= 7.0.8)
104+
erubi (~> 1.11)
105+
rails-dom-testing (~> 2.2)
106+
rails-html-sanitizer (~> 1.6)
107+
activejob (7.1.0)
108+
activesupport (= 7.1.0)
106109
globalid (>= 0.3.6)
107-
activemodel (7.0.8)
108-
activesupport (= 7.0.8)
109-
activerecord (7.0.8)
110-
activemodel (= 7.0.8)
111-
activesupport (= 7.0.8)
112-
activestorage (7.0.8)
113-
actionpack (= 7.0.8)
114-
activejob (= 7.0.8)
115-
activerecord (= 7.0.8)
116-
activesupport (= 7.0.8)
110+
activemodel (7.1.0)
111+
activesupport (= 7.1.0)
112+
activerecord (7.1.0)
113+
activemodel (= 7.1.0)
114+
activesupport (= 7.1.0)
115+
timeout (>= 0.4.0)
116+
activestorage (7.1.0)
117+
actionpack (= 7.1.0)
118+
activejob (= 7.1.0)
119+
activerecord (= 7.1.0)
120+
activesupport (= 7.1.0)
117121
marcel (~> 1.0)
118-
mini_mime (>= 1.1.0)
119-
activesupport (7.0.8)
122+
activesupport (7.1.0)
123+
base64
124+
bigdecimal
120125
concurrent-ruby (~> 1.0, >= 1.0.2)
126+
connection_pool (>= 2.2.5)
127+
drb
121128
i18n (>= 1.6, < 2)
122129
minitest (>= 5.1)
130+
mutex_m
123131
tzinfo (~> 2.0)
124132
acts_as_list (0.9.19)
125133
activerecord (>= 3.0)
@@ -129,11 +137,13 @@ GEM
129137
activerecord (>= 3.2, < 8.0)
130138
rake (>= 10.4, < 14.0)
131139
ansi (1.5.0)
140+
base64 (0.1.1)
132141
bcrypt (3.1.19)
133142
better_errors (2.10.1)
134143
erubi (>= 1.0.0)
135144
rack (>= 0.9.0)
136145
rouge (>= 1.0.0)
146+
bigdecimal (3.1.4)
137147
bindex (0.8.1)
138148
binding_of_caller (1.0.0)
139149
debug_inspector (>= 0.0.1)
@@ -183,6 +193,8 @@ GEM
183193
docile (1.4.0)
184194
doorkeeper (5.6.6)
185195
railties (>= 5)
196+
drb (2.1.1)
197+
ruby2_keywords
186198
erubi (1.12.0)
187199
escape_utils (1.3.0)
188200
execjs (2.9.1)
@@ -207,11 +219,15 @@ GEM
207219
htmlentities (4.3.4)
208220
i18n (1.14.1)
209221
concurrent-ruby (~> 1.0)
210-
inherited_resources (1.13.1)
211-
actionpack (>= 5.2, < 7.1)
212-
has_scope (~> 0.6)
213-
railties (>= 5.2, < 7.1)
214-
responders (>= 2, < 4)
222+
inherited_resources (1.14.0)
223+
actionpack (>= 6.0)
224+
has_scope (>= 0.6)
225+
railties (>= 6.0)
226+
responders (>= 2)
227+
io-console (0.6.0)
228+
irb (1.8.1)
229+
rdoc
230+
reline (>= 0.3.8)
215231
jquery-rails (4.6.0)
216232
rails-dom-testing (>= 1, < 3)
217233
railties (>= 4.2.0)
@@ -255,8 +271,9 @@ GEM
255271
boson
256272
msgpack (1.7.2)
257273
multi_json (1.15.0)
274+
mutex_m (0.1.2)
258275
mysql2 (0.5.5)
259-
net-imap (0.3.7)
276+
net-imap (0.4.1)
260277
date
261278
net-protocol
262279
net-pop (0.1.2)
@@ -285,60 +302,73 @@ GEM
285302
method_source (~> 1.0)
286303
pry-rails (0.3.9)
287304
pry (>= 0.10.4)
305+
psych (5.1.0)
306+
stringio
288307
public_suffix (5.0.3)
289308
puma (6.4.0)
290309
nio4r (~> 2.0)
291310
pygments.rb (1.2.1)
292311
multi_json (>= 1.0.0)
293312
racc (1.7.1)
294313
rack (2.2.8)
314+
rack-session (1.0.1)
315+
rack (< 3)
295316
rack-test (2.1.0)
296317
rack (>= 1.3)
297-
rails (7.0.8)
298-
actioncable (= 7.0.8)
299-
actionmailbox (= 7.0.8)
300-
actionmailer (= 7.0.8)
301-
actionpack (= 7.0.8)
302-
actiontext (= 7.0.8)
303-
actionview (= 7.0.8)
304-
activejob (= 7.0.8)
305-
activemodel (= 7.0.8)
306-
activerecord (= 7.0.8)
307-
activestorage (= 7.0.8)
308-
activesupport (= 7.0.8)
318+
rackup (1.0.0)
319+
rack (< 3)
320+
webrick
321+
rails (7.1.0)
322+
actioncable (= 7.1.0)
323+
actionmailbox (= 7.1.0)
324+
actionmailer (= 7.1.0)
325+
actionpack (= 7.1.0)
326+
actiontext (= 7.1.0)
327+
actionview (= 7.1.0)
328+
activejob (= 7.1.0)
329+
activemodel (= 7.1.0)
330+
activerecord (= 7.1.0)
331+
activestorage (= 7.1.0)
332+
activesupport (= 7.1.0)
309333
bundler (>= 1.15.0)
310-
railties (= 7.0.8)
334+
railties (= 7.1.0)
311335
rails-dom-testing (2.2.0)
312336
activesupport (>= 5.0.0)
313337
minitest
314338
nokogiri (>= 1.6)
315339
rails-html-sanitizer (1.6.0)
316340
loofah (~> 2.21)
317341
nokogiri (~> 1.14)
318-
railties (7.0.8)
319-
actionpack (= 7.0.8)
320-
activesupport (= 7.0.8)
321-
method_source
342+
railties (7.1.0)
343+
actionpack (= 7.1.0)
344+
activesupport (= 7.1.0)
345+
irb
346+
rackup (>= 1.0.0)
322347
rake (>= 12.2)
323-
thor (~> 1.0)
324-
zeitwerk (~> 2.5)
348+
thor (~> 1.0, >= 1.2.2)
349+
zeitwerk (~> 2.6)
325350
raindrops (0.20.1)
326351
rake (13.0.6)
327352
rb-fsevent (0.11.2)
328353
rb-inotify (0.10.1)
329354
ffi (~> 1.0)
355+
rdoc (6.5.0)
356+
psych (>= 4.0.0)
330357
redcarpet (3.6.0)
331358
redis (5.0.7)
332359
redis-client (>= 0.9.0)
333360
redis-client (0.17.0)
334361
connection_pool
335362
regexp_parser (2.8.1)
363+
reline (0.3.9)
364+
io-console (~> 0.5)
336365
responders (3.1.0)
337366
actionpack (>= 5.2)
338367
railties (>= 5.2)
339368
rexml (3.2.6)
340369
rinku (2.0.6)
341370
rouge (4.1.3)
371+
ruby2_keywords (0.0.5)
342372
rubyzip (2.3.2)
343373
sanitize (5.2.3)
344374
crass (~> 1.0.2)
@@ -355,7 +385,7 @@ GEM
355385
sprockets (>= 2.8, < 4.0)
356386
sprockets-rails (>= 2.0, < 4.0)
357387
tilt (>= 1.1, < 3)
358-
selenium-webdriver (4.13.1)
388+
selenium-webdriver (4.14.0)
359389
rexml (~> 3.2, >= 3.2.5)
360390
rubyzip (>= 1.2.2, < 3.0)
361391
websocket (~> 1.0)
@@ -382,6 +412,7 @@ GEM
382412
state_machines-activerecord (0.9.0)
383413
activerecord (>= 6.0)
384414
state_machines-activemodel (>= 0.9.0)
415+
stringio (3.0.8)
385416
sushi (0.0.4)
386417
temple (0.10.3)
387418
thor (1.2.2)
@@ -401,6 +432,7 @@ GEM
401432
activemodel (>= 6.0.0)
402433
bindex (>= 0.4.0)
403434
railties (>= 6.0.0)
435+
webrick (1.8.1)
404436
websocket (1.2.10)
405437
websocket-driver (0.7.6)
406438
websocket-extensions (>= 0.1.0)

bin/rails

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env ruby
2-
APP_PATH = File.expand_path('../config/application', __dir__)
3-
require_relative '../config/boot'
4-
require 'rails/commands'
2+
APP_PATH = File.expand_path("../config/application", __dir__)
3+
require_relative "../config/boot"
4+
require "rails/commands"

bin/rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env ruby
2-
require_relative '../config/boot'
3-
require 'rake'
2+
require_relative "../config/boot"
3+
require "rake"
44
Rake.application.run

bin/setup

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,35 @@
11
#!/usr/bin/env ruby
2-
require 'fileutils'
2+
require "fileutils"
33

44
# path to your application root.
5-
APP_ROOT = File.expand_path('..', __dir__)
5+
APP_ROOT = File.expand_path("..", __dir__)
66

77
def system!(*args)
8-
system(*args) || abort("\n== Command #{args} failed ==")
8+
system(*args, exception: true)
99
end
1010

1111
FileUtils.chdir APP_ROOT do
1212
# This script is a way to set up or update your development environment automatically.
1313
# This script is idempotent, so that you can run it at any time and get an expectable outcome.
1414
# Add necessary setup steps to this file.
1515

16-
puts '== Installing dependencies =='
17-
system! 'gem install bundler --conservative'
18-
system('bundle check') || system!('bundle install')
16+
puts "== Installing dependencies =="
17+
system! "gem install bundler --conservative"
18+
system("bundle check") || system!("bundle install")
1919

2020
puts "\n== Installing npm modules =="
21-
system! 'npm install'
21+
system! "npm install"
2222

2323
puts "\n== Copying sample files =="
24-
unless File.exist?('config/database.yml')
25-
FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
26-
end
27-
unless File.exist?('config/secrets.yml')
28-
FileUtils.cp 'config/secrets.yml.sample', 'config/secrets.yml'
29-
end
24+
FileUtils.cp "config/database.yml.sample", "config/database.yml" unless File.exist?("config/database.yml")
25+
FileUtils.cp "config/secrets.yml.sample", "config/secrets.yml" unless File.exist?("config/secrets.yml")
3026

3127
puts "\n== Preparing database =="
32-
system! 'bin/rails db:prepare'
28+
system! "bin/rails db:prepare"
3329

3430
puts "\n== Removing old logs and tempfiles =="
35-
system! 'bin/rails log:clear tmp:clear'
31+
system! "bin/rails log:clear tmp:clear"
3632

3733
puts "\n== Restarting application server =="
38-
system! 'bin/rails restart'
34+
system! "bin/rails restart"
3935
end

0 commit comments

Comments
 (0)