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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWZiYzEwOTYzYTc4YmZjMjEyZGEyZjIzNTAxZGUwZTAwYjhmYTRhYw==
4
+ NTMzZDY0MDE4ZTRjOWFiMmFjNzY3YmJlZjRiNjhjYzEzMGE0NzVlNg==
5
5
  data.tar.gz: !binary |-
6
- NDU1YTg3MmNlNWE1YjQxZTgwZjliNDc4MmU5ODVlNjEzNTAyNWZjNw==
6
+ ODgyNzdmMzRlM2NlN2MyNjJmM2YyNzAwOTJiY2I0ODEyNTI2MzM4YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2MxNGJlNzI0ODAzMWE3ZGQwYjExYWMyZWY2Mjg2NmRhNjNmY2IwNjg0ODU0
10
- MTk2YjY0NzdlMmQ3NmEwOWIzOGYwYjY4MTBkNTY2NGIyOWMyOTljZTkzNmQy
11
- ZWI1MzFhNzdjYjA1YmJmYjJkZTBhZmU2OTA3MTFjNDViNDRmNWQ=
9
+ ZDg2YWMwMDk3NmNlNzViM2FhNmQxMzlhM2M3N2Y5OWI0MTdhOGI2NzIzNmM3
10
+ MWI3YjRjZWJlODg3Mjg2YjU5ZjU5Y2ViYmU0ZjRmMWY2MTVkOWU0NjNhOTlk
11
+ ODMxMGM0OGZiY2ZmMjEwZmVjYTI2NWY0NzMwNjU2ZWZhNjk2ZTg=
12
12
  data.tar.gz: !binary |-
13
- MGMzMTE4ZDkwOTIzNjAyZjYxYWE5MDZkOTFiOTY0MWFhMzhiMzkzZDM4NDgx
14
- MTE2NWRlYWE5Yjc1YjdmNjZhY2UxZDE1YTBlMGZmOWNkYTk4OTJjYjM0YjM0
15
- MjVhMzI1NTYwODUyZmJiMDM4OTJkYjNmNTg2NjlhMTA4YzJiOTE=
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'] = @lti_params['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
 
@@ -1,3 +1,3 @@
1
1
  module CoalescingPanda
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.5'
3
3
  end
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.3
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-05-29 00:00:00.000000000 Z
11
+ date: 2014-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails