ims-lti 2.0.0.beta.26 → 2.0.0.beta.27

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: bca1778908d5389e08878677bd4dd22e3f8abfa1
4
- data.tar.gz: 643e69ddf5b40883445cb8178bf8e4307aacc33b
3
+ metadata.gz: 48d4103936f4360628a9ba91c6480ebf7624eed1
4
+ data.tar.gz: 1146edc3271fb715a198044e7c1a4bc06012c144
5
5
  SHA512:
6
- metadata.gz: c48385ceb305eaa7aec1b7fe5883726abfb76fdf5a79735777c3e637c4cea472cd0fe08f7680221b497bdf8ca9271faecfe0a33ac9763fe1934ed3140bcfd0f9
7
- data.tar.gz: d4e971786b7f498f2d50a9d2f5537b0478bbd3ff46a66ee22fba610822cbc4ed04bc9793e1b15729755a22c8dd27b00cc1896ea711b7df00c52f3fec4d4a6010
6
+ metadata.gz: b59bd554719e010584c38f13947a16900e92e4b5a6a6e3cedfe2fa7d82e9c29685e4986247fbf2c5123ec63acb1e8fd8faa25b07a97dfb05daaa574a24cb293f
7
+ data.tar.gz: 7f5b36d427da594170e8692ba77637de595c287f3ce93cf3b42dcd3b3310f67b83d32615ce0815cafc0a98a33493c6c8a61aa0060b558c17b47c9adaed603d72
@@ -2,6 +2,6 @@ module IMS::LTI::Models
2
2
  module ContentItems
3
3
  require_relative 'content_items/content_item'
4
4
  require_relative 'content_items/file_item'
5
- require_relative 'content_items/lti_link'
5
+ require_relative 'content_items/lti_link_item'
6
6
  end
7
- end
7
+ end
@@ -23,10 +23,10 @@ module IMS::LTI::Models::ContentItems
23
23
  ContentItem.new.from_json(data)
24
24
  when 'FileItem'
25
25
  FileItem.new.from_json(data)
26
- when 'LtiLink'
27
- LtiLink.new.from_json(data)
26
+ when 'LtiLinkItem'
27
+ LtiLinkItem.new.from_json(data)
28
28
  end
29
29
  end
30
30
 
31
31
  end
32
- end
32
+ end
@@ -1,9 +1,9 @@
1
1
  module IMS::LTI::Models::ContentItems
2
- class LtiLink < ContentItem
2
+ class LtiLinkItem < ContentItem
3
3
 
4
4
  add_attributes :custom
5
5
 
6
- TYPE = "LtiLink"
6
+ TYPE = "LtiLinkItem"
7
7
 
8
8
  def initialize(attributes = {})
9
9
  super(attributes)
@@ -11,4 +11,4 @@ module IMS::LTI::Models::ContentItems
11
11
  end
12
12
 
13
13
  end
14
- end
14
+ end
@@ -1,7 +1,7 @@
1
1
  module IMS::LTI::Models
2
2
  class SecurityContract < LTIModel
3
3
 
4
- add_attribute :shared_secret
4
+ add_attributes :shared_secret, :tp_half_shared_secret
5
5
  add_attribute :tool_service, relation: 'IMS::LTI::Models::RestServiceProfile'
6
6
  add_attribute :end_user_service, relation: 'IMS::LTI::Models::RestServiceProfile'
7
7
 
@@ -24,5 +24,9 @@ module IMS::LTI::Models
24
24
  [*@service_offered]
25
25
  end
26
26
 
27
+ def capabilities_offered
28
+ [*@capability_offered]
29
+ end
30
+
27
31
  end
28
32
  end
@@ -1,6 +1,6 @@
1
1
  module IMS::LTI::Models
2
2
  class ToolProxy < LTIModel
3
- add_attributes :lti_version, :tool_proxy_guid, :custom, :custom_url, :enabled_capability
3
+ add_attributes :lti_version, :tool_proxy_guid, :custom, :custom_url, :enabled_capability, :tc_half_shared_secret
4
4
  add_attribute :context, json_key:'@context'
5
5
  add_attribute :type, json_key:'@type'
6
6
  add_attribute :id, json_key:'@id'
@@ -13,5 +13,9 @@ module IMS::LTI::Models
13
13
  super(attr)
14
14
  @type = 'ToolProxy'
15
15
  end
16
+
17
+ def enabled_capabilities
18
+ [*enabled_capability]
19
+ end
16
20
  end
17
21
  end
@@ -9,4 +9,4 @@ module IMS::LTI::Models
9
9
  LTI_LINK_TYPE = 'LtiLink'
10
10
 
11
11
  end
12
- end
12
+ end
@@ -1,5 +1,5 @@
1
1
  module IMS
2
2
  module LTI
3
- VERSION = "2.0.0.beta.20"
3
+ VERSION = "2.0.0.beta.27"
4
4
  end
5
5
  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.0.0.beta.26
4
+ version: 2.0.0.beta.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-07 00:00:00.000000000 Z
11
+ date: 2015-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_oauth
@@ -118,7 +118,7 @@ files:
118
118
  - lib/ims/lti/models/content_items.rb
119
119
  - lib/ims/lti/models/content_items/content_item.rb
120
120
  - lib/ims/lti/models/content_items/file_item.rb
121
- - lib/ims/lti/models/content_items/lti_link.rb
121
+ - lib/ims/lti/models/content_items/lti_link_item.rb
122
122
  - lib/ims/lti/models/icon_endpoint.rb
123
123
  - lib/ims/lti/models/icon_info.rb
124
124
  - lib/ims/lti/models/image.rb
@@ -151,8 +151,6 @@ files:
151
151
  - lib/ims/lti/models/tool_setting_container.rb
152
152
  - lib/ims/lti/models/vendor.rb
153
153
  - lib/ims/lti/services.rb
154
- - lib/ims/lti/services/service_definition.rb
155
- - lib/ims/lti/services/service_lookup.rb
156
154
  - lib/ims/lti/services/tool_config.rb
157
155
  - lib/ims/lti/services/tool_proxy_registration_service.rb
158
156
  - lib/ims/lti/version.rb
@@ -181,3 +179,4 @@ signing_key:
181
179
  specification_version: 4
182
180
  summary: Ruby library for creating IMS LTI tool providers and consumers
183
181
  test_files: []
182
+ has_rdoc:
@@ -1,12 +0,0 @@
1
- module IMS::LTI::Services
2
- class ServiceDefinition
3
- attr_reader :name, :formats, :paramater_variables
4
-
5
- def initialize(name, formats, parameter_variables = [])
6
- @name = name
7
- @formats = formats
8
- @parameter_variables = parameter_variables
9
- end
10
-
11
- end
12
- end
@@ -1,32 +0,0 @@
1
- module IMS::LTI::Services
2
- class ServiceLookup
3
-
4
- TOOL_SETTING_SERVICE = ServiceDefinition.new(
5
- 'ToolSettingsContainer Service',
6
- %w(application/vnd.ims.lti.v2.toolsettings+json application/vnd.ims.lti.v2.toolsettings.simple+json),
7
- %w(LtiLink.custom.url ToolProxyBinding.custom.url ToolProxy.custom.url)
8
- )
9
-
10
- TOOL_CONSUMER_PROFILE_SERVICE = ServiceDefinition.new(
11
- 'ToolConsumerProfile Service',
12
- %w(application/vnd.ims.lti.v2.toolconsumerprofile+json),
13
- []
14
- )
15
-
16
- TOOL_PROXY_SERVICE = ServiceDefinition.new(
17
- 'ToolProxy Service',
18
- %w(application/vnd.ims.lti.v2.toolproxy+json),
19
- []
20
- )
21
-
22
- def self.services
23
- [TOOL_SETTING_SERVICE, TOOL_CONSUMER_PROFILE_SERVICE, TOOL_PROXY_SERVICE]
24
- end
25
-
26
- def self.lookup(format)
27
- services.select { |service| service.formats.include? format }
28
- end
29
-
30
-
31
- end
32
- end