magick-feature-flags 0.9.28 → 0.9.30

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: d975b9e4104eaeb39aad4a8814897971e399bce74e61797b0929cad1a6f5b9bb
4
- data.tar.gz: 23f2fddf2fd1dce20c0508d79e75e1ba3723df9230b5c98bb7241073ea32fa2b
3
+ metadata.gz: fb9bcda0a4271667f1c38b05707c0bf2754409ed693fd4f10de5448ba8276246
4
+ data.tar.gz: 73ef6455912bd350a3936718b854dec45661e05bf2bb3ed3dc0066b876e6ebd0
5
5
  SHA512:
6
- metadata.gz: bd8a642773a7d81cda3630c8479e877ba34b8fa4713711a4b9bc08a303b1a487b350c371360717fd14ec89d4f70aea12ca624b8347496cd053fd76879fc3bc0e
7
- data.tar.gz: c8551a3a54cd555eb1ff161aab47d5a53c2058ab4df52f9dcb50075ecd24e599fd899acf544d494197c0b877a9a4f9e4300aadd402da70803ae0022c66071d1b
6
+ metadata.gz: 34045077b8297e0828b7dfad04b213b6f3d2dde554eb317181c3f29b580033b3953aee26745962641cb8c71d4a7cf660f1b91ef63ae48bb240379c25fed874da
7
+ data.tar.gz: 3fb552336b31c7f2e85b0e61cc98b0d3266e68a60d1b45d1ebd3f652d140b63bfe2ef5d8410cf830ca9c600dc3e5e9af68f907879913b1f56f3e9bb494c64464
@@ -16,6 +16,15 @@ module Magick
16
16
 
17
17
  engine_name 'magick_admin_ui'
18
18
 
19
+ # Ensure the engine doesn't interfere with Warden/Devise middleware
20
+ # Rails engines by default inherit middleware from the main app, which is what we want
21
+ # We explicitly don't add, modify, or override any middleware that could affect Warden/Devise
22
+ # The engine should work alongside existing authentication middleware without modification
23
+
24
+ # Critical: Don't add any middleware that could interfere with Warden/Devise
25
+ # The engine must use the main app's middleware stack to avoid breaking authentication
26
+ # Rails engines inherit middleware by default, so we don't need to do anything special
27
+
19
28
  # Rails engines automatically detect app/views and app/controllers directories
20
29
  # With isolate_namespace, views should be at:
21
30
  # app/views/magick/adminui/[controller]/[action].html.erb
@@ -26,8 +35,8 @@ module Magick
26
35
  config.autoload_paths += %W[#{root}/app/controllers] if root.join('app', 'controllers').exist?
27
36
 
28
37
  # Explicitly require controllers early to ensure they're loaded when gem is from RubyGems
29
- # This initializer runs before routes are drawn
30
- initializer 'magick.admin_ui.require_controllers', before: :load_config_initializers do
38
+ # This initializer runs after Warden/Devise is set up to avoid interfering with authentication
39
+ initializer 'magick.admin_ui.require_controllers', after: :load_config_initializers do
31
40
  engine_root = Magick::AdminUI::Engine.root
32
41
  controller_path = engine_root.join('app', 'controllers', 'magick', 'adminui', 'features_controller.rb')
33
42
  require controller_path.to_s if controller_path.exist?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Magick
4
- VERSION = '0.9.28'
4
+ VERSION = '0.9.30'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magick-feature-flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.28
4
+ version: 0.9.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Lobanov