mil-ims-lti 1.2.1 → 1.2.2
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.
- data/lib/ims/lti/outcome_response.rb +4 -0
- metadata +1 -1
|
@@ -105,6 +105,10 @@ module IMS::LTI
|
|
|
105
105
|
|
|
106
106
|
# Parse Outcome Response data from XML
|
|
107
107
|
def process_xml(xml)
|
|
108
|
+
if xml.include?('#<UUID:0x') # Blackboard bug!
|
|
109
|
+
m_id = xml.match('#<UUID:(\w+)>')[1].hex.to_i
|
|
110
|
+
xml = xml.sub(/#<UUID:\w+>/, m_id.to_s)
|
|
111
|
+
end
|
|
108
112
|
doc = REXML::Document.new xml
|
|
109
113
|
@message_identifier = doc.text('//imsx_statusInfo/imsx_messageIdentifier')
|
|
110
114
|
@message_identifier = doc.text('//imsx_messageIdentifier') if @message_identifier.nil?
|