Upgrade ruby 3.2.2 to 3.4.3 and rails 7 to 8

This commit is contained in:
Jesse C. Fisher 2025-04-24 03:49:24 -07:00 committed by icwizardmonke
parent 0e09bded3f
commit ef3cffb107
8 changed files with 265 additions and 238 deletions

View File

@ -1 +1 @@
3.2.2 3.4.3

13
Gemfile
View File

@ -1,8 +1,8 @@
source 'https://rubygems.org' source 'https://rubygems.org'
ruby '3.2.2' ruby '3.4.3'
gem 'rails', '~> 7.0' gem 'rails', '~> 8.0'
# TODO Upgrade sprockets gem 'redis' #, '~> 4.0'
gem 'redis', '~> 4.0' # gem 'bootsnap'
gem 'sprockets' #, '~> 3.7' gem 'sprockets' #, '~> 3.7'
gem 'sass-rails' #, '~> 4.0.3' gem 'sass-rails' #, '~> 4.0.3'
# gem 'uglifier' #, '>= 1.3.0' # gem 'uglifier' #, '>= 1.3.0'
@ -17,7 +17,7 @@ gem 'devise_invitable'
gem 'haml-rails' gem 'haml-rails'
gem 'high_voltage' gem 'high_voltage'
gem 'pg' gem 'pg'
gem 'puma', '6' gem 'puma' #, '6'
gem 'pundit' gem 'pundit'
gem 'simple_form' gem 'simple_form'
gem 'dotenv-rails' gem 'dotenv-rails'
@ -61,7 +61,8 @@ group :development do
gem 'guard-ctags-bundler' gem 'guard-ctags-bundler'
end end
group :development, :test do group :development, :test do
gem 'factory_girl_rails' # todo upgrade to factory_bot
# gem 'factory_girl_rails'
gem 'faker' gem 'faker'
gem 'pry-rails' gem 'pry-rails'
gem 'pry-rescue' gem 'pry-rescue'

View File

@ -8,113 +8,111 @@ GIT
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actioncable (7.1.2) actioncable (8.0.2)
actionpack (= 7.1.2) actionpack (= 8.0.2)
activesupport (= 7.1.2) activesupport (= 8.0.2)
nio4r (~> 2.0) nio4r (~> 2.0)
websocket-driver (>= 0.6.1) websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6) zeitwerk (~> 2.6)
actionmailbox (7.1.2) actionmailbox (8.0.2)
actionpack (= 7.1.2) actionpack (= 8.0.2)
activejob (= 7.1.2) activejob (= 8.0.2)
activerecord (= 7.1.2) activerecord (= 8.0.2)
activestorage (= 7.1.2) activestorage (= 8.0.2)
activesupport (= 7.1.2) activesupport (= 8.0.2)
mail (>= 2.7.1) mail (>= 2.8.0)
net-imap actionmailer (8.0.2)
net-pop actionpack (= 8.0.2)
net-smtp actionview (= 8.0.2)
actionmailer (7.1.2) activejob (= 8.0.2)
actionpack (= 7.1.2) activesupport (= 8.0.2)
actionview (= 7.1.2) mail (>= 2.8.0)
activejob (= 7.1.2)
activesupport (= 7.1.2)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
rails-dom-testing (~> 2.2) rails-dom-testing (~> 2.2)
actionpack (7.1.2) actionpack (8.0.2)
actionview (= 7.1.2) actionview (= 8.0.2)
activesupport (= 7.1.2) activesupport (= 8.0.2)
nokogiri (>= 1.8.5) nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4) rack (>= 2.2.4)
rack-session (>= 1.0.1) rack-session (>= 1.0.1)
rack-test (>= 0.6.3) rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2) rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6) rails-html-sanitizer (~> 1.6)
actiontext (7.1.2) useragent (~> 0.16)
actionpack (= 7.1.2) actiontext (8.0.2)
activerecord (= 7.1.2) actionpack (= 8.0.2)
activestorage (= 7.1.2) activerecord (= 8.0.2)
activesupport (= 7.1.2) activestorage (= 8.0.2)
activesupport (= 8.0.2)
globalid (>= 0.6.0) globalid (>= 0.6.0)
nokogiri (>= 1.8.5) nokogiri (>= 1.8.5)
actionview (7.1.2) actionview (8.0.2)
activesupport (= 7.1.2) activesupport (= 8.0.2)
builder (~> 3.1) builder (~> 3.1)
erubi (~> 1.11) erubi (~> 1.11)
rails-dom-testing (~> 2.2) rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6) rails-html-sanitizer (~> 1.6)
activejob (7.1.2) activejob (8.0.2)
activesupport (= 7.1.2) activesupport (= 8.0.2)
globalid (>= 0.3.6) globalid (>= 0.3.6)
activemodel (7.1.2) activemodel (8.0.2)
activesupport (= 7.1.2) activesupport (= 8.0.2)
activerecord (7.1.2) activerecord (8.0.2)
activemodel (= 7.1.2) activemodel (= 8.0.2)
activesupport (= 7.1.2) activesupport (= 8.0.2)
timeout (>= 0.4.0) timeout (>= 0.4.0)
activestorage (7.1.2) activestorage (8.0.2)
actionpack (= 7.1.2) actionpack (= 8.0.2)
activejob (= 7.1.2) activejob (= 8.0.2)
activerecord (= 7.1.2) activerecord (= 8.0.2)
activesupport (= 7.1.2) activesupport (= 8.0.2)
marcel (~> 1.0) marcel (~> 1.0)
activesupport (7.1.2) activesupport (8.0.2)
base64 base64
benchmark (>= 0.3)
bigdecimal bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2) concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5) connection_pool (>= 2.2.5)
drb drb
i18n (>= 1.6, < 2) i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1) minitest (>= 5.1)
mutex_m securerandom (>= 0.3)
tzinfo (~> 2.0) tzinfo (~> 2.0, >= 2.0.5)
addressable (2.8.5) uri (>= 0.13.1)
public_suffix (>= 2.0.2, < 6.0) addressable (2.8.7)
airbrussh (1.5.0) public_suffix (>= 2.0.2, < 7.0)
airbrussh (1.5.3)
sshkit (>= 1.6.1, != 1.7.0) sshkit (>= 1.6.1, != 1.7.0)
ast (2.4.2) ast (2.4.3)
babel-source (5.8.35) babel-source (5.8.35)
babel-transpiler (0.7.0) babel-transpiler (0.7.0)
babel-source (>= 4.0, < 6) babel-source (>= 4.0, < 6)
execjs (~> 2.0) execjs (~> 2.0)
base64 (0.2.0) base64 (0.2.0)
bcrypt (3.1.20) bcrypt (3.1.20)
bcrypt_pbkdf (1.1.0) bcrypt_pbkdf (1.1.1)
benchmark (0.4.0)
better_errors (2.10.1) better_errors (2.10.1)
erubi (>= 1.0.0) erubi (>= 1.0.0)
rack (>= 0.9.0) rack (>= 0.9.0)
rouge (>= 1.0.0) rouge (>= 1.0.0)
bigdecimal (3.1.4) bigdecimal (3.1.9)
binding_of_caller (1.0.0) binding_of_caller (1.0.1)
debug_inspector (>= 0.0.1) debug_inspector (>= 1.2.0)
builder (3.2.4) builder (3.3.0)
capistrano (3.18.0) capistrano (3.19.2)
airbrussh (>= 1.0.0) airbrussh (>= 1.0.0)
i18n i18n
rake (>= 10.0.0) rake (>= 10.0.0)
sshkit (>= 1.9.0) sshkit (>= 1.9.0)
capistrano-bundler (2.1.0) capistrano-bundler (2.1.1)
capistrano (~> 3.1) capistrano (~> 3.1)
capistrano-db-tasks (0.6) capistrano-db-tasks (0.6)
capistrano (>= 3.0.0) capistrano (>= 3.0.0)
capistrano-postgresql (6.2.0) capistrano-postgresql (6.2.0)
capistrano (>= 3.0) capistrano (>= 3.0)
sshkit (>= 1.17.0) sshkit (>= 1.17.0)
capistrano-rails (1.6.3) capistrano-rails (1.7.0)
capistrano (~> 3.1) capistrano (~> 3.1)
capistrano-bundler (>= 1.1, < 3) capistrano-bundler (>= 1.1, < 3)
capistrano-rails-console (2.3.0) capistrano-rails-console (2.3.0)
@ -123,15 +121,15 @@ GEM
capistrano-rbenv (2.2.0) capistrano-rbenv (2.2.0)
capistrano (~> 3.1) capistrano (~> 3.1)
sshkit (~> 1.3) sshkit (~> 1.3)
capistrano3-puma (6.0.0.beta.1) capistrano3-puma (6.0.0)
capistrano (~> 3.7) capistrano (~> 3.7)
capistrano-bundler capistrano-bundler
puma (>= 5.1, < 7.0) puma (>= 5.1, < 7.0)
capybara (3.39.2) capybara (3.40.0)
addressable addressable
matrix matrix
mini_mime (>= 0.1.3) mini_mime (>= 0.1.3)
nokogiri (~> 1.8) nokogiri (~> 1.11)
rack (>= 1.6.0) rack (>= 1.6.0)
rack-test (>= 0.6.3) rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0) regexp_parser (>= 1.5, < 3.0)
@ -139,6 +137,8 @@ GEM
capybara-screenshot (1.0.26) capybara-screenshot (1.0.26)
capybara (>= 1.0, < 4) capybara (>= 1.0, < 4)
launchy launchy
childprocess (5.1.0)
logger (~> 1.5)
ci_reporter (2.1.0) ci_reporter (2.1.0)
builder (>= 2.1.2) builder (>= 2.1.2)
rexml rexml
@ -153,61 +153,58 @@ GEM
coffee-script-source coffee-script-source
execjs execjs
coffee-script-source (1.12.2) coffee-script-source (1.12.2)
concurrent-ruby (1.2.2) concurrent-ruby (1.3.5)
connection_pool (2.4.1) connection_pool (2.5.1)
crass (1.0.6) crass (1.0.6)
database_cleaner (2.0.2) database_cleaner (2.1.0)
database_cleaner-active_record (>= 2, < 3) database_cleaner-active_record (>= 2, < 3)
database_cleaner-active_record (2.1.0) database_cleaner-active_record (2.2.0)
activerecord (>= 5.a) activerecord (>= 5.a)
database_cleaner-core (~> 2.0.0) database_cleaner-core (~> 2.0.0)
database_cleaner-core (2.0.1) database_cleaner-core (2.0.1)
date (3.3.4) date (3.4.1)
debug_inspector (1.1.0) debug_inspector (1.2.0)
devise (4.9.3) devise (4.9.4)
bcrypt (~> 3.0) bcrypt (~> 3.0)
orm_adapter (~> 0.1) orm_adapter (~> 0.1)
railties (>= 4.1.0) railties (>= 4.1.0)
responders responders
warden (~> 1.2.3) warden (~> 1.2.3)
devise_invitable (2.0.9) devise_invitable (2.0.10)
actionmailer (>= 5.0) actionmailer (>= 5.0)
devise (>= 4.6) devise (>= 4.6)
diff-lcs (1.5.0) diff-lcs (1.6.1)
docile (1.4.0) docile (1.4.1)
dotenv (2.8.1) dotenv (3.1.8)
dotenv-rails (2.8.1) dotenv-rails (3.1.8)
dotenv (= 2.8.1) dotenv (= 3.1.8)
railties (>= 3.2) railties (>= 6.1)
drb (2.2.0) drb (2.2.1)
ruby2_keywords
ed25519 (1.3.0) ed25519 (1.3.0)
em-websocket (0.5.3) em-websocket (0.5.3)
eventmachine (>= 0.12.9) eventmachine (>= 0.12.9)
http_parser.rb (~> 0) http_parser.rb (~> 0)
erubi (1.12.0) erubi (1.13.1)
erubis (2.7.0) erubis (2.7.0)
eventmachine (1.2.7) eventmachine (1.2.7)
execjs (2.9.1) execjs (2.10.0)
factory_girl (4.9.0) faker (3.5.1)
activesupport (>= 3.0.0)
factory_girl_rails (4.9.0)
factory_girl (~> 4.9.0)
railties (>= 3.0.0)
faker (3.2.2)
i18n (>= 1.8.11, < 2) i18n (>= 1.8.11, < 2)
ffi (1.16.3) ffi (1.17.2)
ffi (1.17.2-x86_64-linux-gnu)
formatador (1.1.0) formatador (1.1.0)
friendly_id (5.4.2) friendly_id (5.4.2)
activerecord (>= 4.0.0) activerecord (>= 4.0.0)
globalid (1.2.1) globalid (1.2.1)
activesupport (>= 6.1) activesupport (>= 6.1)
guard (2.18.1) guard (2.19.1)
formatador (>= 0.2.4) formatador (>= 0.2.4)
listen (>= 2.7, < 4.0) listen (>= 2.7, < 4.0)
logger (~> 1.6)
lumberjack (>= 1.0.12, < 2.0) lumberjack (>= 1.0.12, < 2.0)
nenv (~> 0.1) nenv (~> 0.1)
notiffany (~> 0.0) notiffany (~> 0.0)
ostruct (~> 0.6)
pry (>= 0.13.0) pry (>= 0.13.0)
shellany (~> 0.0) shellany (~> 0.0)
thor (>= 0.18.1) thor (>= 0.18.1)
@ -231,7 +228,7 @@ GEM
guard (~> 2.1) guard (~> 2.1)
guard-compat (~> 1.1) guard-compat (~> 1.1)
rspec (>= 2.99.0, < 4.0) rspec (>= 2.99.0, < 4.0)
haml (6.2.3) haml (6.3.0)
temple (>= 0.8.2) temple (>= 0.8.2)
thor thor
tilt tilt
@ -240,7 +237,7 @@ GEM
activesupport (>= 5.1) activesupport (>= 5.1)
haml (>= 4.0.6) haml (>= 4.0.6)
railties (>= 5.1) railties (>= 5.1)
high_voltage (3.1.2) high_voltage (4.0.0)
html2haml (2.3.0) html2haml (2.3.0)
erubis (~> 2.7.0) erubis (~> 2.7.0)
haml (>= 4.0) haml (>= 4.0)
@ -248,37 +245,42 @@ GEM
ruby_parser (~> 3.5) ruby_parser (~> 3.5)
http_parser.rb (0.8.0) http_parser.rb (0.8.0)
hub (1.12.4) hub (1.12.4)
i18n (1.14.1) i18n (1.14.7)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
importmap-rails (1.2.3) importmap-rails (2.1.0)
actionpack (>= 6.0.0) actionpack (>= 6.0.0)
activesupport (>= 6.0.0) activesupport (>= 6.0.0)
railties (>= 6.0.0) railties (>= 6.0.0)
inline_svg (1.9.0) inline_svg (1.10.0)
activesupport (>= 3.0) activesupport (>= 3.0)
nokogiri (>= 1.6) nokogiri (>= 1.6)
interception (0.5) interception (0.5)
io-console (0.6.0) io-console (0.8.0)
irb (1.10.0) irb (1.15.2)
rdoc pp (>= 0.6.0)
reline (>= 0.3.8) rdoc (>= 4.0.0)
jbuilder (2.11.5) reline (>= 0.4.2)
jbuilder (2.13.0)
actionview (>= 5.0.0) actionview (>= 5.0.0)
activesupport (>= 5.0.0) activesupport (>= 5.0.0)
jquery-rails (4.6.0) jquery-rails (4.6.0)
rails-dom-testing (>= 1, < 3) rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0) railties (>= 4.2.0)
thor (>= 0.14, < 2.0) thor (>= 0.14, < 2.0)
jquery-ui-rails (6.0.1) jquery-ui-rails (7.0.0)
railties (>= 3.2.16) railties (>= 3.2.16)
json (2.7.0) json (2.10.2)
language_server-protocol (3.17.0.3) language_server-protocol (3.17.0.4)
launchy (2.5.2) launchy (3.1.1)
addressable (~> 2.8) addressable (~> 2.8)
listen (3.8.0) childprocess (~> 5.0)
logger (~> 1.6)
lint_roller (1.1.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3) rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10) rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.22.0) logger (1.7.0)
loofah (2.24.0)
crass (~> 1.0.2) crass (~> 1.0.2)
nokogiri (>= 1.12.0) nokogiri (>= 1.12.0)
lumberjack (1.2.10) lumberjack (1.2.10)
@ -287,167 +289,178 @@ GEM
net-imap net-imap
net-pop net-pop
net-smtp net-smtp
marcel (1.0.2) marcel (1.0.4)
matrix (0.4.2) matrix (0.4.2)
method_source (1.0.0) method_source (1.1.0)
mini_mime (1.1.5) mini_mime (1.1.5)
mini_portile2 (2.8.5) mini_portile2 (2.8.8)
minitest (5.20.0) minitest (5.25.5)
multi_json (1.15.0) multi_json (1.15.0)
mutex_m (0.2.0)
nenv (0.3.0) nenv (0.3.0)
net-imap (0.4.7) net-imap (0.5.7)
date date
net-protocol net-protocol
net-pop (0.1.2) net-pop (0.1.2)
net-protocol net-protocol
net-protocol (0.2.2) net-protocol (0.2.2)
timeout timeout
net-scp (4.0.0) net-scp (4.1.0)
net-ssh (>= 2.6.5, < 8.0.0) net-ssh (>= 2.6.5, < 8.0.0)
net-smtp (0.4.0) net-sftp (4.0.0)
net-ssh (>= 5.0.0, < 8.0.0)
net-smtp (0.5.1)
net-protocol net-protocol
net-ssh (7.2.0) net-ssh (7.3.0)
nio4r (2.7.0) nio4r (2.7.4)
nokogiri (1.15.5) nokogiri (1.18.8)
mini_portile2 (~> 2.8.2) mini_portile2 (~> 2.8.2)
racc (~> 1.4) racc (~> 1.4)
nokogiri (1.15.5-x86_64-linux) nokogiri (1.18.8-x86_64-linux-gnu)
racc (~> 1.4) racc (~> 1.4)
notiffany (0.1.3) notiffany (0.1.3)
nenv (~> 0.1) nenv (~> 0.1)
shellany (~> 0.0) shellany (~> 0.0)
orm_adapter (0.5.0) orm_adapter (0.5.0)
parallel (1.23.0) ostruct (0.6.1)
parallel_tests (4.3.0) parallel (1.27.0)
parallel_tests (5.1.0)
parallel parallel
parser (3.2.2.4) parser (3.3.8.0)
ast (~> 2.4.1) ast (~> 2.4.1)
racc racc
pg (1.5.4) pg (1.5.9)
pry (0.14.2) pp (0.6.2)
prettyprint
prettyprint (0.2.0)
prism (1.4.0)
pry (0.15.2)
coderay (~> 1.1) coderay (~> 1.1)
method_source (~> 1.0) method_source (~> 1.0)
pry-rails (0.3.9) pry-rails (0.3.11)
pry (>= 0.10.4) pry (>= 0.13.0)
pry-rescue (1.5.2) pry-rescue (1.6.0)
interception (>= 0.5) interception (>= 0.5)
pry (>= 0.12.0) pry (>= 0.12.0)
psych (5.1.1.1) psych (5.2.3)
date
stringio stringio
public_suffix (5.0.4) public_suffix (6.0.1)
puma (6.0.0) puma (6.6.0)
nio4r (~> 2.0) nio4r (~> 2.0)
pundit (2.3.1) pundit (2.5.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
racc (1.7.3) racc (1.8.1)
rack (3.0.8) rack (3.1.13)
rack-livereload (0.5.1) rack-livereload (0.6.1)
rack rack (>= 3.0, < 3.2)
rack-session (2.0.0) rack-session (2.1.0)
base64 (>= 0.1.0)
rack (>= 3.0.0) rack (>= 3.0.0)
rack-test (2.1.0) rack-test (2.2.0)
rack (>= 1.3) rack (>= 1.3)
rackup (2.1.0) rackup (2.2.1)
rack (>= 3) rack (>= 3)
webrick (~> 1.8) rails (8.0.2)
rails (7.1.2) actioncable (= 8.0.2)
actioncable (= 7.1.2) actionmailbox (= 8.0.2)
actionmailbox (= 7.1.2) actionmailer (= 8.0.2)
actionmailer (= 7.1.2) actionpack (= 8.0.2)
actionpack (= 7.1.2) actiontext (= 8.0.2)
actiontext (= 7.1.2) actionview (= 8.0.2)
actionview (= 7.1.2) activejob (= 8.0.2)
activejob (= 7.1.2) activemodel (= 8.0.2)
activemodel (= 7.1.2) activerecord (= 8.0.2)
activerecord (= 7.1.2) activestorage (= 8.0.2)
activestorage (= 7.1.2) activesupport (= 8.0.2)
activesupport (= 7.1.2)
bundler (>= 1.15.0) bundler (>= 1.15.0)
railties (= 7.1.2) railties (= 8.0.2)
rails-dom-testing (2.2.0) rails-dom-testing (2.2.0)
activesupport (>= 5.0.0) activesupport (>= 5.0.0)
minitest minitest
nokogiri (>= 1.6) nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0) rails-html-sanitizer (1.6.2)
loofah (~> 2.21) loofah (~> 2.21)
nokogiri (~> 1.14) 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)
rails_layout (1.0.42) rails_layout (1.0.42)
railties (7.1.2) railties (8.0.2)
actionpack (= 7.1.2) actionpack (= 8.0.2)
activesupport (= 7.1.2) activesupport (= 8.0.2)
irb irb (~> 1.13)
rackup (>= 1.0.0) rackup (>= 1.0.0)
rake (>= 12.2) rake (>= 12.2)
thor (~> 1.0, >= 1.2.2) thor (~> 1.0, >= 1.2.2)
zeitwerk (~> 2.6) zeitwerk (~> 2.6)
rainbow (3.1.1) rainbow (3.1.1)
rake (13.1.0) rake (13.2.1)
rb-fchange (0.0.6) rb-fchange (0.0.6)
ffi ffi
rb-fsevent (0.11.2) rb-fsevent (0.11.2)
rb-inotify (0.10.1) rb-inotify (0.11.1)
ffi (~> 1.0) ffi (~> 1.0)
rbnacl (3.4.0) rbnacl (3.4.0)
ffi ffi
rbnacl-libsodium (1.0.16) rbnacl-libsodium (1.0.16)
rbnacl (>= 3.0.1) rbnacl (>= 3.0.1)
rdoc (6.6.0) rdoc (6.13.1)
psych (>= 4.0.0) psych (>= 4.0.0)
react-rails (3.1.1) react-rails (3.2.1)
babel-transpiler (>= 0.7.0) babel-transpiler (>= 0.7.0)
connection_pool connection_pool
execjs execjs
railties (>= 3.2) railties (>= 3.2)
tilt tilt
redis (4.8.1) redis (5.4.0)
regexp_parser (2.8.3) redis-client (>= 0.22.0)
reline (0.4.1) redis-client (0.24.0)
connection_pool
regexp_parser (2.10.0)
reline (0.6.1)
io-console (~> 0.5) io-console (~> 0.5)
responders (3.1.1) responders (3.1.1)
actionpack (>= 5.2) actionpack (>= 5.2)
railties (>= 5.2) railties (>= 5.2)
rexml (3.2.6) rexml (3.4.1)
rouge (4.2.0) rouge (4.5.1)
rspec (3.12.0) rspec (3.13.0)
rspec-core (~> 3.12.0) rspec-core (~> 3.13.0)
rspec-expectations (~> 3.12.0) rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.12.0) rspec-mocks (~> 3.13.0)
rspec-core (3.12.2) rspec-core (3.13.3)
rspec-support (~> 3.12.0) rspec-support (~> 3.13.0)
rspec-expectations (3.12.3) rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0) rspec-support (~> 3.13.0)
rspec-mocks (3.12.6) rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0) rspec-support (~> 3.13.0)
rspec-rails (6.1.0) rspec-rails (7.1.1)
actionpack (>= 6.1) actionpack (>= 7.0)
activesupport (>= 6.1) activesupport (>= 7.0)
railties (>= 6.1) railties (>= 7.0)
rspec-core (~> 3.12) rspec-core (~> 3.13)
rspec-expectations (~> 3.12) rspec-expectations (~> 3.13)
rspec-mocks (~> 3.12) rspec-mocks (~> 3.13)
rspec-support (~> 3.12) rspec-support (~> 3.13)
rspec-support (3.12.1) rspec-support (3.13.2)
rubocop (1.58.0) rubocop (1.75.3)
json (~> 2.3) json (~> 2.3)
language_server-protocol (>= 3.17.0) language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 3.2.2.4) parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0) regexp_parser (>= 2.9.3, < 3.0)
rexml (>= 3.2.5, < 4.0) rubocop-ast (>= 1.44.0, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0) unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.30.0) rubocop-ast (1.44.1)
parser (>= 3.2.1.0) parser (>= 3.3.7.2)
prism (~> 1.4)
ruby-progressbar (1.13.0) ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5) ruby_parser (3.21.1)
ruby_parser (3.20.3) racc (~> 1.5)
sexp_processor (~> 4.16) sexp_processor (~> 4.16)
rubyzip (2.3.2) rubyzip (2.4.1)
sass-rails (6.0.0) sass-rails (6.0.0)
sassc-rails (~> 2.1, >= 2.1.1) sassc-rails (~> 2.1, >= 2.1.1)
sassc (2.4.0) sassc (2.4.0)
@ -460,65 +473,74 @@ GEM
tilt tilt
sdoc (2.6.1) sdoc (2.6.1)
rdoc (>= 5.0) rdoc (>= 5.0)
securerandom (0.4.1)
selenium-webdriver (4.10.0) selenium-webdriver (4.10.0)
rexml (~> 3.2, >= 3.2.5) rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0) rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0) websocket (~> 1.0)
sexp_processor (4.17.0) sexp_processor (4.17.3)
shellany (0.0.1) shellany (0.0.1)
simple_form (5.3.0) simple_form (5.3.1)
actionpack (>= 5.2) actionpack (>= 5.2)
activemodel (>= 5.2) activemodel (>= 5.2)
simplecov (0.22.0) simplecov (0.22.0)
docile (~> 1.1) docile (~> 1.1)
simplecov-html (~> 0.11) simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1) simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3) simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4) simplecov_json_formatter (0.1.4)
spring (4.1.3) spring (4.3.0)
spring-commands-rspec (1.0.4) spring-commands-rspec (1.0.4)
spring (>= 0.9.1) spring (>= 0.9.1)
sprockets (4.2.1) sprockets (4.2.2)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
logger
rack (>= 2.2.4, < 4) rack (>= 2.2.4, < 4)
sprockets-rails (3.4.2) sprockets-rails (3.5.2)
actionpack (>= 5.2) actionpack (>= 6.1)
activesupport (>= 5.2) activesupport (>= 6.1)
sprockets (>= 3.0.0) sprockets (>= 3.0.0)
sshkit (1.21.6) sshkit (1.24.0)
base64
logger
net-scp (>= 1.1.2) net-scp (>= 1.1.2)
net-sftp (>= 2.1.2)
net-ssh (>= 2.8.0) net-ssh (>= 2.8.0)
ostruct
sshkit-interactive (0.3.0) sshkit-interactive (0.3.0)
sshkit (~> 1.12) sshkit (~> 1.12)
stimulus-rails (1.3.0) stimulus-rails (1.3.4)
railties (>= 6.0.0) railties (>= 6.0.0)
stringio (3.1.0) stringio (3.1.7)
temple (0.10.3) temple (0.10.3)
thor (1.3.0) thor (1.3.2)
tilt (2.3.0) tilt (2.6.0)
timeout (0.4.1) timeout (0.4.3)
turbo-rails (1.5.0) turbo-rails (2.0.13)
actionpack (>= 6.0.0) actionpack (>= 7.1.0)
activejob (>= 6.0.0) railties (>= 7.1.0)
railties (>= 6.0.0)
tzinfo (2.0.6) tzinfo (2.0.6)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0) unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
uri (1.0.3)
useragent (0.16.11)
warden (1.2.9) warden (1.2.9)
rack (>= 2.0.9) rack (>= 2.0.9)
webdrivers (5.3.1) webdrivers (5.3.1)
nokogiri (~> 1.6) nokogiri (~> 1.6)
rubyzip (>= 1.3.0) rubyzip (>= 1.3.0)
selenium-webdriver (~> 4.0, < 4.11) selenium-webdriver (~> 4.0, < 4.11)
webrick (1.8.1) websocket (1.2.11)
websocket (1.2.10) websocket-driver (0.7.7)
websocket-driver (0.7.6) base64
websocket-extensions (>= 0.1.0) websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5) websocket-extensions (0.1.5)
will_paginate (4.0.0) will_paginate (4.0.1)
xpath (3.2.0) xpath (3.2.0)
nokogiri (~> 1.8) nokogiri (~> 1.8)
zeitwerk (2.6.12) zeitwerk (2.7.2)
PLATFORMS PLATFORMS
ruby ruby
@ -546,7 +568,6 @@ DEPENDENCIES
devise_invitable devise_invitable
dotenv-rails dotenv-rails
ed25519 ed25519
factory_girl_rails
faker faker
friendly_id (~> 5.4.0) friendly_id (~> 5.4.0)
guard-bundler guard-bundler
@ -569,10 +590,10 @@ DEPENDENCIES
pg pg
pry-rails pry-rails
pry-rescue pry-rescue
puma (= 6) puma
pundit pundit
rack-livereload rack-livereload
rails (~> 7.0) rails (~> 8.0)
rails_layout rails_layout
rb-fchange rb-fchange
rb-fsevent rb-fsevent
@ -580,7 +601,7 @@ DEPENDENCIES
rbnacl (~> 3.4) rbnacl (~> 3.4)
rbnacl-libsodium rbnacl-libsodium
react-rails react-rails
redis (~> 4.0) redis
rspec-rails rspec-rails
rubocop rubocop
sass-rails sass-rails
@ -597,7 +618,7 @@ DEPENDENCIES
will_paginate will_paginate
RUBY VERSION RUBY VERSION
ruby 3.2.2p53 ruby 3.4.3p32
BUNDLED WITH BUNDLED WITH
2.4.22 2.4.22

View File

@ -1,5 +1,5 @@
class Token < ActiveRecord::Base class Token < ActiveRecord::Base
enum standard: [:dip20, :icrc1, :unknown] enum :standard, [:dip20, :icrc1, :unknown]
validates :canister_id, uniqueness: true, allow_nil: true validates :canister_id, uniqueness: true, allow_nil: true
before_create :refresh before_create :refresh

View File

@ -1,5 +1,5 @@
class User < ActiveRecord::Base class User < ActiveRecord::Base
enum role: [:user, :vip, :admin] enum :role, [:user, :vip, :admin]
after_initialize :set_default_role, if: :new_record? after_initialize :set_default_role, if: :new_record?
validates :email, presence: true, uniqueness: true validates :email, presence: true, uniqueness: true
validates :soft_token, presence: true, uniqueness: true validates :soft_token, presence: true, uniqueness: true

View File

@ -13,6 +13,9 @@ module MyTendyZone
config.load_defaults 7.0 config.load_defaults 7.0
# config.active_support.cache_format_version = 7.0 # config.active_support.cache_format_version = 7.0
# TODO move secrets to credentials
config.secrets = config_for(:secrets)
# Configuration for the application, engines, and railties goes here. # Configuration for the application, engines, and railties goes here.
# #
# These settings can be overridden in specific environments using the files # These settings can be overridden in specific environments using the files

View File

@ -10,7 +10,9 @@ Devise.setup do |config|
# Configure the e-mail address which will be shown in Devise::Mailer, # Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class # note that it will be overwritten if you use your own mailer class
# with default "from" parameter. # with default "from" parameter.
config.mailer_sender = 'no-reply@' + Rails.application.secrets.domain_name # TODO move secrets to credentials
# config.mailer_sender = 'no-reply@' + Rails.application.secrets.domain_name
config.mailer_sender = 'no-reply@' + Rails.configuration.secrets.domain_name
# Configure the class responsible to send e-mails. # Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer' # config.mailer = 'Devise::Mailer'

View File

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_03_25_142502) do ActiveRecord::Schema[7.2].define(version: 2024_03_25_142502) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -79,7 +79,7 @@ ActiveRecord::Schema[7.1].define(version: 2024_03_25_142502) do
t.integer "sluggable_id", null: false t.integer "sluggable_id", null: false
t.string "sluggable_type", limit: 50 t.string "sluggable_type", limit: 50
t.string "scope" t.string "scope"
t.datetime "created_at", precision: nil t.datetime "created_at"
t.index ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true t.index ["slug", "sluggable_type", "scope"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope", unique: true
t.index ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type" t.index ["slug", "sluggable_type"], name: "index_friendly_id_slugs_on_slug_and_sluggable_type"
t.index ["sluggable_type", "sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_type_and_sluggable_id" t.index ["sluggable_type", "sluggable_id"], name: "index_friendly_id_slugs_on_sluggable_type_and_sluggable_id"