مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
style(rubocop): Layout/EmptyLineAfterMagicComment
هذا الالتزام موجود في:
1
Gemfile
1
Gemfile
@@ -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
Rakefile
1
Rakefile
@@ -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
bin/rake
1
bin/rake
@@ -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"
|
||||||
|
|||||||
لم تُعرض بعض الملفات لأن الكثير من الملفات تغيرت في هذا الاختلاف إظهار المزيد
المرجع في مشكلة جديدة
حظر مستخدم