ims-lti 2.1.3 → 2.1.4
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/models/lti_model.rb +3 -1
- data/lib/ims/lti/services/message_authenticator.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 218171f84431a730258177fed7ad8adf7fb883e1
|
|
4
|
+
data.tar.gz: 208cf3d95e49c603be1d075ef9d3f8da43cd1aeb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c040e2cb22315fd3fa1766385c3d647af72126c484e529fb4e9a6bfa1d21358a5729b3577e0a8271a531f99794c88ca5e3b98795df62a9c05fecc53c987c89ee
|
|
7
|
+
data.tar.gz: 46e717d16ddfabc064ea6b2cf26c990d41a176e99a207f899950ae99260bcd037175b481deab8e4130a48286e713e893202a6ec6eebe67a55f4a96c1c58b08e6
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
module IMS::LTI::Models
|
|
2
|
+
require 'uri'
|
|
3
|
+
|
|
2
4
|
class LTIModel
|
|
3
5
|
LTI_VERSION_2P0 = 'LTI-2p0'.freeze
|
|
4
6
|
LTI_VERSION_2P1 = 'LTI-2p1'.freeze
|
|
@@ -91,7 +93,7 @@ module IMS::LTI::Models
|
|
|
91
93
|
|
|
92
94
|
def from_json(json)
|
|
93
95
|
# JSON.parse(json.to_json) is a quick and dirty way to clone the json object passed in
|
|
94
|
-
data = json.is_a?(String) ? JSON.parse(json) : JSON.parse(json.to_json)
|
|
96
|
+
data = json.is_a?(String) ? JSON.parse(URI.unescape(json)) : JSON.parse(URI.unescape(json.to_json))
|
|
95
97
|
if data.is_a? Array
|
|
96
98
|
data.map { |hash| self.class.from_json(hash.to_json) }
|
|
97
99
|
else
|
|
@@ -33,8 +33,7 @@ module IMS::LTI::Services
|
|
|
33
33
|
@options.merge(
|
|
34
34
|
{
|
|
35
35
|
consumer_key: consumer_key,
|
|
36
|
-
consumer_secret: @secret
|
|
37
|
-
callback: 'about:blank'
|
|
36
|
+
consumer_secret: @secret
|
|
38
37
|
}
|
|
39
38
|
)
|
|
40
39
|
)
|
|
@@ -78,4 +77,4 @@ module IMS::LTI::Services
|
|
|
78
77
|
end
|
|
79
78
|
|
|
80
79
|
end
|
|
81
|
-
end
|
|
80
|
+
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.
|
|
4
|
+
version: 2.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Instructure
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-07-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|