panda_pal 5.9.3 → 5.9.5
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05c216d2cf9103a00cdc354608867ed5fe7b5242c0011baecbe1648d389c0898
|
4
|
+
data.tar.gz: 56fe7c18deb2f6c38a41ffe56576618d04f5425ae3cbb2110249d6d0e390bb02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e0104250d3363fd42b80b72f0c40d5cae8e54d1c23950b9821cbc34b1ffeeb8d1554885c7d690b503823b43a63a9b6a53be58ba8b2819227f7a3af17ba5af5b
|
7
|
+
data.tar.gz: 494d71e1cceaaf4a7b0dcdcfd2259cf9d2f6d31923c2fa84eee91720edc04db82a3579e6c9d9c6ddaa24af42b66a13e8dc88aea8c4c330152b17335c73d29011
|
@@ -34,19 +34,26 @@ module LtiXml
|
|
34
34
|
if PandaPal.lti_options[:secure_launch_url].present? # Assumes full URL is provided
|
35
35
|
ims_lti_config[:secure_launch_url] = PandaPal.lti_options[:secure_launch_url]
|
36
36
|
elsif PandaPal.lti_options[:secure_launch_path].present? # Assumes path is provided
|
37
|
-
ims_lti_config[:secure_launch_url] = "#{
|
37
|
+
ims_lti_config[:secure_launch_url] = "#{lti_domain_from_url}#{PandaPal.lti_options[:secure_launch_path]}"
|
38
38
|
elsif PandaPal.lti_options[:launch_url].present? # Assumes full URL is provided
|
39
39
|
ims_lti_config[:launch_url] = PandaPal.lti_options[:launch_url]
|
40
40
|
elsif PandaPal.lti_options[:launch_path].present? # Assumes path is provided
|
41
|
-
ims_lti_config[:launch_url] = "#{
|
41
|
+
ims_lti_config[:launch_url] = "#{lti_domain_from_url}#{PandaPal.lti_options[:launch_path]}"
|
42
42
|
else
|
43
|
-
ims_lti_config[:launch_url] =
|
43
|
+
ims_lti_config[:launch_url] = lti_domain_from_url
|
44
44
|
end
|
45
45
|
@tc = IMS::LTI::ToolConfig.new(ims_lti_config)
|
46
46
|
end
|
47
47
|
|
48
48
|
def add_domain
|
49
|
-
|
49
|
+
return if PandaPal.lti_properties.has_key?(:domain)
|
50
|
+
@tc.set_ext_param(platform, :domain, lti_domain_from_url)
|
51
|
+
end
|
52
|
+
|
53
|
+
def lti_domain_from_url
|
54
|
+
domain = parsed_request_url.host
|
55
|
+
domain += ":#{parsed_request_url.port}" if parsed_request_url.port.present?
|
56
|
+
domain
|
50
57
|
end
|
51
58
|
|
52
59
|
def add_privacy_level
|
@@ -120,7 +120,7 @@ module PandaPal
|
|
120
120
|
end
|
121
121
|
|
122
122
|
def ensure_line
|
123
|
-
return if @code.
|
123
|
+
return if @code.end_with?("\n")
|
124
124
|
@code << "\n"
|
125
125
|
end
|
126
126
|
|
@@ -148,7 +148,7 @@ module PandaPal
|
|
148
148
|
def push_bit(bit)
|
149
149
|
return unless bit.present?
|
150
150
|
|
151
|
-
@code << @line_prefix.join if @code.
|
151
|
+
@code << @line_prefix.join if @code.end_with?("\n")
|
152
152
|
@code << bit
|
153
153
|
end
|
154
154
|
end
|
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.9.
|
4
|
+
version: 5.9.5
|
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-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|