panda_pal 5.9.4 → 5.9.5

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: c6f064942345eb93ab16ae60109dc8f9a0bd5f5af22cadc841ef56ceafad4a65
4
- data.tar.gz: facea824b2a113bd22bc5a15c249372a8a5d37eec883cc77a39e7a976b48243f
3
+ metadata.gz: 05c216d2cf9103a00cdc354608867ed5fe7b5242c0011baecbe1648d389c0898
4
+ data.tar.gz: 56fe7c18deb2f6c38a41ffe56576618d04f5425ae3cbb2110249d6d0e390bb02
5
5
  SHA512:
6
- metadata.gz: 7bf3a0531b0c9826230334166d8fee5ea90b589b9ead5ebc22af2d03b4850384e87ec9b4da9932cedb63443b1ed60123207fd63f5b73544f20e29bd66fa3f30d
7
- data.tar.gz: 6f0fc0e4a71c5868cbcbf3b91a9dcfd60d80984b3720038e8f1ad7e93ccc13310afdf5ff328e6a15e3f7c9968eb893f2c530cef95969cf19ae22f414b47427cf
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] = "#{parsed_request_url.host}#{PandaPal.lti_options[:secure_launch_path]}"
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] = "#{parsed_request_url.host}#{PandaPal.lti_options[:launch_path]}"
41
+ ims_lti_config[:launch_url] = "#{lti_domain_from_url}#{PandaPal.lti_options[:launch_path]}"
42
42
  else
43
- ims_lti_config[:launch_url] = parsed_request_url.host
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
- @tc.set_ext_param(platform, :domain, parsed_request_url.host) unless PandaPal.lti_properties.has_key?(:domain)
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.ends_with?("\n")
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.ends_with?("\n")
151
+ @code << @line_prefix.join if @code.end_with?("\n")
152
152
  @code << bit
153
153
  end
154
154
  end
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = "5.9.4"
2
+ VERSION = "5.9.5"
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.9.4
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-29 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails