panda_pal 5.6.10 → 5.6.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/app/models/panda_pal/platform/canvas.rb +3 -1
- data/lib/panda_pal/engine.rb +1 -1
- data/lib/panda_pal/version.rb +1 -1
- data/panda_pal.gemspec +1 -1
- data/spec/dummy/log/test.log +19940 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29034766a62fed97c43d0e3ef2754e1f04a4d925b8a467bd78dda5a2f5d87f1e
|
4
|
+
data.tar.gz: d4c3c29aa255a8311bbe00d1dbe0358f247425fa8ed1f7eddfca1ec7315897d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4ca709472f506cb84cfc9020b254e3ddafdf756f6dd83325f314910914878adfc1ea3363c8bca938f3933a27852205ccb9e1832df7a67a501bc442d4e3e3b80
|
7
|
+
data.tar.gz: 72fe59902312a2da78350ab1a095808e8c1e902ca02e208474413fa06989f6bbb0f8c1174e929555b501674754b21f4ebdbfce7d73404f7ffe0d27595b7546ad
|
data/README.md
CHANGED
@@ -28,6 +28,8 @@ org.install_lti(
|
|
28
28
|
host: "https://your_lti.herokuapp.com",
|
29
29
|
context: "account/self", # (Optional) Or "account/3", "course/1", etc
|
30
30
|
exists: :error, # (Optional) Action to take if an LTI with the same Key already exists. Options are :error, :replace, :duplicate
|
31
|
+
version: "v1p3", # (Optional, default `v1p3`) LTI Version. Accepts `v1p0` or `v1p3`.
|
32
|
+
dedicated_deployment: false, # (Optional) If true, the Organization will be updated to link to a single deployment rather then to the general LTI Key. (experimental)
|
31
33
|
)
|
32
34
|
```
|
33
35
|
|
@@ -44,11 +44,13 @@ module PandaPal
|
|
44
44
|
def install_lti(host: nil, context: :root_account, version: 'v1p3', exists: :error, dedicated_deployment: false)
|
45
45
|
raise "Automatically installing this LTI requires Bearcat." unless defined?(Bearcat)
|
46
46
|
|
47
|
+
version = version.to_s
|
48
|
+
|
47
49
|
run_callbacks :lti_install do
|
48
50
|
ctype, cid = _parse_lti_context(context)
|
49
51
|
|
50
52
|
if version == 'v1p0'
|
51
|
-
existing_installs = _find_existing_installs(exists: exists) do |lti|
|
53
|
+
existing_installs = _find_existing_installs(context, exists: exists) do |lti|
|
52
54
|
lti[:consumer_key] == self.key
|
53
55
|
end
|
54
56
|
|
data/lib/panda_pal/engine.rb
CHANGED
@@ -103,7 +103,7 @@ module PandaPal
|
|
103
103
|
|
104
104
|
initializer "panda_pal.serialze_symbols" do |app|
|
105
105
|
app.config.active_record.yaml_column_permitted_classes ||= []
|
106
|
-
app.config.active_record.yaml_column_permitted_classes |= [Symbol]
|
106
|
+
app.config.active_record.yaml_column_permitted_classes |= [Symbol, ActiveSupport::Duration]
|
107
107
|
rescue
|
108
108
|
end
|
109
109
|
|
data/lib/panda_pal/version.rb
CHANGED
data/panda_pal.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.add_dependency 'ros-apartment', '~> 2.2'
|
25
25
|
s.add_dependency 'ims-lti', '~> 1.2.4'
|
26
26
|
s.add_dependency 'browser', '2.5.0'
|
27
|
-
s.add_dependency 'attr_encrypted', '~>
|
27
|
+
s.add_dependency 'attr_encrypted', '~> 4.0.0'
|
28
28
|
s.add_dependency 'secure_headers', '~> 6.1'
|
29
29
|
s.add_dependency 'json-jwt'
|
30
30
|
s.add_dependency 'jwt'
|