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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aecd0f3989ecb1b42c9f8c1c83274333eabe316bf05407cc2de7113e14590cb6
4
- data.tar.gz: 104cbae017ac24e83b5ad357ed381c6af24577917ec1a494ef9456478874eea0
3
+ metadata.gz: 4084b7cb347bac36ddd3ac2a0731af45c6798671d6804b1d2e4d137f378c36e1
4
+ data.tar.gz: 59525fd3e1ca60683e28ee7c406182954b6c95bc3489fcff47975cf77a7502bd
5
5
  SHA512:
6
- metadata.gz: 8059b7b6fcadd5c0b8750b705881496dc63bb90a232e9d950618dff0682f5410ea9cc18a84b9a8a22ea4a051262fb2946c0c6c05a39e3a86871a6ee460f75f08
7
- data.tar.gz: 2d1b85f6564c8916ae3b8a51290df8bf95d75156b2bb4b595466a502d78dd0f7f20260a14914ce482bd89af963b9b89e23207640c6df6a004616fcd9d0f62ff8
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
- api_response = request_from_api
29
- assign_from_api_params(api_response)
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
 
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.21.0".freeze
2
+ VERSION = "0.21.1.beta1".freeze
3
3
  end
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.0
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-03 00:00:00.000000000 Z
11
+ date: 2024-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails