ims-lti 2.0.0.beta.32 → 2.0.0.beta.33
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 +4 -4
- data/lib/ims/lti/services/tool_proxy_validator.rb +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4f7ca9f95d162869f61b7be229823b6527794b2
|
4
|
+
data.tar.gz: 2c5c99b0aae8dcff4d0b7f53b458c82d216827b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5de3464ec8244a7219970c5997f0e947a075c4b946f336ac621e56e8fdfc85b2437f4236c731c3bf1fe84f82069973fc3e289a4970a8f838adfc01007b5809f6
|
7
|
+
data.tar.gz: 80ae95913258f6169702a55fb5c9b5778523d4ca67d2c80034bf3c8379a35e5d8d290cf8c7b7cb3bb4721c00f189c3585000ec87acc5fbf618d3480678ccb234
|
@@ -85,14 +85,22 @@ module IMS::LTI::Services
|
|
85
85
|
ret_val
|
86
86
|
end
|
87
87
|
|
88
|
+
def errors
|
89
|
+
ret_val = {}
|
90
|
+
ret_val[:invalid_security_contract] = invalid_security_contract unless invalid_security_contract.empty?
|
91
|
+
ret_val[:invalid_capabilities] = invalid_capabilities unless invalid_capabilities.empty?
|
92
|
+
ret_val[:invalid_message_handlers] = invalid_message_handlers unless invalid_message_handlers.empty?
|
93
|
+
ret_val[:invalid_services] = invalid_services unless invalid_services.empty?
|
94
|
+
|
95
|
+
ret_val
|
96
|
+
end
|
97
|
+
|
88
98
|
def valid?
|
89
99
|
invalid_capabilities.empty? && invalid_security_contract.empty? && invalid_services.empty? && invalid_message_handlers.empty?
|
90
100
|
end
|
91
101
|
|
92
|
-
|
93
102
|
private
|
94
103
|
|
95
|
-
|
96
104
|
def normalize_strings(string, *strings)
|
97
105
|
strings.push(string)
|
98
106
|
normalized = strings.map { |s| s.upcase.strip }
|