solid_queue_autoscaler 1.0.6 → 1.0.7

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: 6d1e945e6bd1c3a829b31cb51d45e7f893132c471229ede955db5ca3e1eeafd6
4
- data.tar.gz: 8935803c294a97075ec8d4f4f2359f9240445e983b3c45fafe7a6372392bc509
3
+ metadata.gz: c25a5d2a7570ea01da30c54a42624674b23d7112bef33da9d82c5ec1257933a5
4
+ data.tar.gz: '081a9f3000bcb460bc7254e7597c2f3e0ddd7afd9517f1f213bf1bd3cc2020c7'
5
5
  SHA512:
6
- metadata.gz: 8861196d50e311eb4aed36e35e493c90cd1962c00ca67387c5fd0af811e5be8d6365b5b604a699c909581bffd55bc517b38999318fac87649204f8c98f5172af
7
- data.tar.gz: 3580c793cc29d098b72d782ee9812c61cfd47bdad08e8742b96620d6f6c1e97e776edf175e0e220d2aa43fef0c645d52eba4e45a3b592552bb094c6f3ff939f7
6
+ metadata.gz: 580ac675beb8175d1c4897bbb251d20ab7475779a8d49d2fabfd2ea800f8f27b079df5c7f627a27e22ee2220a6e8d5fa06411a00c846888c5c456a32cc3bbdc6
7
+ data.tar.gz: b1a8f294a803035338f49436f98d479ee8ed39a2f5bdbb7b64e0701a5e00365a05d32e7e7ba8385a89d9dd72ba2c1f09019e9d7ce79e5de3f1e0a2a20ff50180
data/CHANGELOG.md CHANGED
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.7] - 2025-01-16
11
+
12
+ ### Fixed
13
+ - **Fixed Dashboard MissingExactTemplate error** - Views now work correctly in Rails applications
14
+ - Moved views from `lib/` to `app/views/` (standard Rails engine structure)
15
+ - Added `prepend_view_path Engine.root.join('app', 'views')` to ApplicationController for reliable view path resolution
16
+ - Updated gemspec to include `app/**/*` in files array
17
+ - Fixed layout path reference to `solid_queue_autoscaler/dashboard`
18
+
10
19
  ## [1.0.6] - 2025-01-16
11
20
 
12
21
  ### Fixed
@@ -22,17 +22,6 @@ 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
- # Capture views path at class definition time (not inside callbacks)
26
- VIEWS_PATH = File.expand_path('views', __dir__).freeze
27
-
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
34
- end
35
-
36
25
  initializer 'solid_queue_autoscaler.dashboard.integration' do
37
26
  # Auto-integrate with Mission Control if available
38
27
  ActiveSupport.on_load(:mission_control) do
@@ -45,7 +34,10 @@ module SolidQueueAutoscaler
45
34
  class ApplicationController < ActionController::Base
46
35
  protect_from_forgery with: :exception
47
36
 
48
- layout 'solid_queue_autoscaler/dashboard/application'
37
+ # Add the engine's view paths to this controller
38
+ prepend_view_path Engine.root.join('app', 'views')
39
+
40
+ layout 'solid_queue_autoscaler/dashboard'
49
41
 
50
42
  private
51
43
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidQueueAutoscaler
4
- VERSION = '1.0.6'
4
+ VERSION = '1.0.7'
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.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - reillyse
@@ -119,6 +119,11 @@ files:
119
119
  - CHANGELOG.md
120
120
  - LICENSE.txt
121
121
  - README.md
122
+ - app/views/layouts/solid_queue_autoscaler/dashboard.html.erb
123
+ - app/views/solid_queue_autoscaler/dashboard/dashboard/index.html.erb
124
+ - app/views/solid_queue_autoscaler/dashboard/events/index.html.erb
125
+ - app/views/solid_queue_autoscaler/dashboard/workers/index.html.erb
126
+ - app/views/solid_queue_autoscaler/dashboard/workers/show.html.erb
122
127
  - lib/generators/solid_queue_autoscaler/dashboard_generator.rb
123
128
  - lib/generators/solid_queue_autoscaler/install_generator.rb
124
129
  - lib/generators/solid_queue_autoscaler/migration_generator.rb
@@ -137,11 +142,6 @@ files:
137
142
  - lib/solid_queue_autoscaler/cooldown_tracker.rb
138
143
  - lib/solid_queue_autoscaler/dashboard.rb
139
144
  - lib/solid_queue_autoscaler/dashboard/engine.rb
140
- - lib/solid_queue_autoscaler/dashboard/views/layouts/solid_queue_autoscaler/dashboard/application.html.erb
141
- - lib/solid_queue_autoscaler/dashboard/views/solid_queue_autoscaler/dashboard/dashboard/index.html.erb
142
- - lib/solid_queue_autoscaler/dashboard/views/solid_queue_autoscaler/dashboard/events/index.html.erb
143
- - lib/solid_queue_autoscaler/dashboard/views/solid_queue_autoscaler/dashboard/workers/index.html.erb
144
- - lib/solid_queue_autoscaler/dashboard/views/solid_queue_autoscaler/dashboard/workers/show.html.erb
145
145
  - lib/solid_queue_autoscaler/decision_engine.rb
146
146
  - lib/solid_queue_autoscaler/errors.rb
147
147
  - lib/solid_queue_autoscaler/metrics.rb