ims-lti 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/ims/lti/models.rb +1 -0
- data/lib/ims/lti/models/security_profile.rb +10 -0
- data/lib/ims/lti/models/tool_consumer_profile.rb +5 -1
- data/lib/ims/lti/models/tool_profile.rb +5 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1ae235acf168e1c2f7b155f81711322861122e9
|
4
|
+
data.tar.gz: b505278c382c51f7be54b82ea2fd9ad5421895ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93a938e0ec2f7999fb0b67b2efe546079570c9aa45f3d5d6328a23573d9d534ffa0fba3435d56750e1d0c4db17e64b4b41f6565c8342b40779099037c8505f9c
|
7
|
+
data.tar.gz: 3bddacecbb7791071f9004b7709fb7d3bf35639f9869ba967a406629766ed6776af8bf8d2d0f6d3df0df72e41e25c97411f7f0199963ab7e2077d2079dcde24c
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# IMS LTI
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/instructure/ims-lti.svg?branch=2.
|
3
|
+
[![Build Status](https://travis-ci.org/instructure/ims-lti.svg?branch=2.1.x)](https://travis-ci.org/instructure/ims-lti)
|
4
4
|
|
5
5
|
LTI ruby implementation
|
6
6
|
|
@@ -8,7 +8,7 @@ LTI ruby implementation
|
|
8
8
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
|
-
gem 'lti'
|
11
|
+
gem 'ims-lti'
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
data/lib/ims/lti/models.rb
CHANGED
@@ -7,7 +7,7 @@ module IMS::LTI::Models
|
|
7
7
|
MESSAGING_CAPABILITIES = %w(basic-lti-launch-request)
|
8
8
|
OUTCOMES_CAPABILITIES = %w(Result.autocreate)
|
9
9
|
|
10
|
-
add_attributes :lti_version, :guid, :capability_offered
|
10
|
+
add_attributes :lti_version, :guid, :capability_offered, :security_profile
|
11
11
|
add_attribute :id, json_key:'@id'
|
12
12
|
add_attribute :type, json_key:'@type'
|
13
13
|
add_attribute :context, json_key:'@context'
|
@@ -28,6 +28,10 @@ module IMS::LTI::Models
|
|
28
28
|
[*@capability_offered]
|
29
29
|
end
|
30
30
|
|
31
|
+
def security_profiles
|
32
|
+
[*@security_profile]
|
33
|
+
end
|
34
|
+
|
31
35
|
def reregistration_capable?
|
32
36
|
@capability_offered.include?(Messages::ToolProxyReregistrationRequest::MESSAGE_TYPE)
|
33
37
|
end
|
@@ -7,6 +7,7 @@ module IMS::LTI::Models
|
|
7
7
|
add_attribute :resource_handler, relation:'IMS::LTI::Models::ResourceHandler'
|
8
8
|
add_attribute :message, relation:'IMS::LTI::Models::MessageHandler'
|
9
9
|
add_attribute :service_offered, relation:'IMS::LTI::Models::RestService'
|
10
|
+
add_attribute :security_profile, relation:'IMS::LTI::Models::SecurityProfile'
|
10
11
|
|
11
12
|
|
12
13
|
def base_message_url
|
@@ -26,5 +27,9 @@ module IMS::LTI::Models
|
|
26
27
|
[*@message]
|
27
28
|
end
|
28
29
|
|
30
|
+
def security_profiles
|
31
|
+
[*@security_profile]
|
32
|
+
end
|
33
|
+
|
29
34
|
end
|
30
35
|
end
|
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.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simple_oauth
|
@@ -236,6 +236,7 @@ files:
|
|
236
236
|
- lib/ims/lti/models/rest_service.rb
|
237
237
|
- lib/ims/lti/models/rest_service_profile.rb
|
238
238
|
- lib/ims/lti/models/security_contract.rb
|
239
|
+
- lib/ims/lti/models/security_profile.rb
|
239
240
|
- lib/ims/lti/models/serializable.rb
|
240
241
|
- lib/ims/lti/models/service_owner.rb
|
241
242
|
- lib/ims/lti/models/service_provider.rb
|
@@ -283,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
283
284
|
version: '0'
|
284
285
|
requirements: []
|
285
286
|
rubyforge_project:
|
286
|
-
rubygems_version: 2.
|
287
|
+
rubygems_version: 2.6.8
|
287
288
|
signing_key:
|
288
289
|
specification_version: 4
|
289
290
|
summary: Ruby library for creating IMS LTI tool providers and consumers
|