qalam_lti_provider_engine 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95e9d007091c87b79f632ddeccc7ae2af1191a3731b5615938ec92e947c10be3
|
4
|
+
data.tar.gz: 2712ffda9664f3710ca997ac88c8faaec56211e9615eed7805abf0cd6b4df932
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 635f62a8ec30ed633858d77a6205c7ed08e29b2d5cdddf0f726dca76ac4090ce12e1674ee20ac06c7e5dff9ceb35d861acd807841d1fd0a32845d72b318de9bd
|
7
|
+
data.tar.gz: 592f214ce45df92ae17e78104925d2d47412023e1de0e95c9adefa2054f9ab99fa5ab8e9f1f14546861a6cff5a2ec1bb772e960a5b355f4a2f337c86a0a3a840
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<p>
|
2
2
|
It appears your browser is blocking cookies. You can try
|
3
|
-
<%= link_to "launching the tool in a new window", consume_launch_url(nonce: params[:nonce]
|
3
|
+
<%= link_to "launching the tool in a new window", consume_launch_url(nonce: params[:nonce]), target: '_blank' %>.
|
4
4
|
</p>
|
data/config/lti_xml.yml.example
CHANGED
@@ -7,10 +7,29 @@ default: &default
|
|
7
7
|
privacy_level: 'public'
|
8
8
|
|
9
9
|
# url defaults to lti_launch_url, but can be overridden in each of these
|
10
|
-
|
10
|
+
account_navigation:
|
11
11
|
text: 'Dummy'
|
12
12
|
visibility: 'admins'
|
13
|
-
|
13
|
+
url: 'ssd'
|
14
|
+
enabled: true
|
15
|
+
default: 'enabled'
|
16
|
+
windowTarget: '_self'
|
17
|
+
custom_fields:
|
18
|
+
key1: 'value1'
|
19
|
+
labels:
|
20
|
+
en: 'Attendance'
|
21
|
+
ar: 'الحضور'
|
22
|
+
# course_navigation and user_navigation are also available with similar options
|
23
|
+
|
24
|
+
editor_button:
|
25
|
+
enabled: true
|
26
|
+
icon_url: ''
|
27
|
+
selection_width: ''
|
28
|
+
selection_height: ''
|
29
|
+
labels:
|
30
|
+
en: ''
|
31
|
+
ar: ''
|
32
|
+
|
14
33
|
|
15
34
|
development:
|
16
35
|
<<: *default
|
@@ -53,6 +53,28 @@ module LtiProvider
|
|
53
53
|
session[:user_roles]
|
54
54
|
end
|
55
55
|
|
56
|
+
### QALAM ###
|
57
|
+
def launch_tool
|
58
|
+
session[:launch_tool]
|
59
|
+
end
|
60
|
+
|
61
|
+
def student_launch?
|
62
|
+
user_roles.split(',').include? 'urn:lti:role:ims/lis/Learner'
|
63
|
+
end
|
64
|
+
|
65
|
+
def teacher_launch?
|
66
|
+
user_roles.split(',').include? 'urn:lti:role:ims/lis/Instructor'
|
67
|
+
end
|
68
|
+
|
69
|
+
def account_admin_launch?
|
70
|
+
user_roles.split(',').include? 'urn:lti:instrole:ims/lis/Administrator'
|
71
|
+
end
|
72
|
+
|
73
|
+
def root_admin_launch?
|
74
|
+
user_roles.split(',').include? 'urn:lti:sysrole:ims/lis/SysAdmin'
|
75
|
+
end
|
76
|
+
### END ###
|
77
|
+
|
56
78
|
def not_acceptable
|
57
79
|
render plain: "Unable to process request", status: 406
|
58
80
|
end
|
data/lib/lti_provider/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qalam_lti_provider_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Donahue
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-07-
|
14
|
+
date: 2021-07-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|