mil-ims-lti 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/ims/lti/outcome_response.rb +3 -1
  2. metadata +1 -1
@@ -106,7 +106,9 @@ module IMS::LTI
106
106
  # Parse Outcome Response data from XML
107
107
  def process_xml(xml)
108
108
  doc = REXML::Document.new xml
109
- @message_identifier = doc.text('//imsx_statusInfo/imsx_messageIdentifier').to_s
109
+ @message_identifier = doc.text('//imsx_statusInfo/imsx_messageIdentifier')
110
+ @message_identifier = doc.text('//imsx_messageIdentifier') if @message_identifier.nil?
111
+ @message_identifier = @message_identifier.nil? ? '0' : @message_identifier.to_s
110
112
  @code_major = doc.text('//imsx_statusInfo/imsx_codeMajor')
111
113
  @code_major.downcase! if @code_major
112
114
  @severity = doc.text('//imsx_statusInfo/imsx_severity')
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.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: