1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Upgraded to rails 8.0.2

This commit is contained in:
2025-10-08 11:35:44 -04:00
parent bbd2bd9b44
commit 34f1783031
10 changed files with 80 additions and 92 deletions

View File

@@ -2,7 +2,7 @@ source 'https://rubygems.org'
ruby '3.2.0' ruby '3.2.0'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '8.0.2' gem 'rails', '8.0.3'
# Added in rails 7.1 # Added in rails 7.1
gem 'rails-html-sanitizer' gem 'rails-html-sanitizer'

View File

@@ -1,29 +1,29 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actioncable (8.0.2) actioncable (8.0.3)
actionpack (= 8.0.2) actionpack (= 8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
nio4r (~> 2.0) nio4r (~> 2.0)
websocket-driver (>= 0.6.1) websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6) zeitwerk (~> 2.6)
actionmailbox (8.0.2) actionmailbox (8.0.3)
actionpack (= 8.0.2) actionpack (= 8.0.3)
activejob (= 8.0.2) activejob (= 8.0.3)
activerecord (= 8.0.2) activerecord (= 8.0.3)
activestorage (= 8.0.2) activestorage (= 8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
mail (>= 2.8.0) mail (>= 2.8.0)
actionmailer (8.0.2) actionmailer (8.0.3)
actionpack (= 8.0.2) actionpack (= 8.0.3)
actionview (= 8.0.2) actionview (= 8.0.3)
activejob (= 8.0.2) activejob (= 8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
mail (>= 2.8.0) mail (>= 2.8.0)
rails-dom-testing (~> 2.2) rails-dom-testing (~> 2.2)
actionpack (8.0.2) actionpack (8.0.3)
actionview (= 8.0.2) actionview (= 8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
nokogiri (>= 1.8.5) nokogiri (>= 1.8.5)
rack (>= 2.2.4) rack (>= 2.2.4)
rack-session (>= 1.0.1) rack-session (>= 1.0.1)
@@ -31,35 +31,35 @@ GEM
rails-dom-testing (~> 2.2) rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6) rails-html-sanitizer (~> 1.6)
useragent (~> 0.16) useragent (~> 0.16)
actiontext (8.0.2) actiontext (8.0.3)
actionpack (= 8.0.2) actionpack (= 8.0.3)
activerecord (= 8.0.2) activerecord (= 8.0.3)
activestorage (= 8.0.2) activestorage (= 8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
globalid (>= 0.6.0) globalid (>= 0.6.0)
nokogiri (>= 1.8.5) nokogiri (>= 1.8.5)
actionview (8.0.2) actionview (8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
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 (8.0.2) activejob (8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
globalid (>= 0.3.6) globalid (>= 0.3.6)
activemodel (8.0.2) activemodel (8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
activerecord (8.0.2) activerecord (8.0.3)
activemodel (= 8.0.2) activemodel (= 8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
timeout (>= 0.4.0) timeout (>= 0.4.0)
activestorage (8.0.2) activestorage (8.0.3)
actionpack (= 8.0.2) actionpack (= 8.0.3)
activejob (= 8.0.2) activejob (= 8.0.3)
activerecord (= 8.0.2) activerecord (= 8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
marcel (~> 1.0) marcel (~> 1.0)
activesupport (8.0.2) activesupport (8.0.3)
base64 base64
benchmark (>= 0.3) benchmark (>= 0.3)
bigdecimal bigdecimal
@@ -76,7 +76,7 @@ GEM
base64 (0.3.0) base64 (0.3.0)
bcrypt (3.1.20) bcrypt (3.1.20)
benchmark (0.4.1) benchmark (0.4.1)
bigdecimal (3.2.3) bigdecimal (3.3.0)
bootsnap (1.18.6) bootsnap (1.18.6)
msgpack (~> 1.2) msgpack (~> 1.2)
brakeman (7.1.0) brakeman (7.1.0)
@@ -95,7 +95,7 @@ GEM
daemons (1.4.1) daemons (1.4.1)
date (3.4.1) date (3.4.1)
drb (2.2.3) drb (2.2.3)
erb (5.0.2) erb (5.0.3)
erubi (1.13.1) erubi (1.13.1)
et-orbi (1.4.0) et-orbi (1.4.0)
tzinfo tzinfo
@@ -126,7 +126,7 @@ GEM
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)
json (2.15.0) json (2.15.1)
language_server-protocol (3.17.0.5) language_server-protocol (3.17.0.5)
lint_roller (1.1.0) lint_roller (1.1.0)
logger (1.7.0) logger (1.7.0)
@@ -146,7 +146,7 @@ GEM
msgpack (1.8.0) msgpack (1.8.0)
mysql2 (0.5.7) mysql2 (0.5.7)
bigdecimal bigdecimal
net-imap (0.5.11) net-imap (0.5.12)
date date
net-protocol net-protocol
net-pop (0.1.2) net-pop (0.1.2)
@@ -176,7 +176,7 @@ GEM
parser (3.3.9.0) parser (3.3.9.0)
ast (~> 2.4.1) ast (~> 2.4.1)
racc racc
pp (0.6.2) pp (0.6.3)
prettyprint prettyprint
prettyprint (0.2.0) prettyprint (0.2.0)
prism (1.5.1) prism (1.5.1)
@@ -191,7 +191,7 @@ GEM
nio4r (~> 2.0) nio4r (~> 2.0)
raabro (1.4.0) raabro (1.4.0)
racc (1.8.1) racc (1.8.1)
rack (3.2.1) rack (3.2.2)
rack-session (2.1.1) rack-session (2.1.1)
base64 (>= 0.1.0) base64 (>= 0.1.0)
rack (>= 3.0.0) rack (>= 3.0.0)
@@ -199,20 +199,20 @@ GEM
rack (>= 1.3) rack (>= 1.3)
rackup (2.2.1) rackup (2.2.1)
rack (>= 3) rack (>= 3)
rails (8.0.2) rails (8.0.3)
actioncable (= 8.0.2) actioncable (= 8.0.3)
actionmailbox (= 8.0.2) actionmailbox (= 8.0.3)
actionmailer (= 8.0.2) actionmailer (= 8.0.3)
actionpack (= 8.0.2) actionpack (= 8.0.3)
actiontext (= 8.0.2) actiontext (= 8.0.3)
actionview (= 8.0.2) actionview (= 8.0.3)
activejob (= 8.0.2) activejob (= 8.0.3)
activemodel (= 8.0.2) activemodel (= 8.0.3)
activerecord (= 8.0.2) activerecord (= 8.0.3)
activestorage (= 8.0.2) activestorage (= 8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
bundler (>= 1.15.0) bundler (>= 1.15.0)
railties (= 8.0.2) railties (= 8.0.3)
rails-controller-testing (1.0.5) rails-controller-testing (1.0.5)
actionpack (>= 5.0.1.rc1) actionpack (>= 5.0.1.rc1)
actionview (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1)
@@ -229,20 +229,22 @@ GEM
rails_stdout_logging rails_stdout_logging
rails_serve_static_assets (0.0.5) rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.5) rails_stdout_logging (0.0.5)
railties (8.0.2) railties (8.0.3)
actionpack (= 8.0.2) actionpack (= 8.0.3)
activesupport (= 8.0.2) activesupport (= 8.0.3)
irb (~> 1.13) 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)
tsort (>= 0.2)
zeitwerk (~> 2.6) zeitwerk (~> 2.6)
rainbow (3.1.1) rainbow (3.1.1)
rake (13.3.0) rake (13.3.0)
rb-readline (0.5.5) rb-readline (0.5.5)
rdoc (6.14.2) rdoc (6.15.0)
erb erb
psych (>= 4.0.0) psych (>= 4.0.0)
tsort
regexp_parser (2.11.3) regexp_parser (2.11.3)
reline (0.6.2) reline (0.6.2)
io-console (~> 0.5) io-console (~> 0.5)
@@ -296,6 +298,7 @@ GEM
stringio (3.1.7) stringio (3.1.7)
thor (1.4.0) thor (1.4.0)
timeout (0.4.3) timeout (0.4.3)
tsort (0.2.0)
turbo-rails (2.0.17) turbo-rails (2.0.17)
actionpack (>= 7.1.0) actionpack (>= 7.1.0)
railties (>= 7.1.0) railties (>= 7.1.0)
@@ -307,7 +310,7 @@ GEM
unicode-emoji (~> 4.1) unicode-emoji (~> 4.1)
unicode-emoji (4.1.0) unicode-emoji (4.1.0)
uniform_notifier (1.18.0) uniform_notifier (1.18.0)
uri (1.0.3) uri (1.0.4)
useragent (0.16.11) useragent (0.16.11)
websocket-driver (0.8.0) websocket-driver (0.8.0)
base64 base64
@@ -341,7 +344,7 @@ DEPENDENCIES
mysql2 mysql2
propshaft propshaft
puma puma
rails (= 8.0.2) rails (= 8.0.3)
rails-controller-testing rails-controller-testing
rails-html-sanitizer rails-html-sanitizer
rails_12factor rails_12factor

View File

@@ -1,4 +1,2 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
exec "./bin/rails", "server", *ARGV
# Start Rails server with defaults
exec "bin/rails", "server", *ARGV

View File

@@ -55,5 +55,7 @@ module Wrestling
# Set cache format version to a value supported by Rails 8.0 # Set cache format version to a value supported by Rails 8.0
# Valid values are 7.0 or 7.1 # Valid values are 7.0 or 7.1
config.active_support.cache_format_version = 7.1 config.active_support.cache_format_version = 7.1
config.load_defaults 8.0
end end
end end

View File

@@ -0,0 +1,7 @@
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = "1.0"
# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path

View File

@@ -2,26 +2,4 @@
# This model requires tournament, job_name, and status fields # This model requires tournament, job_name, and status fields
queued_job:
tournament: one
job_name: "Test Queued Job"
status: "Queued"
details: "Test job details"
running_job:
tournament: one
job_name: "Test Running Job"
status: "Running"
details: "Test running job details"
errored_job:
tournament: one
job_name: "Test Errored Job"
status: "Errored"
details: "Test error message"
another_tournament_job:
tournament: two
job_name: "Another Tournament Job"
status: "Running"
details: "Different tournament test"

View File

@@ -8,7 +8,7 @@ class MatTest < ActiveSupport::TestCase
test "Mat validations" do test "Mat validations" do
mat = Mat.new mat = Mat.new
assert_not mat.valid? assert_not mat.valid?
assert_equal [:name], mat.errors.attribute_names assert_equal [:tournament, :name], mat.errors.attribute_names
end end
end end

View File

@@ -8,7 +8,7 @@ class SchoolTest < ActiveSupport::TestCase
test "School validations" do test "School validations" do
school = School.new school = School.new
assert_not school.valid? assert_not school.valid?
assert_equal [:name], school.errors.attribute_names assert_equal [:tournament, :name], school.errors.attribute_names
end end
end end

View File

@@ -8,7 +8,7 @@ class WeightTest < ActiveSupport::TestCase
test "Weight validations" do test "Weight validations" do
weight = Weight.new weight = Weight.new
assert_not weight.valid? assert_not weight.valid?
assert_equal [:max], weight.errors.attribute_names assert_equal [:tournament, :max], weight.errors.attribute_names
end end
end end

View File

@@ -8,7 +8,7 @@ class WrestlerTest < ActiveSupport::TestCase
test "Wrestler validations" do test "Wrestler validations" do
wrestler = Wrestler.new wrestler = Wrestler.new
assert_not wrestler.valid? assert_not wrestler.valid?
assert_equal [:name, :weight_id, :school_id], wrestler.errors.attribute_names assert_equal [:school, :weight, :name, :weight_id, :school_id], wrestler.errors.attribute_names
end end
end end