ims-lti 2.1.6 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/ims/lti/models/lti_model.rb +7 -2
- data/lib/ims/lti/models/membership_service/lis_person.rb +2 -1
- data/lib/ims/lti/models/messages.rb +1 -1
- data/lib/ims/lti/models/messages/basic_lti_launch_request.rb +2 -1
- data/lib/ims/lti/models/messages/{tool_proxy_reregistration_request.rb → tool_proxy_update_request.rb} +2 -2
- data/lib/ims/lti/models/tool_consumer_profile.rb +1 -1
- data/lib/ims/lti/serializers/membership_service/lis_person_serializer.rb +1 -0
- data/lib/ims/lti/services/message_authenticator.rb +1 -1
- data/lib/ims/lti/services/tool_proxy_registration_service.rb +1 -1
- data/lib/ims/lti/version.rb +1 -1
- metadata +26 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 517f20cf164297427cfa6cb070ab79f57514fa7b88e98f0ebd2adec5430e1897
|
4
|
+
data.tar.gz: 7740db235eee2784d84dd9d66a8aebd132eb337d4ecea837bfc36f49b6117f2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9e0205e846821c9415894bbab343e0ab1b53ff8627b2fdc6994ac968f3ce962c99753b5c98ee38e75bbfddafd840ffc9d053f332c573b6d43cde8cddb421d5b
|
7
|
+
data.tar.gz: 328b07aa4123c8bf8a296cc00231f35b3d03887e7b28562fff59bb19720c34b9e9ec653e263eed440522c1f460d3c64e81946c9c832fb5bfb5cf64bd7a59758a
|
@@ -92,8 +92,13 @@ module IMS::LTI::Models
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def from_json(json)
|
95
|
-
|
96
|
-
|
95
|
+
json = json.to_json unless json.is_a?(String)
|
96
|
+
begin
|
97
|
+
data = JSON.parse(json)
|
98
|
+
rescue
|
99
|
+
data = JSON.parse(URI.unescape(json))
|
100
|
+
end
|
101
|
+
|
97
102
|
if data.is_a? Array
|
98
103
|
data.map { |hash| self.class.from_json(hash.to_json) }
|
99
104
|
else
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module IMS::LTI::Models::MembershipService
|
2
2
|
class LISPerson < Person
|
3
|
-
attr_reader :email, :result_sourced_id, :sourced_id, :user_id
|
3
|
+
attr_reader :email, :result_sourced_id, :sourced_id, :user_id, :sis_id
|
4
4
|
|
5
5
|
def initialize(opts={})
|
6
6
|
super(opts)
|
@@ -8,6 +8,7 @@ module IMS::LTI::Models::MembershipService
|
|
8
8
|
@result_sourced_id = opts[:result_sourced_id]
|
9
9
|
@sourced_id = opts[:sourced_id]
|
10
10
|
@user_id = opts[:user_id]
|
11
|
+
@sis_id = opts[:sis_id]
|
11
12
|
end
|
12
13
|
end
|
13
14
|
end
|
@@ -6,6 +6,6 @@ module IMS::LTI::Models
|
|
6
6
|
require_relative 'messages/basic_lti_launch_request'
|
7
7
|
require_relative 'messages/content_item_selection_request'
|
8
8
|
require_relative 'messages/content_item_selection'
|
9
|
-
require_relative 'messages/
|
9
|
+
require_relative 'messages/tool_proxy_update_request'
|
10
10
|
end
|
11
11
|
end
|
@@ -3,7 +3,8 @@ module IMS::LTI::Models::Messages
|
|
3
3
|
|
4
4
|
add_required_params :resource_link_id
|
5
5
|
add_recommended_params :context_id, :launch_presentation_return_url, :tool_consumer_instance_guid
|
6
|
-
add_optional_params :context_type, :role_scope_mentor, :user_image
|
6
|
+
add_optional_params :context_type, :role_scope_mentor, :user_image,
|
7
|
+
:lis_outcome_service_url, :lis_person_sourced_id, :lis_result_sourcedid
|
7
8
|
add_deprecated_params :context_title, :context_label, :resource_link_title, :resource_link_description,
|
8
9
|
:lis_person_name_given, :lis_person_name_family, :lis_person_name_full,
|
9
10
|
:lis_person_contact_email_primary, :user_image, :lis_person_sourcedid,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module IMS::LTI::Models::Messages
|
2
|
-
class
|
2
|
+
class ToolProxyUpdateRequest < RequestMessage
|
3
3
|
|
4
4
|
add_required_params :tc_profile_url, :launch_presentation_return_url
|
5
5
|
|
6
6
|
|
7
|
-
MESSAGE_TYPE = '
|
7
|
+
MESSAGE_TYPE = 'ToolProxyUpdateRequest'
|
8
8
|
|
9
9
|
def initialize(attrs = {})
|
10
10
|
super(attrs)
|
@@ -34,7 +34,7 @@ module IMS::LTI::Models
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def reregistration_capable?
|
37
|
-
@capability_offered.include?(Messages::
|
37
|
+
@capability_offered.include?(Messages::ToolProxyUpdateRequest::MESSAGE_TYPE)
|
38
38
|
end
|
39
39
|
|
40
40
|
def security_profile_by_name(security_profile_name:)
|
data/lib/ims/lti/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ims-lti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -48,30 +48,30 @@ dependencies:
|
|
48
48
|
name: faraday
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - "<"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0
|
53
|
+
version: '2.0'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '0
|
60
|
+
version: '2.0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: faraday_middleware
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - "<"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '0
|
67
|
+
version: '2.0'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - "<"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '0
|
74
|
+
version: '2.0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: json-jwt
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,30 +90,30 @@ dependencies:
|
|
90
90
|
name: simple_oauth
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- -
|
93
|
+
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: 0.3.1
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- -
|
100
|
+
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
102
|
+
version: 0.3.1
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: byebug
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '9.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '9.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: guard
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,14 +148,14 @@ dependencies:
|
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
151
|
+
version: '3.0'
|
152
152
|
type: :development
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
158
|
+
version: '3.0'
|
159
159
|
- !ruby/object:Gem::Dependency
|
160
160
|
name: pry
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,14 +176,14 @@ dependencies:
|
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
179
|
+
version: '12.0'
|
180
180
|
type: :development
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '
|
186
|
+
version: '12.0'
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: rspec
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,7 +212,7 @@ dependencies:
|
|
212
212
|
- - "~>"
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '0.8'
|
215
|
-
description:
|
215
|
+
description:
|
216
216
|
email: opensource@instructure.com
|
217
217
|
executables: []
|
218
218
|
extensions: []
|
@@ -275,7 +275,7 @@ files:
|
|
275
275
|
- lib/ims/lti/models/messages/message.rb
|
276
276
|
- lib/ims/lti/models/messages/registration_request.rb
|
277
277
|
- lib/ims/lti/models/messages/request_message.rb
|
278
|
-
- lib/ims/lti/models/messages/
|
278
|
+
- lib/ims/lti/models/messages/tool_proxy_update_request.rb
|
279
279
|
- lib/ims/lti/models/parameter.rb
|
280
280
|
- lib/ims/lti/models/product_family.rb
|
281
281
|
- lib/ims/lti/models/product_info.rb
|
@@ -320,7 +320,7 @@ homepage: http://github.com/instructure/ims-lti
|
|
320
320
|
licenses:
|
321
321
|
- MIT
|
322
322
|
metadata: {}
|
323
|
-
post_install_message:
|
323
|
+
post_install_message:
|
324
324
|
rdoc_options: []
|
325
325
|
require_paths:
|
326
326
|
- lib
|
@@ -335,9 +335,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
335
335
|
- !ruby/object:Gem::Version
|
336
336
|
version: '0'
|
337
337
|
requirements: []
|
338
|
-
|
339
|
-
|
340
|
-
signing_key:
|
338
|
+
rubygems_version: 3.1.4
|
339
|
+
signing_key:
|
341
340
|
specification_version: 4
|
342
341
|
summary: Ruby library for creating IMS LTI tool providers and consumers
|
343
342
|
test_files: []
|