1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00

style(rubocop): Layout/EmptyLineAfterMagicComment

هذا الالتزام موجود في:
Adam Cooke
2024-02-09 17:20:55 +00:00
الأصل 6ab36c09c9
التزام 0e4ed5ca03
213 ملفات معدلة مع 213 إضافات و0 حذوفات

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
source "https://rubygems.org" source "https://rubygems.org"
gem "authie" gem "authie"
gem "autoprefixer-rails" gem "autoprefixer-rails"

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# Add your own tasks in files placed in lib/tasks ending in .rake, # 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. # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
authenticator :server do authenticator :server do
friendly_name "Server Authenticator" friendly_name "Server Authenticator"
header "X-Server-API-Key", "The API token for a server that you wish to authenticate with.", example: "f29a45f0d4e1744ebaee" header "X-Server-API-Key", "The API token for a server that you wish to authenticate with.", example: "f29a45f0d4e1744ebaee"

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
controller :messages do controller :messages do
friendly_name "Messages API" friendly_name "Messages API"
description "This API allows you to access message details" description "This API allows you to access message details"

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
controller :send do controller :send do
friendly_name "Send API" friendly_name "Send API"
description "This API allows you to send messages" description "This API allows you to send messages"

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
structure :delivery do structure :delivery do
basic :id basic :id
basic :status basic :status

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
structure :message do structure :message do
basic :id basic :id
basic :token basic :token

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class AddressEndpointsController < ApplicationController class AddressEndpointsController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require "authie/session" require "authie/session"
class ApplicationController < ActionController::Base class ApplicationController < ActionController::Base

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module WithinOrganization module WithinOrganization
extend ActiveSupport::Concern extend ActiveSupport::Concern

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class CredentialsController < ApplicationController class CredentialsController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class DomainsController < ApplicationController class DomainsController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class HelpController < ApplicationController class HelpController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class HTTPEndpointsController < ApplicationController class HTTPEndpointsController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class IPAddressesController < ApplicationController class IPAddressesController < ApplicationController
before_action :admin_required before_action :admin_required

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class IPPoolRulesController < ApplicationController class IPPoolRulesController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class IPPoolsController < ApplicationController class IPPoolsController < ApplicationController
before_action :admin_required before_action :admin_required

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class MessagesController < ApplicationController class MessagesController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class OrganizationIPPoolsController < ApplicationController class OrganizationIPPoolsController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class OrganizationsController < ApplicationController class OrganizationsController < ApplicationController
before_action :admin_required, only: [:new, :create, :delete, :destroy] before_action :admin_required, only: [:new, :create, :delete, :destroy]

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class RoutesController < ApplicationController class RoutesController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class ServersController < ApplicationController class ServersController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class SessionsController < ApplicationController class SessionsController < ApplicationController
layout "sub" layout "sub"

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class SMTPEndpointsController < ApplicationController class SMTPEndpointsController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class TrackDomainsController < ApplicationController class TrackDomainsController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class UserController < ApplicationController class UserController < ApplicationController
skip_before_action :login_required, only: [:new, :create, :join] skip_before_action :login_required, only: [:new, :create, :join]

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class UsersController < ApplicationController class UsersController < ApplicationController
before_action :admin_required before_action :admin_required

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class WebhooksController < ApplicationController class WebhooksController < ApplicationController
include WithinOrganization include WithinOrganization

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module ApplicationHelper module ApplicationHelper
def format_delivery_details(server, text) def format_delivery_details(server, text)

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class ActionDeletionJob < Postal::Job class ActionDeletionJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class ActionDeletionsJob < Postal::Job class ActionDeletionsJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class CheckAllDNSJob < Postal::Job class CheckAllDNSJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require "authie/session" require "authie/session"
class CleanupAuthieSessionsJob < Postal::Job class CleanupAuthieSessionsJob < Postal::Job

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class ExpireHeldMessagesJob < Postal::Job class ExpireHeldMessagesJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class ProcessMessageRetentionJob < Postal::Job class ProcessMessageRetentionJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class PruneSuppressionListsJob < Postal::Job class PruneSuppressionListsJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class PruneWebhookRequestsJob < Postal::Job class PruneWebhookRequestsJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class RequeueWebhooksJob < Postal::Job class RequeueWebhooksJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class SendNotificationsJob < Postal::Job class SendNotificationsJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class SendWebhookJob < Postal::Job class SendWebhookJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class SleepJob < Postal::Job class SleepJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class TidyRawMessagesJob < Postal::Job class TidyRawMessagesJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class UnqueueMessageJob < Postal::Job class UnqueueMessageJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class WebhookDeliveryJob < Postal::Job class WebhookDeliveryJob < Postal::Job
def perform def perform

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class AppMailer < ApplicationMailer class AppMailer < ApplicationMailer
def verify_email_address(user) def verify_email_address(user)

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class ApplicationMailer < ActionMailer::Base class ApplicationMailer < ActionMailer::Base
default from: "#{Postal.smtp_from_name} <#{Postal.smtp_from_address}>" default from: "#{Postal.smtp_from_name} <#{Postal.smtp_from_address}>"

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: additional_route_endpoints # Table name: additional_route_endpoints

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: address_endpoints # Table name: address_endpoints

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class ApplicationRecord < ActiveRecord::Base class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true self.abstract_class = true

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module HasAuthentication module HasAuthentication
extend ActiveSupport::Concern extend ActiveSupport::Concern

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require "resolv" require "resolv"
module HasDNSChecks module HasDNSChecks

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module HasMessage module HasMessage
def self.included(base) def self.included(base)

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module HasSoftDestroy module HasSoftDestroy
def self.included(base) def self.included(base)

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module HasUUID module HasUUID
def self.included(base) def self.included(base)

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: credentials # Table name: credentials

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: domains # Table name: domains

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: http_endpoints # Table name: http_endpoints

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
class IncomingMessagePrototype class IncomingMessagePrototype
attr_accessor :to attr_accessor :to

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: ip_addresses # Table name: ip_addresses

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: ip_pools # Table name: ip_pools

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: ip_pool_rules # Table name: ip_pool_rules

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: organizations # Table name: organizations

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: organization_ip_pools # Table name: organization_ip_pools

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: organization_users # Table name: organization_users

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require "resolv" require "resolv"
class OutgoingMessagePrototype class OutgoingMessagePrototype

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: queued_messages # Table name: queued_messages

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: routes # Table name: routes

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: servers # Table name: servers

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: smtp_endpoints # Table name: smtp_endpoints

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: statistics # Table name: statistics

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: track_domains # Table name: track_domains

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: users # Table name: users

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: user_invites # Table name: user_invites

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: webhooks # Table name: webhooks

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: webhook_events # Table name: webhook_events

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# == Schema Information # == Schema Information
# #
# Table name: webhook_requests # Table name: webhook_requests

عرض الملف

@@ -1,5 +1,6 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true # frozen_string_literal: true
APP_PATH = File.expand_path("../config/application", __dir__) APP_PATH = File.expand_path("../config/application", __dir__)
require_relative "../config/boot" require_relative "../config/boot"
require "rails/commands" require "rails/commands"

عرض الملف

@@ -1,5 +1,6 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true # frozen_string_literal: true
require_relative "../config/boot" require_relative "../config/boot"
require "rake" require "rake"
Rake.application.run Rake.application.run

عرض الملف

@@ -1,5 +1,6 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true # frozen_string_literal: true
require "pathname" require "pathname"
require "fileutils" require "fileutils"
include FileUtils include FileUtils

عرض الملف

@@ -1,5 +1,6 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true # frozen_string_literal: true
require "pathname" require "pathname"
require "fileutils" require "fileutils"
include FileUtils include FileUtils

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# This file is used by Rack-based servers to start the application. # This file is used by Rack-based servers to start the application.
require_relative "config/environment" require_relative "config/environment"

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require_relative "boot" require_relative "boot"
require "rails" require "rails"

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
$stdout.sync = true $stdout.sync = true

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Clockwork module Clockwork
configure do |config| configure do |config|

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# Load the Rails application. # Load the Rails application.
require_relative "application" require_relative "application"

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
Rails.application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
Rails.application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
Rails.application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# Be sure to restart your server when you modify this file. # 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. # Version of your assets, change this if you want to expire all your assets.

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
# Specify a serializer for the signed and encrypted cookie jars. # Specify a serializer for the signed and encrypted cookie jars.

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
# Configure sensitive parameters which will be filtered from the log file. # Configure sensitive parameters which will be filtered from the log file.

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format. Inflections # Add new inflection rules using the following format. Inflections

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require "mail" require "mail"
module Mail module Mail

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
# #
# This file contains migration options to ease your Rails 5.0 upgrade. # This file contains migration options to ease your Rails 5.0 upgrade.

عرض الملف

@@ -1,2 +1,3 @@
# frozen_string_literal: true # frozen_string_literal: true
require "postal" require "postal"

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module ActionView module ActionView
module RecordIdentifier module RecordIdentifier

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
if Postal.config.rails&.secret_key if Postal.config.rails&.secret_key
Rails.application.secrets.secret_key_base = Postal.config.rails.secret_key Rails.application.secrets.secret_key_base = Postal.config.rails.secret_key
else else

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
SecureHeaders::Configuration.default do |config| SecureHeaders::Configuration.default do |config|
config.hsts = SecureHeaders::OPT_OUT config.hsts = SecureHeaders::OPT_OUT

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
require "postal/config" require "postal/config"
if Postal.config.general&.exception_url if Postal.config.general&.exception_url

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
# Be sure to restart your server when you modify this file. # Be sure to restart your server when you modify this file.
Rails.application.config.session_store :cookie_store, key: "_postal_session" Rails.application.config.session_store :cookie_store, key: "_postal_session"

لم تُعرض بعض الملفات لأن الكثير من الملفات تغيرت في هذا الاختلاف إظهار المزيد