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
source "https://rubygems.org"
gem "authie"
gem "autoprefixer-rails"

عرض الملف

@@ -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.

عرض الملف

@@ -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"

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

@@ -1,4 +1,5 @@
# frozen_string_literal: true
# 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.

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

عرض الملف

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

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