3. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 8/4/2017 2:44:58 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

3.1 Files compared

# Location File Last Modified
1 CUI-Release-v2.2.0-source.zip\CUI-Release-v2.2.0-source\app\helpers xml_helper.rb Thu Jun 15 19:04:28 2017 UTC
2 CUI-Release-v2.2.0-source.zip\CUI-Release-v2.2.0-source\app\helpers xml_helper.rb Fri Aug 4 14:48:04 2017 UTC

3.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 116
Changed 2 4
Inserted 0 0
Removed 0 0

3.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

3.4 Active regular expressions

No regular expressions were active.

3.5 Comparison detail

  1   module Xml Helper
  2     def self .getDoc(do cument, ta gName)
  3       if (do cument !=  nil)
  4           doc = docu ment.at('/ /em:'+tagN ame, 'em'  => 'http:/ / DNS     /vler/sche mas/vlerSu persetSche ma/examMan agement/1. 0')
  5         if ( doc == nil )
  6           #  It might b e a noname space pref ix scenari o
  7           do c = docume nt.at(tagN ame)
  8         end
  9         retu rn doc
  10       end
  11       return  nil
  12     end
  13  
  14     def self .getAll(do cument, ta gName)
  15         entries =  document.x path('//em :'+tagName , 'em' =>  'http:// DNS     /vler/sche mas/vlerSu persetSche ma/examMan agement/1. 0')
  16       return  entries
  17     end
  18  
  19     def self .createTag (document,  tagName)
  20       tag =  Nokogiri:: XML::Node. new("em:"+ tagName, d ocument)
  21       tag
  22     end
  23  
  24     def self .getConten tType(noti ficationDo c)
  25       conten tType = ""
  26       if (no tification Doc != nil  && 
  27           no tification Doc.at('fe ed/entry/c ontent') ! = nil && 
  28           no tification Doc.at('fe ed/entry/c ontent').f irst_eleme nt_child ! = nil)
  29         cont entTypeDoc  = notific ationDoc.a t('feed/en try/conten t').first_ element_ch ild
  30  
  31         thir dChild = c ontentType Doc.childr en[2]
  32  
  33         if ( thirdChild  != nil)
  34           ta gName = th irdChild.n ame
  35           if  (["ExamSc hedulingRe questCreat edEvent"," Contention Cancellati onRequeste dEvent","A ppointment CancelRequ estEvent",  "ExamSche dulingRequ estCancell ationEvent ", "Resche duleReques tEvent", " Clarificat ionRespons eEvent", " ReworkedEx amScheduli ngRequestC reatedEven t"].includ e? tagName )
  36              contentTyp e = tagNam e
  37           en d
  38         end
  39  
  40         if ( contentTyp e == nil o r contentT ype == "")
  41           si xthChild =  contentTy peDoc.chil dren[5]
  42           if  (sixthChi ld != nil)
  43              tagName =  sixthChild .name
  44              if (["Exam Scheduling RequestCre atedEvent" ,"Contenti onCancella tionReques tedEvent", "Appointme ntCancelRe questEvent ", "ExamSc hedulingRe questCance llationEve nt", "Resc heduleRequ estEvent",  "Clarific ationRespo nseEvent",  "Reworked ExamSchedu lingReques tCreatedEv ent"].incl ude? tagNa me)
  45                contentT ype = tagN ame
  46              end
  47           en d
  48         end
  49  
  50         if ( contentTyp e == nil o r contentT ype == "")
  51           ra ise Except ion, "Inva lid Notifi cation Typ e"
  52         end
  53       end
  54       return  contentTy pe
  55     end
  56  
  57     def self .convertTo Document(x ml)
  58       return  Nokogiri: :XML(xml)
  59     end
  60   end