canvas_sync 0.27.4 → 0.27.5

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: 737cc77b1803668c25294c6b0a0c669183e9a3e4d18ce315cb6833637787d6b4
4
- data.tar.gz: 7fb94e9a30ab33104f2298710097a25c47366baf8fa62b87ac8d8e139bcf7e11
3
+ metadata.gz: d6f24c18ebf86f750d70099ea3e005f7036a757b37585c6b90e8cb8118320a6d
4
+ data.tar.gz: 1228fee5adaec59e4fbd29b464950d2a1a60e0f4d3d0fd2dfacdacb36ae800e8
5
5
  SHA512:
6
- metadata.gz: 895e11f4343aa7f6448c714ef952478a68329f9aa3c673f665443c27a744081f350f5cfe5d9be77f14c477bb9e7a41f2c70f4f0fb7c0c7268d5d9593c534ab6d
7
- data.tar.gz: 79460516a9f5cc75627702d1b2b67e790350e9703adc1c2f5da33ba97b92c3b6ed1066bb1231fe009dbfacbd7b5795db01b29576472f5a49bee4325414fb645b
6
+ metadata.gz: dad20a38ebc24dfb459f6993ad9a24e02a40f5a6c68c4403df3bb90500b0676857e07fb93a582fcd5b28c0a78501d823143c3364e93fbb9a3d9f40134a9af2da
7
+ data.tar.gz: fefc18626e5222c0402a399ca8caf3c131e9cebe0ce16df6233ce3cba9904839f0ffc7ccebe3deee2cd7695c2db33735957662935340695a63592385449a91ca
@@ -51,7 +51,7 @@ module CanvasSync
51
51
  def process(file)
52
52
  processor_class_name = options[:legacy_report_starter][:processor]
53
53
  processor_class = processor_class_name.constantize
54
- account_id = options[:account_id] || batch_context[:account_id] || "self"
54
+ account_id = options[:account_id] || context[:account_id] || "self"
55
55
 
56
56
  # The old processor signature: process(file_path, options, report_id)
57
57
  # Note: The third param was report_id in ReportProcessorJob but was account_id in practice
@@ -216,7 +216,7 @@ module CanvasSync
216
216
 
217
217
  case report_status["status"].downcase
218
218
  when "complete"
219
- ProcessJob.perform_later(report_status["attachment"]["url"])
219
+ report_task.class::ProcessJob.perform_later(report_status["attachment"]["url"])
220
220
  when "error", "deleted"
221
221
  max_tries = options[:report_max_tries] || batch_context[:report_max_tries] || report_task.max_tries || MAX_TRIES
222
222
  report_attempt = batch_context[:report_attempt]
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.27.4".freeze
2
+ VERSION = "0.27.5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.4
4
+ version: 0.27.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev