Sha256: 78d8d3298b2d0e571bd3e3e6bbb07d82c17dd5dd54fb48ae60f1dc36682e71c9

Contents?: true

Size: 852 Bytes

Versions: 6

Compression:

Stored size: 852 Bytes

Contents

# Author::    Nicolas Desprès  <nicolas.despres@gmail.com>.
# Copyright:: Copyright (c) 2004, 2005 Uttk team. All rights reserved.
# License::   LGPL
# $Id: Diff.rb 720 2005-09-26 04:34:48Z ertai $


module Uttk

  module Streams

    class HexaDiff < Diff

      #FIXME: manage only !path :-(
      def to_uttk_log ( log )
        if @name == "output"
          if @ref.can_diff?
            TempPath.new('hexa-diff-output') do |hexa_my|
              system "hexdump -C #@my > #{hexa_my}"
              TempPath.new('hexa-diff-output') do |hexa_ref|
                system "hexdump -C #@ref > #{hexa_ref}"
                log["hexa_diff_#@name"] = hexa_ref.to_diff_for_uttk_log(hexa_my)
              end
            end
          end
        else
          super
        end
      end

    end # HexaDiff

  end # module Streams

end # module Uttk

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
uttk-0.3.1.2 lib/uttk/streams/HexaDiff.rb
uttk-0.3.5.0 lib/uttk/streams/HexaDiff.rb
uttk-0.3.6.1 lib/uttk/streams/HexaDiff.rb
uttk-0.4.5.0 lib/uttk/streams/HexaDiff.rb
uttk-0.4.6.1 lib/uttk/streams/HexaDiff.rb
uttk-0.4.6.2 lib/uttk/streams/HexaDiff.rb