diff --git a/Gemfile.lock b/Gemfile.lock index eadd3a3..8d9c47b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -143,7 +143,7 @@ GEM jbuilder (2.13.0) actionview (>= 5.0.0) activesupport (>= 5.0.0) - json (2.8.2) + json (2.9.1) json-schema (5.0.1) addressable (~> 2.8) jsonapi-deserializable (0.2.0) @@ -176,7 +176,7 @@ GEM tomlrb (>= 1.3, < 2.1) with_env (= 1.1.0) xml-simple (~> 1.1.9) - logger (1.6.4) + logger (1.6.5) loofah (2.23.1) crass (~> 1.0.2) nokogiri (>= 1.12.0) @@ -290,7 +290,7 @@ GEM redis-client (>= 0.22.0) redis-client (0.22.2) connection_pool - regexp_parser (2.9.3) + regexp_parser (2.10.0) reline (0.6.0) io-console (~> 0.5) responders (3.1.1) @@ -329,7 +329,7 @@ GEM rswag-ui (2.16.0) actionpack (>= 5.2, < 8.1) railties (>= 5.2, < 8.1) - rubocop (1.69.2) + rubocop (1.70.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -339,7 +339,7 @@ GEM rubocop-ast (>= 1.36.2, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.36.2) + rubocop-ast (1.37.0) parser (>= 3.3.1.0) rubocop-factory_bot (2.26.1) rubocop (~> 1.61) @@ -354,8 +354,8 @@ GEM rubocop (~> 1.61) rubocop-rspec (~> 3, >= 3.0.1) ruby-progressbar (1.13.0) - rubytree (2.1.0) - json (~> 2.0, > 2.3.1) + rubytree (2.1.1) + json (~> 2.0, > 2.9) rubyzip (2.3.2) securerandom (0.4.1) shoulda-matchers (6.4.0) @@ -504,7 +504,7 @@ CHECKSUMS io-console (0.8.0) sha256=cd6a9facbc69871d69b2cb8b926fc6ea7ef06f06e505e81a64f14a470fddefa2 irb (1.14.3) sha256=c457f1f2f1438ae9ce5c5be3981ae2138dec7fb894c7d73777eeeb0a6c0d0752 jbuilder (2.13.0) sha256=7200a38a1c0081aa81b7a9757e7a299db75bc58cf1fd45ca7919a91627d227d6 - json (2.8.2) sha256=dd4fa6c9c81daecf72b86ea36e56ed8955fdbb4d4dc379c93d313a59344486cf + json (2.9.1) sha256=d2bdef4644052fad91c1785d48263756fe32fcac08b96a20bb15840e96550d11 json-schema (5.0.1) sha256=bef71a82c600a42594911553522e143f7634affc198ed507ef3ded2f920a74a9 jsonapi-deserializable (0.2.0) sha256=5f0ca2d3f8404cce1584a314e8a3753be32a56054c942adfe997b87e92bce147 jsonapi-parser (0.1.1) sha256=9ee0dc031e88fc7548d56fab66f9716d1e1c06f972b529b8c4617bc42a097020 @@ -517,7 +517,7 @@ CHECKSUMS letter_opener (1.10.0) sha256=2ff33f2e3b5c3c26d1959be54b395c086ca6d44826e8bf41a14ff96fdf1bdbb2 letter_opener_web (3.0.0) sha256=3f391efe0e8b9b24becfab5537dfb17a5cf5eb532038f947daab58cb4b749860 license_finder (7.2.1) sha256=179ead19b64b170638b72fd16024233813673ac9d20d5ba75ae0b4444887ef14 - logger (1.6.4) sha256=b627b91c922231050932e7bf8ee886fe54790ba2238a468ead52ba21911f2ee7 + logger (1.6.5) sha256=c3cfe56d01656490ddd103d38b8993d73d86296adebc5f58cefc9ec03741e56b loofah (2.23.1) sha256=d0a07422cb3b69272e124afa914ef6d517e30d5496b7f1c1fc5b95481f13f75e mail (2.8.1) sha256=ec3b9fadcf2b3755c78785cb17bc9a0ca9ee9857108a64b6f5cfc9c0b5bfc9ad marcel (1.0.4) sha256=0d5649feb64b8f19f3d3468b96c680bae9746335d02194270287868a661516a4 @@ -565,7 +565,7 @@ CHECKSUMS react-rails (3.2.1) sha256=2235db0b240517596b1cb3e26177ab5bc64d3a56579b0415ee242b1691f81f64 redis (5.3.0) sha256=6bf810c5ae889187f0c45f77db503310980310afa57cf1640d57f419ccda72b1 redis-client (0.22.2) sha256=31fee4b7cf04109b227327fabeaaf1fc5b652cf48a186a03bc607e40767bacc0 - regexp_parser (2.9.3) sha256=4b620657ed8349d82e1331a076415c79b9dd714a5546162ddd790ea9988f6379 + regexp_parser (2.10.0) sha256=cb6f0ddde88772cd64bff1dbbf68df66d376043fe2e66a9ef77fcb1b0c548c61 reline (0.6.0) sha256=57620375dcbe56ec09bac7192bfb7460c716bbf0054dc94345ecaa5438e539d2 responders (3.1.1) sha256=92f2a87e09028347368639cfb468f5fefa745cb0dc2377ef060db1cdd79a341a rexml (3.3.9) sha256=d71875b85299f341edf47d44df0212e7658cbdf35aeb69cefdb63f57af3137c9 @@ -578,14 +578,14 @@ CHECKSUMS rswag-api (2.16.0) sha256=b653f7bd92e98be18b01ab4525d88950d7b0960e293a99f856b9efcee3ae6074 rswag-specs (2.16.0) sha256=8ba26085c408b0bd2ed21dc8015c80f417c7d34c63720ab7133c2549b5bd2a91 rswag-ui (2.16.0) sha256=a1f49e927dceda92e6e6e7c1000f1e217ee66c565f69e28131dc98b33cd3a04f - rubocop (1.69.2) sha256=762fb0f30a379bf6054588d39f1815a2a1df8f067bc0337d3fe500e346924bb8 - rubocop-ast (1.36.2) sha256=566405b7f983eb9aa3b91d28aca6bc6566e356a97f59e89851dd910aef1dd1ca + rubocop (1.70.0) sha256=96751f8440b36a0ac6e9a8ab596900803118d83d6b83f2037bf8b3d7a5bc440e + rubocop-ast (1.37.0) sha256=9513ac88aaf113d04b52912533ffe46475de1362d4aa41141b51b2455827c080 rubocop-factory_bot (2.26.1) sha256=8de13cd4edcee5ca800f255188167ecef8dbfc3d1fae9f15734e9d2e755392aa rubocop-rails (2.28.0) sha256=4967bed9ea13e6dcab566fea4265a6dd0381db739b305e48930aba1282da2715 rubocop-rspec (3.3.0) sha256=79e1b281a689044d1516fefbc52e2e6c06cd367c25ebeaf06a7a198e9071cd7d rubocop-rspec_rails (2.30.0) sha256=888112e83f9d7ef7ad2397e9d69a0b9614a4bae24f072c399804a180f80c4c46 ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33 - rubytree (2.1.0) sha256=30e8759ba060dff0dabf7e40cbaaa4df892fa34cbe9f1b3fbb00e83a3f321e4b + rubytree (2.1.1) sha256=4925016356a81730e982f1f8c3b5f8da461f18906c77d238bad4c4ba896abd41 rubyzip (2.3.2) sha256=3f57e3935dc2255c414484fbf8d673b4909d8a6a57007ed754dde39342d2373f securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1 shoulda-matchers (6.4.0) sha256=9055bb7f4bb342125fb860809798855c630e05ef5e75837b3168b8e6ee1608b0 diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb index 72b2bf5..716be35 100644 --- a/app/channels/application_cable/channel.rb +++ b/app/channels/application_cable/channel.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module ApplicationCable diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb index d45ff4d..286b699 100644 --- a/app/channels/application_cable/connection.rb +++ b/app/channels/application_cable/connection.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module ApplicationCable diff --git a/app/controllers/affinities_controller.rb b/app/controllers/affinities_controller.rb index f8b7052..7d63e9e 100644 --- a/app/controllers/affinities_controller.rb +++ b/app/controllers/affinities_controller.rb @@ -1,18 +1,20 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class AffinitiesController < ApplicationController - before_action :set_group + before_action :set_group, except: :reset def index overridden = @group.affinities.each_with_object({}) do |affinity, acc| acc[affinity.another_group(@group).id] = affinity.discomfort end - Group.where.not(id: @group.id) - .pluck(:id) - .index_with { |group_id| GroupAffinity::MAX_DISCOMFORT - (overridden[group_id] || GroupAffinity::NEUTRAL) } - .then { |affinities| render json: affinities } + + for_each_group do |group_id| + overridden[group_id] || GroupAffinity::NEUTRAL + end end def bulk_update @@ -33,8 +35,35 @@ class AffinitiesController < ApplicationController render json: { error: 'Invalid group ID or discomfort provided.' }, status: :bad_request end + def default + for_each_group do |group_id| + Tables::DiscomfortCalculator.cohesion_discomfort(id_a: @group.id, id_b: group_id).to_f + end + end + + def reset + affinities = Group.pluck(:id).combination(2).map do |(group_a_id, group_b_id)| + { + group_a_id:, + group_b_id:, + discomfort: Tables::DiscomfortCalculator.cohesion_discomfort(id_a: group_a_id, id_b: group_b_id).to_f + } + end + + GroupAffinity.upsert_all(affinities) + + render json: {}, status: :ok + end + private + def for_each_group + Group.where.not(id: @group.id) + .pluck(:id) + .index_with { |group_id| GroupAffinity::MAX_DISCOMFORT - yield(group_id) } + .then { |affinities| render json: affinities } + end + def set_group @group = Group.find(params[:group_id]) end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b1baa15..a73aa87 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class ApplicationController < ActionController::Base diff --git a/app/controllers/captcha_controller.rb b/app/controllers/captcha_controller.rb index 57dac61..98fcbcb 100644 --- a/app/controllers/captcha_controller.rb +++ b/app/controllers/captcha_controller.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class CaptchaController < ApplicationController diff --git a/app/controllers/expenses_controller.rb b/app/controllers/expenses_controller.rb index 6e1b63b..093d691 100644 --- a/app/controllers/expenses_controller.rb +++ b/app/controllers/expenses_controller.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class ExpensesController < ApplicationController diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 77a347f..8baa833 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class GroupsController < ApplicationController diff --git a/app/controllers/guests_controller.rb b/app/controllers/guests_controller.rb index e7f9ff0..7aee16d 100644 --- a/app/controllers/guests_controller.rb +++ b/app/controllers/guests_controller.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'csv' diff --git a/app/controllers/summary_controller.rb b/app/controllers/summary_controller.rb index e165127..9481a47 100644 --- a/app/controllers/summary_controller.rb +++ b/app/controllers/summary_controller.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class SummaryController < ApplicationController diff --git a/app/controllers/tables_arrangements_controller.rb b/app/controllers/tables_arrangements_controller.rb index 23b99ba..76a6774 100644 --- a/app/controllers/tables_arrangements_controller.rb +++ b/app/controllers/tables_arrangements_controller.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class TablesArrangementsController < ApplicationController diff --git a/app/controllers/tokens_controller.rb b/app/controllers/tokens_controller.rb index 5a8490d..4b71df3 100644 --- a/app/controllers/tokens_controller.rb +++ b/app/controllers/tokens_controller.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class TokensController < ApplicationController diff --git a/app/controllers/users/confirmations_controller.rb b/app/controllers/users/confirmations_controller.rb index 7e5c048..c078a1a 100644 --- a/app/controllers/users/confirmations_controller.rb +++ b/app/controllers/users/confirmations_controller.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module Users diff --git a/app/controllers/users/registrations_controller.rb b/app/controllers/users/registrations_controller.rb index 0849d96..2a25268 100644 --- a/app/controllers/users/registrations_controller.rb +++ b/app/controllers/users/registrations_controller.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module Users diff --git a/app/controllers/users/sessions_controller.rb b/app/controllers/users/sessions_controller.rb index 5e3ad06..8464417 100644 --- a/app/controllers/users/sessions_controller.rb +++ b/app/controllers/users/sessions_controller.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module Users diff --git a/app/extensions/tree_node_extension.rb b/app/extensions/tree_node_extension.rb index 9bd1ed4..443c658 100644 --- a/app/extensions/tree_node_extension.rb +++ b/app/extensions/tree_node_extension.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module TreeNodeExtension diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1bc40d8..d0c1baa 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module ApplicationHelper diff --git a/app/helpers/expenses_helper.rb b/app/helpers/expenses_helper.rb index 287c70f..05513f7 100644 --- a/app/helpers/expenses_helper.rb +++ b/app/helpers/expenses_helper.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module ExpensesHelper diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb index b0492f2..85d797b 100644 --- a/app/helpers/groups_helper.rb +++ b/app/helpers/groups_helper.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module GroupsHelper diff --git a/app/helpers/guests_helper.rb b/app/helpers/guests_helper.rb index 849ddb8..639cf38 100644 --- a/app/helpers/guests_helper.rb +++ b/app/helpers/guests_helper.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module GuestsHelper diff --git a/app/helpers/tables_arrangements_helper.rb b/app/helpers/tables_arrangements_helper.rb index bd95809..a039c6e 100644 --- a/app/helpers/tables_arrangements_helper.rb +++ b/app/helpers/tables_arrangements_helper.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module TablesArrangementsHelper diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb index 02ef80e..62fb66f 100644 --- a/app/jobs/application_job.rb +++ b/app/jobs/application_job.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class ApplicationJob < ActiveJob::Base diff --git a/app/jobs/table_simulator_job.rb b/app/jobs/table_simulator_job.rb index 50fe728..56a59d0 100644 --- a/app/jobs/table_simulator_job.rb +++ b/app/jobs/table_simulator_job.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class TableSimulatorJob < ApplicationJob diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index b168ff3..706222d 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class ApplicationMailer < ActionMailer::Base diff --git a/app/models/application_record.rb b/app/models/application_record.rb index 1a28db5..d6fee04 100644 --- a/app/models/application_record.rb +++ b/app/models/application_record.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class ApplicationRecord < ActiveRecord::Base diff --git a/app/models/expense.rb b/app/models/expense.rb index a34cfc5..f810d1c 100644 --- a/app/models/expense.rb +++ b/app/models/expense.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # == Schema Information diff --git a/app/models/group.rb b/app/models/group.rb index ddf6e52..92d88a6 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # == Schema Information diff --git a/app/models/group_affinity.rb b/app/models/group_affinity.rb index 1e85485..b94e0c5 100644 --- a/app/models/group_affinity.rb +++ b/app/models/group_affinity.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # == Schema Information diff --git a/app/models/guest.rb b/app/models/guest.rb index 8687767..c9eb0b0 100644 --- a/app/models/guest.rb +++ b/app/models/guest.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # == Schema Information diff --git a/app/models/seat.rb b/app/models/seat.rb index a00ec99..71e9d77 100644 --- a/app/models/seat.rb +++ b/app/models/seat.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # == Schema Information diff --git a/app/models/tables_arrangement.rb b/app/models/tables_arrangement.rb index 72f13d5..3e6aef9 100644 --- a/app/models/tables_arrangement.rb +++ b/app/models/tables_arrangement.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # == Schema Information diff --git a/app/models/user.rb b/app/models/user.rb index 5a9683e..d263c97 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # == Schema Information diff --git a/app/models/wedding.rb b/app/models/wedding.rb index c94d83d..4368c50 100644 --- a/app/models/wedding.rb +++ b/app/models/wedding.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # == Schema Information diff --git a/app/queries/expenses/total_query.rb b/app/queries/expenses/total_query.rb index fc46a6b..0ba9f5f 100644 --- a/app/queries/expenses/total_query.rb +++ b/app/queries/expenses/total_query.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module Expenses diff --git a/app/queries/groups/summary_query.rb b/app/queries/groups/summary_query.rb index 28fe6a5..e1b7138 100644 --- a/app/queries/groups/summary_query.rb +++ b/app/queries/groups/summary_query.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module Groups diff --git a/app/serializers/serializable_group.rb b/app/serializers/serializable_group.rb index eb30b10..4572c78 100644 --- a/app/serializers/serializable_group.rb +++ b/app/serializers/serializable_group.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class SerializableGroup < JSONAPI::Serializable::Resource diff --git a/app/serializers/serializable_guest.rb b/app/serializers/serializable_guest.rb index 981e58b..3e95236 100644 --- a/app/serializers/serializable_guest.rb +++ b/app/serializers/serializable_guest.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class SerializableGuest < JSONAPI::Serializable::Resource diff --git a/app/services/affinity_groups_hierarchy.rb b/app/services/affinity_groups_hierarchy.rb index 310bac8..783c7ed 100644 --- a/app/services/affinity_groups_hierarchy.rb +++ b/app/services/affinity_groups_hierarchy.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class AffinityGroupsHierarchy < Array diff --git a/app/services/libre_captcha.rb b/app/services/libre_captcha.rb index 314c186..d644ba2 100644 --- a/app/services/libre_captcha.rb +++ b/app/services/libre_captcha.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class LibreCaptcha diff --git a/app/services/tables/discomfort_calculator.rb b/app/services/tables/discomfort_calculator.rb index 48dacce..bd35087 100644 --- a/app/services/tables/discomfort_calculator.rb +++ b/app/services/tables/discomfort_calculator.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module Tables diff --git a/app/services/tables/distribution.rb b/app/services/tables/distribution.rb index 04d1e6a..7b4762f 100644 --- a/app/services/tables/distribution.rb +++ b/app/services/tables/distribution.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require_relative '../../extensions/tree_node_extension' diff --git a/app/services/tables/shift.rb b/app/services/tables/shift.rb index 2326b1e..45e7150 100644 --- a/app/services/tables/shift.rb +++ b/app/services/tables/shift.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module Tables diff --git a/app/services/tables/swap.rb b/app/services/tables/swap.rb index 1fe6944..230959d 100644 --- a/app/services/tables/swap.rb +++ b/app/services/tables/swap.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module Tables diff --git a/app/services/tables/table.rb b/app/services/tables/table.rb index 8877e7c..3628c49 100644 --- a/app/services/tables/table.rb +++ b/app/services/tables/table.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module Tables diff --git a/app/services/vns/engine.rb b/app/services/vns/engine.rb index 9f600df..fe1ff91 100644 --- a/app/services/vns/engine.rb +++ b/app/services/vns/engine.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module VNS diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb index ca6bd25..4eee621 100644 --- a/app/views/layouts/mailer.html.erb +++ b/app/views/layouts/mailer.html.erb @@ -1,5 +1,7 @@ <%# Copyright (C) 2024 Manuel Bustillo %> +<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %> + diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb index 0b40d6b..62b17c3 100644 --- a/app/views/layouts/mailer.text.erb +++ b/app/views/layouts/mailer.text.erb @@ -1,3 +1,5 @@ <%# Copyright (C) 2024 Manuel Bustillo %> +<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %> + <%= yield %> diff --git a/app/views/users/mailer/confirmation_instructions.html.erb b/app/views/users/mailer/confirmation_instructions.html.erb index 448e3d9..688f1bc 100644 --- a/app/views/users/mailer/confirmation_instructions.html.erb +++ b/app/views/users/mailer/confirmation_instructions.html.erb @@ -1,5 +1,7 @@ <%# Copyright (C) 2024 Manuel Bustillo %> +<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %> +

Welcome <%= @email %>!

You can confirm your account email through the link below:

diff --git a/app/views/users/mailer/email_changed.html.erb b/app/views/users/mailer/email_changed.html.erb index 51cfa7a..8935bc0 100644 --- a/app/views/users/mailer/email_changed.html.erb +++ b/app/views/users/mailer/email_changed.html.erb @@ -1,5 +1,7 @@ <%# Copyright (C) 2024 Manuel Bustillo %> +<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %> +

Hello <%= @email %>!

<% if @resource.try(:unconfirmed_email?) %> diff --git a/app/views/users/mailer/password_change.html.erb b/app/views/users/mailer/password_change.html.erb index 7bfd484..3d72a19 100644 --- a/app/views/users/mailer/password_change.html.erb +++ b/app/views/users/mailer/password_change.html.erb @@ -1,5 +1,7 @@ <%# Copyright (C) 2024 Manuel Bustillo %> +<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %> +

Hello <%= @resource.email %>!

We're contacting you to notify you that your password has been changed.

diff --git a/app/views/users/mailer/reset_password_instructions.html.erb b/app/views/users/mailer/reset_password_instructions.html.erb index 3bc6fcd..fc45ec9 100644 --- a/app/views/users/mailer/reset_password_instructions.html.erb +++ b/app/views/users/mailer/reset_password_instructions.html.erb @@ -1,5 +1,7 @@ <%# Copyright (C) 2024 Manuel Bustillo %> +<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %> +

Hello <%= @resource.email %>!

Someone has requested a link to change your password. You can do this through the link below.

diff --git a/app/views/users/mailer/unlock_instructions.html.erb b/app/views/users/mailer/unlock_instructions.html.erb index 6df5c0a..fddd365 100644 --- a/app/views/users/mailer/unlock_instructions.html.erb +++ b/app/views/users/mailer/unlock_instructions.html.erb @@ -1,5 +1,7 @@ <%# Copyright (C) 2024 Manuel Bustillo %> +<%# Copyright (C) 2024-2025 LibreWeddingPlanner contributors %> +

Hello <%= @resource.email %>!

Your account has been locked due to an excessive number of unsuccessful sign in attempts.

diff --git a/config/application.rb b/config/application.rb index 8233705..32fbf95 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + require_relative 'boot' require 'rails' diff --git a/config/boot.rb b/config/boot.rb index b7afb85..59676bc 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" # Set up gems listed in the Gemfile. diff --git a/config/environment.rb b/config/environment.rb index 6cec499..df4bf2e 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # Load the Rails application. require_relative "application" diff --git a/config/environments/development.rb b/config/environments/development.rb index b3b6593..b0f2198 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + require "active_support/core_ext/integer/time" Rails.application.configure do diff --git a/config/environments/production.rb b/config/environments/production.rb index 2a94187..59e22d6 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + require "active_support/core_ext/integer/time" Rails.application.configure do diff --git a/config/environments/test.rb b/config/environments/test.rb index ef2b3a4..28b85d7 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + require "active_support/core_ext/integer/time" # The test environment is used exclusively to run your application's diff --git a/config/importmap.rb b/config/importmap.rb index f84aa44..19991f1 100644 --- a/config/importmap.rb +++ b/config/importmap.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # Pin npm packages by running ./bin/importmap pin "application" diff --git a/config/initializers/acts_as_tenant.rb b/config/initializers/acts_as_tenant.rb index c535737..72510c4 100644 --- a/config/initializers/acts_as_tenant.rb +++ b/config/initializers/acts_as_tenant.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + ActsAsTenant.configure do |config| config.require_tenant = !Rails.env.test? end \ No newline at end of file diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index f67fe73..8e722ce 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # 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. diff --git a/config/initializers/colors.rb b/config/initializers/colors.rb index b435084..f1bbdd2 100644 --- a/config/initializers/colors.rb +++ b/config/initializers/colors.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + Chroma.define_palette :decreasing_saturation do spin(20).desaturate(40) spin(-20).desaturate(40) diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index 9004631..3f9221f 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # Be sure to restart your server when you modify this file. # Define an application-wide content security policy. diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index f4b450f..565fe09 100644 --- a/config/initializers/cors.rb +++ b/config/initializers/cors.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # config/initializers/cors.rb Rails.application.config.middleware.insert_before 0, Rack::Cors do diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 5f631ef..0ecbf5e 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # Assuming you have not yet modified this file, each configuration option below diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb index b5bfef2..e184d9a 100644 --- a/config/initializers/filter_parameter_logging.rb +++ b/config/initializers/filter_parameter_logging.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # Be sure to restart your server when you modify this file. # Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file. diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index 6633bb9..0f9a0ea 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # Be sure to restart your server when you modify this file. # Add new inflection rules using the following format. Inflections diff --git a/config/initializers/permissions_policy.rb b/config/initializers/permissions_policy.rb index 57547a3..af956f8 100644 --- a/config/initializers/permissions_policy.rb +++ b/config/initializers/permissions_policy.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # Be sure to restart your server when you modify this file. # Define an application-wide HTTP permissions policy. For further diff --git a/config/initializers/rswag_api.rb b/config/initializers/rswag_api.rb index 5c46141..4c11988 100644 --- a/config/initializers/rswag_api.rb +++ b/config/initializers/rswag_api.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + Rswag::Api.configure do |c| # Specify a root folder where Swagger JSON files are located diff --git a/config/initializers/rswag_ui.rb b/config/initializers/rswag_ui.rb index 9540ca4..dec08ce 100644 --- a/config/initializers/rswag_ui.rb +++ b/config/initializers/rswag_ui.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + Rswag::Ui.configure do |c| # List the Swagger endpoints that you want to be documented through the diff --git a/config/initializers/ruby_extensions.rb b/config/initializers/ruby_extensions.rb index 46016e7..9fb7af1 100644 --- a/config/initializers/ruby_extensions.rb +++ b/config/initializers/ruby_extensions.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class Numeric def to_currency Money.from_amount(self, "EUR").format diff --git a/config/puma.rb b/config/puma.rb index 0e947b4..3d8dbc2 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # This configuration file will be evaluated by Puma. The top-level methods that # are invoked here are part of Puma's configuration DSL. For more information # about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html. diff --git a/config/routes.rb b/config/routes.rb index 9e2b004..457503d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + Rails.application.routes.draw do mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development? get 'token' => 'tokens#show', as: :token @@ -24,8 +26,10 @@ Rails.application.routes.draw do end resources :groups, only: %i[index create update destroy] do + post 'affinities/reset', to: 'affinities#reset', on: :collection resources :affinities, only: %i[index] do put :bulk_update, on: :collection + get :default, on: :collection end end diff --git a/db/migrate/20240711175425_create_expenses.rb b/db/migrate/20240711175425_create_expenses.rb index cdac7d0..1538790 100644 --- a/db/migrate/20240711175425_create_expenses.rb +++ b/db/migrate/20240711175425_create_expenses.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class CreateExpenses < ActiveRecord::Migration[7.1] def change create_enum :pricing_types, ["fixed", "per_person"] diff --git a/db/migrate/20240711180753_create_guests.rb b/db/migrate/20240711180753_create_guests.rb index ca3f85b..6597d34 100644 --- a/db/migrate/20240711180753_create_guests.rb +++ b/db/migrate/20240711180753_create_guests.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class CreateGuests < ActiveRecord::Migration[7.1] def change create_table :guests, id: :uuid do |t| diff --git a/db/migrate/20240711181626_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb b/db/migrate/20240711181626_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb index 803f800..a614c83 100644 --- a/db/migrate/20240711181626_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb +++ b/db/migrate/20240711181626_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # This migration comes from acts_as_taggable_on_engine (originally 1) diff --git a/db/migrate/20240711181627_add_missing_unique_indices.acts_as_taggable_on_engine.rb b/db/migrate/20240711181627_add_missing_unique_indices.acts_as_taggable_on_engine.rb index 7fe34a2..ab62f5f 100644 --- a/db/migrate/20240711181627_add_missing_unique_indices.acts_as_taggable_on_engine.rb +++ b/db/migrate/20240711181627_add_missing_unique_indices.acts_as_taggable_on_engine.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # This migration comes from acts_as_taggable_on_engine (originally 2) diff --git a/db/migrate/20240711181628_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb b/db/migrate/20240711181628_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb index a329d5d..1d9f0e9 100644 --- a/db/migrate/20240711181628_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb +++ b/db/migrate/20240711181628_add_taggings_counter_cache_to_tags.acts_as_taggable_on_engine.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # This migration comes from acts_as_taggable_on_engine (originally 3) diff --git a/db/migrate/20240711181629_add_missing_taggable_index.acts_as_taggable_on_engine.rb b/db/migrate/20240711181629_add_missing_taggable_index.acts_as_taggable_on_engine.rb index 4548054..0d79854 100644 --- a/db/migrate/20240711181629_add_missing_taggable_index.acts_as_taggable_on_engine.rb +++ b/db/migrate/20240711181629_add_missing_taggable_index.acts_as_taggable_on_engine.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # This migration comes from acts_as_taggable_on_engine (originally 4) diff --git a/db/migrate/20240711181630_change_collation_for_tag_names.acts_as_taggable_on_engine.rb b/db/migrate/20240711181630_change_collation_for_tag_names.acts_as_taggable_on_engine.rb index d0ff9c4..e643bb4 100644 --- a/db/migrate/20240711181630_change_collation_for_tag_names.acts_as_taggable_on_engine.rb +++ b/db/migrate/20240711181630_change_collation_for_tag_names.acts_as_taggable_on_engine.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # This migration comes from acts_as_taggable_on_engine (originally 5) diff --git a/db/migrate/20240711181631_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb b/db/migrate/20240711181631_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb index 194dea4..fa60128 100644 --- a/db/migrate/20240711181631_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb +++ b/db/migrate/20240711181631_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # This migration comes from acts_as_taggable_on_engine (originally 6) diff --git a/db/migrate/20240711181632_add_tenant_to_taggings.acts_as_taggable_on_engine.rb b/db/migrate/20240711181632_add_tenant_to_taggings.acts_as_taggable_on_engine.rb index 23cb9f8..fa8df4d 100644 --- a/db/migrate/20240711181632_add_tenant_to_taggings.acts_as_taggable_on_engine.rb +++ b/db/migrate/20240711181632_add_tenant_to_taggings.acts_as_taggable_on_engine.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # This migration comes from acts_as_taggable_on_engine (originally 7) diff --git a/db/migrate/20240724181756_create_tables_arrangements.rb b/db/migrate/20240724181756_create_tables_arrangements.rb index ac69487..ed278c8 100644 --- a/db/migrate/20240724181756_create_tables_arrangements.rb +++ b/db/migrate/20240724181756_create_tables_arrangements.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class CreateTablesArrangements < ActiveRecord::Migration[7.1] def change create_table :tables_arrangements, id: :uuid do |t| diff --git a/db/migrate/20240724181853_create_seats.rb b/db/migrate/20240724181853_create_seats.rb index b28c9d0..462df84 100644 --- a/db/migrate/20240724181853_create_seats.rb +++ b/db/migrate/20240724181853_create_seats.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class CreateSeats < ActiveRecord::Migration[7.1] def change create_table :seats, id: :uuid do |t| diff --git a/db/migrate/20240811142121_create_groups.rb b/db/migrate/20240811142121_create_groups.rb index b21f067..8380c36 100644 --- a/db/migrate/20240811142121_create_groups.rb +++ b/db/migrate/20240811142121_create_groups.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class CreateGroups < ActiveRecord::Migration[7.1] def change create_table :groups, id: :uuid do |t| diff --git a/db/migrate/20240811143801_add_parent_to_group.rb b/db/migrate/20240811143801_add_parent_to_group.rb index c8a3a14..fc4a881 100644 --- a/db/migrate/20240811143801_add_parent_to_group.rb +++ b/db/migrate/20240811143801_add_parent_to_group.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class AddParentToGroup < ActiveRecord::Migration[7.1] def change add_reference :groups, :parent, type: :uuid, index: true, foreign_key: { to_table: :groups } diff --git a/db/migrate/20240811154115_add_group_to_guest.rb b/db/migrate/20240811154115_add_group_to_guest.rb index f1fcdaf..ff88298 100644 --- a/db/migrate/20240811154115_add_group_to_guest.rb +++ b/db/migrate/20240811154115_add_group_to_guest.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class AddGroupToGuest < ActiveRecord::Migration[7.1] def change add_reference :guests, :group, null: false, foreign_key: true, type: :uuid diff --git a/db/migrate/20240811170021_add_status_to_guest.rb b/db/migrate/20240811170021_add_status_to_guest.rb index de51170..09a2a9e 100644 --- a/db/migrate/20240811170021_add_status_to_guest.rb +++ b/db/migrate/20240811170021_add_status_to_guest.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class AddStatusToGuest < ActiveRecord::Migration[7.1] def change add_column :guests, :status, :integer, default: 0 diff --git a/db/migrate/20241101181052_drop_taggable_tables.rb b/db/migrate/20241101181052_drop_taggable_tables.rb index cce88c7..6787951 100644 --- a/db/migrate/20241101181052_drop_taggable_tables.rb +++ b/db/migrate/20241101181052_drop_taggable_tables.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class DropTaggableTables < ActiveRecord::Migration[7.2] def change drop_table 'taggings', force: :cascade do |t| diff --git a/db/migrate/20241103072808_add_name_to_tables_arrangements.rb b/db/migrate/20241103072808_add_name_to_tables_arrangements.rb index 53dd4fa..3bd57a2 100644 --- a/db/migrate/20241103072808_add_name_to_tables_arrangements.rb +++ b/db/migrate/20241103072808_add_name_to_tables_arrangements.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class AddNameToTablesArrangements < ActiveRecord::Migration[7.2] def change add_column :tables_arrangements, :name, :string, null: false diff --git a/db/migrate/20241103075705_solid_queue_install.rb b/db/migrate/20241103075705_solid_queue_install.rb index 3a0b744..ca9e45e 100644 --- a/db/migrate/20241103075705_solid_queue_install.rb +++ b/db/migrate/20241103075705_solid_queue_install.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class SolidQueueInstall < ActiveRecord::Migration[7.2] def change create_table 'solid_queue_blocked_executions', force: :cascade do |t| diff --git a/db/migrate/20241103093955_remove_email_from_guests.rb b/db/migrate/20241103093955_remove_email_from_guests.rb index 26ca939..a6f9798 100644 --- a/db/migrate/20241103093955_remove_email_from_guests.rb +++ b/db/migrate/20241103093955_remove_email_from_guests.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class RemoveEmailFromGuests < ActiveRecord::Migration[7.2] def change remove_column :guests, :email, :string diff --git a/db/migrate/20241103133122_add_color_to_group.rb b/db/migrate/20241103133122_add_color_to_group.rb index bca1c30..30218e3 100644 --- a/db/migrate/20241103133122_add_color_to_group.rb +++ b/db/migrate/20241103133122_add_color_to_group.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class AddColorToGroup < ActiveRecord::Migration[7.2] def change add_column :groups, :color, :string diff --git a/db/migrate/20241111063741_merge_guest_names.rb b/db/migrate/20241111063741_merge_guest_names.rb index 849f58f..90d5e82 100644 --- a/db/migrate/20241111063741_merge_guest_names.rb +++ b/db/migrate/20241111063741_merge_guest_names.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class MergeGuestNames < ActiveRecord::Migration[8.0] def change add_column :guests, :name, :string diff --git a/db/migrate/20241130095753_devise_create_users.rb b/db/migrate/20241130095753_devise_create_users.rb index 977c72e..496e3fc 100644 --- a/db/migrate/20241130095753_devise_create_users.rb +++ b/db/migrate/20241130095753_devise_create_users.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true class DeviseCreateUsers < ActiveRecord::Migration[8.0] diff --git a/db/migrate/20241130182228_create_weddings.rb b/db/migrate/20241130182228_create_weddings.rb index 2151f72..77ada38 100644 --- a/db/migrate/20241130182228_create_weddings.rb +++ b/db/migrate/20241130182228_create_weddings.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class CreateWeddings < ActiveRecord::Migration[8.0] def change create_table :weddings, id: :uuid do |t| diff --git a/db/migrate/20241130185731_add_wedding_id_to_models.rb b/db/migrate/20241130185731_add_wedding_id_to_models.rb index 63e5c32..c9b231c 100644 --- a/db/migrate/20241130185731_add_wedding_id_to_models.rb +++ b/db/migrate/20241130185731_add_wedding_id_to_models.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class AddWeddingIdToModels < ActiveRecord::Migration[8.0] def change [:expenses, :guests, :seats, :tables_arrangements, :groups, :users].each do |table| diff --git a/db/migrate/20241207112305_remove_wedding_date.rb b/db/migrate/20241207112305_remove_wedding_date.rb index c810ee4..ca28b71 100644 --- a/db/migrate/20241207112305_remove_wedding_date.rb +++ b/db/migrate/20241207112305_remove_wedding_date.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class RemoveWeddingDate < ActiveRecord::Migration[8.0] def change remove_column :weddings, :date, :date, null: false diff --git a/db/migrate/20241208102932_allow_ungrouped_guests.rb b/db/migrate/20241208102932_allow_ungrouped_guests.rb index c06d40c..f567676 100644 --- a/db/migrate/20241208102932_allow_ungrouped_guests.rb +++ b/db/migrate/20241208102932_allow_ungrouped_guests.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class AllowUngroupedGuests < ActiveRecord::Migration[8.0] def change change_column_null :guests, :group_id, true diff --git a/db/migrate/20241216231415_create_group_affinities.rb b/db/migrate/20241216231415_create_group_affinities.rb index 2b03897..113d026 100644 --- a/db/migrate/20241216231415_create_group_affinities.rb +++ b/db/migrate/20241216231415_create_group_affinities.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + class CreateGroupAffinities < ActiveRecord::Migration[8.0] disable_ddl_transaction! diff --git a/db/queue_schema.rb b/db/queue_schema.rb index 24748f4..149f41f 100644 --- a/db/queue_schema.rb +++ b/db/queue_schema.rb @@ -1,4 +1,6 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + ActiveRecord::Schema[7.1].define(version: 1) do end diff --git a/db/schema.rb b/db/schema.rb index f723b74..cfc1383 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. diff --git a/db/seeds.rb b/db/seeds.rb index eb45757..e61f33b 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + NUMBER_OF_GUESTS = 50 ActsAsTenant.without_tenant do diff --git a/spec/extensions/tree_spec.rb b/spec/extensions/tree_spec.rb index 1d3e6d0..937a0fe 100644 --- a/spec/extensions/tree_spec.rb +++ b/spec/extensions/tree_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'rails_helper' diff --git a/spec/factories/expense.rb b/spec/factories/expense.rb index e122a43..ceaf501 100644 --- a/spec/factories/expense.rb +++ b/spec/factories/expense.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/factories/group_affinities.rb b/spec/factories/group_affinities.rb index f5f2b65..c33de53 100644 --- a/spec/factories/group_affinities.rb +++ b/spec/factories/group_affinities.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/factories/groups.rb b/spec/factories/groups.rb index 84ae9ec..f19ba72 100644 --- a/spec/factories/groups.rb +++ b/spec/factories/groups.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/factories/guest.rb b/spec/factories/guest.rb index 25a5c5e..a1f284a 100644 --- a/spec/factories/guest.rb +++ b/spec/factories/guest.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/factories/table_arrangement.rb b/spec/factories/table_arrangement.rb index 19c5f14..86ddddf 100644 --- a/spec/factories/table_arrangement.rb +++ b/spec/factories/table_arrangement.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/factories/users.rb b/spec/factories/users.rb index 3616935..cc49d11 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/factories/weddings.rb b/spec/factories/weddings.rb index 1e6f555..de994c8 100644 --- a/spec/factories/weddings.rb +++ b/spec/factories/weddings.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/models/expense_spec.rb b/spec/models/expense_spec.rb index b002e78..9a8fc47 100644 --- a/spec/models/expense_spec.rb +++ b/spec/models/expense_spec.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/models/group_affinity_spec.rb b/spec/models/group_affinity_spec.rb index 9d56d08..5469d27 100644 --- a/spec/models/group_affinity_spec.rb +++ b/spec/models/group_affinity_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'rails_helper' diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index f7e7fd3..d7ec456 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/models/guest_spec.rb b/spec/models/guest_spec.rb index a63da70..ed526e8 100644 --- a/spec/models/guest_spec.rb +++ b/spec/models/guest_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'rails_helper' diff --git a/spec/models/seat_spec.rb b/spec/models/seat_spec.rb index 40e63f2..da5c17f 100644 --- a/spec/models/seat_spec.rb +++ b/spec/models/seat_spec.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/models/tables_arrangement_spec.rb b/spec/models/tables_arrangement_spec.rb index 493318c..b216b18 100644 --- a/spec/models/tables_arrangement_spec.rb +++ b/spec/models/tables_arrangement_spec.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index ae1be79..9f69608 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/models/wedding_spec.rb b/spec/models/wedding_spec.rb index 84db4f1..735255d 100644 --- a/spec/models/wedding_spec.rb +++ b/spec/models/wedding_spec.rb @@ -1,6 +1,8 @@ # Copyright (C) 2024 Manuel Bustillo -# Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors # frozen_string_literal: true diff --git a/spec/queries/expenses/total_query_spec.rb b/spec/queries/expenses/total_query_spec.rb index 7847abe..e3f16c4 100644 --- a/spec/queries/expenses/total_query_spec.rb +++ b/spec/queries/expenses/total_query_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'rails_helper' diff --git a/spec/queries/groups/summary_query_spec.rb b/spec/queries/groups/summary_query_spec.rb index 1ef1a33..cb3b7fe 100644 --- a/spec/queries/groups/summary_query_spec.rb +++ b/spec/queries/groups/summary_query_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'rails_helper' diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 7058316..653bbf9 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # This file is copied to spec/ when you run 'rails generate rspec:install' diff --git a/spec/requests/affinities_spec.rb b/spec/requests/affinities_spec.rb index c964018..3a39c0c 100644 --- a/spec/requests/affinities_spec.rb +++ b/spec/requests/affinities_spec.rb @@ -1,10 +1,23 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'swagger_helper' RSpec.describe 'affinities' do + path '/{slug}/groups/affinities/reset' do + parameter Swagger::Schema::SLUG + + post('reset affinities') do + tags 'Affinities' + description 'Reset all affinities to default values based on the distance between groups in the hierarchy.' + + response_empty200 + end + end + path '/{slug}/groups/{group_id}/affinities' do parameter Swagger::Schema::SLUG parameter name: 'group_id', in: :path, type: :string, format: :uuid, description: 'group_id' @@ -20,6 +33,21 @@ RSpec.describe 'affinities' do end end + path '/{slug}/groups/{group_id}/affinities/default' do + parameter Swagger::Schema::SLUG + parameter name: 'group_id', in: :path, type: :string, format: :uuid, description: 'group_id' + + get('calculate default affinity') do + tags 'Affinities' + produces 'application/json' + + response(200, 'successful') do + schema type: :object, additionalProperties: { type: :integer, minimum: 0, maximum: 2 } + xit + end + end + end + path '/{slug}/groups/{group_id}/affinities/bulk_update' do parameter Swagger::Schema::SLUG parameter name: 'group_id', in: :path, type: :string, format: :uuid, description: 'group_id' diff --git a/spec/requests/captcha_spec.rb b/spec/requests/captcha_spec.rb index 17dc9bf..e1f2fea 100644 --- a/spec/requests/captcha_spec.rb +++ b/spec/requests/captcha_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'swagger_helper' diff --git a/spec/requests/expenses_spec.rb b/spec/requests/expenses_spec.rb index 557f2e3..e6defe4 100644 --- a/spec/requests/expenses_spec.rb +++ b/spec/requests/expenses_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'swagger_helper' diff --git a/spec/requests/groups_spec.rb b/spec/requests/groups_spec.rb index 30c512e..49d121b 100644 --- a/spec/requests/groups_spec.rb +++ b/spec/requests/groups_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'swagger_helper' diff --git a/spec/requests/guests_spec.rb b/spec/requests/guests_spec.rb index 1ef80d4..40a6686 100644 --- a/spec/requests/guests_spec.rb +++ b/spec/requests/guests_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'swagger_helper' diff --git a/spec/requests/schemas.rb b/spec/requests/schemas.rb index ee914b3..3fd49f2 100644 --- a/spec/requests/schemas.rb +++ b/spec/requests/schemas.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module Swagger diff --git a/spec/requests/summary_spec.rb b/spec/requests/summary_spec.rb index f39ab7a..3dc6ac0 100644 --- a/spec/requests/summary_spec.rb +++ b/spec/requests/summary_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'swagger_helper' diff --git a/spec/requests/tables_arrangements_spec.rb b/spec/requests/tables_arrangements_spec.rb index 34c686f..cf48cac 100644 --- a/spec/requests/tables_arrangements_spec.rb +++ b/spec/requests/tables_arrangements_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'swagger_helper' diff --git a/spec/requests/tokens_spec.rb b/spec/requests/tokens_spec.rb index 406e041..b5b9cf7 100644 --- a/spec/requests/tokens_spec.rb +++ b/spec/requests/tokens_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'swagger_helper' diff --git a/spec/requests/users/confirmations_spec.rb b/spec/requests/users/confirmations_spec.rb index 8628683..d76d53a 100644 --- a/spec/requests/users/confirmations_spec.rb +++ b/spec/requests/users/confirmations_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'swagger_helper' diff --git a/spec/requests/users/registrations_spec.rb b/spec/requests/users/registrations_spec.rb index f1dd82c..064d28e 100644 --- a/spec/requests/users/registrations_spec.rb +++ b/spec/requests/users/registrations_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'swagger_helper' diff --git a/spec/requests/users/sessions_spec.rb b/spec/requests/users/sessions_spec.rb index 775f56c..61c2662 100644 --- a/spec/requests/users/sessions_spec.rb +++ b/spec/requests/users/sessions_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'swagger_helper' diff --git a/spec/services/tables/discomfort_calculator_spec.rb b/spec/services/tables/discomfort_calculator_spec.rb index 3851bbf..81633d7 100644 --- a/spec/services/tables/discomfort_calculator_spec.rb +++ b/spec/services/tables/discomfort_calculator_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'rails_helper' diff --git a/spec/services/tables/distribution_spec.rb b/spec/services/tables/distribution_spec.rb index d22b817..a427f40 100644 --- a/spec/services/tables/distribution_spec.rb +++ b/spec/services/tables/distribution_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'rails_helper' diff --git a/spec/services/tables/shift_spec.rb b/spec/services/tables/shift_spec.rb index 590d62b..67a4d5d 100644 --- a/spec/services/tables/shift_spec.rb +++ b/spec/services/tables/shift_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'rails_helper' diff --git a/spec/services/tables/swap_spec.rb b/spec/services/tables/swap_spec.rb index 94ccced..ae9e974 100644 --- a/spec/services/tables/swap_spec.rb +++ b/spec/services/tables/swap_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'rails_helper' diff --git a/spec/services/vns/engine_spec.rb b/spec/services/vns/engine_spec.rb index e3f379c..c8d489d 100644 --- a/spec/services/vns/engine_spec.rb +++ b/spec/services/vns/engine_spec.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'rails_helper' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2aa37f6..f5a5a59 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true # This file was generated by the `rails generate rspec:install` command. Conventionally, all diff --git a/spec/swagger_helper.rb b/spec/swagger_helper.rb index 2c53057..bbf6c7f 100644 --- a/spec/swagger_helper.rb +++ b/spec/swagger_helper.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true require 'rails_helper' diff --git a/spec/swagger_response_helper.rb b/spec/swagger_response_helper.rb index b3f3e0b..c13d8a8 100644 --- a/spec/swagger_response_helper.rb +++ b/spec/swagger_response_helper.rb @@ -1,5 +1,7 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # frozen_string_literal: true module SwaggerResponseHelper