ims-lti 2.0.0.beta.17 → 2.0.0.beta.18

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: 66164d65cd44e9e1d0f0f40fb4798fecc159a1a5
4
- data.tar.gz: 9491a035e895508aed29644e47a5e5fbd1a2dc52
3
+ metadata.gz: 469b57f391256431763f04ca1187ae5a7769367a
4
+ data.tar.gz: 0be379c6ea503a5503b9319aaaec4a0cc3c89f38
5
5
  SHA512:
6
- metadata.gz: caee5e8d03dddeb2e8c94f3b03da359e3bf1c89ce56766b05c7d15323d9752b5fd19998fca7b3fbd5ccf8cab6d88496ba6afbb5800289bdbf3aa1537f413c553
7
- data.tar.gz: 0b9c705ca132a9acc61df242b749d92b274c72189bbcaa178d39f11b80e3968b7e1905d565c0550c0b7268461901a216030fb8484a16e063b939c0e5dd631594
6
+ metadata.gz: e16ab1448cc60ae4a895d0d21eb5f9d9a09ac65efcf211c50a84adb01fbbb43105b261e15da74fe9e9fe69b7e1a7d84f18306c5f4fe8073b527c897059e151da
7
+ data.tar.gz: f5b3797ab367c341275611dfc31434673cc73c94916036d02471fe570e499f5e5cfdc343b7252da33777c72b6e4ede92d452a1977bfefd2de25aaa6a856c280b
@@ -14,6 +14,13 @@ module IMS::LTI::Models
14
14
  @description = LocalizedText.new(name, key)
15
15
  end
16
16
 
17
+ def default_description
18
+ description && description.default_value
19
+ end
20
+
21
+ def default_name
22
+ product_name && product_name.default_value
23
+ end
17
24
 
18
25
  end
19
26
  end
@@ -30,7 +30,7 @@ module IMS::LTI::Services
30
30
 
31
31
  response = conn.post do |req|
32
32
  req.url service.endpoint
33
- req.headers['Content-Type'] = 'application/json'
33
+ req.headers['Content-Type'] = 'application/vnd.ims.lti.v2.toolproxy+json'
34
34
  req.body = tool_proxy_json
35
35
  end
36
36
 
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.17
4
+ version: 2.0.0.beta.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-20 00:00:00.000000000 Z
11
+ date: 2014-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_oauth