coalescing_panda 4.1.9 → 4.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16a71b9c4e96dc91f00706e4c48d84b680efea19
4
- data.tar.gz: 75d4955fa7a91a408bc38641089ce3a01e0d7297
3
+ metadata.gz: cccef2179435913dc8479713bfe97baca913ffa4
4
+ data.tar.gz: 6eed848e22fc27854dae01f0383da9189be57bb3
5
5
  SHA512:
6
- metadata.gz: f90f7d05524b519a6d29d077280a276fbe11d8416c75e975705230757c69bf3ce4476b73041b1b24f93513ace1a80606516a5d8e5a11a565d85d8a00a9617edd
7
- data.tar.gz: f68a8d67ebbb9edf64216553ad5e67ea3caea0748977c384ef2c0146532dff08d0c3d6d456c4a6604f83d71f74108047a1f1cca056d83d9c50ae0048ee3810e4
6
+ metadata.gz: 2d69a4572462912c8e10129c23a7073a26f401f94e5adc9d73befd852986c5bdb54b8ec95d5547d30d19346f9b650c7bde17d10a217813f707bdcbfc549f3e91
7
+ data.tar.gz: b1fbeb9b30fb82e3dca1603bbf304c1cba5d95b777de2bac6507b2c62a22134ef0fa716cbcaf72b8473d344f64dde115ea10af8792710a53ff792cd107a48504
@@ -51,12 +51,12 @@ module CoalescingPanda
51
51
  if %w(course account user).include?(name)
52
52
  tail = '_navigation' unless name.include? '_navigation'
53
53
  end
54
- (name+tail).to_sym
54
+ ([name, tail].join).to_sym
55
55
  end
56
56
 
57
57
  def ext_params(options)
58
58
  url = options.delete(:url)
59
- options[:url] = main_app.send(url+'_url')
59
+ options[:url] = main_app.send([url,'_url'].join)
60
60
  options
61
61
  end
62
62
 
@@ -13,7 +13,7 @@ module CoalescingPanda
13
13
  client_key = lti_account.oauth2_client_key
14
14
  user_id = params[:user_id]
15
15
  api_domain = params[:api_domain]
16
- client = Bearcat::Client.new(prefix: oauth2_protocol+'://'+api_domain)
16
+ client = Bearcat::Client.new(prefix: [oauth2_protocol, '://', api_domain].join)
17
17
  token = client.retrieve_token(client_id, coalescing_panda.oauth2_redirect_url, client_key, params['code'])
18
18
  CanvasApiAuth.where('user_id = ? and api_domain = ?', user_id, api_domain).first_or_create do |auth|
19
19
  auth.api_token = token
@@ -10,7 +10,7 @@ module CoalescingPanda
10
10
  uri = URI.parse(launch_presentation_return_url)
11
11
  api_domain = uri.host
12
12
  api_domain = "#{api_domain}:#{uri.port.to_s}" if uri.port
13
- scheme = uri.scheme + '://'
13
+ scheme = [uri.scheme, '://'].join
14
14
  @lti_params = params.to_hash
15
15
  session['user_id'] = user_id
16
16
  session['uri'] = launch_presentation_return_url
@@ -1,3 +1,3 @@
1
1
  module CoalescingPanda
2
- VERSION = '4.1.9'
2
+ VERSION = '4.1.10'
3
3
  end
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: 4.1.9
4
+ version: 4.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Mills