openstax_utilities 4.5.0 → 4.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4d1192783928b4f282084e72dbaf1cbeb322670d8af58bbbc0766f4bf21675f
4
- data.tar.gz: fdd43154979bc0a7f997e0ce96f6f9322e8aceedce34644fa25b09950f64bf29
3
+ metadata.gz: 23e87d67c828892be99027a2ab746eb1399cbf8a806705fa985e462d9d42d7fd
4
+ data.tar.gz: 25567a40d96ad15ebb84d0d9a2f8902bc3d702a2248ea1ce0e72274f56489355
5
5
  SHA512:
6
- metadata.gz: 7307c95428084dd8c3545c8bd8e81a830de28e352954ca3f37a66b0b49836140c8e1fbb46fe99485adc1ebf12a0bddba995b401fd9ac138feb10546fde5d7316
7
- data.tar.gz: 6568675770199473e6d80e5a272bc302b63cb64d0e571280cefc3da0bb5b38238f1d486ad8628e3afa48f6a7bca8e00e614a5ae5fb0e81e74b9d877f7e3e4452
6
+ metadata.gz: 8cb88e2b59504aa7eadea2a6fad09fc6b1e33250c790781ca99a953218c0a4e2192207279c4a0d9a3153d0d1532eac31ce4c4e7fe96363c3ea2be797dcb9b6c5
7
+ data.tar.gz: d7da39d27d6f853a6d92c19d79011b742b4e5e3429b7ebbbcb5fa6e321484265df3339c12299f8c92f0a327470b7cbc76b62903286d581a4d65543386548b3b1
@@ -12,7 +12,8 @@ class OpenStax::Utilities::StatusController < ActionController::Base
12
12
  @statuses = if @environment_name == 'development'
13
13
  [ [ 'local', 1, 1, :ok ] ]
14
14
  else
15
- queues = Delayed::Worker.queue_attributes.keys.map(&:to_s) - [ 'migration' ]
15
+ queues = Module.const_defined?(:Delayed) && Delayed.const_defined?(:Worker) ?
16
+ Delayed::Worker.queue_attributes.keys.map(&:to_s) - [ 'migration' ] : []
16
17
  asgs = [ 'migration', 'web', 'cron', 'background' ] + queues.map do |queue|
17
18
  "background-#{queue}"
18
19
  end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Utilities
3
- VERSION = '4.5.0'
3
+ VERSION = '4.5.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.0
4
+ version: 4.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-14 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails