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?("*")