canvas_sync 0.17.10.beta1 → 0.17.10.beta2

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: 1a6a43a361ad4f9e634d8f5905f8992d691c9d196bce5a128663e7979c4438c9
4
- data.tar.gz: 52f342d59d3e6094670016b72d1859eb90f9f9bf6cea99f922dc74893cbb9aa8
3
+ metadata.gz: 947495f899273388056680a57c2a00dfb8afc8442d3ca1745cd6ca273ae336e4
4
+ data.tar.gz: d7ac201bad5a5191eaa17a85a7b114904b0cba1f2c0e6284d075e15303a1a101
5
5
  SHA512:
6
- metadata.gz: 6f04fefa3865648b69790a4cdb286d1dfdad5065e7659b1565eaaf1c5ac5f7d657e19551c81fa4468c3deb309fc8d199e7370310bce255ad1ea175b3a16419cd
7
- data.tar.gz: b86eb164f7eadcd4c3155916b6c260a0d165001100aa00510329898793c6465693cab5313959ac946f3580a72090d29af670e566a67e3bb127eecdd947357b32
6
+ metadata.gz: ec8a981909991c72997e8e0137ef85e1d905cf8e714d611a757accafb34534b08f0976ee58aad1a33eaf4fc8327bd307375381eb849230f3e4d2c482617c2cc7
7
+ data.tar.gz: 3d08e2912b23ade3ea4c84aa39bf8db1a46472b977c77b2266cba956c24d8e725409859fe57a609d0ea1c9a662ea636f8c02e857816b0ac43ff15f600bacc978
@@ -14,7 +14,7 @@ Rails.application.config.after_initialize do
14
14
  model.sequence_name = seq_name
15
15
  end
16
16
  end
17
- rescue PG::ConnectionBad, ActiveRecord::NoDatabaseError
17
+ rescue PG::ConnectionBad, ActiveRecord::NoDatabaseError, ActiveRecord::ConnectionNotEstablished
18
18
  # no-op if there is no database setup
19
19
  end
20
20
  end
@@ -25,7 +25,8 @@ module CanvasSync
25
25
 
26
26
  around_enqueue do |job, block|
27
27
  if (batch = Thread.current[:batch])
28
- batch.increment_job_queue(job_id) if (@bid = batch.bid)
28
+ @bid = batch.bid
29
+ batch.increment_job_queue(job_id) if @bid
29
30
  end
30
31
  block.call
31
32
  end
@@ -49,7 +49,7 @@ module CanvasSync
49
49
  end
50
50
 
51
51
  def should_handle_batch?(msg)
52
- return false if msg['class'] == 'ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper' && msg['wrapped'].constantize < BatchAwareJob
52
+ return false if msg['class'] == 'ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper' && (msg['wrapped'].to_s).constantize < BatchAwareJob
53
53
  true
54
54
  end
55
55
  end
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.17.10.beta1".freeze
2
+ VERSION = "0.17.10.beta2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.10.beta1
4
+ version: 0.17.10.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Collings
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-25 00:00:00.000000000 Z
11
+ date: 2021-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler