coalescing_panda 5.1.7 → 5.1.11

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
  SHA1:
3
- metadata.gz: '0409edab07ad43581723490074944653386880eb'
4
- data.tar.gz: e264311c1a4f1bea17fcdb5478e23ace112a9cc3
3
+ metadata.gz: b2d9182e5ea2d4dda01488cdfaf214ea4d5de08e
4
+ data.tar.gz: 4ee107d7561962246914a01db19ad653c0bce516
5
5
  SHA512:
6
- metadata.gz: 8290076015eedb30907ba4b536a3c50bc8c8dbe7b723b39d432c83679034113b77e9109bf38531dbca252e4249d8ceb0d863fb021c8b041ce985db65668256b9
7
- data.tar.gz: f8b1438c4e2bd991bb83a630cb3b9466546bb78712595572d99252a8d93564591606b7cb084a3a30aff5f541c6bcd8a21d410f96925852f86f2a1e343617c6cb
6
+ metadata.gz: 1f747263f8bea8914b58c30c2c507ac141ee4737a5554aa183dfb6793f50411a5bcc5bc03311c816719f5563e5703aed9fbad540fdb047511b464cc01ecc5bf6
7
+ data.tar.gz: 38d3ac0ef58e1c52c12cf2957814d8cb9381c4d176aae6da403dfe0c325f7156e06fff95b08abd9e5a8f9b6cac0a5896994602c1ddafa1ff35fa5581ce8fcbcd
@@ -3,7 +3,6 @@ module CoalescingPanda
3
3
  belongs_to :context, :polymorphic => true
4
4
  include SingleTablePolymorphic
5
5
 
6
- belongs_to :leader, foreign_key: :leader_id, class_name: 'CoalescingPanda::User'
7
6
  has_many :groups, foreign_key: :coalescing_panda_group_category_id, class_name: 'CoalescingPanda::Group'
8
7
  has_many :assignments, foreign_key: :coalescing_panda_group_category_id, class_name: 'CoalescingPanda::Assignment'
9
8
  validates :canvas_group_category_id, presence: true
@@ -2,7 +2,6 @@ class CreateCoalescingPandaGroupCategories < CoalescingPanda::MiscHelper::Migrat
2
2
  def change
3
3
  create_table :coalescing_panda_group_categories do |t|
4
4
  t.belongs_to :context, polymorphic: true
5
- t.string :context_type
6
5
  t.integer :canvas_group_category_id
7
6
  t.string :name
8
7
 
@@ -50,7 +50,7 @@ module CoalescingPanda
50
50
  @canvas_url = client.auth_redirect_url(client_id, resolve_coalescing_panda_url(:oauth2_redirect_url), { state: state })
51
51
 
52
52
  #delete the added params so the original oauth sig still works
53
- @lti_params = params.to_hash
53
+ @lti_params = params.to_unsafe_h
54
54
  @lti_params.delete('action')
55
55
  @lti_params.delete('controller')
56
56
  render 'coalescing_panda/oauth2/oauth2', layout: 'coalescing_panda/application'
@@ -106,6 +106,10 @@ module CoalescingPanda
106
106
  false
107
107
  end
108
108
 
109
+ def validate_launch!
110
+ lti_authorize!
111
+ end
112
+
109
113
  def lti_authorize!(*roles)
110
114
  authorized = false
111
115
  if (@lti_account = params['oauth_consumer_key'] && LtiAccount.find_by_key(params['oauth_consumer_key']))
@@ -1,3 +1,3 @@
1
1
  module CoalescingPanda
2
- VERSION = '5.1.7'
2
+ VERSION = '5.1.11'
3
3
  end
@@ -3,6 +3,7 @@ require 'jquery-rails'
3
3
  require 'ims/lti'
4
4
  require 'bearcat'
5
5
  require 'oauth/request_proxy/rack_request'
6
+ require 'oauth/request_proxy/action_dispatch_request'
6
7
  require 'haml'
7
8
  require 'sass-rails'
8
9
  require 'coffee-rails'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coalescing_panda
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.7
4
+ version: 5.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Mills
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-05-19 00:00:00.000000000 Z
13
+ date: 2021-09-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails