OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix deprecation warnings
Dombi Attila8ffa313bb80c
diff --git a/app/models/token/hashed_token.rb b/app/models/token/hashed_token.rbindex 48190a9ddae..98be0d9fb1f 100644--- a/app/models/token/hashed_token.rb+++ b/app/models/token/hashed_token.rb@@ -46,7 +46,7 @@ module Token# Use a fixed salt for hashing token values.# We still want to be able to index the hash value for fast lookups,# so we need to determine the hash without knowing the associated user (and thus its salt) first.- Digest::SHA256.hexdigest(input + Rails.application.secrets.fetch(:secret_key_base))+ Digest::SHA256.hexdigest(input + Rails.application.credentials.fetch(:secret_key_base))enddelegate :hash_function, to: :classdiff --git a/app/workers/mails/mailer_job.rb b/app/workers/mails/mailer_job.rbindex 03d05aa7725..7ffcf171969 100644--- a/app/workers/mails/mailer_job.rb+++ b/app/workers/mails/mailer_job.rb@@ -41,7 +41,7 @@ class Mails::MailerJob < ApplicationJobqueue_as { ActionMailer::Base.deliver_later_queue_name }# Retry mailing jobs three times with exponential backoff- retry_on StandardError, wait: :exponentially_longer, attempts: 3+ retry_on StandardError, wait: :polynomially_longer, attempts: 3# If exception is handled in mail handler# retry_on will be ignoreddiff --git a/modules/webhooks/app/workers/webhook_job.rb b/modules/webhooks/app/workers/webhook_job.rbindex 25c0f5fd68f..d172cb5101a 100644--- a/modules/webhooks/app/workers/webhook_job.rb+++ b/modules/webhooks/app/workers/webhook_job.rb@@ -33,7 +33,7 @@ class WebhookJob < ApplicationJob# in case of timeoutsretry_on Timeout::Error,Faraday::TimeoutError,- wait: :exponentially_longer,+ wait: :polynomially_longer,attempts: 3def perform(webhook_id, event_name)