From e463fb1e8706acb4e7f5fc21f91ebdbdd47f32c7 Mon Sep 17 00:00:00 2001 From: Andrzej Krzywda Date: Fri, 16 Aug 2024 19:28:36 +0200 Subject: [PATCH] Rails upgrade to 7.2.0 --- rails_application/Gemfile | 2 +- rails_application/Gemfile.lock | 226 ++++++++++-------- .../app/read_models/products/configuration.rb | 2 +- 3 files changed, 132 insertions(+), 98 deletions(-) diff --git a/rails_application/Gemfile b/rails_application/Gemfile index c0a912b65..a0e741579 100644 --- a/rails_application/Gemfile +++ b/rails_application/Gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" ruby '3.3.4' -gem "rails", "7.0.4" +gem "rails", "7.2.0" gem "pg", "~> 1.4" gem "puma", "~> 5.6" gem "bootsnap", ">= 1.9.2", require: false diff --git a/rails_application/Gemfile.lock b/rails_application/Gemfile.lock index af5d1ad90..d9c759ab4 100644 --- a/rails_application/Gemfile.lock +++ b/rails_application/Gemfile.lock @@ -18,91 +18,100 @@ GEM GEM remote: https://rubygems.org/ specs: - actioncable (7.0.4) - actionpack (= 7.0.4) - activesupport (= 7.0.4) + actioncable (7.2.0) + actionpack (= 7.2.0) + activesupport (= 7.2.0) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (7.0.4) - actionpack (= 7.0.4) - activejob (= 7.0.4) - activerecord (= 7.0.4) - activestorage (= 7.0.4) - activesupport (= 7.0.4) - mail (>= 2.7.1) - net-imap - net-pop - net-smtp - actionmailer (7.0.4) - actionpack (= 7.0.4) - actionview (= 7.0.4) - activejob (= 7.0.4) - activesupport (= 7.0.4) - mail (~> 2.5, >= 2.5.4) - net-imap - net-pop - net-smtp - rails-dom-testing (~> 2.0) - actionpack (7.0.4) - actionview (= 7.0.4) - activesupport (= 7.0.4) - rack (~> 2.0, >= 2.2.0) + zeitwerk (~> 2.6) + actionmailbox (7.2.0) + actionpack (= 7.2.0) + activejob (= 7.2.0) + activerecord (= 7.2.0) + activestorage (= 7.2.0) + activesupport (= 7.2.0) + mail (>= 2.8.0) + actionmailer (7.2.0) + actionpack (= 7.2.0) + actionview (= 7.2.0) + activejob (= 7.2.0) + activesupport (= 7.2.0) + mail (>= 2.8.0) + rails-dom-testing (~> 2.2) + actionpack (7.2.0) + actionview (= 7.2.0) + activesupport (= 7.2.0) + nokogiri (>= 1.8.5) + racc + rack (>= 2.2.4, < 3.2) + rack-session (>= 1.0.1) rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (7.0.4) - actionpack (= 7.0.4) - activerecord (= 7.0.4) - activestorage (= 7.0.4) - activesupport (= 7.0.4) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + useragent (~> 0.16) + actiontext (7.2.0) + actionpack (= 7.2.0) + activerecord (= 7.2.0) + activestorage (= 7.2.0) + activesupport (= 7.2.0) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.0.4) - activesupport (= 7.0.4) + actionview (7.2.0) + activesupport (= 7.2.0) builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (7.0.4) - activesupport (= 7.0.4) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activejob (7.2.0) + activesupport (= 7.2.0) globalid (>= 0.3.6) - activemodel (7.0.4) - activesupport (= 7.0.4) - activerecord (7.0.4) - activemodel (= 7.0.4) - activesupport (= 7.0.4) - activestorage (7.0.4) - actionpack (= 7.0.4) - activejob (= 7.0.4) - activerecord (= 7.0.4) - activesupport (= 7.0.4) + activemodel (7.2.0) + activesupport (= 7.2.0) + activerecord (7.2.0) + activemodel (= 7.2.0) + activesupport (= 7.2.0) + timeout (>= 0.4.0) + activestorage (7.2.0) + actionpack (= 7.2.0) + activejob (= 7.2.0) + activerecord (= 7.2.0) + activesupport (= 7.2.0) marcel (~> 1.0) - mini_mime (>= 1.1.0) - activesupport (7.0.4) - concurrent-ruby (~> 1.0, >= 1.0.2) + activesupport (7.2.0) + base64 + bigdecimal + concurrent-ruby (~> 1.0, >= 1.3.1) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) + logger (>= 1.4.2) minitest (>= 5.1) - tzinfo (~> 2.0) + securerandom (>= 0.3) + tzinfo (~> 2.0, >= 2.0.5) aggregate_root (2.13.0) ruby_event_store (= 2.13.0) - arbre (1.5.0) - activesupport (>= 3.0.0, < 7.1) - ruby2_keywords (>= 0.0.2, < 1.0) + arbre (2.0.0) + activesupport (>= 3.0.0) + ruby2_keywords (>= 0.0.2) arkency-command_bus (0.4.1) concurrent-ruby ast (2.4.2) + base64 (0.2.0) + bigdecimal (3.1.8) bootsnap (1.15.0) msgpack (~> 1.2) builder (3.2.4) byebug (11.1.3) - concurrent-ruby (1.2.2) + concurrent-ruby (1.3.4) + connection_pool (2.4.1) crass (1.0.6) - date (3.3.3) + date (3.3.4) diff-lcs (1.5.0) dotenv (2.7.6) dotenv-rails (2.7.6) dotenv (= 2.7.6) railties (>= 3.2) + drb (2.2.1) dry-configurable (0.15.0) concurrent-ruby (~> 1.0) dry-core (~> 0.6) @@ -136,6 +145,10 @@ GEM importmap-rails (1.1.5) actionpack (>= 6.0.0) railties (>= 6.0.0) + io-console (0.7.2) + irb (1.14.0) + rdoc (>= 4.0.0) + reline (>= 0.4.2) kaminari (1.2.2) activesupport (>= 4.1.0) kaminari-actionview (= 1.2.2) @@ -151,14 +164,17 @@ GEM listen (3.7.1) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - loofah (2.19.1) + logger (1.6.0) + loofah (2.22.0) crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) + nokogiri (>= 1.12.0) + mail (2.8.1) mini_mime (>= 0.1.1) - marcel (1.0.2) - method_source (1.0.0) - mini_mime (1.1.2) + net-imap + net-pop + net-smtp + marcel (1.0.4) + mini_mime (1.1.5) mini_portile2 (2.8.1) minitest (5.15.0) msgpack (1.6.0) @@ -171,14 +187,14 @@ GEM mutant-minitest (0.11.26) minitest (~> 5.11) mutant (= 0.11.26) - net-imap (0.3.4) + net-imap (0.4.14) date net-protocol net-pop (0.1.2) net-protocol - net-protocol (0.1.3) + net-protocol (0.2.2) timeout - net-smtp (0.3.3) + net-smtp (0.5.0) net-protocol nio4r (2.7.3) nokogiri (1.14.5) @@ -188,31 +204,40 @@ GEM ast (~> 2.4.1) racc pg (1.4.5) + psych (5.1.2) + stringio puma (5.6.8) nio4r (~> 2.0) racc (1.6.2) rack (2.2.8) + rack-session (1.0.2) + rack (< 3) rack-test (2.0.2) rack (>= 1.3) - rails (7.0.4) - actioncable (= 7.0.4) - actionmailbox (= 7.0.4) - actionmailer (= 7.0.4) - actionpack (= 7.0.4) - actiontext (= 7.0.4) - actionview (= 7.0.4) - activejob (= 7.0.4) - activemodel (= 7.0.4) - activerecord (= 7.0.4) - activestorage (= 7.0.4) - activesupport (= 7.0.4) + rackup (1.0.0) + rack (< 3) + webrick + rails (7.2.0) + actioncable (= 7.2.0) + actionmailbox (= 7.2.0) + actionmailer (= 7.2.0) + actionpack (= 7.2.0) + actiontext (= 7.2.0) + actionview (= 7.2.0) + activejob (= 7.2.0) + activemodel (= 7.2.0) + activerecord (= 7.2.0) + activestorage (= 7.2.0) + activesupport (= 7.2.0) bundler (>= 1.15.0) - railties (= 7.0.4) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + railties (= 7.2.0) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.4.4) - loofah (~> 2.19, >= 2.19.1) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) rails_event_store (2.13.0) activejob (>= 6.0) activemodel (>= 6.0) @@ -224,19 +249,24 @@ GEM ruby_event_store-browser (= 2.13.0) rails_event_store_active_record (2.13.0) ruby_event_store-active_record (= 2.13.0) - railties (7.0.4) - actionpack (= 7.0.4) - activesupport (= 7.0.4) - method_source + railties (7.2.0) + actionpack (= 7.2.0) + activesupport (= 7.2.0) + irb (~> 1.13) + rackup (>= 1.0.0) rake (>= 12.2) - thor (~> 1.0) - zeitwerk (~> 2.5) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) rake (13.0.6) rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) + rdoc (6.7.0) + psych (>= 4.0.0) redis (4.8.0) regexp_parser (2.8.3) + reline (0.5.9) + io-console (~> 0.5) ruby2_keywords (0.0.5) ruby_event_store (2.13.0) concurrent-ruby (~> 1.0, >= 1.1.6) @@ -249,6 +279,7 @@ GEM ruby_event_store-transformations (0.1.0) activesupport (>= 5.0) ruby_event_store (>= 2.0.0, < 3.0.0) + securerandom (0.3.1) skylight (5.1.1) activesupport (>= 5.2.0) sorbet-runtime (0.5.10648) @@ -261,6 +292,7 @@ GEM sprockets (>= 3.0.0) stimulus-rails (1.2.1) railties (>= 6.0.0) + stringio (3.1.1) tailwindcss-rails (2.6.0) railties (>= 7.0.0) tailwindcss-rails (2.6.0-arm64-darwin) @@ -269,8 +301,8 @@ GEM railties (>= 7.0.0) tailwindcss-rails (2.6.0-x86_64-linux) railties (>= 7.0.0) - thor (1.2.1) - timeout (0.3.1) + thor (1.3.1) + timeout (0.4.1) turbo-rails (1.3.3) actionpack (>= 6.0.0) activejob (>= 6.0.0) @@ -280,7 +312,9 @@ GEM unparser (0.6.12) diff-lcs (~> 1.3) parser (>= 3.2.2.4) - websocket-driver (0.7.5) + useragent (0.16.10) + webrick (1.8.1) + websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) zeitwerk (2.6.6) @@ -307,7 +341,7 @@ DEPENDENCIES mutant-minitest (= 0.11.26)! pg (~> 1.4) puma (~> 5.6) - rails (= 7.0.4) + rails (= 7.2.0) rails_event_store (>= 2.13.0, < 3.0) redis skylight diff --git a/rails_application/app/read_models/products/configuration.rb b/rails_application/app/read_models/products/configuration.rb index e8174f0af..90ca49697 100644 --- a/rails_application/app/read_models/products/configuration.rb +++ b/rails_application/app/read_models/products/configuration.rb @@ -1,7 +1,7 @@ module Products class Product < ApplicationRecord self.table_name = "products" - serialize :current_prices_calendar, Array + serialize :current_prices_calendar, type: Array def current_prices_calendar return [] unless super