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

style(rubocop): Lint/MissingSuper

هذا الالتزام موجود في:
Adam Cooke
2024-02-10 23:20:30 +00:00
الأصل be97f43308
التزام 4674e63b5f
4 ملفات معدلة مع 7 إضافات و2 حذوفات

عرض الملف

@@ -49,6 +49,7 @@ class Postal::Errors::AuthenticationError < Postal::Error
attr_reader :error attr_reader :error
def initialize(error) def initialize(error)
super()
@error = error @error = error
end end

عرض الملف

@@ -111,6 +111,7 @@ module Mail
# Handle attached emails as attachments # Handle attached emails as attachments
class AttachmentsList < Array class AttachmentsList < Array
# rubocop:disable Lint/MissingSuper
def initialize(parts_list) def initialize(parts_list)
@parts_list = parts_list @parts_list = parts_list
@content_disposition_type = "attachment" @content_disposition_type = "attachment"
@@ -119,6 +120,7 @@ module Mail
end.flatten.compact.each { |a| self << a } end.flatten.compact.each { |a| self << a }
self self
end end
# rubocop:enable Lint/MissingSuper
end end

عرض الملف

@@ -4,6 +4,7 @@ module Postal
class HTTPSender < Sender class HTTPSender < Sender
def initialize(endpoint, options = {}) def initialize(endpoint, options = {})
super()
@endpoint = endpoint @endpoint = endpoint
@options = options @options = options
@log_id = Nifty::Utils::RandomString.generate(length: 8).upcase @log_id = Nifty::Utils::RandomString.generate(length: 8).upcase

عرض الملف

@@ -6,6 +6,7 @@ module Postal
class SMTPSender < Sender class SMTPSender < Sender
def initialize(domain, source_ip_address, options = {}) def initialize(domain, source_ip_address, options = {})
super()
@domain = domain @domain = domain
@source_ip_address = source_ip_address @source_ip_address = source_ip_address
@options = options @options = options
@@ -143,9 +144,9 @@ module Postal
mail_from = "#{message.server.token}@#{Postal.config.dns.return_path}" mail_from = "#{message.server.token}@#{Postal.config.dns.return_path}"
end end
if Postal.config.general.use_resent_sender_header if Postal.config.general.use_resent_sender_header
raw_message = "Resent-Sender: #{mail_from}\r\n" + message.raw_message raw_message = "Resent-Sender: #{mail_from}\r\n" + message.raw_message
else else
raw_message = message.raw_message raw_message = message.raw_message
end end
tries = 0 tries = 0
begin begin