canvas_sync 0.21.0 → 0.21.1.beta1
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: 4084b7cb347bac36ddd3ac2a0731af45c6798671d6804b1d2e4d137f378c36e1
|
4
|
+
data.tar.gz: 59525fd3e1ca60683e28ee7c406182954b6c95bc3489fcff47975cf77a7502bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec138d7bb268418a14f99f4746f59f3bbf69cad3ffe97323555225e7356f0ba92576e62c073c692b017c34a87da92f3a42021eea0c89cf270143a96863fd5207
|
7
|
+
data.tar.gz: 8b12e3b29bca0998845aa1ee88c4928b304e3e077a008dd6e71ae17a0d056239472d4936c3a00410d8841cf264824e1072907e6e1eddb628c96b4a2891e0f075
|
@@ -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.beta1
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|