coalescing_panda 1.1.3 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/coalescing_panda/controller_helpers.rb +5 -1
- data/lib/coalescing_panda/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTMzZDY0MDE4ZTRjOWFiMmFjNzY3YmJlZjRiNjhjYzEzMGE0NzVlNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODgyNzdmMzRlM2NlN2MyNjJmM2YyNzAwOTJiY2I0ODEyNTI2MzM4YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDg2YWMwMDk3NmNlNzViM2FhNmQxMzlhM2M3N2Y5OWI0MTdhOGI2NzIzNmM3
|
10
|
+
MWI3YjRjZWJlODg3Mjg2YjU5ZjU5Y2ViYmU0ZjRmMWY2MTVkOWU0NjNhOTlk
|
11
|
+
ODMxMGM0OGZiY2ZmMjEwZmVjYTI2NWY0NzMwNjU2ZWZhNjk2ZTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDdlYTkwMzIxNzA3NTZmZmY4ZjYzNjgzYWYwMjJmNzNkOWMzNmZkOGEwZWE4
|
14
|
+
NmRmNTQyY2EzYzQyOGNhMTFmMDNmOGZlNTkwYjQzMWVkMzg1YmViYzIwYmVm
|
15
|
+
ZmM4YTA3MTljZTU3NmIxZmE5ZTlhNzlmODBiNDA2OWY2MWI2MTc=
|
@@ -12,7 +12,8 @@ module CoalescingPanda
|
|
12
12
|
@lti_params = params.to_hash
|
13
13
|
session['user_id'] = user_id
|
14
14
|
session['uri'] = params['launch_presentation_return_url']
|
15
|
-
session['lis_person_sourcedid'] =
|
15
|
+
session['lis_person_sourcedid'] = params['lis_person_sourcedid']
|
16
|
+
session['oauth_consumer_key'] = params['oauth_consumer_key']
|
16
17
|
|
17
18
|
if token = CanvasApiAuth.where('user_id = ? and api_domain = ?', user_id, api_domain).pluck(:api_token).first
|
18
19
|
@client = Bearcat::Client.new(token: token, prefix: scheme+api_domain)
|
@@ -46,6 +47,9 @@ module CoalescingPanda
|
|
46
47
|
token = CanvasApiAuth.where('user_id = ? and api_domain = ?', session['user_id'], api_domain).pluck(:api_token).first
|
47
48
|
@client = Bearcat::Client.new(token: token, prefix: scheme+api_domain) if token
|
48
49
|
end
|
50
|
+
|
51
|
+
@lti_account = LtiAccount.find_by_key(session['oauth_consumer_key']) if session['oauth_consumer_key']
|
52
|
+
|
49
53
|
!!@client
|
50
54
|
end
|
51
55
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coalescing_panda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Mills
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|