canvas_sync 0.23.3 → 0.23.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e083877d02dc44935f54e5d2fccdfe250cc4ea8e54bf6d005bf8fee9f1caa49
|
4
|
+
data.tar.gz: 955285ef809a3f76ed5ce77e011a2d6424e48719f1c5c067402e789bf81463ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 258a68a06ca68447954540e6426b252d50b37107f8299cbc1b0a69f5badc6b65946b9733e49cff4f8da4e8620637b921e0ed29bbfc5160c60c2c0f1225d7881a
|
7
|
+
data.tar.gz: 838081131c50f00e0750bbbdaf87fe713d51bd56a763ddf4624b8e4b2e7aaec59f87afc78197d7ff6c13135d9a4be32529c9fc8cc5abd75315dc1268c7544029
|
@@ -4,7 +4,7 @@ module CanvasSync
|
|
4
4
|
# Use this model to track failures, job run times, and metadata about a job.
|
5
5
|
class JobLog < ApplicationRecord
|
6
6
|
if Rails.version > '7.0'
|
7
|
-
serialize :job_arguments, type: Array
|
7
|
+
serialize :job_arguments, type: Array, coder: YAML
|
8
8
|
else
|
9
9
|
serialize :job_arguments, Array
|
10
10
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require "csv"
|
2
2
|
require "activerecord-import"
|
3
3
|
require "zip"
|
4
|
+
require "zip/version"
|
4
5
|
require_relative "./report_processor"
|
5
6
|
|
6
7
|
module CanvasSync
|
@@ -43,7 +44,7 @@ module CanvasSync
|
|
43
44
|
FileUtils.mkdir_p(File.dirname(f_path))
|
44
45
|
next if File.exist?(f_path)
|
45
46
|
|
46
|
-
if Zip::VERSION
|
47
|
+
if Zip::VERSION >= "3.0.0"
|
47
48
|
zip_file.extract(f, destination_directory: unzipped_file_dir)
|
48
49
|
else
|
49
50
|
zip_file.extract(f, f_path)
|
data/lib/canvas_sync/version.rb
CHANGED