panda_pal 5.4.0.beta8 → 5.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{lib → app/jobs}/panda_pal/jobs/grade_passback_job.rb +2 -2
- data/lib/panda_pal.rb +2 -2
- data/lib/panda_pal/helpers.rb +1 -0
- data/lib/panda_pal/{ability_mixin.rb → helpers/ability_mixin.rb} +0 -0
- data/lib/panda_pal/helpers/session_replacement.rb +5 -2
- data/lib/panda_pal/version.rb +1 -1
- data/panda_pal.gemspec +0 -1
- metadata +6 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92403f9a5c42dd06aa5eb6712d8ce8de9818b5988d34d8302dc2f41cf6e29ffa
|
4
|
+
data.tar.gz: '069d4e1c6afda138faab803562d03cdca82ed1dfbedceabb94f07a9f3e450595'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dc2c9fac981aaab7ae364d99add41510c8e1fb82114d4f5bc21efc47aa6de466d49d05eae35aa70719de83f34bd5ff14be2d4fd243b2e06fe7477b30afe6ea6
|
7
|
+
data.tar.gz: 4fc49b9a2d1a6bfed905e7798abd0556f962f1ec5701fa3e7b40aedb35e2a0eeb70a5d20a7ac9ff5c25eb099940c9b9ff62cbbec96652ac52fea7ffd25906636
|
@@ -4,10 +4,10 @@ module PandaPal::Jobs
|
|
4
4
|
class GradePassbackFailure < StandardError; end
|
5
5
|
|
6
6
|
class GradePassbackJob < ActiveJob::Base
|
7
|
-
sidekiq_options retry: 5
|
8
|
-
|
9
7
|
attr_accessor :organization, :opts
|
10
8
|
|
9
|
+
sidekiq_options(retry: 5) if respond_to?(:sidekiq_options)
|
10
|
+
|
11
11
|
# Required values for opts: passback_guid, passback_url, score AND/OR total_score.
|
12
12
|
# Possible values for opts: cdata_text, text, url, submitted_at, lti_launch_url.
|
13
13
|
# passback_guid is sent in launch params as 'lis_result_sourcedid'.
|
data/lib/panda_pal.rb
CHANGED
@@ -74,7 +74,7 @@ module PandaPal
|
|
74
74
|
def self.register_extension(type, modul)
|
75
75
|
type = normalize_ext_type(type)
|
76
76
|
@@extensions[type] ||= []
|
77
|
-
@@extensions[type] << modul
|
77
|
+
@@extensions[type] << modul.to_s
|
78
78
|
end
|
79
79
|
|
80
80
|
def self.extensions_for(type)
|
@@ -83,7 +83,7 @@ module PandaPal
|
|
83
83
|
|
84
84
|
def self.resolved_extensions_for(type)
|
85
85
|
extensions_for(type).map do |ext|
|
86
|
-
ext.
|
86
|
+
ext.safe_constantize
|
87
87
|
end.compact
|
88
88
|
end
|
89
89
|
|
data/lib/panda_pal/helpers.rb
CHANGED
File without changes
|
@@ -5,8 +5,11 @@ module PandaPal::Helpers
|
|
5
5
|
extend ActiveSupport::Concern
|
6
6
|
|
7
7
|
included do
|
8
|
-
|
9
|
-
|
8
|
+
# ActionController::API does not use views, so helper_method would not be defined
|
9
|
+
unless name == "ActionController::API"
|
10
|
+
helper_method :link_nonce, :current_session, :current_session_data
|
11
|
+
helper_method :link_with_session_to, :url_with_session, :session_url_for
|
12
|
+
end
|
10
13
|
|
11
14
|
prepend_around_action :monkeypatch_flash
|
12
15
|
prepend_around_action :auto_save_session
|
data/lib/panda_pal/version.rb
CHANGED
data/panda_pal.gemspec
CHANGED
@@ -17,7 +17,6 @@ Gem::Specification.new do |s|
|
|
17
17
|
|
18
18
|
s.add_dependency "rails", ">= 4.2"
|
19
19
|
s.add_dependency 'ros-apartment', '~> 2.2'
|
20
|
-
s.add_dependency 'pg', '>= 0.20', '< 1.0.0'
|
21
20
|
s.add_dependency 'ims-lti', '~> 1.2.4'
|
22
21
|
s.add_dependency 'browser', '2.5.0'
|
23
22
|
s.add_dependency 'attr_encrypted', '~> 3.0.0'
|
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.
|
4
|
+
version: 5.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure ProServe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,26 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.2'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: pg
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0.20'
|
48
|
-
- - "<"
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 1.0.0
|
51
|
-
type: :runtime
|
52
|
-
prerelease: false
|
53
|
-
version_requirements: !ruby/object:Gem::Requirement
|
54
|
-
requirements:
|
55
|
-
- - ">="
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: '0.20'
|
58
|
-
- - "<"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 1.0.0
|
61
41
|
- !ruby/object:Gem::Dependency
|
62
42
|
name: ims-lti
|
63
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -218,6 +198,7 @@ files:
|
|
218
198
|
- app/controllers/panda_pal/lti_v1_p0_controller.rb
|
219
199
|
- app/controllers/panda_pal/lti_v1_p3_controller.rb
|
220
200
|
- app/helpers/panda_pal/application_helper.rb
|
201
|
+
- app/jobs/panda_pal/jobs/grade_passback_job.rb
|
221
202
|
- app/lib/lti_xml/base_platform.rb
|
222
203
|
- app/lib/lti_xml/bridge_platform.rb
|
223
204
|
- app/lib/lti_xml/canvas_platform.rb
|
@@ -244,14 +225,13 @@ files:
|
|
244
225
|
- db/migrate/20171205183457_encrypt_organization_settings.rb
|
245
226
|
- db/migrate/20171205194657_remove_old_organization_settings.rb
|
246
227
|
- lib/panda_pal.rb
|
247
|
-
- lib/panda_pal/ability_mixin.rb
|
248
228
|
- lib/panda_pal/engine.rb
|
249
229
|
- lib/panda_pal/helpers.rb
|
230
|
+
- lib/panda_pal/helpers/ability_mixin.rb
|
250
231
|
- lib/panda_pal/helpers/controller_helper.rb
|
251
232
|
- lib/panda_pal/helpers/route_helper.rb
|
252
233
|
- lib/panda_pal/helpers/secure_headers.rb
|
253
234
|
- lib/panda_pal/helpers/session_replacement.rb
|
254
|
-
- lib/panda_pal/jobs/grade_passback_job.rb
|
255
235
|
- lib/panda_pal/plugins.rb
|
256
236
|
- lib/panda_pal/version.rb
|
257
237
|
- lib/tasks/panda_pal_tasks.rake
|
@@ -315,9 +295,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
315
295
|
version: '0'
|
316
296
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
317
297
|
requirements:
|
318
|
-
- - "
|
298
|
+
- - ">="
|
319
299
|
- !ruby/object:Gem::Version
|
320
|
-
version:
|
300
|
+
version: '0'
|
321
301
|
requirements: []
|
322
302
|
rubygems_version: 3.0.3
|
323
303
|
signing_key:
|