Project

rexle-diff

0.0
No commit activity in last 3 years
No release in over 3 years
Compares XML and returns the latest XML with changes identified by datetime stamps in the attributes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.1.0, ~> 2.1
>= 1.4.2, ~> 1.4
 Project Readme

Introducing Rexle-diff Version 0.5.0

require 'rexle-diff'


xml = '
<ul>
  <li>apple</li>
  <li>orange</li>
  <li>grapes
    <color>red</color>
  </li>
</ul>
'

xml2 = '
<ul>
  <li>apple</li>
  <li>orange and lime</li>
  <li>grapes
    <color>green</color>
  </li>
  <li>bananas</li>
</ul>
'

puts RexleDiff.new(xml, xml2).to_doc.xml pretty: true

Output:


  • apple
  • orange and lime
  • grapes green
  • bananas

rexlediff gem modified