canvas_sync 0.8.4 → 0.9.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61fa3f2a6f2ac74170f0eec3866bec23c662fbcce8a83e8a60ada2602818d693
|
4
|
+
data.tar.gz: 1a29823275161bf0a6d4c0e100702d75126395a56e20b5b4fe355baeb8c08696
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a555023f1f12e4b30717e790b9b1405e4e536d8061e068ba129f4a68dea45c612729561c961cb1fdcf2467366c6ca65700ea441bf138f9b7e92d61b3cc02d07
|
7
|
+
data.tar.gz: 431d583c39bdd9d5d04de46a02f1c2a65ad177b2767168d6e8ac1bb577584c0a5ca45ef5ba53ecd505b0f0accea28d437ae6c29dcb2f1f4b640a692e5200d944
|
@@ -7,9 +7,9 @@ module CanvasSync
|
|
7
7
|
#
|
8
8
|
# @param report_file_path [String]
|
9
9
|
# @param klass [Object]
|
10
|
-
def self.import(report_file_path, klass, account_id)
|
10
|
+
def self.import(report_file_path, klass, account_id, options)
|
11
11
|
CSV.foreach(report_file_path, headers: true, header_converters: :symbol) do |row|
|
12
|
-
klass.create_or_update_from_csv(row, account_id)
|
12
|
+
klass.create_or_update_from_csv(row, account_id, options)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
@@ -15,7 +15,9 @@ module CanvasSync
|
|
15
15
|
def perform(job_chain, report_name, report_url, processor, options, report_id)
|
16
16
|
@job_log.update_attributes(job_class: processor)
|
17
17
|
download(report_name, report_url) do |file_path|
|
18
|
-
options = job_chain[:global_options].merge(options)
|
18
|
+
options = job_chain[:global_options].merge(options).merge({
|
19
|
+
report_processor_job_id: @job_log.job_id
|
20
|
+
})
|
19
21
|
processor.constantize.process(file_path, options, report_id)
|
20
22
|
end
|
21
23
|
|
data/lib/canvas_sync/version.rb
CHANGED
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.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nate Collings
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|