mil-ims-lti 1.1.8 → 1.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -159,7 +159,7 @@ module IMS::LTI
159
159
  include IMS::LTI::Extensions::ExtensionBase
160
160
  include Base
161
161
 
162
- attr_accessor :outcome_text, :outcome_url, :outcome_needs_grading, :outcome_cdata_text
162
+ attr_accessor :outcome_text, :outcome_url, :outcome_needs_grading, :outcome_cdata_text, :date, :status_of_result
163
163
 
164
164
  def result_values(node)
165
165
  super
@@ -165,6 +165,16 @@ module IMS::LTI
165
165
 
166
166
  node.result do |res|
167
167
  result_values(res)
168
+ handle_bh_extensions(res)
169
+ end
170
+ end
171
+
172
+ def handle_bh_extensions(node)
173
+ if @date
174
+ node.tag!('date', @date.to_s)
175
+ end
176
+ if @status_of_result
177
+ node.tag!('statusOfResult', @status_of_result.to_s)
168
178
  end
169
179
  end
170
180
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mil-ims-lti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -126,9 +126,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
126
  - - ! '>='
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
- segments:
130
- - 0
131
- hash: -2842637925876356912
132
129
  required_rubygems_version: !ruby/object:Gem::Requirement
133
130
  none: false
134
131
  requirements: