Skip to content

Commit

Permalink
style(rubocop): Layout/EmptyLineAfterMagicComment
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Feb 10, 2024
1 parent 6ab36c0 commit 0e4ed5c
Show file tree
Hide file tree
Showing 213 changed files with 213 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"
gem "authie"
gem "autoprefixer-rails"
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

Expand Down
1 change: 1 addition & 0 deletions api/authenticator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

authenticator :server do
friendly_name "Server Authenticator"
header "X-Server-API-Key", "The API token for a server that you wish to authenticate with.", example: "f29a45f0d4e1744ebaee"
Expand Down
1 change: 1 addition & 0 deletions api/controllers/messages_api_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

controller :messages do
friendly_name "Messages API"
description "This API allows you to access message details"
Expand Down
1 change: 1 addition & 0 deletions api/controllers/send_api_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

controller :send do
friendly_name "Send API"
description "This API allows you to send messages"
Expand Down
1 change: 1 addition & 0 deletions api/structures/delivery_api_structure.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

structure :delivery do
basic :id
basic :status
Expand Down
1 change: 1 addition & 0 deletions api/structures/message_api_structure.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

structure :message do
basic :id
basic :token
Expand Down
1 change: 1 addition & 0 deletions app/controllers/address_endpoints_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class AddressEndpointsController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "authie/session"

class ApplicationController < ActionController::Base
Expand Down
1 change: 1 addition & 0 deletions app/controllers/concerns/within_organization.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module WithinOrganization

extend ActiveSupport::Concern
Expand Down
1 change: 1 addition & 0 deletions app/controllers/credentials_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class CredentialsController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/domains_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class DomainsController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/help_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class HelpController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/http_endpoints_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class HTTPEndpointsController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/ip_addresses_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class IPAddressesController < ApplicationController

before_action :admin_required
Expand Down
1 change: 1 addition & 0 deletions app/controllers/ip_pool_rules_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class IPPoolRulesController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/ip_pools_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class IPPoolsController < ApplicationController

before_action :admin_required
Expand Down
1 change: 1 addition & 0 deletions app/controllers/messages_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class MessagesController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/organization_ip_pools_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class OrganizationIPPoolsController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/organizations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class OrganizationsController < ApplicationController

before_action :admin_required, only: [:new, :create, :delete, :destroy]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/routes_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class RoutesController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/servers_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class ServersController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class SessionsController < ApplicationController

layout "sub"
Expand Down
1 change: 1 addition & 0 deletions app/controllers/smtp_endpoints_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class SMTPEndpointsController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/track_domains_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class TrackDomainsController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/controllers/user_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class UserController < ApplicationController

skip_before_action :login_required, only: [:new, :create, :join]
Expand Down
1 change: 1 addition & 0 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class UsersController < ApplicationController

before_action :admin_required
Expand Down
1 change: 1 addition & 0 deletions app/controllers/webhooks_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class WebhooksController < ApplicationController

include WithinOrganization
Expand Down
1 change: 1 addition & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module ApplicationHelper

def format_delivery_details(server, text)
Expand Down
1 change: 1 addition & 0 deletions app/jobs/action_deletion_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class ActionDeletionJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/action_deletions_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class ActionDeletionsJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/check_all_dns_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class CheckAllDNSJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/cleanup_authie_sessions_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "authie/session"

class CleanupAuthieSessionsJob < Postal::Job
Expand Down
1 change: 1 addition & 0 deletions app/jobs/expire_held_messages_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class ExpireHeldMessagesJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/process_message_retention_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class ProcessMessageRetentionJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/prune_suppression_lists_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class PruneSuppressionListsJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/prune_webhook_requests_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class PruneWebhookRequestsJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/requeue_webhooks_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class RequeueWebhooksJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/send_notifications_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class SendNotificationsJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/send_webhook_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class SendWebhookJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/sleep_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class SleepJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/tidy_raw_messages_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class TidyRawMessagesJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/unqueue_message_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class UnqueueMessageJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/jobs/webhook_delivery_job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class WebhookDeliveryJob < Postal::Job

def perform
Expand Down
1 change: 1 addition & 0 deletions app/mailers/app_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class AppMailer < ApplicationMailer

def verify_email_address(user)
Expand Down
1 change: 1 addition & 0 deletions app/mailers/application_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class ApplicationMailer < ActionMailer::Base

default from: "#{Postal.smtp_from_name} <#{Postal.smtp_from_address}>"
Expand Down
1 change: 1 addition & 0 deletions app/models/additional_route_endpoint.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: additional_route_endpoints
Expand Down
1 change: 1 addition & 0 deletions app/models/address_endpoint.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: address_endpoints
Expand Down
1 change: 1 addition & 0 deletions app/models/application_record.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class ApplicationRecord < ActiveRecord::Base

self.abstract_class = true
Expand Down
1 change: 1 addition & 0 deletions app/models/concerns/has_authentication.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module HasAuthentication

extend ActiveSupport::Concern
Expand Down
1 change: 1 addition & 0 deletions app/models/concerns/has_dns_checks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "resolv"

module HasDNSChecks
Expand Down
1 change: 1 addition & 0 deletions app/models/concerns/has_message.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module HasMessage

def self.included(base)
Expand Down
1 change: 1 addition & 0 deletions app/models/concerns/has_soft_destroy.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module HasSoftDestroy

def self.included(base)
Expand Down
1 change: 1 addition & 0 deletions app/models/concerns/has_uuid.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module HasUUID

def self.included(base)
Expand Down
1 change: 1 addition & 0 deletions app/models/credential.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: credentials
Expand Down
1 change: 1 addition & 0 deletions app/models/domain.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: domains
Expand Down
1 change: 1 addition & 0 deletions app/models/http_endpoint.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: http_endpoints
Expand Down
1 change: 1 addition & 0 deletions app/models/incoming_message_prototype.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

class IncomingMessagePrototype

attr_accessor :to
Expand Down
1 change: 1 addition & 0 deletions app/models/ip_address.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: ip_addresses
Expand Down
1 change: 1 addition & 0 deletions app/models/ip_pool.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: ip_pools
Expand Down
1 change: 1 addition & 0 deletions app/models/ip_pool_rule.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: ip_pool_rules
Expand Down
1 change: 1 addition & 0 deletions app/models/organization.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: organizations
Expand Down
1 change: 1 addition & 0 deletions app/models/organization_ip_pool.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: organization_ip_pools
Expand Down
1 change: 1 addition & 0 deletions app/models/organization_user.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: organization_users
Expand Down
1 change: 1 addition & 0 deletions app/models/outgoing_message_prototype.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require "resolv"

class OutgoingMessagePrototype
Expand Down
1 change: 1 addition & 0 deletions app/models/queued_message.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# == Schema Information
#
# Table name: queued_messages
Expand Down
Loading

0 comments on commit 0e4ed5c

Please sign in to comment.