panda_pal 5.8.3 → 5.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/panda_pal/session.rb +17 -0
- data/lib/panda_pal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd953a87fa9112452135474919816d3955cd83240d3814534a9d0cce715ab648
|
4
|
+
data.tar.gz: 833ce3c958a66074f62f31fe24212bab4937aa08f8b77103aa509d649fd3a641
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 434bd73034d184046b7683e0fcccb35cff695ce4efcbc217047b8058ee5d7b5c81c2295973da79b5b64ca395992d864fdcc1f4b1876cb532d1402cefb5781af1
|
7
|
+
data.tar.gz: 7bfb9934d3caad860a1f141b35c8ab65347803da6c737fbe15fc5a85356044eba6fd43470654fd7bba925611b4c1ef59ce3c1e245a17cb242a956683d708dcc2
|
@@ -12,6 +12,23 @@ module PandaPal
|
|
12
12
|
@lti_platform ||= Platform.from_serialized(data[:lti_platform])
|
13
13
|
end
|
14
14
|
|
15
|
+
def custom_lti_params
|
16
|
+
launch_params = data[:launch_params] || {}
|
17
|
+
|
18
|
+
# LT 1.3
|
19
|
+
custom_params = launch_params["https://purl.imsglobal.org/spec/lti/claim/custom"]
|
20
|
+
return custom_params if custom_params.present?
|
21
|
+
|
22
|
+
# LTI 1.0/1.1
|
23
|
+
custom_params = {}
|
24
|
+
launch_params.each do |k, v|
|
25
|
+
next unless k.start_with?("custom_")
|
26
|
+
custom_params[k[7..-1]] = v
|
27
|
+
end
|
28
|
+
|
29
|
+
custom_params.with_indifferent_access
|
30
|
+
end
|
31
|
+
|
15
32
|
class DataSerializer
|
16
33
|
def self.load(str)
|
17
34
|
return {} unless str.present?
|
data/lib/panda_pal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panda_pal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.8.
|
4
|
+
version: 5.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure CustomDev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|