Skip to content

Commit

Permalink
NEP-10148 Add worker parameters (#25)
Browse files Browse the repository at this point in the history
* NEP-10148 Add worker parameters to support forward compatibility with the upcoming releases

* NEP-10148 Update changelog
  • Loading branch information
andrba authored Jul 17, 2020
1 parent febf6fc commit f44c285
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [3.2.0] - 2020-07-16
### Added
- Added `Patches::Worker` extra parameters to support forward compatibility with the upcoming releases

## [3.1.0] - 2019-11-25
### Fixed
- Gem compatibility with Apartment 2

## [3.0.1] - 2018-11-19
### Added
Expand Down
2 changes: 1 addition & 1 deletion lib/patches/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Patches
MAJOR = 3
MINOR = 1
MINOR = 2
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].compact.join(".").freeze
end
2 changes: 1 addition & 1 deletion lib/patches/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Patches::Worker

sidekiq_options Patches::Config.configuration.sidekiq_options

def perform(runner)
def perform(runner, params = {})
runner.constantize.new.perform
end
end

0 comments on commit f44c285

Please sign in to comment.