panda_pal 5.8.1 → 5.8.3

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: 732dbb8785b96326d0d10cd6e602cbecaffe5cb4c6ee8b1b6ce7722cb5611ea5
4
- data.tar.gz: 8ed7ae8382b0a7cd6534f5bc75bf403d9666b7fdce00d6b6f80c79bc68c2721f
3
+ metadata.gz: 1dac745d61fff8ae481f7032a2ec5ed59bba85a94e429572c618ab63009a8041
4
+ data.tar.gz: a186f9f8f21a01ed63bf1d143483183bfaf78c19fa7ea91c482154e088398032
5
5
  SHA512:
6
- metadata.gz: 9f55395d5b346c6f9a5c9d6f31716ed3b9ab2aa616cb46ff7e31b5b184703d8d087ce4b47b536d736a5e22e0da0d5ccf14bbc3e0d4cead243487ddb303a24d24
7
- data.tar.gz: bd19857f79323ab6fa4f50c79e66bddf436a54344e02dab3794a95ee8cc2d54d0566ce764ddd42c88c838702279d4b4907a122a552ebf5f75f04e5438410d54f
6
+ metadata.gz: c736e008ec7cb7e766ccd76e2617622ceecbe1da1cff85907ffa89c7de5a0f42e45133d1af105aae6bad91fd536a9d601063b3abe60258dea1fc825ee4ea3993
7
+ data.tar.gz: 4610899f9e3cb8e70be7e932ff675ed93e24d29e6a0007464c2bfe0e5c07835babd357905d72402b049baa75ab261a328c6b2f4d4d75eb9832ed1a9f104ce7d8
@@ -74,14 +74,21 @@ module PandaPal
74
74
  [ctype, cid]
75
75
  end
76
76
 
77
- def install_lti(host: nil, context: :root_account, version: 'v1p3', exists: :error, dedicated_deployment: false)
77
+ def install_lti(host: nil, context: :root_account, version: nil, exists: :error, dedicated_deployment: false)
78
78
  raise "Automatically installing this LTI requires Bearcat." unless defined?(Bearcat)
79
79
 
80
+ version = version || PandaPal.lti_options[:lti_spec_version] || 'v1p0'
81
+ version = version.to_s
82
+
83
+ if (vs = version.split(".")).count > 1
84
+ version = "v#{vs[0]}p#{vs[0]}"
85
+ end
86
+
80
87
  run_callbacks :lti_install do
81
88
  ctype, cid = _parse_lti_context(context)
82
89
 
83
90
  if version == 'v1p0'
84
- existing_installs = _find_existing_installs(exists: exists) do |lti|
91
+ existing_installs = _find_existing_installs(context, exists: exists) do |lti|
85
92
  lti[:consumer_key] == self.key
86
93
  end
87
94
 
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = "5.8.1"
2
+ VERSION = "5.8.3"
3
3
  end
data/panda_pal.gemspec CHANGED
@@ -11,7 +11,7 @@ end
11
11
  Gem::Specification.new do |s|
12
12
  s.name = "panda_pal"
13
13
  s.version = version
14
- s.authors = ["Instructure ProServe"]
14
+ s.authors = ["Instructure CustomDev"]
15
15
  s.email = ["pseng@instructure.com"]
16
16
  s.homepage = "http://instructure.com"
17
17
  s.summary = "LTI mountable engine"
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.1
4
+ version: 5.8.3
5
5
  platform: ruby
6
6
  authors:
7
- - Instructure ProServe
8
- autorequire:
7
+ - Instructure CustomDev
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -282,7 +282,7 @@ dependencies:
282
282
  - - '='
283
283
  - !ruby/object:Gem::Version
284
284
  version: 2.7.1
285
- description:
285
+ description:
286
286
  email:
287
287
  - pseng@instructure.com
288
288
  executables: []
@@ -394,7 +394,7 @@ homepage: http://instructure.com
394
394
  licenses:
395
395
  - MIT
396
396
  metadata: {}
397
- post_install_message:
397
+ post_install_message:
398
398
  rdoc_options: []
399
399
  require_paths:
400
400
  - lib
@@ -410,7 +410,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
410
410
  version: '0'
411
411
  requirements: []
412
412
  rubygems_version: 3.1.6
413
- signing_key:
413
+ signing_key:
414
414
  specification_version: 4
415
415
  summary: LTI mountable engine
416
416
  test_files: