-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from bdurand/fix-double-encryption
Fix double encryption on job retry
- Loading branch information
Showing
18 changed files
with
184 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.tm_properties | ||
.bundle | ||
Gemfile.lock | ||
/gemfiles/*.lock | ||
.yardoc | ||
/_yardoc/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# I really just have issues with the automatic "semantic blocks" | ||
|
||
ruby_version: 2.4 | ||
|
||
format: progress | ||
|
||
ignore: | ||
- '**/*': | ||
- Standard/SemanticBlocks | ||
- Style/RedundantBegin | ||
- 'spec/**/*': | ||
- Lint/UselessAssignment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,43 @@ | ||
# Change Log | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## 1.1.1 | ||
|
||
### Fixed | ||
- Client middleware will no longer encrypt already encrypted arguments when a job is retried. | ||
|
||
## 1.1.0 | ||
|
||
* Use `to_json` if it is defined when serializing encrypted args to JSON. | ||
* Add client middleware to the server default configuration. This ensures that arguments will be encrypted if a worker enqueues a job with encrypted arguments. | ||
* Client middleware now reads sidekiq options from the job hash instead of from the worker class so that the list of encrypted arguments is always in sync on the job payload. | ||
* Don't blow up if class name that is not defined is passed to client middleware. | ||
* Added additional option to specify encrypted args with array of argument indexes. | ||
* Deprecated setting encrypted args as hash or array of booleans. | ||
* Client middleware is prepended while server middleware is appended. | ||
### Added | ||
- Use `to_json` if it is defined when serializing encrypted args to JSON. | ||
- Add client middleware to the server default configuration. This ensures that arguments will be encrypted if a worker enqueues a job with encrypted arguments. | ||
- Client middleware now reads sidekiq options from the job hash instead of from the worker class so that the list of encrypted arguments is always in sync on the job payload. | ||
- Added additional option to specify encrypted args with array of argument indexes. | ||
|
||
### Changed | ||
- Client middleware is now prepended while server middleware is appended. | ||
|
||
### Fixed | ||
- Don't raise error if undefined class name is passed to client middleware as a string. | ||
|
||
### Deprecated | ||
- Deprecated setting encrypted args as hash or array of booleans. | ||
|
||
## 1.0.2 | ||
|
||
* Remove overly noisy log warning when running without the secret set | ||
### Changed | ||
- Remove overly noisy log warning when running without the secret set | ||
|
||
## 1.0.1 | ||
|
||
* Now works with scheduled jobs | ||
* Scheduled jobs dispatch by class name instead of `Class`, requiring a constant lookup | ||
### Added | ||
|
||
### Fixed | ||
- Added support for scheduled jobs | ||
|
||
## 1.0.0 | ||
|
||
* Initial release | ||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.0 | ||
1.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "sidekiq", "~> 7.0" | ||
|
||
group :runtime do | ||
gemspec path: "../" | ||
end | ||
|
||
group :development, :test do | ||
gem "rake" | ||
gem "rspec", "~> 3.9" | ||
gem "appraisal" | ||
gem "standard", "~> 1.0" | ||
end | ||
|
||
group :doc do | ||
gem "yard" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.