panda_pal 5.4.0.beta9 → 5.4.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: 83ce940ea822b2d77eaeb63a8d6ba7e5ef213151c881a1b1fa872527adac42fd
4
- data.tar.gz: cc4439a2431281e657deb7c61eaedc9dd0b647593657c8c9e112774cd4b9897f
3
+ metadata.gz: b038d3fd4f84638f9417835e011bebc4ea9840dbc5cde8ac3c24f1ad35481f93
4
+ data.tar.gz: 1afcd3f8d819b6bb3139e0ccd7659ed854e75b108f6f78e8c7ed2c3d9a6d22a2
5
5
  SHA512:
6
- metadata.gz: 0ae381028c6bbac74c6084dc3aa914e50da57c6126bf394f7150e5e98744c8ec5d025abe3111e18a97f076e31fd2b63f1dec5d2496d1cc3032b6e0a8351d1f6a
7
- data.tar.gz: cda153e9bedb6253d5ab5375657989567ae4cf5e542838d16516a64b1c20cfc2058895504aad10e0e56dfb6a7330c43a467a71be78f192f0c4a221d16ab26f9c
6
+ metadata.gz: ec23ec83ae5d5f58ed67836b1126ea4387cb2cf36da0b3f9f6d2efc7c331c7be2229e1573c17c2a6d78deea9b5ad42a4a610273b62d9ed4e27feb8f6b9881403
7
+ data.tar.gz: 90f8fbca45c8b5555a6506cc42f50bbc034caaa97554f84a0ecf06e4cf87b761b83476cfff51a80e90e6ecb33d06998275954edec50355a2db479854beca35e1
@@ -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'.
@@ -160,7 +160,7 @@ module PandaPal
160
160
  private
161
161
 
162
162
  def unschedule_tasks(new_task_keys = nil)
163
- current_schedules = Sidekiq.get_schedule.select { |k,v| k.starts_with?("org:#{name}-") }
163
+ current_schedules = Sidekiq.get_schedule.select { |k,v| k.start_with?("org:#{name}-") }
164
164
  del_tasks = current_schedules.keys
165
165
  del_tasks -= new_task_keys if new_task_keys
166
166
  del_tasks.each do |k|
@@ -12,7 +12,7 @@ end
12
12
  Rails.application.config.middleware.use Apartment::Elevators::Generic, lambda { |request|
13
13
  if match = request.path.match(/\/(?:orgs?|organizations?)\/(\d+)/)
14
14
  PandaPal::Organization.find_by(id: match[1]).try(:name)
15
- elsif request.path.starts_with?('/rails/active_storage/blobs/')
15
+ elsif request.path.start_with?('/rails/active_storage/blobs/')
16
16
  PandaPal::Organization.find_by(id: request.params['organization_id']).try(:name)
17
17
  end
18
18
  }
data/lib/panda_pal.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  require "panda_pal/engine"
2
2
  require 'panda_pal/plugins'
3
3
  require 'panda_pal/helpers'
4
- require 'panda_pal/jobs'
5
4
  require 'oauth/request_proxy/rack_request'
6
5
  require 'oauth/request_proxy/action_dispatch_request'
7
6
 
@@ -92,7 +91,7 @@ module PandaPal
92
91
 
93
92
  def self.normalize_ext_type(type)
94
93
  type = type.to_s
95
- type = "#{self.to_s}::#{type}" unless type.starts_with?('::') || type.starts_with?(self.to_s)
94
+ type = "#{self.to_s}::#{type}" unless type.start_with?('::') || type.start_with?(self.to_s)
96
95
  type
97
96
  end
98
97
 
@@ -5,8 +5,11 @@ module PandaPal::Helpers
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- helper_method :link_nonce, :current_session, :current_session_data
9
- helper_method :link_with_session_to, :url_with_session, :session_url_for
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
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = "5.4.0.beta9"
2
+ VERSION = "5.4.3"
3
3
  end
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.0.beta9
4
+ version: 5.4.3
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-04-15 00:00:00.000000000 Z
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
@@ -251,8 +232,6 @@ files:
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.rb
255
- - lib/panda_pal/jobs/grade_passback_job.rb
256
235
  - lib/panda_pal/plugins.rb
257
236
  - lib/panda_pal/version.rb
258
237
  - lib/tasks/panda_pal_tasks.rake
@@ -316,9 +295,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
316
295
  version: '0'
317
296
  required_rubygems_version: !ruby/object:Gem::Requirement
318
297
  requirements:
319
- - - ">"
298
+ - - ">="
320
299
  - !ruby/object:Gem::Version
321
- version: 1.3.1
300
+ version: '0'
322
301
  requirements: []
323
302
  rubygems_version: 3.0.3
324
303
  signing_key:
@@ -1,3 +0,0 @@
1
- module PandaPal::Jobs
2
- require_relative 'jobs/grade_passback_job'
3
- end