canvas_sync 0.18.0.beta2 → 0.18.2

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: e8e85a06016546795344ff896342c54b8c3ec40dbd0568473bd0e4dc899c17d3
4
- data.tar.gz: d2b566f00eb432b73fb8f47d70d1a88233c461ada010c374f677fcb2cde1a0aa
3
+ metadata.gz: 6f81a278e6cdf2417b1a7ae78981045c590d54cb315c7e0c7bd50854cca3ed95
4
+ data.tar.gz: dee3509dddbff35d2c8f68ac7078f85bf7f1e7be71330a82f7bcf01bcd511207
5
5
  SHA512:
6
- metadata.gz: bd4fdb11e3a79d796d18b908e100130ffaf503d060e00a5a8fb0cd249c70c3cbb5caf4fbf734ebf77c732c9640c361af5577df9c41431a9dc3ab3f7689852243
7
- data.tar.gz: 63e5afb3933e8659cb3e263f2ace1ee6cdd2f344da9e439c9b44ac3f32c45c92935ce4c6f12d3966c7a2547b09a8bad8481c1706ebb34df7e0414bbe56a33fe1
6
+ metadata.gz: 9eb8f5848c9ddb635c9423e12eeec2998e4e102bba7c3d2e14f5a56af1983953af808b9ae3e10187ba0aa39892a8467918237af0e75e79e66bda1997674a15f7
7
+ data.tar.gz: a28269db84eb1f7e3b42e31193280907b0375c601e1dbc7fed65076c2e2a07467723d8bd7647ce3fd55b539340ed896805425e2fb5d75d2dfa031419eaa48195
@@ -43,9 +43,11 @@ module CanvasSync
43
43
 
44
44
  class ::Object
45
45
  def canvas_sync_client(account_id = nil)
46
+ org = PandaPal::Organization.current
47
+ org = org.platform_api(PandaPal::Platform::Canvas) if (PandaPal::Organization.instance_method(:platform_api) rescue nil)
46
48
  Bearcat::Client.new(
47
- prefix: current_organization.canvas_url,
48
- token: current_organization.canvas_api_token,
49
+ prefix: org.canvas_url,
50
+ token: org.canvas_api_token,
49
51
  master_rate_limit: (Rails.env.production? && !!defined?(Redis) && ENV['REDIS_URL'].present?),
50
52
  )
51
53
  end
@@ -27,7 +27,7 @@ module CanvasSync
27
27
  CanvasSync::Jobs::ReportChecker.set(wait: report_checker_wait_time).perform_later(
28
28
  report_name,
29
29
  report_id,
30
- processor,
30
+ processor.to_s,
31
31
  options
32
32
  )
33
33
  end
@@ -101,8 +101,11 @@ module CanvasSync
101
101
  included do
102
102
  define_model_callbacks :sync_import
103
103
 
104
- if column_names.include?("canvas_sync_batch_id")
105
- belongs_to :canvas_sync_batch, foreign_key: :canvas_sync_batch_id, class_name: "CanvasSync::SyncBatch", optional: true
104
+ begin
105
+ if column_names.include?("canvas_sync_batch_id")
106
+ belongs_to :canvas_sync_batch, foreign_key: :canvas_sync_batch_id, class_name: "CanvasSync::SyncBatch", optional: true
107
+ end
108
+ rescue PG::UndefinedTable
106
109
  end
107
110
  end
108
111
  end
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.18.0.beta2".freeze
2
+ VERSION = "0.18.2".freeze
3
3
  end
data/lib/canvas_sync.rb CHANGED
@@ -204,7 +204,7 @@ module CanvasSync
204
204
  end
205
205
 
206
206
  current_chain.insert(
207
- generate_provisioning_jobs(models, options, only_split: ['users'])
207
+ generate_provisioning_jobs(models, options)
208
208
  )
209
209
 
210
210
  ###############################
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.18.0.beta2
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Collings
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-29 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -745,9 +745,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
745
745
  version: '0'
746
746
  required_rubygems_version: !ruby/object:Gem::Requirement
747
747
  requirements:
748
- - - ">"
748
+ - - ">="
749
749
  - !ruby/object:Gem::Version
750
- version: 1.3.1
750
+ version: '0'
751
751
  requirements: []
752
752
  rubygems_version: 3.1.6
753
753
  signing_key: