web47core 3.2.3.4 → 3.2.3.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: 2bb5a2396b2b230990a7675260693737b4ac39a3293665e77ea63b3371c00d83
4
- data.tar.gz: 7426d92b28365aeeed8a627e7a975bfac1e841ee42bd0e3f916c90a255021ef1
3
+ metadata.gz: a23b6ad394340f746d55ccc1d5f86b9d1a57fa1172846dae13ec7599fe257b14
4
+ data.tar.gz: 3c010351f45135b3f1b6347ba1c15175723fc96724d229619afb346692afea40
5
5
  SHA512:
6
- metadata.gz: 4cced0fe710de75de29c93dae58c3e704b08daa817eb0c3bfe4bbf0374665a9a6f152b6da072fc087e0219cd7fe2b8a16928098e6e54424984c1e9bd77069cd8
7
- data.tar.gz: cafe3e73e24829db46d5422f20ad612668235826cd6e3bfe6c4eb6891f3a147df2456015da244d8e6a7e831c56e86e6e64dbc9404a821f07ed849023c26b94e4
6
+ metadata.gz: 1ac6fe45b3a881fea11c75bdd811116705311532acbdb3ab46bfcac658c5733e3275fbe649e7e3b82c58befa3a9b0b24448ff6074c99f8d33d42021d9cd2b455
7
+ data.tar.gz: 1226fce1fcf7453e474af72371b886c0914766addcbb18f37ce0c04b28ac2e069c279a67943b2bf91414fe3c22e94240273a4c8424f313e7d7bb2b0e8b314bd4
@@ -0,0 +1,9 @@
1
+ # app/controllers/errors_controller.rb
2
+ # We want to inherit `ActionController::Base` here, not `ApplicationController` because we just want a simple, fast response
3
+ # with no extra checks for CSRF,authentication, layouts or the ilk. Just say, no, go away!
4
+ class ErrorsController < ActionController::Base
5
+ # No CSRF/layout/filters; keep it cheap
6
+ def not_found
7
+ head :gone # 410 Gone is used here to indicate that the resource has been intentionally and permanently removed, and clients should not expect it to be available again. This is stronger than the standard 404 Not Found, which is used when the resource may be available in the future.
8
+ end
9
+ end
@@ -221,7 +221,7 @@ module Cron
221
221
  # We don't need any more workers if the job count is less than 1,000
222
222
  #
223
223
  def handle_auto_scale_jobs
224
- return if delayed_jobs_count.zero?
224
+ return if delayed_jobs_count < sys_config.aws_min_worker_job_count
225
225
 
226
226
  case delayed_jobs_count
227
227
  when 1..50
@@ -15,8 +15,11 @@ module AwsConfiguration
15
15
  field :aws_access_key_id, type: String
16
16
  field :aws_secret_access_key, type: String
17
17
  field :aws_bucket_name, type: String
18
+ field :aws_min_worker_job_count, type: Integer, default: 1
18
19
  field :aws_ecs_cluster_worker_name, type: String
19
20
  field :aws_ecs_service_worker_name, type: String
21
+
22
+ validates :aws_min_worker_job_count, numericality: { only_integer: true, greater_than: 0 }
20
23
  end
21
24
  end
22
25
 
@@ -9,7 +9,7 @@ SimpleCov::Formatter::LcovFormatter.config do |c|
9
9
  c.single_report_path = 'coverage/final.lcov'
10
10
  c.report_with_single_file = true
11
11
  end
12
- SimpleCov.collate Dir['/tmp/workspace/lcov/*.json'], 'rails' do
12
+ SimpleCov.collate( Dir['coverage-artifacts/*/.resultset.json'], 'rails' ) do
13
13
  add_filter '/spec/'
14
14
  add_filter '/config/'
15
15
  add_filter '/lib/'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.3.4'
4
+ VERSION = '3.2.3.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3.4
4
+ version: 3.2.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-04 00:00:00.000000000 Z
11
+ date: 2025-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -531,6 +531,7 @@ files:
531
531
  - app/assets/javascript/clipboard.coffee
532
532
  - app/assets/javascript/flash.coffee
533
533
  - app/assets/stylesheets/clipboard.scss
534
+ - app/controllers/errors_controller.rb
534
535
  - app/controllers/exceptions_controller.rb
535
536
  - app/controllers/notifications_controller.rb
536
537
  - app/controllers/status_controller.rb
@@ -6635,7 +6636,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
6635
6636
  - !ruby/object:Gem::Version
6636
6637
  version: '0'
6637
6638
  requirements: []
6638
- rubygems_version: 3.4.20
6639
+ rubygems_version: 3.4.19
6639
6640
  signing_key:
6640
6641
  specification_version: 4
6641
6642
  summary: App47 Web Core Library.