diff --git a/Gemfile b/Gemfile index 090b9b1..c440b3a 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source 'https://rubygems.org' ruby file: '.ruby-version' -gem 'rails', '~> 7.1' +gem 'rails', '~> 7.1.0' # Drivers gem 'redis', '>= 4.0.1' diff --git a/Gemfile.lock b/Gemfile.lock index e654a7b..ad6f5aa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,29 +7,35 @@ GIT GEM remote: https://rubygems.org/ specs: - actioncable (7.2.0.beta3) - actionpack (= 7.2.0.beta3) - activesupport (= 7.2.0.beta3) + actioncable (7.1.3.4) + actionpack (= 7.1.3.4) + activesupport (= 7.1.3.4) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (7.2.0.beta3) - actionpack (= 7.2.0.beta3) - activejob (= 7.2.0.beta3) - activerecord (= 7.2.0.beta3) - activestorage (= 7.2.0.beta3) - activesupport (= 7.2.0.beta3) - mail (>= 2.8.0) - actionmailer (7.2.0.beta3) - actionpack (= 7.2.0.beta3) - actionview (= 7.2.0.beta3) - activejob (= 7.2.0.beta3) - activesupport (= 7.2.0.beta3) - mail (>= 2.8.0) + actionmailbox (7.1.3.4) + actionpack (= 7.1.3.4) + activejob (= 7.1.3.4) + activerecord (= 7.1.3.4) + activestorage (= 7.1.3.4) + activesupport (= 7.1.3.4) + mail (>= 2.7.1) + net-imap + net-pop + net-smtp + actionmailer (7.1.3.4) + actionpack (= 7.1.3.4) + actionview (= 7.1.3.4) + activejob (= 7.1.3.4) + activesupport (= 7.1.3.4) + mail (~> 2.5, >= 2.5.4) + net-imap + net-pop + net-smtp rails-dom-testing (~> 2.2) - actionpack (7.2.0.beta3) - actionview (= 7.2.0.beta3) - activesupport (= 7.2.0.beta3) + actionpack (7.1.3.4) + actionview (= 7.1.3.4) + activesupport (= 7.1.3.4) nokogiri (>= 1.8.5) racc rack (>= 2.2.4) @@ -37,45 +43,44 @@ GEM rack-test (>= 0.6.3) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - useragent (~> 0.16) - actiontext (7.2.0.beta3) - actionpack (= 7.2.0.beta3) - activerecord (= 7.2.0.beta3) - activestorage (= 7.2.0.beta3) - activesupport (= 7.2.0.beta3) + actiontext (7.1.3.4) + actionpack (= 7.1.3.4) + activerecord (= 7.1.3.4) + activestorage (= 7.1.3.4) + activesupport (= 7.1.3.4) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.2.0.beta3) - activesupport (= 7.2.0.beta3) + actionview (7.1.3.4) + activesupport (= 7.1.3.4) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - activejob (7.2.0.beta3) - activesupport (= 7.2.0.beta3) + activejob (7.1.3.4) + activesupport (= 7.1.3.4) globalid (>= 0.3.6) - activemodel (7.2.0.beta3) - activesupport (= 7.2.0.beta3) - activerecord (7.2.0.beta3) - activemodel (= 7.2.0.beta3) - activesupport (= 7.2.0.beta3) + activemodel (7.1.3.4) + activesupport (= 7.1.3.4) + activerecord (7.1.3.4) + activemodel (= 7.1.3.4) + activesupport (= 7.1.3.4) timeout (>= 0.4.0) - activestorage (7.2.0.beta3) - actionpack (= 7.2.0.beta3) - activejob (= 7.2.0.beta3) - activerecord (= 7.2.0.beta3) - activesupport (= 7.2.0.beta3) + activestorage (7.1.3.4) + actionpack (= 7.1.3.4) + activejob (= 7.1.3.4) + activerecord (= 7.1.3.4) + activesupport (= 7.1.3.4) marcel (~> 1.0) - activesupport (7.2.0.beta3) + activesupport (7.1.3.4) base64 bigdecimal - concurrent-ruby (~> 1.0, >= 1.3.1) + concurrent-ruby (~> 1.0, >= 1.0.2) connection_pool (>= 2.2.5) drb i18n (>= 1.6, < 2) - logger (>= 1.4.2) minitest (>= 5.1) - tzinfo (~> 2.0, >= 2.0.5) + mutex_m + tzinfo (~> 2.0) addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) @@ -141,7 +146,6 @@ GEM activesupport (>= 5.0.0) json (2.7.2) language_server-protocol (3.17.0.3) - logger (1.6.0) loofah (2.22.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) @@ -159,6 +163,7 @@ GEM multi_json (1.15.0) mustermann (3.0.0) ruby2_keywords (~> 0.0.1) + mutex_m (0.2.0) net-imap (0.4.14) date net-protocol @@ -203,20 +208,20 @@ GEM rackup (2.1.0) rack (>= 3) webrick (~> 1.8) - rails (7.2.0.beta3) - actioncable (= 7.2.0.beta3) - actionmailbox (= 7.2.0.beta3) - actionmailer (= 7.2.0.beta3) - actionpack (= 7.2.0.beta3) - actiontext (= 7.2.0.beta3) - actionview (= 7.2.0.beta3) - activejob (= 7.2.0.beta3) - activemodel (= 7.2.0.beta3) - activerecord (= 7.2.0.beta3) - activestorage (= 7.2.0.beta3) - activesupport (= 7.2.0.beta3) + rails (7.1.3.4) + actioncable (= 7.1.3.4) + actionmailbox (= 7.1.3.4) + actionmailer (= 7.1.3.4) + actionpack (= 7.1.3.4) + actiontext (= 7.1.3.4) + actionview (= 7.1.3.4) + activejob (= 7.1.3.4) + activemodel (= 7.1.3.4) + activerecord (= 7.1.3.4) + activestorage (= 7.1.3.4) + activesupport (= 7.1.3.4) bundler (>= 1.15.0) - railties (= 7.2.0.beta3) + railties (= 7.1.3.4) rails-dom-testing (2.2.0) activesupport (>= 5.0.0) minitest @@ -227,10 +232,10 @@ GEM rails-i18n (7.0.9) i18n (>= 0.7, < 2) railties (>= 6.0.0, < 8) - railties (7.2.0.beta3) - actionpack (= 7.2.0.beta3) - activesupport (= 7.2.0.beta3) - irb (~> 1.13) + railties (7.1.3.4) + actionpack (= 7.1.3.4) + activesupport (= 7.1.3.4) + irb rackup (>= 1.0.0) rake (>= 12.2) thor (~> 1.0, >= 1.2.2) @@ -378,7 +383,7 @@ DEPENDENCIES importmap-rails jbuilder puma (>= 5.0) - rails (~> 7.1) + rails (~> 7.1.0) rails-i18n (~> 7.0.0) redcarpet (~> 3.6) redis (>= 4.0.1) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 9c1acb3..e65a6d2 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,5 +2,6 @@ class ApplicationController < ActionController::Base # Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has. - allow_browser versions: :modern + + # allow_browser versions: :modern # wait rails 7.2 end diff --git a/config/application.rb b/config/application.rb index 36d65aa..3c63292 100644 --- a/config/application.rb +++ b/config/application.rb @@ -11,7 +11,7 @@ module OpenGas class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 7.2 + config.load_defaults 7.1 # Please, add to the `ignore` list any other `lib` subdirectories that do # not contain `.rb` files, or that should not be reloaded or eager loaded. diff --git a/db/migrate/20240718060253_create_medical_certificates.rb b/db/migrate/20240718060253_create_medical_certificates.rb index 46c6acd..e3c6157 100644 --- a/db/migrate/20240718060253_create_medical_certificates.rb +++ b/db/migrate/20240718060253_create_medical_certificates.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class CreateMedicalCertificates < ActiveRecord::Migration[7.2] +class CreateMedicalCertificates < ActiveRecord::Migration[7.1] def change create_table :medical_certificates do |t| t.integer :kind, null: false diff --git a/db/migrate/20240718060338_create_memberships.rb b/db/migrate/20240718060338_create_memberships.rb index 15028ff..820ae07 100644 --- a/db/migrate/20240718060338_create_memberships.rb +++ b/db/migrate/20240718060338_create_memberships.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class CreateMemberships < ActiveRecord::Migration[7.2] +class CreateMemberships < ActiveRecord::Migration[7.1] def change create_table :memberships do |t| t.belongs_to :member diff --git a/db/migrate/20240718060353_create_payments.rb b/db/migrate/20240718060353_create_payments.rb index 243381c..74ccbee 100644 --- a/db/migrate/20240718060353_create_payments.rb +++ b/db/migrate/20240718060353_create_payments.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class CreatePayments < ActiveRecord::Migration[7.2] +class CreatePayments < ActiveRecord::Migration[7.1] def change create_table :payments do |t| t.belongs_to :member diff --git a/db/migrate/20240718060539_create_member.rb b/db/migrate/20240718060539_create_member.rb index 44d4182..60e5cd6 100644 --- a/db/migrate/20240718060539_create_member.rb +++ b/db/migrate/20240718060539_create_member.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class CreateMember < ActiveRecord::Migration[7.2] +class CreateMember < ActiveRecord::Migration[7.1] def change create_table :members do |t| t.string :first_name, null: false diff --git a/db/schema.rb b/db/schema.rb index e342cf8..63a099b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.2].define(version: 2024_07_18_060539) do +ActiveRecord::Schema[7.1].define(version: 2024_07_18_060539) do create_table "medical_certificates", force: :cascade do |t| t.integer "kind", null: false t.date "expires_at", null: false @@ -50,4 +50,5 @@ t.datetime "updated_at", null: false t.index ["member_id"], name: "index_payments_on_member_id" end + end