solid_queue_autoscaler 1.0.1 → 1.0.3

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: 8906fc1656509c2abc82235e62dbb93cf04738222c547cf1eedfeab29be8f944
4
- data.tar.gz: 9949a6e3a78cc0e494b463eb4ef0251559162c57b75216d4a7557c212af3c20f
3
+ metadata.gz: '047822a4b4205d1e4cf7da1e1f9210bb7ca84fe72f1309b0b32824cd7c6d44e5'
4
+ data.tar.gz: 4282159caf6c8f4631ded2edee4545ea29e3af0b261fd98f61b61b07cb4930eb
5
5
  SHA512:
6
- metadata.gz: 5e41601195114b632a01e0b8f137d056dbd549a2f2fe7b81d29c1a9687161b9cefbd4fe849686a6fe5a80fb77bc32c87b0a89b59e3da63c662efeb18b20717ea
7
- data.tar.gz: 9b55e124420d321a9abf50f3301edf21ec592d738d6cfc2116a246a97c2342cfdd98e050f8824a5d745721853f2903cbdff59be064846fbc1e421a8dca4e1ab7
6
+ metadata.gz: cc8f7375cd029e09b56aa8275c98e692a80f37bbe2f75aa4eb83d78b14e9d7d4b4a9d36a0e182e83e05b25ba9eb1c86c8f992e125bff7f5323206c9d34b9bed9
7
+ data.tar.gz: 45e9928feb0afe9945902013e97b73122262cc927f89f9be687d2ac8ef94acc394b7262e93662a7082f3063f381d7b46775e7618f9e64b56490bbf579f70a521
data/CHANGELOG.md CHANGED
@@ -7,11 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## [1.0.1] - 2025-01-16
10
+ ## [1.0.3] - 2025-01-16
11
+
12
+ ### Fixed
13
+ - Fixed remaining old gem name references in generator templates and codebuff.json
14
+ - Renamed spec file from `solid_queue_heroku_autoscaler_spec.rb` to `solid_queue_autoscaler_spec.rb`
15
+
16
+ ## [1.0.2] - 2025-01-16
11
17
 
12
18
  ### Fixed
13
19
  - Fixed Dashboard::Engine not loading properly in Rails applications due to load order issues
14
- - Engine is now loaded from the railtie to ensure Rails is fully initialized first
20
+ - Engine is now loaded via a railtie initializer to ensure Rails is fully initialized first
21
+ - Verified working in real Rails applications
22
+
23
+ ## [1.0.1] - 2025-01-16 [YANKED]
24
+
25
+ ### Fixed
26
+ - Attempted fix for Dashboard::Engine loading (incomplete)
15
27
 
16
28
  ## [1.0.0] - 2025-01-16
17
29
 
@@ -1,6 +1,6 @@
1
1
  ===============================================================================
2
2
 
3
- SolidQueueHerokuAutoscaler has been installed!
3
+ SolidQueueAutoscaler has been installed!
4
4
 
5
5
  Next steps:
6
6
 
@@ -10,7 +10,7 @@ Next steps:
10
10
 
11
11
  2. Run the migration generator for persistent cooldown tracking:
12
12
 
13
- rails generate solid_queue_heroku_autoscaler:migration
13
+ rails generate solid_queue_autoscaler:migration
14
14
  rails db:migrate
15
15
 
16
16
  3. Review config/initializers/solid_queue_autoscaler.rb and adjust thresholds
@@ -18,7 +18,7 @@ Next steps:
18
18
  4. Add the recurring job to config/recurring.yml:
19
19
 
20
20
  autoscaler:
21
- class: SolidQueueHerokuAutoscaler::AutoscaleJob
21
+ class: SolidQueueAutoscaler::AutoscaleJob
22
22
  queue: autoscaler
23
23
  schedule: every 30 seconds
24
24
 
@@ -36,6 +36,6 @@ Next steps:
36
36
 
37
37
  6. Test with dry_run mode before enabling in production
38
38
 
39
- For more information, see: https://github.com/reillyse/solid_queue_heroku_autoscaler
39
+ For more information, see: https://github.com/reillyse/solid_queue_autoscaler
40
40
 
41
41
  ===============================================================================
@@ -1,10 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Load the dashboard engine when Rails is available
4
- require_relative 'dashboard/engine'
5
-
6
3
  module SolidQueueAutoscaler
7
4
  class Railtie < Rails::Railtie
5
+ # Load the dashboard engine in an initializer to ensure Rails is fully loaded
6
+ initializer 'solid_queue_autoscaler.load_dashboard', before: :load_config_initializers do
7
+ require_relative 'dashboard/engine'
8
+ end
9
+
8
10
  initializer 'solid_queue_autoscaler.configure' do
9
11
  # Configuration happens via initializer, nothing to do here
10
12
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidQueueAutoscaler
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.3'
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.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - reillyse
@@ -137,11 +137,11 @@ files:
137
137
  - lib/solid_queue_autoscaler/cooldown_tracker.rb
138
138
  - lib/solid_queue_autoscaler/dashboard.rb
139
139
  - lib/solid_queue_autoscaler/dashboard/engine.rb
140
- - lib/solid_queue_autoscaler/dashboard/views/layouts/solid_queue_heroku_autoscaler/dashboard/application.html.erb
141
- - lib/solid_queue_autoscaler/dashboard/views/solid_queue_heroku_autoscaler/dashboard/dashboard/index.html.erb
142
- - lib/solid_queue_autoscaler/dashboard/views/solid_queue_heroku_autoscaler/dashboard/events/index.html.erb
143
- - lib/solid_queue_autoscaler/dashboard/views/solid_queue_heroku_autoscaler/dashboard/workers/index.html.erb
144
- - lib/solid_queue_autoscaler/dashboard/views/solid_queue_heroku_autoscaler/dashboard/workers/show.html.erb
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