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 +4 -4
- data/lib/canvas_sync/engine.rb +15 -0
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/dummy/log/development.log +2027 -147
- data/spec/dummy/log/test.log +101590 -4653
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43e293e4d64336d70983fbf6eedffb1279252c7d95dfe7a525aa1fa2da5f5463
|
4
|
+
data.tar.gz: b13c557e206b4ea989ff962ad385b0fef0862e67a07626eb8a661faae8c96fd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1866a0aafdc8eac4471c5e498055a64690f99982218d06a0ea14ac5ad8a496df1db6add14012d967a8de61efcdced32a1ec14aa7d5dc07c2a0299dc837cd6f0e
|
7
|
+
data.tar.gz: e16462ec03aa1a207871ab2dee9d0075a349aa09aaa7c8014833e9c4f3abe684a62e124fbdc5a76bd5340b913add521ec4304eae0f449b95c624358c4504c8f3
|
data/lib/canvas_sync/engine.rb
CHANGED
@@ -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
|
|
data/lib/canvas_sync/version.rb
CHANGED