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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f476900a5626c4d36928e5eb58655d660397b9be
4
- data.tar.gz: 33bc12293652d62b8d13b191d0685c4945994d4c
3
+ metadata.gz: c1ae235acf168e1c2f7b155f81711322861122e9
4
+ data.tar.gz: b505278c382c51f7be54b82ea2fd9ad5421895ca
5
5
  SHA512:
6
- metadata.gz: be401fda726e6048a5435baacf72a3d76c5fc96d8c0abde9b5cee959d1cc4fd394256385ae8da0f150907d06a1cff3fa4d56d86b028da63f139e388d1a4df934
7
- data.tar.gz: a4523159ae714eef2e912e47c58cd80af8cfedcda03653a95d606a200de3b5fdb087aebc402524a571ff28e6b06949fa9c613ab73a714fc3edf40c69417b33e1
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.0.x)](https://travis-ci.org/instructure/ims-lti)
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
 
@@ -33,5 +33,6 @@ module IMS::LTI
33
33
  require_relative 'models/content_item_container'
34
34
  require_relative 'models/image'
35
35
  require_relative 'models/membership_service'
36
+ require_relative 'models/security_profile'
36
37
  end
37
38
  end
@@ -0,0 +1,10 @@
1
+ module IMS::LTI::Models
2
+ class SecurityProfile < LTIModel
3
+ add_attributes :security_profile_name, :digest_algorithm
4
+
5
+ def digest_algorithms
6
+ [*@digest_algorithim]
7
+ end
8
+
9
+ end
10
+ end
@@ -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.0
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-09 00:00:00.000000000 Z
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.5.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