Skip to content

Commit

Permalink
0.8.2: Access and change gem config via Yabeda::Sidekiq.config
Browse files Browse the repository at this point in the history
  • Loading branch information
Envek committed Sep 14, 2022
1 parent de68cfb commit b18b1d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

## 0.8.2 - 2022-09-14

### Added

- Ability to programmatically change gem settings by calling writer methods on `Yabeda::Sidekiq.config`. [@Envek]

Usage is quite limited though as you need to do it before `Yabeda.configure!` is called.

## 0.8.1 - 2021-08-24

### Fixed
Expand Down
6 changes: 5 additions & 1 deletion lib/yabeda/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ module Sidekiq
30, 60, 120, 300, 1800, 3600, 21_600, # Sidekiq tasks may be very long-running
].freeze

def self.config
@config ||= Config.new
end

Yabeda.configure do
config = Config.new
config = ::Yabeda::Sidekiq.config

group :sidekiq

Expand Down
2 changes: 1 addition & 1 deletion lib/yabeda/sidekiq/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Yabeda
module Sidekiq
VERSION = "0.8.1"
VERSION = "0.8.2"
end
end

0 comments on commit b18b1d8

Please sign in to comment.