canvas_sync 0.21.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/canvas_sync/concerns/live_event_sync.rb +7 -2
- data/lib/canvas_sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91cef213b20532ac2e59ddc623501a788ecf1a19766e3d8ac9ebd1b4f3775e26
|
4
|
+
data.tar.gz: 2e8f03c8d079bcfeb31b4ea14c1cf52e82126fa2cb03d94e2a3b1c7b89fd5190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7999a0f4658eea199733230c20760c6bffcfc7ababae6d66fa86c9ea938fe19ffc81cc5beaa09538c56058454d1c301e28de20814d694260fb3e1446a50e066b
|
7
|
+
data.tar.gz: d435617ce3e6c318245d97ab70a7bd82dc634f70d70e93d0727fc67df37028e19ff8f99cc5096a3718baf6f6bbd6337e112416e5eee70379694a1d24acd88b70
|
@@ -25,8 +25,13 @@ module CanvasSync::Concerns
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def process_live_event(event_type, payload, metadata)
|
28
|
-
|
29
|
-
|
28
|
+
if self.has_attribute?(:workflow_state) && payload['workflow_state'].present? && payload['workflow_state'] == 'deleted'
|
29
|
+
# API will respond with 404, so just update the workflow_state
|
30
|
+
update(workflow_state: payload['workflow_state'])
|
31
|
+
else
|
32
|
+
api_response = request_from_api
|
33
|
+
assign_from_api_params(api_response)
|
34
|
+
end
|
30
35
|
end
|
31
36
|
end
|
32
37
|
|
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.21.
|
4
|
+
version: 0.21.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure CustomDev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|