magick-feature-flags 0.9.29 → 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: f1083faa87c666482ed4ad7d0497e8ffcd7971f735ec1060d211f56e2ebbb756
4
- data.tar.gz: 444ef7774e1f944f39f133ef8f6b37a94915574c54ec9b562e3623d5b1ab4d08
3
+ metadata.gz: fb9bcda0a4271667f1c38b05707c0bf2754409ed693fd4f10de5448ba8276246
4
+ data.tar.gz: 73ef6455912bd350a3936718b854dec45661e05bf2bb3ed3dc0066b876e6ebd0
5
5
  SHA512:
6
- metadata.gz: bd0f4cc40177fcf796461f84e4ff4b63fd569b5828d0ebc8c2d3c8130b4938db02f747e223858267e96c0ebd471d46e6e437efb97f8f073e888f05cdab737876
7
- data.tar.gz: 8cd773acbaf174f5e96c9eed9f3103f241936ac61941cb533ab335df4d60bfc7fe13dab0e639b344715c4d0a358eb0c245ce4f038a54f67942acbb15fad9d338
6
+ metadata.gz: 34045077b8297e0828b7dfad04b213b6f3d2dde554eb317181c3f29b580033b3953aee26745962641cb8c71d4a7cf660f1b91ef63ae48bb240379c25fed874da
7
+ data.tar.gz: 3fb552336b31c7f2e85b0e61cc98b0d3266e68a60d1b45d1ebd3f652d140b63bfe2ef5d8410cf830ca9c600dc3e5e9af68f907879913b1f56f3e9bb494c64464
@@ -18,9 +18,13 @@ module Magick
18
18
 
19
19
  # Ensure the engine doesn't interfere with Warden/Devise middleware
20
20
  # Rails engines by default inherit middleware from the main app, which is what we want
21
- # We don't add any custom middleware that could interfere with Warden/Devise
21
+ # We explicitly don't add, modify, or override any middleware that could affect Warden/Devise
22
22
  # The engine should work alongside existing authentication middleware without modification
23
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
+
24
28
  # Rails engines automatically detect app/views and app/controllers directories
25
29
  # With isolate_namespace, views should be at:
26
30
  # app/views/magick/adminui/[controller]/[action].html.erb
@@ -31,8 +35,8 @@ module Magick
31
35
  config.autoload_paths += %W[#{root}/app/controllers] if root.join('app', 'controllers').exist?
32
36
 
33
37
  # Explicitly require controllers early to ensure they're loaded when gem is from RubyGems
34
- # This initializer runs before routes are drawn
35
- 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
36
40
  engine_root = Magick::AdminUI::Engine.root
37
41
  controller_path = engine_root.join('app', 'controllers', 'magick', 'adminui', 'features_controller.rb')
38
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.29'
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.29
4
+ version: 0.9.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Lobanov