From ad3d1abad598da7b9a57bdda4be31f866fdfb3bf Mon Sep 17 00:00:00 2001 From: Bernhard Suttner Date: Tue, 14 May 2024 13:21:06 +0200 Subject: [PATCH] Fix deprecation warning This fixes the following deprecation warning: WARN: `config.options[:key] = value` is deprecated, use `config[:key] = value`: ["/usr/share/gems/gems/dynflow-1.8.2/lib/dynflow.rb:28:in `block in process_world'", "/usr/share/gems/gems/sidekiq-6.5.12/lib/sidekiq.rb:142:in `configure_server'"] --- lib/dynflow.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynflow.rb b/lib/dynflow.rb index 6faea02a..312877c8 100644 --- a/lib/dynflow.rb +++ b/lib/dynflow.rb @@ -25,7 +25,7 @@ class << self # @return [Dynflow::World, nil] def process_world return @process_world if defined? @process_world - @process_world = Sidekiq.configure_server { |c| c.options[:dynflow_world] } + @process_world = Sidekiq.configure_server { |c| c[:dynflow_world] } raise "process world is not set" unless @process_world @process_world end