panda_pal 5.3.6.beta3 → 5.3.6
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 -1
- data/app/models/panda_pal/organization_concerns/settings_validation.rb +14 -0
- data/lib/panda_pal/version.rb +1 -1
- data/panda_pal.gemspec +1 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ee53aa3e0e7559100812856e27a35fac95ee52f140a2aeaf49a01ffc4655b01
|
4
|
+
data.tar.gz: 7fb1e3c0d998c130a0b88bb3c1183b7ab5c8073955622cb3bc3ad1a4ce530382
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49caebe41e7c49a619f01dad189a7f5f655aa8e2b432afeda3af84758600e436bcdaddf78c45dba6f175f2532c2410e6857b6b3d7bd5ba4e700d81f435931ef9
|
7
|
+
data.tar.gz: 7b1c9f46b63601c074aa6c696eefce05b5d3ba548e197d51feb9aa58f3f354b5e1e4b413d8f1f7a7eb21933f44f7949a87044b127c63b4e4e3bd8134f8a2dfe6
|
data/README.md
CHANGED
@@ -26,7 +26,8 @@ LTI 1.3 has some additional configuration steps required to setup an LTI:
|
|
26
26
|
|
27
27
|
1. If you're running Canvas locally, make sure the `config/redis.yml` and `config/dynamic_settings.yml` files exist in Canvas.
|
28
28
|
2. In prod, you'll need to generate a RSA Private Key for the LTI to use. You can set the `LTI_PRIVATE_KEY` ENV variable, or manually set `PandaPal.lti_private_key = OpenSSL::PKey::RSA.new(key)`.
|
29
|
-
3.
|
29
|
+
3. Make sure you have Redis installed and linked correctly
|
30
|
+
4. Your PandaPal::Organization's `key` should be `CLIENT_ID/DEPLOYMENT_ID` (which can be found in Canvas). If a Deployment ID is not given, the key should just be `CLIENT_ID`.
|
30
31
|
|
31
32
|
### Launch URL property
|
32
33
|
LTI Spec: `The launch_url contains the URL to which the LTI Launch is to be sent. The secure_launch_url is the URL to use if secure http is required. One of either the launch_url or the secure_launch_url must be specified.`
|
@@ -99,6 +99,20 @@ module PandaPal
|
|
99
99
|
errors.concat(val_errors)
|
100
100
|
end
|
101
101
|
|
102
|
+
if settings.is_a?(Array)
|
103
|
+
if spec[:length].is_a?(Range)
|
104
|
+
errors << "#{human_path} should contain #{spec[:length]} items" unless spec[:length].include?(settings.count)
|
105
|
+
elsif spec[:length].is_a?(Numeric)
|
106
|
+
errors << "#{human_path} should contain exactly #{spec[:length]} items" unless spec[:length] == settings.count
|
107
|
+
end
|
108
|
+
|
109
|
+
if spec[:item] != nil
|
110
|
+
settings.each_with_index do |value, i|
|
111
|
+
validate_settings_level(settings[i], spec[:item], path: [*path, i], errors: errors)
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
102
116
|
if settings.is_a?(Hash)
|
103
117
|
if spec[:properties] != nil
|
104
118
|
spec[:properties].each do |key, pspec|
|
data/lib/panda_pal/version.rb
CHANGED
data/panda_pal.gemspec
CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_dependency 'attr_encrypted', '~> 3.0.0'
|
24
24
|
s.add_dependency 'secure_headers', '~> 6.1'
|
25
25
|
s.add_dependency 'json-jwt'
|
26
|
+
s.add_dependency 'httparty'
|
26
27
|
|
27
28
|
s.add_development_dependency 'sidekiq'
|
28
29
|
s.add_development_dependency 'sidekiq-scheduler'
|
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.3.6
|
4
|
+
version: 5.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure ProServe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -128,6 +128,20 @@ dependencies:
|
|
128
128
|
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: httparty
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :runtime
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
131
145
|
- !ruby/object:Gem::Dependency
|
132
146
|
name: sidekiq
|
133
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -298,9 +312,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
298
312
|
version: '0'
|
299
313
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
314
|
requirements:
|
301
|
-
- - "
|
315
|
+
- - ">="
|
302
316
|
- !ruby/object:Gem::Version
|
303
|
-
version:
|
317
|
+
version: '0'
|
304
318
|
requirements: []
|
305
319
|
rubygems_version: 3.0.3
|
306
320
|
signing_key:
|