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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dac745d61fff8ae481f7032a2ec5ed59bba85a94e429572c618ab63009a8041
4
- data.tar.gz: a186f9f8f21a01ed63bf1d143483183bfaf78c19fa7ea91c482154e088398032
3
+ metadata.gz: cd953a87fa9112452135474919816d3955cd83240d3814534a9d0cce715ab648
4
+ data.tar.gz: 833ce3c958a66074f62f31fe24212bab4937aa08f8b77103aa509d649fd3a641
5
5
  SHA512:
6
- metadata.gz: c736e008ec7cb7e766ccd76e2617622ceecbe1da1cff85907ffa89c7de5a0f42e45133d1af105aae6bad91fd536a9d601063b3abe60258dea1fc825ee4ea3993
7
- data.tar.gz: 4610899f9e3cb8e70be7e932ff675ed93e24d29e6a0007464c2bfe0e5c07835babd357905d72402b049baa75ab261a328c6b2f4d4d75eb9832ed1a9f104ce7d8
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?
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = "5.8.3"
2
+ VERSION = "5.8.4"
3
3
  end
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.3
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-07-27 00:00:00.000000000 Z
11
+ date: 2023-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails