canvas_sync 0.22.13 → 0.22.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f42b6a25ec5fc3e6c78c579e766d19e9c0ff7acec94fd7a9737bb6a0955b88a2
4
- data.tar.gz: 228358cb249033c7d3a9791bad5107029b78dfc427ce56a1a020a354b3d7b7b7
3
+ metadata.gz: fd653ed0106269227fc95c3c2c80843bb861e3daba66a8afd0cde270bde15d35
4
+ data.tar.gz: 1e7055fe3f82d6d24d3d61236e2d95bb669e61293a4023e24e1f3d4685ad8e4f
5
5
  SHA512:
6
- metadata.gz: 033e9c71870c0e7c4436e98a2f8dfbfe72fa502fc3a976f2f7e0a8c9ca36e4a042323a539132575e56a10272eece7038ad8cfaf14d73c2e8bf501f17d2b1f4cc
7
- data.tar.gz: f935ad7d973455ac77567dfac091158bff7cf0a69111eee16c77a677961d3330c7002f99547720743ef82da3c603306d5bfe3d6a82c107f5c0d87708223b9295
6
+ metadata.gz: d6d20fcecd381078685560d3e3f980d25d04d48c0574e52f5788211a0901ffde525a01aa7b368241abf910228a6fb93085eecef7fe931bf7b209b86e15180a7a
7
+ data.tar.gz: 28e3a492920b62800fa0ae241b8b522befc5410574b51c725788f3677622c9fa5f3358cb377aa152b115668d09ad971bf9f4890f7a3b441da7d067f1c6e96673
@@ -112,7 +112,12 @@ module CanvasSync::Api
112
112
 
113
113
  def switch_tenant(&block)
114
114
  if defined?(PandaPal) && (org = params[:organization] || params[:org]).present?
115
- Apartment::Tenant.switch(PandaPal::Organization.find(org).name, &block)
115
+ org = PandaPal::Organization.find(org)
116
+ if org.respond_to?(:switch_tenant)
117
+ org.switch_tenant(&block)
118
+ else
119
+ Apartment::Tenant.switch(org.name, &block) # Legacy
120
+ end
116
121
  else
117
122
  yield
118
123
  end
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.22.13".freeze
2
+ VERSION = "0.22.14".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.22.13
4
+ version: 0.22.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-31 00:00:00.000000000 Z
11
+ date: 2025-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails