Sha256: bb5c8b4a8c5cb7349dfde1bd555120d7748cc748b4ec159e744c3e1adc0d3fd5

Contents?: true

Size: 438 Bytes

Versions: 22

Compression:

Stored size: 438 Bytes

Contents

#!/usr/bin/env ruby
require "dynport_tools/differ"
require "dynport_tools/xml_file"

file_a, file_b = ARGV[0,2]

if file_a && File.exists?(file_a) && file_b && File.exists?(file_b)
  a = DynportTools::XmlFile.new(file_a)
  b = DynportTools::XmlFile.new(file_b)
  differ = DynportTools::Differ.new
  diff = differ.diff(a.nodes_hash, b.nodes_hash)
  puts differ.diff_to_message_lines(diff)
else
  puts "USAGE: xml_diff <file> <file>"
end
  

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
dynport_tools-0.2.22 bin/xmldiff
dynport_tools-0.2.21 bin/xmldiff
dynport_tools-0.2.20 bin/xmldiff
dynport_tools-0.2.19 bin/xmldiff
dynport_tools-0.2.18 bin/xmldiff
dynport_tools-0.2.17 bin/xmldiff
dynport_tools-0.2.16 bin/xmldiff
dynport_tools-0.2.15 bin/xmldiff
dynport_tools-0.2.14 bin/xmldiff
dynport_tools-0.2.13 bin/xmldiff
dynport_tools-0.2.12 bin/xmldiff
dynport_tools-0.2.11 bin/xmldiff
dynport_tools-0.2.10 bin/xmldiff
dynport_tools-0.2.9 bin/xmldiff
dynport_tools-0.2.8 bin/xmldiff
dynport_tools-0.2.6 bin/xmldiff
dynport_tools-0.2.5 bin/xmldiff
dynport_tools-0.2.4 bin/xmldiff
dynport_tools-0.2.3 bin/xmldiff
dynport_tools-0.2.2 bin/xmldiff