canvas_sync 0.17.34 → 0.17.35

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: 8029fc55239810f8064f8d1c9fb4cd1f1756a7605581e7aced13e150e69c8b6b
4
- data.tar.gz: 2deac9eb222ed8c636159c8100e8aa6cd59d2fa26d3b13b83c7be31cf7cbc0bd
3
+ metadata.gz: 43e293e4d64336d70983fbf6eedffb1279252c7d95dfe7a525aa1fa2da5f5463
4
+ data.tar.gz: b13c557e206b4ea989ff962ad385b0fef0862e67a07626eb8a661faae8c96fd2
5
5
  SHA512:
6
- metadata.gz: b1d70b6a2493a49a9eeb48532e9438d02209d3de9609afa0a9bd09a5fe4c9816dcd9b3d7724ffa2385cd65f19b873901cce5fe5b733fa534e4c96ce785146f91
7
- data.tar.gz: c985b3da6ca96c4120b852f0b4df938a6393a797dd8365ce3c9e61404b67623484930b9001e13172309399e745774bd63208097954d569e094f86c4a56e94e38
6
+ metadata.gz: 1866a0aafdc8eac4471c5e498055a64690f99982218d06a0ea14ac5ad8a496df1db6add14012d967a8de61efcdced32a1ec14aa7d5dc07c2a0299dc837cd6f0e
7
+ data.tar.gz: e16462ec03aa1a207871ab2dee9d0075a349aa09aaa7c8014833e9c4f3abe684a62e124fbdc5a76bd5340b913add521ec4304eae0f449b95c624358c4504c8f3
@@ -29,6 +29,21 @@ module CanvasSync
29
29
  }
30
30
  }
31
31
 
32
+ initializer 'canvas_sync.global_methods' do
33
+ next if defined?(canvas_sync_client)
34
+
35
+ require 'panda_pal'
36
+
37
+ def canvas_sync_client(account_id = nil)
38
+ Bearcat::Client.new(
39
+ prefix: current_organization.canvas_url,
40
+ token: current_organization.canvas_api_token,
41
+ master_rate_limit: (Rails.env.production? && !!defined?(Redis) && ENV['REDIS_URL'].present?),
42
+ )
43
+ end
44
+ rescue LoadError
45
+ end
46
+
32
47
  initializer :integrate_pandapal do
33
48
  require 'panda_pal'
34
49
 
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.17.34".freeze
2
+ VERSION = "0.17.35".freeze
3
3
  end