diff --git a/gouda.gemspec b/gouda.gemspec index a368a36..d6206d3 100644 --- a/gouda.gemspec +++ b/gouda.gemspec @@ -9,7 +9,7 @@ Gem::Specification.new do |spec| spec.email = ["sebastian@cheddar.me", "me@julik.nl"] spec.homepage = "https://rubygems.org/gems/gouda" spec.license = "MIT" - spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0") + spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0") spec.require_paths = ["lib"] spec.metadata["homepage_uri"] = spec.homepage diff --git a/lib/gouda.rb b/lib/gouda.rb index e5dbcce..d5a2b6f 100644 --- a/lib/gouda.rb +++ b/lib/gouda.rb @@ -57,7 +57,7 @@ def self.start Gouda.logger.info("Gouda version: #{Gouda::VERSION}") Gouda.logger.info("Worker threads: #{Gouda.config.worker_thread_count}") - Gouda.worker_loop(n_threads: Gouda.config.worker_thread_count, queue_constraint:) + Gouda.worker_loop(n_threads: Gouda.config.worker_thread_count, queue_constraint: queue_constraint) end def self.config diff --git a/lib/gouda/scheduler.rb b/lib/gouda/scheduler.rb index a7d4552..491f368 100644 --- a/lib/gouda/scheduler.rb +++ b/lib/gouda/scheduler.rb @@ -72,7 +72,7 @@ def self.update_schedule_from_config!(cron_table_hash = nil) # `class` is a reserved keyword and a method that exists on every Ruby object so... cron_entry_params[:job_class] ||= cron_entry_params.delete(:class) params_with_defaults = defaults.merge(cron_entry_params) - Entry.new(name:, **params_with_defaults) + Entry.new(name: name, **params_with_defaults) end end diff --git a/test/gouda/test_helper.rb b/test/gouda/test_helper.rb index e1dbe34..2326e22 100644 --- a/test/gouda/test_helper.rb +++ b/test/gouda/test_helper.rb @@ -8,7 +8,7 @@ require "minitest/autorun" require "minitest" require "support/assert_helper" -require "gouda" +require_relative "../../lib/gouda" class ActiveSupport::TestCase SEED_DB_NAME = -> { "gouda_tests_%s" % Random.new(Minitest.seed).hex(4) } diff --git a/test/gouda/worker_test.rb b/test/gouda/worker_test.rb index 72937b6..7072fe1 100644 --- a/test/gouda/worker_test.rb +++ b/test/gouda/worker_test.rb @@ -15,7 +15,6 @@ class GoudaWorkerTest < ActiveSupport::TestCase # multiple test processes on the same box - and they might start touching # files from each other. PATH_TO_TEST_FILE = -> { Tempfile.new("#{Process.pid}-gouda-worker-test-output.bin") } - # PATH_TO_TEST_FILE = -> { File.expand_path(File.join(ENV["TEMPDR"] || "tmp", "#{Process.pid}-gouda-worker-test-output.bin")) } class JobWithEnqueueKey < ActiveJob::Base self.queue_adapter = :gouda