coalescing_panda 1.0.9 → 1.1.0

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.
@@ -8,7 +8,7 @@ module CoalescingPanda
8
8
  lti_nav = CoalescingPanda.lti_paths
9
9
  platform = 'canvas.instructure.com'
10
10
  host = "#{request.scheme}://#{request.host_with_port}"
11
- tc = IMS::LTI::ToolConfig.new(:title => lti_options[:title], :launch_url => (lti_options[:launch_url])|| 'ABC')
11
+ tc = IMS::LTI::ToolConfig.new(:title => lti_options[:title], :launch_url => ("#{host}#{lti_options[:launch_route]}") || 'ABC')
12
12
  tc.set_ext_param(platform, :domain, request.host)
13
13
  tc.set_ext_param(platform, :privacy_level, 'public')
14
14
  if lti_options.has_key?(:custom_fields)
@@ -23,7 +23,8 @@ module CoalescingPanda
23
23
  end
24
24
 
25
25
  #strip the launch url
26
- xml = tc.to_xml.sub(/<blti:launch_url>.*<\/blti:launch_url>/, '') if lti_options[:launch_url].blank?
26
+ xml = tc.to_xml
27
+ xml = xml.sub(/<blti:launch_url>.*<\/blti:launch_url>/, '') if lti_options[:launch_route].blank?
27
28
  render :xml => xml
28
29
  end
29
30
 
@@ -1,3 +1,3 @@
1
1
  module CoalescingPanda
2
- VERSION = '1.0.9'
2
+ VERSION = '1.1.0'
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: 1.0.9
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-18 00:00:00.000000000 Z
12
+ date: 2014-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails