panda_pal 5.19.0.beta3 → 5.19.0

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: dc0521710ced7088a0342c4af3b5fc5e0435b3578aafe0ae1223ea98024e78ee
4
- data.tar.gz: 48fb53a3d5522496fc93e8f74f4ceff4c3e510c5a8c74a2a16b4b5a83a7e1294
3
+ metadata.gz: d04030accc6fd45997f3e37c3c91f9bdfe77f7cf7f4898cf54e4dae47f45886e
4
+ data.tar.gz: db21a419ad8d77e68b670b292cd22bbe3432c097bd6b0663fbe8e012790ad1cf
5
5
  SHA512:
6
- metadata.gz: eceb5025a2c539f4ca2c9d6a2757d34595cc8071a30d34b988310ee06cf5e8224d4b514b8cc73bb0f871f2c810d31070c09c4fa3b6d58d61d5f65344aef35d4e
7
- data.tar.gz: 23402bf99ee96e7ecd37bda8750e5463cf12361c703d38112d464bfa8314ca666ff8bc66cfac3d59205cb3874e7d0613e076be0b55cbb4ecd36674ffda2d285c
6
+ metadata.gz: '02434851f52dc132ceab53754675b8e3ef54bc5dc0ee6b3e74e2d24aa7d3bd023bad5bd798aa87387365d37b2fe18d66ab89525c9121c1c495433e036e7c0796'
7
+ data.tar.gz: 1d102580d5599677921de881a487ada5880e278e46e2563fd4c77bea69c96ad7fb4395411d58a8be1047af29715c9ced56895b7ddbac7c995a285f3a7f3df68f
@@ -80,6 +80,7 @@ module PandaPal
80
80
  def _parse_lti_context(context)
81
81
  context = context.to_s
82
82
  context = 'account/self' if context == 'root_account'
83
+ context = "account/#{canvas_account_id}" if context == 'org_account'
83
84
  cid, ctype = context.split(/[\.\/]/).reverse
84
85
  ctype ||= 'account'
85
86
 
@@ -89,7 +90,7 @@ module PandaPal
89
90
  # `tool:` installs one of the tools registered with PandaPal.define_tool
90
91
  # instead of the default one. In LTI 1.3 each tool is its own Developer Key,
91
92
  # tracked by an LtiRegistration rather than by this Organization's `key`.
92
- def _install_lti(host: nil, context: :root_account, version: nil, exists: :error, dedicated_deployment: false, tool: PandaPal::DEFAULT_TOOL)
93
+ def _install_lti(host: nil, context: :org_account, version: nil, exists: :error, dedicated_deployment: false, tool: PandaPal::DEFAULT_TOOL)
93
94
  outer_install = @current_lti_install
94
95
  raise "Automatically installing this LTI requires Bearcat." unless defined?(Bearcat)
95
96
 
@@ -392,7 +393,7 @@ module PandaPal
392
393
  end
393
394
  end
394
395
 
395
- def lti_installations(context= :root_account)
396
+ def lti_installations(context= :org_account)
396
397
  _find_existing_installs(context)
397
398
  end
398
399
 
@@ -418,7 +419,7 @@ module PandaPal
418
419
  context_path = "#{context_name}s/#{context.canvas_id}"
419
420
  else
420
421
  placement ||= "account_navigation"
421
- context_path = "accounts/#{current_organization.canvas_account_id}"
422
+ context_path = "accounts/#{canvas_account_id}"
422
423
  end
423
424
 
424
425
  if %w[global account course user].include?(placement)
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = '5.19.0.beta3'
2
+ VERSION = '5.19.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panda_pal
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.19.0.beta3
4
+ version: 5.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev