verikloak-audience 0.2.1 → 0.2.2

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: f7b437ab60e6ddce3b76539ce7806633ef21509c2541d645ad1040ff0d840cd0
4
- data.tar.gz: 3f181a7ffe9aef9973e27aee57ce14840937eb16dc7a2dcf00951b30115d367d
3
+ metadata.gz: 1b51d9c244185b84fce77ec939a727cbdd9ac2a93541444c42e0b823ca86f4a3
4
+ data.tar.gz: 5c9c5257ab6da299c39ba3d6e0f58f62c6e70ec2e140519abdc2f583e75b0ba3
5
5
  SHA512:
6
- metadata.gz: 58bf73692f747dd60d6e8da0985fde737202152df279fe56d3eeecd684846e4ea3bb186583d735dc709b8a048b27a40709cb7bbd2c133e992eacadb306c22f69
7
- data.tar.gz: 9b2d528270ebe27dc89a4c0d78f915ef43956e535f3d0cf9a40e2452e112136aaa654b31df97045d2a49f32e68b4ad51bd1217769f2cde725cd9bb790780a54e
6
+ metadata.gz: 9b18e302be97ac271c2ebf7cb9891cce250ce01cc2cf91be963e7cf3ef19b3f05a97424073ea3f78db8a7581027ddac322e3004e224c356a27697224cfc866aa
7
+ data.tar.gz: 128053a70894be6a243b286aa16299d89c5a05ebc41e6ec13399925732e5cf3b624c06691b9433052c4bb7c12b2da033c3e9f6de5c99815cb74ebff986952adf
data/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [0.2.2] - 2025-09-22
11
+
12
+ ### Fixed
13
+ - Skip middleware configuration validation when Rails generator commands execute so `rails g verikloak:install` can boot without preconfigured audiences.
14
+
10
15
  ## [0.2.1] - 2025-09-22
11
16
 
12
17
  ### Fixed
@@ -24,7 +24,7 @@ module Verikloak
24
24
  @app = app
25
25
  @config = Verikloak::Audience.config.dup
26
26
  apply_overrides!(opts)
27
- @config.validate!
27
+ @config.validate! unless skip_validation?
28
28
  end
29
29
 
30
30
  # Evaluate the request against the audience profile.
@@ -70,6 +70,18 @@ module Verikloak
70
70
  end
71
71
  end
72
72
 
73
+ # Determine whether configuration validation should run. This allows
74
+ # Rails generators to boot without a fully-populated configuration since
75
+ # the install task is responsible for creating it.
76
+ #
77
+ # @return [Boolean]
78
+ def skip_validation?
79
+ return false unless defined?(::Verikloak::Audience::Railtie)
80
+ return false unless ::Verikloak::Audience::Railtie.respond_to?(:skip_configuration_validation?)
81
+
82
+ ::Verikloak::Audience::Railtie.skip_configuration_validation?
83
+ end
84
+
73
85
  # Emit a warning for failed audience checks using request-scoped loggers
74
86
  # when available.
75
87
  #
@@ -4,6 +4,6 @@ module Verikloak
4
4
  module Audience
5
5
  # Current gem version.
6
6
  # @return [String]
7
- VERSION = '0.2.1'
7
+ VERSION = '0.2.2'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: verikloak-audience
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - taiyaky
@@ -74,7 +74,7 @@ metadata:
74
74
  source_code_uri: https://github.com/taiyaky/verikloak-audience
75
75
  changelog_uri: https://github.com/taiyaky/verikloak-audience/blob/main/CHANGELOG.md
76
76
  bug_tracker_uri: https://github.com/taiyaky/verikloak-audience/issues
77
- documentation_uri: https://rubydoc.info/gems/verikloak-audience/0.2.1
77
+ documentation_uri: https://rubydoc.info/gems/verikloak-audience/0.2.2
78
78
  rubygems_mfa_required: 'true'
79
79
  rdoc_options: []
80
80
  require_paths: