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: 02f30932987224ee4dbc81ee2d7888e8e01c4bb3f713a4686d053431d90f155d
4
- data.tar.gz: 79fcb6fea081f0885b353bbda622861d6d427a385326e372d91a6b6b9024eae8
3
+ metadata.gz: 05c216d2cf9103a00cdc354608867ed5fe7b5242c0011baecbe1648d389c0898
4
+ data.tar.gz: 56fe7c18deb2f6c38a41ffe56576618d04f5425ae3cbb2110249d6d0e390bb02
5
5
  SHA512:
6
- metadata.gz: d1c3097e5e4307bf9128d32b03a11859cf45a6bce285805c9b6c7de267565650851b7ab7b17061c9a30f39b4ed381a0d7d2eea2622d93decc879ef1efcaee341
7
- data.tar.gz: cba44e33b10770af13d91ee778e7e299c4871ce9d6ed299e4e9c2135be9cc99de0428ef88128472c065905147cc50cee0730a8420192d164f723d40b062ecf6c
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
@@ -328,7 +328,7 @@ module PandaPal
328
328
 
329
329
  Bearcat::Client.new(
330
330
  prefix: canvas_url,
331
- token: canvas_token,
331
+ token: canvas_api_token,
332
332
  )
333
333
  end
334
334
  end
@@ -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.3"
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.3
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