panda_pal 5.9.10 → 5.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/panda_pal/platform/canvas.rb +1 -1
- data/lib/panda_pal/concerns/ability_helper.rb +10 -8
- data/lib/panda_pal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 818ff98db4420d43b028102fcd6f44ee7e7413f0ca069fd65b44a8e84aab0545
|
4
|
+
data.tar.gz: 923bdb90c19c89d0f3c1e4b98670ad8b495c68ee06cd872e2693f2881c96933d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5631603f5e7dba2552404725dae8e512999d1b25bbdfa6ce0bef3923c7698cbcb3e093f88d1d6ed8126804565c183723bac95bb3e585e9518059f4850a8e2df
|
7
|
+
data.tar.gz: 9af697df195ccb74891fef30a435de24b3c0099af4432cef4e5905f6ab4f12a0f33e80312af78259911ef200dd64586eb33954c83adcf8c541342183e3301282
|
@@ -77,7 +77,7 @@ module PandaPal
|
|
77
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] || '
|
80
|
+
version = version || PandaPal.lti_options[:lti_spec_version] || 'v1p3'
|
81
81
|
version = version.to_s
|
82
82
|
|
83
83
|
if (vs = version.split(".")).count > 1
|
@@ -6,10 +6,11 @@ module PandaPal::Concerns
|
|
6
6
|
|
7
7
|
# @return PandaPal::Session
|
8
8
|
def panda_pal_session
|
9
|
-
@panda_pal_session
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
unless defined?(@panda_pal_session) || @controller.present? || method(:panda_pal_session).owner == PandaPal::Concerns::AbilityHelper
|
10
|
+
raise "Ability class needs to set @panda_pal_session or @controller to use this feature"
|
11
|
+
end
|
12
|
+
|
13
|
+
@panda_pal_session = @controller.current_session(create_missing: false) unless defined?(@panda_pal_session)
|
13
14
|
|
14
15
|
if @panda_pal_session.is_a?(Hash)
|
15
16
|
# This is a breaking-change to CanvasSync, but not to PandaPal
|
@@ -20,10 +21,11 @@ module PandaPal::Concerns
|
|
20
21
|
end
|
21
22
|
|
22
23
|
def rails_session
|
23
|
-
@rails_session
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
unless defined?(@rails_session) || @controller.present? || method(:rails_session).owner == PandaPal::Concerns::AbilityHelper
|
25
|
+
raise "Ability class needs to set @rails_session or @controller to use this feature"
|
26
|
+
end
|
27
|
+
|
28
|
+
@rails_session ||= @controller.session unless defined?(@rails_session)
|
27
29
|
end
|
28
30
|
|
29
31
|
# Delegate legacy AbilityHelper methods to panda_pal_session. TODO Should such direct usage be considered deprecated?
|
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.
|
4
|
+
version: 5.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure CustomDev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|