From 38585226a8853801d97e49ea4de8f7069da8e910 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Thu, 12 Sep 2019 11:54:10 -0700 Subject: [PATCH] Tweak for Pro compat --- Pro-Changes.md | 5 +++++ lib/sidekiq/api.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Pro-Changes.md b/Pro-Changes.md index f32c351a..0a496b79 100644 --- a/Pro-Changes.md +++ b/Pro-Changes.md @@ -4,6 +4,11 @@ Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy. +5.0.1 +--------- + +- Sidekiq::JobSet#scan and #find_job APIs have been promoted to Sidekiq OSS. [#4259] + 5.0.0 --------- diff --git a/lib/sidekiq/api.rb b/lib/sidekiq/api.rb index 49bfcda6..a8aed935 100644 --- a/lib/sidekiq/api.rb +++ b/lib/sidekiq/api.rb @@ -525,7 +525,7 @@ module Sidekiq Sidekiq.redis { |c| c.zcard(name) } end - def scan(match, count: 100) + def scan(match, count = 100) return to_enum(:scan, match) unless block_given? match = "*#{match}*" unless match.include?("*")