patient_http-sidekiq 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f244dd52326602169e67b8471527b939c3e451fd11dcbcfe424305d5ad0929dd
4
- data.tar.gz: 28b502c3aca097c48e364195e338e475d67f4f584209797054e2cc8ed75dda90
3
+ metadata.gz: b97f976999ea59ac067153a7698579accb7e7a9941171adbb31e1270ff044fc8
4
+ data.tar.gz: bf45c48c1afaae62826c66f8a2a8f5cd82379b40edc0c9d34faad1c856cfbcd2
5
5
  SHA512:
6
- metadata.gz: 12bb283a157d40689ffadfb5fdb58b74260374017409f99185a650f989d54da2ff858bbccac294fd6fe7095c0150cc024a0e15649280d0d1aaf5da04d2211b12
7
- data.tar.gz: a27fbd9f52d110b05bb4177dd675642dde873c3a519078ea8c95f295c96f8be499e8fff119e79a8c0f446d1c6d608e537c374dceda993d98bcdf2081ef9e0a00
6
+ metadata.gz: bff1df1ca4265615ec56aedce59ef87a08f70344f31324e432e231d114c7b04139424a29cf510d8aac6cc0dad2643149cf1f4b17c194066e3fe13deea4a8989b
7
+ data.tar.gz: 2fb165723aecdd602a638f81a3a2804ff3951e1b3db74c4dc1afbc5a6e32420adc9728fbe06d503bd424616fd5c665faf8cb93b74bbcde2b2193681d0c6f3651
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 1.1.0
8
+
9
+ ### Changed
10
+
11
+ - `PatientHttp::Sidekiq.configure` now sets the built configuration as the `PatientHttp.default_configuration` so that secrets registered at the module level with `PatientHttp.register_secret` are applied to the configuration the processor runs with, regardless of boot order. This requires patient_http 1.3.0 or newer.
12
+
7
13
  ## 1.0.2
8
14
 
9
15
  ### Fixed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.1.0
@@ -2,7 +2,7 @@
2
2
 
3
3
  module PatientHttp
4
4
  module Sidekiq
5
- # Configuration for the Sidekiq Async HTTP gem.
5
+ # Configuration for the Sidekiq integration.
6
6
  #
7
7
  # Wraps PatientHttp::Configuration with Sidekiq-aware defaults and adds
8
8
  # Sidekiq-specific options like worker queue/retry settings.
@@ -92,7 +92,11 @@ module PatientHttp
92
92
  class << self
93
93
  attr_writer :configuration
94
94
 
95
- # Configure the gem with a block
95
+ # Configure the gem with a block. The built configuration is also set as the
96
+ # `PatientHttp.default_configuration` so that secrets registered at the module
97
+ # level with `PatientHttp.register_secret` are applied to the configuration the
98
+ # processor runs with, regardless of boot order.
99
+ #
96
100
  # @yield [Configuration] the configuration object
97
101
  # @return [Configuration]
98
102
  def configure
@@ -101,6 +105,7 @@ module PatientHttp
101
105
  @configuration = configuration
102
106
  @external_storage = nil
103
107
  register_handler
108
+ PatientHttp.default_configuration = configuration
104
109
  configuration
105
110
  end
106
111
 
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
40
40
  spec.required_ruby_version = ">= 3.2"
41
41
 
42
42
  spec.add_dependency "sidekiq", ">= 7.0"
43
- spec.add_dependency "patient_http"
43
+ spec.add_dependency "patient_http", ">= 1.3.0"
44
44
 
45
45
  spec.add_development_dependency "bundler"
46
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patient_http-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Durand
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: '0'
32
+ version: 1.3.0
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '0'
39
+ version: 1.3.0
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: bundler
42
42
  requirement: !ruby/object:Gem::Requirement