ims-lti 2.0.0.beta.21 → 2.0.0.beta.22

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: f9efa243962781962b68c7d0fff8fd999ced4968
4
- data.tar.gz: 5c219ef0195c7dcb97540f97500bf176a2307445
3
+ metadata.gz: d01c6f946c6a8fddbfce47ddca255fbd02a42ec1
4
+ data.tar.gz: 0ae195df624899f756c17b02c81d35347f83df0e
5
5
  SHA512:
6
- metadata.gz: c8137fa5cd4f7170773094e8b533c79701a97ef58555a84f9b033c5998c7a3d735c5bd99e31b3d052420641888b322af9ff6a245f85901f08a5a07319187407f
7
- data.tar.gz: a01f74beb1a0b3db1c588b9f2bf321354d40860289ea06cc59c7b7f2236dac98f1b20f97dc4a0735f962d7f4f86e4fc6bee192142700d477e5d14ea656778383
6
+ metadata.gz: bbcd37bd3faabb625aac0ba99861994b1c1ba4a8e75531aceff1cb2e5738a06c2b69940e918ce2ab234f3c47d486a6a9c1a45bfb6f10a2d2e5cf92386989acd4
7
+ data.tar.gz: e3b4adb42bb47de650b5d93d3ccba91db8c217a49a54df44c9b9b323acc94d42cb1566bb302fe606c7d6ad085071f52caa54bc122cdcbe6d93b631517b828c5f
@@ -2,6 +2,13 @@ module IMS::LTI::Models::Messages
2
2
  class ContentItemSelection < Message
3
3
  add_optional_params :content_items, :data, :lti_msg, :lti_log, :lti_errormsg, :lti_errorlog
4
4
 
5
+ MESSAGE_TYPE = 'ContentItemSelection'
6
+
7
+ def initialize(attrs = {})
8
+ super(attrs)
9
+ self.lti_message_type = MESSAGE_TYPE
10
+ end
11
+
5
12
  def content_items=(ci)
6
13
  if ci.instance_of? String
7
14
  container = IMS::LTI::Models::ContentItemContainer.from_json ci
@@ -80,6 +80,8 @@ module IMS::LTI::Models::Messages
80
80
  RegistrationRequest.new(params)
81
81
  when ContentItemSelectionRequest::MESSAGE_TYPE
82
82
  ContentItemSelectionRequest.new(params)
83
+ when ContentItemSelection::MESSAGE_TYPE
84
+ ContentItemSelection.new(params)
83
85
  else
84
86
  self.new(params)
85
87
  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.0.0.beta.21
4
+ version: 2.0.0.beta.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-24 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_oauth