verikloak-bff 0.2.4 → 0.2.5

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: 459eed20d30ee0052dda42e6e1b18c4ac4f58aa897ba24a0090d19931a28690e
4
- data.tar.gz: 20d3f106c2439d3f63b683a79f900d9c072893ec730d9d294e610817b560777e
3
+ metadata.gz: b024a1e87d9a4cd895b0e052ba276cbf418b50d4f51b3f642d3916e7b713253e
4
+ data.tar.gz: 82bab8741e03c8b1f57bea89856b8811440c34778470c18a82c87c279a36c4a4
5
5
  SHA512:
6
- metadata.gz: 47838af8ec9b12a4570e967c188ffcaf7a4ce9556aa06409d6fce1906bc4fd0b16568342baacec85a46883f9161fe015459996453e724e37c7c6a6d7e339e1c8
7
- data.tar.gz: b12bcca4f52ba05a8aba8fe145c1664743e70127120642f7bf334aa8db1499301badd988d5a92040d359fc2e61f94d1bbf79699f972fc7f05c12867702a10e72
6
+ metadata.gz: c2e1f2587d253acd2ac1f3a26b33d701adbe7cce48a6646f95658bd503e5238033bd855ab39fe23dc8ebb85af5bbb449b6170acba6e5bb840e8878afcd9e9d79
7
+ data.tar.gz: ecf08756e3af68c6d199ff54e40f10aee69a0a5c62d49cde1c5b1bd732dc319510490131e9a0ea357c82b67af7710ba7bd4a7303549b842b7a78fcddba86ad49
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [0.2.5] - 2025-09-28
11
+
12
+ ### Changed
13
+ - Align the install generator under `Verikloak::Bff::Generators` while retaining the `Verikloak::BFF::Generators` alias to avoid constant redefinition warnings during reloads.
14
+
15
+
10
16
  ## [0.2.4] - 2025-09-27
11
17
 
12
18
  ### Changed
@@ -1,42 +1,27 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rails/generators/base'
3
+ require 'rails/generators'
4
4
 
5
5
  module Verikloak
6
- module BFF
7
- # Namespace for Rails generators related to Verikloak BFF
6
+ module Bff
7
+ # Rails generators supporting verikloak-bff integration.
8
8
  module Generators
9
- # Rails generator for installing Verikloak BFF middleware integration.
10
- #
11
- # This generator creates a Rails initializer that safely inserts the
12
- # Verikloak::BFF::HeaderGuard middleware into the Rails middleware stack.
13
- # It replaces automatic middleware insertion to avoid boot failures when
14
- # core Verikloak middleware is not yet configured.
15
- #
16
- # @example Basic usage
17
- # rails g verikloak:bff:install
18
- #
19
- # @example Custom initializer path
20
- # rails g verikloak:bff:install --initializer=config/initializers/custom_bff.rb
9
+ # Generator to install the Verikloak BFF initializer into a Rails app.
21
10
  #
22
11
  # @see Verikloak::BFF::Rails::Middleware
12
+ # @example Default usage
13
+ # rails g verikloak:bff:install
23
14
  class InstallGenerator < ::Rails::Generators::Base
24
15
  source_root File.expand_path('templates', __dir__)
16
+ desc 'Creates the Verikloak BFF initializer for Rails applications.'
25
17
 
26
- # Configuration option for specifying the initializer file path.
27
- #
28
18
  # @option options [String] :initializer ('config/initializers/verikloak_bff.rb')
29
- # The path where the initializer file will be created
19
+ # Path for the generated initializer file.
30
20
  class_option :initializer, type: :string,
31
21
  default: 'config/initializers/verikloak_bff.rb',
32
22
  desc: 'Path for the generated initializer'
33
23
 
34
- # Creates the Rails initializer file from template.
35
- #
36
- # Generates a Rails initializer that safely inserts the HeaderGuard
37
- # middleware into the middleware stack with proper error handling.
38
- # The initializer uses Verikloak::BFF::Rails::Middleware.insert_after_core
39
- # to ensure graceful handling when core middleware is missing.
24
+ # Copies the initializer template to the desired location.
40
25
  #
41
26
  # @return [void]
42
27
  def create_initializer
@@ -46,3 +31,11 @@ module Verikloak
46
31
  end
47
32
  end
48
33
  end
34
+
35
+ # Maintain legacy constant path for consumers referencing Verikloak::BFF::Generators.
36
+ module Verikloak
37
+ # Legacy namespace alias for backward compatibility.
38
+ module BFF
39
+ Generators = Bff::Generators unless defined?(Generators)
40
+ end
41
+ end
@@ -5,6 +5,6 @@
5
5
  # @return [String]
6
6
  module Verikloak
7
7
  module BFF
8
- VERSION = '0.2.4'
8
+ VERSION = '0.2.5'
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: verikloak-bff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - taiyaky
@@ -101,7 +101,7 @@ metadata:
101
101
  source_code_uri: https://github.com/taiyaky/verikloak-bff
102
102
  changelog_uri: https://github.com/taiyaky/verikloak-bff/blob/main/CHANGELOG.md
103
103
  bug_tracker_uri: https://github.com/taiyaky/verikloak-bff/issues
104
- documentation_uri: https://rubydoc.info/gems/verikloak-bff/0.2.4
104
+ documentation_uri: https://rubydoc.info/gems/verikloak-bff/0.2.5
105
105
  rubygems_mfa_required: 'true'
106
106
  rdoc_options: []
107
107
  require_paths: