coalescing_panda 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -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[:
|
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
|
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
|
|
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
|
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
|
12
|
+
date: 2014-04-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|