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 +4 -4
- data/lib/ims/lti/models/content_items.rb +2 -2
- data/lib/ims/lti/models/content_items/content_item.rb +3 -3
- data/lib/ims/lti/models/content_items/{lti_link.rb → lti_link_item.rb} +3 -3
- data/lib/ims/lti/models/security_contract.rb +1 -1
- data/lib/ims/lti/models/tool_consumer_profile.rb +4 -0
- data/lib/ims/lti/models/tool_proxy.rb +5 -1
- data/lib/ims/lti/models/tool_setting.rb +1 -1
- data/lib/ims/lti/version.rb +1 -1
- metadata +4 -5
- data/lib/ims/lti/services/service_definition.rb +0 -12
- data/lib/ims/lti/services/service_lookup.rb +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48d4103936f4360628a9ba91c6480ebf7624eed1
|
4
|
+
data.tar.gz: 1146edc3271fb715a198044e7c1a4bc06012c144
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b59bd554719e010584c38f13947a16900e92e4b5a6a6e3cedfe2fa7d82e9c29685e4986247fbf2c5123ec63acb1e8fd8faa25b07a97dfb05daaa574a24cb293f
|
7
|
+
data.tar.gz: 7f5b36d427da594170e8692ba77637de595c287f3ce93cf3b42dcd3b3310f67b83d32615ce0815cafc0a98a33493c6c8a61aa0060b558c17b47c9adaed603d72
|
@@ -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 '
|
27
|
-
|
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
|
2
|
+
class LtiLinkItem < ContentItem
|
3
3
|
|
4
4
|
add_attributes :custom
|
5
5
|
|
6
|
-
TYPE = "
|
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
|
-
|
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
|
|
@@ -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
|
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.0.0.beta.
|
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-
|
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/
|
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
|