solid_queue_autoscaler 1.0.5 → 1.0.6

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: e3465a178ae32fa802b41eebff9cc3db372ce01a48c60b970d86e3b962a2c7e5
4
- data.tar.gz: 29c4ab25bd35084109c5698ec432880932add84c49234d860ecb8ad6b652819c
3
+ metadata.gz: 6d1e945e6bd1c3a829b31cb51d45e7f893132c471229ede955db5ca3e1eeafd6
4
+ data.tar.gz: 8935803c294a97075ec8d4f4f2359f9240445e983b3c45fafe7a6372392bc509
5
5
  SHA512:
6
- metadata.gz: 7642cfc1b8a185eabbc61c716a118c94c47218c0b253e6ef670bb02caf279eda561b3c1a4d7c96ee0e2af93a1a09e8121c3fdf47995515ee0fd60c07b89c161a
7
- data.tar.gz: cf02eea35fc5c03b0229d1a3c3cdbc32ead6e3e4dfe175f0fabcde7dd235ebb63cfad8a4d7ed6ca7ddb833bf1e6b3264090052a3d2591ab88802d4aafbc7ca78
6
+ metadata.gz: 8861196d50e311eb4aed36e35e493c90cd1962c00ca67387c5fd0af811e5be8d6365b5b604a699c909581bffd55bc517b38999318fac87649204f8c98f5172af
7
+ data.tar.gz: 3580c793cc29d098b72d782ee9812c61cfd47bdad08e8742b96620d6f6c1e97e776edf175e0e220d2aa43fef0c645d52eba4e45a3b592552bb094c6f3ff939f7
data/CHANGELOG.md CHANGED
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.6] - 2025-01-16
11
+
12
+ ### Fixed
13
+ - Fixed Dashboard templates not being found (`MissingExactTemplate` error)
14
+ - View paths are now captured at class definition time instead of inside callbacks where `__dir__` was evaluated incorrectly
15
+ - Properly configures both engine and application view paths for reliable template resolution
16
+
10
17
  ## [1.0.5] - 2025-01-16
11
18
 
12
19
  ### Added
@@ -22,13 +22,15 @@ module SolidQueueAutoscaler
22
22
  config.solid_queue_autoscaler_dashboard = ActiveSupport::OrderedOptions.new
23
23
  config.solid_queue_autoscaler_dashboard.title = 'Solid Queue Autoscaler'
24
24
 
25
- # Configure view paths
26
- config.paths['app/views'] = File.expand_path('views', __dir__)
25
+ # Capture views path at class definition time (not inside callbacks)
26
+ VIEWS_PATH = File.expand_path('views', __dir__).freeze
27
27
 
28
- initializer 'solid_queue_autoscaler.dashboard.view_paths' do
29
- ActiveSupport.on_load(:action_controller) do
30
- append_view_path File.expand_path('views', __dir__)
31
- end
28
+ # Configure view paths for the engine
29
+ config.paths['app/views'] << VIEWS_PATH
30
+
31
+ initializer 'solid_queue_autoscaler.dashboard.view_paths', before: :add_view_paths do |app|
32
+ # Add views path to the application's view paths
33
+ app.config.paths['app/views'] << VIEWS_PATH
32
34
  end
33
35
 
34
36
  initializer 'solid_queue_autoscaler.dashboard.integration' do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidQueueAutoscaler
4
- VERSION = '1.0.5'
4
+ VERSION = '1.0.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_queue_autoscaler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - reillyse