مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2026-03-03 14:24:06 +00:00
Compare commits
4 الالتزامات
| المؤلف | SHA1 | التاريخ | |
|---|---|---|---|
|
|
da90e75036 | ||
|
|
2b0919c145 | ||
|
|
3a33e53d84 | ||
|
|
4fa88acea0 |
@@ -1,3 +1,3 @@
|
||||
{
|
||||
".": "3.3.3"
|
||||
".": "3.3.4"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,15 @@
|
||||
|
||||
This file contains all the latest changes and updates to Postal.
|
||||
|
||||
## [3.3.4](https://github.com/postalserver/postal/compare/3.3.3...3.3.4) (2024-06-20)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fix `postal version` command ([4fa88ac](https://github.com/postalserver/postal/commit/4fa88acea0dececd0eae485506a2ad8268fbea59))
|
||||
* fix issue running message pruning task ([3a33e53](https://github.com/postalserver/postal/commit/3a33e53d843584757bb00898746aa059d7616db4))
|
||||
* raise NotImplementedError when no call method on a scheduled task ([2b0919c](https://github.com/postalserver/postal/commit/2b0919c1454eabea93db96f50ecbd8e36bb89f1f))
|
||||
|
||||
## [3.3.3](https://github.com/postalserver/postal/compare/3.3.2...3.3.3) (2024-04-18)
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ class ApplicationScheduledTask
|
||||
end
|
||||
|
||||
def call
|
||||
# override me
|
||||
raise NotImplementedError
|
||||
end
|
||||
|
||||
attr_reader :logger
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
class ProcessMessageRetentionScheduledTask < ApplicationScheduledTask
|
||||
|
||||
def perform
|
||||
def call
|
||||
Server.all.each do |server|
|
||||
if server.raw_message_retention_days
|
||||
# If the server has a maximum number of retained raw messages, remove any that are older than this
|
||||
|
||||
@@ -145,7 +145,7 @@ module Postal
|
||||
ActiveRecord::Base.connection_pool.disconnect!
|
||||
|
||||
config = ActiveRecord::Base.configurations
|
||||
.configs_for(env_name: Rails.env)
|
||||
.configs_for(env_name: Config.rails.environment)
|
||||
.first
|
||||
.configuration_hash
|
||||
|
||||
@@ -173,7 +173,7 @@ module Postal
|
||||
private
|
||||
|
||||
def read_version_file(file)
|
||||
path = Rails.root.join(file)
|
||||
path = File.expand_path("../../../" + file, __FILE__)
|
||||
return unless File.exist?(path)
|
||||
|
||||
value = File.read(path).strip
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
require File.expand_path("../lib/postal/version", __dir__)
|
||||
require File.expand_path("../lib/postal/config", __dir__)
|
||||
puts Postal.version
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم