diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb index 12b8f3d..72b2bf5 100644 --- a/app/channels/application_cable/channel.rb +++ b/app/channels/application_cable/channel.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module ApplicationCable class Channel < ActionCable::Channel::Base end diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb index 02dcb5d..d45ff4d 100644 --- a/app/channels/application_cable/connection.rb +++ b/app/channels/application_cable/connection.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module ApplicationCable class Connection < ActionCable::Connection::Base end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e1bebb9..b1baa15 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class ApplicationController < ActionController::Base set_current_tenant_through_filter before_action :set_tenant diff --git a/app/controllers/captcha_controller.rb b/app/controllers/captcha_controller.rb index 77010bd..57dac61 100644 --- a/app/controllers/captcha_controller.rb +++ b/app/controllers/captcha_controller.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class CaptchaController < ApplicationController skip_before_action :authenticate_user! skip_before_action :set_tenant diff --git a/app/controllers/expenses_controller.rb b/app/controllers/expenses_controller.rb index 0b86498..6e1b63b 100644 --- a/app/controllers/expenses_controller.rb +++ b/app/controllers/expenses_controller.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class ExpensesController < ApplicationController def summary render json: Expenses::TotalQuery.new.call diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index 6ba61ca..77a347f 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class GroupsController < ApplicationController def index query_result = Groups::SummaryQuery.new.call.as_json.map(&:deep_symbolize_keys).map do |group| diff --git a/app/controllers/guests_controller.rb b/app/controllers/guests_controller.rb index e8b1cd0..e7f9ff0 100644 --- a/app/controllers/guests_controller.rb +++ b/app/controllers/guests_controller.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'csv' class GuestsController < ApplicationController diff --git a/app/controllers/summary_controller.rb b/app/controllers/summary_controller.rb index 0959d4d..e165127 100644 --- a/app/controllers/summary_controller.rb +++ b/app/controllers/summary_controller.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class SummaryController < ApplicationController def index render json: { diff --git a/app/controllers/tables_arrangements_controller.rb b/app/controllers/tables_arrangements_controller.rb index c042b6c..23b99ba 100644 --- a/app/controllers/tables_arrangements_controller.rb +++ b/app/controllers/tables_arrangements_controller.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class TablesArrangementsController < ApplicationController def index render json: TablesArrangement.order(discomfort: :asc).limit(3).as_json(only: %i[id name discomfort]) diff --git a/app/controllers/tokens_controller.rb b/app/controllers/tokens_controller.rb index 58cf243..5a8490d 100644 --- a/app/controllers/tokens_controller.rb +++ b/app/controllers/tokens_controller.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class TokensController < ApplicationController skip_before_action :authenticate_user! skip_before_action :set_tenant diff --git a/app/controllers/users/confirmations_controller.rb b/app/controllers/users/confirmations_controller.rb index d073fef..7e5c048 100644 --- a/app/controllers/users/confirmations_controller.rb +++ b/app/controllers/users/confirmations_controller.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module Users class ConfirmationsController < Devise::ConfirmationsController clear_respond_to diff --git a/app/controllers/users/registrations_controller.rb b/app/controllers/users/registrations_controller.rb index 7a9560b..0849d96 100644 --- a/app/controllers/users/registrations_controller.rb +++ b/app/controllers/users/registrations_controller.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module Users class RegistrationsController < Devise::RegistrationsController clear_respond_to diff --git a/app/controllers/users/sessions_controller.rb b/app/controllers/users/sessions_controller.rb index 4b7c7d6..5e3ad06 100644 --- a/app/controllers/users/sessions_controller.rb +++ b/app/controllers/users/sessions_controller.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module Users class SessionsController < Devise::SessionsController clear_respond_to diff --git a/app/extensions/tree_node_extension.rb b/app/extensions/tree_node_extension.rb index 80104c3..9bd1ed4 100644 --- a/app/extensions/tree_node_extension.rb +++ b/app/extensions/tree_node_extension.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module TreeNodeExtension def distance_to_common_ancestor(another_node) return 0 if self == another_node diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 10aa281..1bc40d8 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,6 +1,6 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module ApplicationHelper end diff --git a/app/helpers/expenses_helper.rb b/app/helpers/expenses_helper.rb index 2806ac9..287c70f 100644 --- a/app/helpers/expenses_helper.rb +++ b/app/helpers/expenses_helper.rb @@ -1,6 +1,6 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module ExpensesHelper end diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb index aa6ffcc..b0492f2 100644 --- a/app/helpers/groups_helper.rb +++ b/app/helpers/groups_helper.rb @@ -1,6 +1,6 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module GroupsHelper end diff --git a/app/helpers/guests_helper.rb b/app/helpers/guests_helper.rb index d381a71..849ddb8 100644 --- a/app/helpers/guests_helper.rb +++ b/app/helpers/guests_helper.rb @@ -1,6 +1,6 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module GuestsHelper end diff --git a/app/helpers/tables_arrangements_helper.rb b/app/helpers/tables_arrangements_helper.rb index 1ec0aab..bd95809 100644 --- a/app/helpers/tables_arrangements_helper.rb +++ b/app/helpers/tables_arrangements_helper.rb @@ -1,6 +1,6 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module TablesArrangementsHelper end diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb index 438f83d..02ef80e 100644 --- a/app/jobs/application_job.rb +++ b/app/jobs/application_job.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class ApplicationJob < ActiveJob::Base # Automatically retry jobs that encountered a deadlock # retry_on ActiveRecord::Deadlocked diff --git a/app/jobs/table_simulator_job.rb b/app/jobs/table_simulator_job.rb index fe46a6d..50fe728 100644 --- a/app/jobs/table_simulator_job.rb +++ b/app/jobs/table_simulator_job.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class TableSimulatorJob < ApplicationJob queue_as :default diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index dc388c7..b168ff3 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class ApplicationMailer < ActionMailer::Base default from: 'from@example.com' layout 'mailer' diff --git a/app/models/application_record.rb b/app/models/application_record.rb index 60a445b..1a28db5 100644 --- a/app/models/application_record.rb +++ b/app/models/application_record.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class ApplicationRecord < ActiveRecord::Base primary_abstract_class end diff --git a/app/models/expense.rb b/app/models/expense.rb index 5be0315..a34cfc5 100644 --- a/app/models/expense.rb +++ b/app/models/expense.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + # == Schema Information # # Table name: expenses diff --git a/app/models/group.rb b/app/models/group.rb index 0a2c62a..ddf6e52 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + # == Schema Information # # Table name: groups diff --git a/app/models/group_affinity.rb b/app/models/group_affinity.rb index d203589..1e85485 100644 --- a/app/models/group_affinity.rb +++ b/app/models/group_affinity.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + # == Schema Information # # Table name: group_affinities diff --git a/app/models/guest.rb b/app/models/guest.rb index ed5254e..8687767 100644 --- a/app/models/guest.rb +++ b/app/models/guest.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + # == Schema Information # # Table name: guests diff --git a/app/models/seat.rb b/app/models/seat.rb index c4dcefe..a00ec99 100644 --- a/app/models/seat.rb +++ b/app/models/seat.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + # == Schema Information # # Table name: seats diff --git a/app/models/tables_arrangement.rb b/app/models/tables_arrangement.rb index 2e11c3a..72f13d5 100644 --- a/app/models/tables_arrangement.rb +++ b/app/models/tables_arrangement.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + # == Schema Information # # Table name: tables_arrangements diff --git a/app/models/user.rb b/app/models/user.rb index 80cbf28..5a9683e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + # == Schema Information # # Table name: users diff --git a/app/models/wedding.rb b/app/models/wedding.rb index da4a50c..c94d83d 100644 --- a/app/models/wedding.rb +++ b/app/models/wedding.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + # == Schema Information # # Table name: weddings diff --git a/app/queries/expenses/total_query.rb b/app/queries/expenses/total_query.rb index 81feea7..fc46a6b 100644 --- a/app/queries/expenses/total_query.rb +++ b/app/queries/expenses/total_query.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module Expenses class TotalQuery private attr_reader :wedding diff --git a/app/queries/groups/summary_query.rb b/app/queries/groups/summary_query.rb index 595b6e1..28fe6a5 100644 --- a/app/queries/groups/summary_query.rb +++ b/app/queries/groups/summary_query.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module Groups class SummaryQuery def call diff --git a/app/serializers/serializable_group.rb b/app/serializers/serializable_group.rb index f0c18e9..eb30b10 100644 --- a/app/serializers/serializable_group.rb +++ b/app/serializers/serializable_group.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class SerializableGroup < JSONAPI::Serializable::Resource type 'group' diff --git a/app/serializers/serializable_guest.rb b/app/serializers/serializable_guest.rb index 9c34d8d..981e58b 100644 --- a/app/serializers/serializable_guest.rb +++ b/app/serializers/serializable_guest.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class SerializableGuest < JSONAPI::Serializable::Resource type 'guest' diff --git a/app/services/affinity_groups_hierarchy.rb b/app/services/affinity_groups_hierarchy.rb index 3e15551..310bac8 100644 --- a/app/services/affinity_groups_hierarchy.rb +++ b/app/services/affinity_groups_hierarchy.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class AffinityGroupsHierarchy < Array include Singleton diff --git a/app/services/libre_captcha.rb b/app/services/libre_captcha.rb index cfd8028..314c186 100644 --- a/app/services/libre_captcha.rb +++ b/app/services/libre_captcha.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + class LibreCaptcha def id HTTParty.post('http://libre-captcha:8888/v2/captcha', diff --git a/app/services/tables/discomfort_calculator.rb b/app/services/tables/discomfort_calculator.rb index df5eeb4..48dacce 100644 --- a/app/services/tables/discomfort_calculator.rb +++ b/app/services/tables/discomfort_calculator.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module Tables class DiscomfortCalculator class << self diff --git a/app/services/tables/distribution.rb b/app/services/tables/distribution.rb index 8c8d152..04d1e6a 100644 --- a/app/services/tables/distribution.rb +++ b/app/services/tables/distribution.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require_relative '../../extensions/tree_node_extension' module Tables diff --git a/app/services/tables/shift.rb b/app/services/tables/shift.rb index f3882cc..2326b1e 100644 --- a/app/services/tables/shift.rb +++ b/app/services/tables/shift.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module Tables class Shift private attr_reader :initial_solution diff --git a/app/services/tables/swap.rb b/app/services/tables/swap.rb index e2f7b60..1fe6944 100644 --- a/app/services/tables/swap.rb +++ b/app/services/tables/swap.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module Tables class Swap private attr_reader :initial_solution diff --git a/app/services/tables/table.rb b/app/services/tables/table.rb index 7bec30f..8877e7c 100644 --- a/app/services/tables/table.rb +++ b/app/services/tables/table.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module Tables class Table < Set attr_accessor :discomfort, :min_per_table, :max_per_table diff --git a/app/services/vns/engine.rb b/app/services/vns/engine.rb index 555f7c7..9f600df 100644 --- a/app/services/vns/engine.rb +++ b/app/services/vns/engine.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module VNS class Engine class << self diff --git a/spec/extensions/tree_spec.rb b/spec/extensions/tree_spec.rb index 328158d..1d3e6d0 100644 --- a/spec/extensions/tree_spec.rb +++ b/spec/extensions/tree_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'rails_helper' module Tree diff --git a/spec/factories/expense.rb b/spec/factories/expense.rb index f794723..e122a43 100644 --- a/spec/factories/expense.rb +++ b/spec/factories/expense.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - FactoryBot.define do factory :expense do wedding diff --git a/spec/factories/group_affinities.rb b/spec/factories/group_affinities.rb index de2069e..f5f2b65 100644 --- a/spec/factories/group_affinities.rb +++ b/spec/factories/group_affinities.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - FactoryBot.define do factory :group_affinity do group_a factory: %i[group] diff --git a/spec/factories/groups.rb b/spec/factories/groups.rb index 3b73bdb..84ae9ec 100644 --- a/spec/factories/groups.rb +++ b/spec/factories/groups.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - FactoryBot.define do factory :group do wedding diff --git a/spec/factories/guest.rb b/spec/factories/guest.rb index 5fe1ad7..25a5c5e 100644 --- a/spec/factories/guest.rb +++ b/spec/factories/guest.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - FactoryBot.define do factory :guest do group diff --git a/spec/factories/table_arrangement.rb b/spec/factories/table_arrangement.rb index fd48313..19c5f14 100644 --- a/spec/factories/table_arrangement.rb +++ b/spec/factories/table_arrangement.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - FactoryBot.define do factory :tables_arrangement do wedding diff --git a/spec/factories/users.rb b/spec/factories/users.rb index 69b6b6e..3616935 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - FactoryBot.define do factory :user do wedding diff --git a/spec/factories/weddings.rb b/spec/factories/weddings.rb index 70f947a..1e6f555 100644 --- a/spec/factories/weddings.rb +++ b/spec/factories/weddings.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - FactoryBot.define do factory :wedding do sequence(:slug) { |i| "wedding-#{i}" } diff --git a/spec/models/expense_spec.rb b/spec/models/expense_spec.rb index 6858913..b002e78 100644 --- a/spec/models/expense_spec.rb +++ b/spec/models/expense_spec.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - require 'rails_helper' RSpec.describe Expense do diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index 2dbbe0b..f7e7fd3 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - require 'rails_helper' RSpec.describe Group do diff --git a/spec/models/guest_spec.rb b/spec/models/guest_spec.rb index 30b927e..a63da70 100644 --- a/spec/models/guest_spec.rb +++ b/spec/models/guest_spec.rb @@ -2,8 +2,6 @@ # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - require 'rails_helper' RSpec.describe Guest do diff --git a/spec/models/seat_spec.rb b/spec/models/seat_spec.rb index 8d77e35..40e63f2 100644 --- a/spec/models/seat_spec.rb +++ b/spec/models/seat_spec.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - require 'rails_helper' RSpec.describe Seat do diff --git a/spec/models/tables_arrangement_spec.rb b/spec/models/tables_arrangement_spec.rb index 653fe66..493318c 100644 --- a/spec/models/tables_arrangement_spec.rb +++ b/spec/models/tables_arrangement_spec.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - require 'rails_helper' RSpec.describe TablesArrangement do diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index e5bbef4..ae1be79 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - require 'rails_helper' RSpec.describe User do diff --git a/spec/models/wedding_spec.rb b/spec/models/wedding_spec.rb index 5840b0a..84db4f1 100644 --- a/spec/models/wedding_spec.rb +++ b/spec/models/wedding_spec.rb @@ -1,9 +1,9 @@ # Copyright (C) 2024 Manuel Bustillo +# Copyright (C) 2024 Manuel Bustillo + # frozen_string_literal: true -# Copyright (C) 2024 Manuel Bustillo - require 'rails_helper' RSpec.describe Wedding do diff --git a/spec/queries/expenses/total_query_spec.rb b/spec/queries/expenses/total_query_spec.rb index 371dc1a..7847abe 100644 --- a/spec/queries/expenses/total_query_spec.rb +++ b/spec/queries/expenses/total_query_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'rails_helper' module Expenses diff --git a/spec/queries/groups/summary_query_spec.rb b/spec/queries/groups/summary_query_spec.rb index 0aa1490..1ef1a33 100644 --- a/spec/queries/groups/summary_query_spec.rb +++ b/spec/queries/groups/summary_query_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'rails_helper' module Groups diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index a68d8b3..7058316 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + # This file is copied to spec/ when you run 'rails generate rspec:install' require 'spec_helper' ENV['RAILS_ENV'] ||= 'test' diff --git a/spec/requests/captcha_spec.rb b/spec/requests/captcha_spec.rb index 4441304..17dc9bf 100644 --- a/spec/requests/captcha_spec.rb +++ b/spec/requests/captcha_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'swagger_helper' RSpec.describe 'captcha' do diff --git a/spec/requests/expenses_spec.rb b/spec/requests/expenses_spec.rb index 4bfa22f..557f2e3 100644 --- a/spec/requests/expenses_spec.rb +++ b/spec/requests/expenses_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'swagger_helper' RSpec.describe 'expenses' do diff --git a/spec/requests/groups_spec.rb b/spec/requests/groups_spec.rb index 3496ad5..30c512e 100644 --- a/spec/requests/groups_spec.rb +++ b/spec/requests/groups_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'swagger_helper' RSpec.describe 'groups' do diff --git a/spec/requests/guests_spec.rb b/spec/requests/guests_spec.rb index cd52ca0..1ef80d4 100644 --- a/spec/requests/guests_spec.rb +++ b/spec/requests/guests_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'swagger_helper' RSpec.describe 'guests' do diff --git a/spec/requests/schemas.rb b/spec/requests/schemas.rb index 066405e..ee914b3 100644 --- a/spec/requests/schemas.rb +++ b/spec/requests/schemas.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module Swagger module Schema USER = { diff --git a/spec/requests/summary_spec.rb b/spec/requests/summary_spec.rb index 569e4b9..f39ab7a 100644 --- a/spec/requests/summary_spec.rb +++ b/spec/requests/summary_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'swagger_helper' RSpec.describe 'summary' do diff --git a/spec/requests/tables_arrangements_spec.rb b/spec/requests/tables_arrangements_spec.rb index eb4c9cd..34c686f 100644 --- a/spec/requests/tables_arrangements_spec.rb +++ b/spec/requests/tables_arrangements_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'swagger_helper' RSpec.describe 'tables_arrangements' do diff --git a/spec/requests/tokens_spec.rb b/spec/requests/tokens_spec.rb index 077543d..406e041 100644 --- a/spec/requests/tokens_spec.rb +++ b/spec/requests/tokens_spec.rb @@ -1,5 +1,5 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'swagger_helper' diff --git a/spec/requests/users/confirmations_spec.rb b/spec/requests/users/confirmations_spec.rb index 88dd707..8628683 100644 --- a/spec/requests/users/confirmations_spec.rb +++ b/spec/requests/users/confirmations_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'swagger_helper' RSpec.describe 'users/confirmations' do diff --git a/spec/requests/users/registrations_spec.rb b/spec/requests/users/registrations_spec.rb index ac423c1..f1dd82c 100644 --- a/spec/requests/users/registrations_spec.rb +++ b/spec/requests/users/registrations_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'swagger_helper' RSpec.describe 'users/registrations' do diff --git a/spec/requests/users/sessions_spec.rb b/spec/requests/users/sessions_spec.rb index 1553aed..775f56c 100644 --- a/spec/requests/users/sessions_spec.rb +++ b/spec/requests/users/sessions_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'swagger_helper' RSpec.describe 'users/sessions' do diff --git a/spec/services/tables/discomfort_calculator_spec.rb b/spec/services/tables/discomfort_calculator_spec.rb index a4eea1d..3851bbf 100644 --- a/spec/services/tables/discomfort_calculator_spec.rb +++ b/spec/services/tables/discomfort_calculator_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'rails_helper' module Tables RSpec.describe DiscomfortCalculator do diff --git a/spec/services/tables/distribution_spec.rb b/spec/services/tables/distribution_spec.rb index 26834c0..d22b817 100644 --- a/spec/services/tables/distribution_spec.rb +++ b/spec/services/tables/distribution_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'rails_helper' module Tables diff --git a/spec/services/tables/shift_spec.rb b/spec/services/tables/shift_spec.rb index 08b2ca1..590d62b 100644 --- a/spec/services/tables/shift_spec.rb +++ b/spec/services/tables/shift_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'rails_helper' module Tables diff --git a/spec/services/tables/swap_spec.rb b/spec/services/tables/swap_spec.rb index 067d4bc..94ccced 100644 --- a/spec/services/tables/swap_spec.rb +++ b/spec/services/tables/swap_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'rails_helper' module Tables diff --git a/spec/services/vns/engine_spec.rb b/spec/services/vns/engine_spec.rb index b7ff9a5..e3f379c 100644 --- a/spec/services/vns/engine_spec.rb +++ b/spec/services/vns/engine_spec.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + require 'rails_helper' module VNS diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b2f85ad..2aa37f6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + # This file was generated by the `rails generate rspec:install` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause diff --git a/spec/swagger_response_helper.rb b/spec/swagger_response_helper.rb index 424818a..b3f3e0b 100644 --- a/spec/swagger_response_helper.rb +++ b/spec/swagger_response_helper.rb @@ -1,7 +1,7 @@ -# frozen_string_literal: true - # Copyright (C) 2024 Manuel Bustillo +# frozen_string_literal: true + module SwaggerResponseHelper TIMESTAMP_FORMAT = '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z' TIMESTAMP_EXAMPLE = Time.zone.now.iso8601(3)