panda_pal 5.19.0.beta3 → 5.19.0
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 +4 -4
- data/app/models/panda_pal/platform/canvas.rb +4 -3
- data/lib/panda_pal/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d04030accc6fd45997f3e37c3c91f9bdfe77f7cf7f4898cf54e4dae47f45886e
|
|
4
|
+
data.tar.gz: db21a419ad8d77e68b670b292cd22bbe3432c097bd6b0663fbe8e012790ad1cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '02434851f52dc132ceab53754675b8e3ef54bc5dc0ee6b3e74e2d24aa7d3bd023bad5bd798aa87387365d37b2fe18d66ab89525c9121c1c495433e036e7c0796'
|
|
7
|
+
data.tar.gz: 1d102580d5599677921de881a487ada5880e278e46e2563fd4c77bea69c96ad7fb4395411d58a8be1047af29715c9ced56895b7ddbac7c995a285f3a7f3df68f
|
|
@@ -80,6 +80,7 @@ module PandaPal
|
|
|
80
80
|
def _parse_lti_context(context)
|
|
81
81
|
context = context.to_s
|
|
82
82
|
context = 'account/self' if context == 'root_account'
|
|
83
|
+
context = "account/#{canvas_account_id}" if context == 'org_account'
|
|
83
84
|
cid, ctype = context.split(/[\.\/]/).reverse
|
|
84
85
|
ctype ||= 'account'
|
|
85
86
|
|
|
@@ -89,7 +90,7 @@ module PandaPal
|
|
|
89
90
|
# `tool:` installs one of the tools registered with PandaPal.define_tool
|
|
90
91
|
# instead of the default one. In LTI 1.3 each tool is its own Developer Key,
|
|
91
92
|
# tracked by an LtiRegistration rather than by this Organization's `key`.
|
|
92
|
-
def _install_lti(host: nil, context: :
|
|
93
|
+
def _install_lti(host: nil, context: :org_account, version: nil, exists: :error, dedicated_deployment: false, tool: PandaPal::DEFAULT_TOOL)
|
|
93
94
|
outer_install = @current_lti_install
|
|
94
95
|
raise "Automatically installing this LTI requires Bearcat." unless defined?(Bearcat)
|
|
95
96
|
|
|
@@ -392,7 +393,7 @@ module PandaPal
|
|
|
392
393
|
end
|
|
393
394
|
end
|
|
394
395
|
|
|
395
|
-
def lti_installations(context= :
|
|
396
|
+
def lti_installations(context= :org_account)
|
|
396
397
|
_find_existing_installs(context)
|
|
397
398
|
end
|
|
398
399
|
|
|
@@ -418,7 +419,7 @@ module PandaPal
|
|
|
418
419
|
context_path = "#{context_name}s/#{context.canvas_id}"
|
|
419
420
|
else
|
|
420
421
|
placement ||= "account_navigation"
|
|
421
|
-
context_path = "accounts/#{
|
|
422
|
+
context_path = "accounts/#{canvas_account_id}"
|
|
422
423
|
end
|
|
423
424
|
|
|
424
425
|
if %w[global account course user].include?(placement)
|
data/lib/panda_pal/version.rb
CHANGED