مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-11-30 21:32:30 +00:00
style(rubocop): Naming/MemoizedInstanceVariableName
هذا الالتزام موجود في:
@@ -8,12 +8,12 @@ module Postal
|
||||
end
|
||||
|
||||
def [](value)
|
||||
to_hash[value.to_s]
|
||||
hash[value.to_s]
|
||||
end
|
||||
|
||||
delegate :empty?, to: :to_hash
|
||||
delegate :empty?, to: :hash
|
||||
|
||||
def to_hash
|
||||
def hash
|
||||
@hash ||= @string.scan(/([a-z]+):\s*(?:(\d{2,4}-\d{2}-\d{2}\s\d{2}:\d{2})|"(.*?)"|(.*?))(\s|\z)/).each_with_object({}) do |(key, date, string_with_spaces, value), hash|
|
||||
if date
|
||||
actual_value = date
|
||||
|
||||
@@ -202,7 +202,7 @@ module Postal
|
||||
end
|
||||
|
||||
def job_channel
|
||||
@channel ||= Postal::RabbitMQ.create_channel
|
||||
@job_channel ||= Postal::RabbitMQ.create_channel
|
||||
end
|
||||
|
||||
def job_queue(name)
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم