ims-lti 2.0.0.beta.27 → 2.0.0.beta.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28f95792a5114c70ded6b2de1ba194a9441e3b57
|
|
4
|
+
data.tar.gz: 9142eb85489ee801ce9f5a2daffcdeb87c1351f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 308f9481a96751413cd6799b29c0a724d06e3c3272582111703279fcf632aa0fb84584e03722cc8307e5eab087677ac5eaaed2af4660727134c653418fea3e14
|
|
7
|
+
data.tar.gz: 0eaafd723767d089620816a1b444563246c2a47387a95facf774292bcae6c7b35da5465b9f0482fb2bfdeabf9d3c1bb551dee6df5640fb4952cab6b765004696
|
data/lib/ims/lti/errors.rb
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
module IMS::LTI::Errors
|
|
2
|
+
class ToolProxyRegistrationError < StandardError
|
|
3
|
+
attr_reader :response_status, :response_body
|
|
4
|
+
|
|
5
|
+
def initialize(response_status, response_body = nil)
|
|
6
|
+
@response_status = response_status
|
|
7
|
+
@response_body = response_body
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -36,6 +36,8 @@ module IMS::LTI::Services
|
|
|
36
36
|
|
|
37
37
|
if response.status == 201
|
|
38
38
|
IMS::LTI::Models::ToolProxy.new.from_json(tool_proxy.to_json).from_json(response.body)
|
|
39
|
+
else
|
|
40
|
+
raise IMS::LTI::Errors::ToolProxyRegistrationError.new(response.status, response.body)
|
|
39
41
|
end
|
|
40
42
|
end
|
|
41
43
|
|
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.28
|
|
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-08-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: simple_oauth
|
|
@@ -109,6 +109,7 @@ files:
|
|
|
109
109
|
- lib/ims/lti/converters/time_json_converter.rb
|
|
110
110
|
- lib/ims/lti/errors.rb
|
|
111
111
|
- lib/ims/lti/errors/invalid_lti_config_error.rb
|
|
112
|
+
- lib/ims/lti/errors/tool_proxy_registration_error.rb
|
|
112
113
|
- lib/ims/lti/models.rb
|
|
113
114
|
- lib/ims/lti/models/base_url_choice.rb
|
|
114
115
|
- lib/ims/lti/models/base_url_selector.rb
|
|
@@ -174,9 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
174
175
|
version: 1.3.1
|
|
175
176
|
requirements: []
|
|
176
177
|
rubyforge_project:
|
|
177
|
-
rubygems_version: 2.
|
|
178
|
+
rubygems_version: 2.4.5
|
|
178
179
|
signing_key:
|
|
179
180
|
specification_version: 4
|
|
180
181
|
summary: Ruby library for creating IMS LTI tool providers and consumers
|
|
181
182
|
test_files: []
|
|
182
|
-
has_rdoc:
|