examples/ucfinfo in ucf-0.5.0 vs examples/ucfinfo in ucf-0.6.0

- old
+ new

@@ -33,20 +33,20 @@ require 'rubygems' require 'ucf' def usage - puts "ucfinfo ucf-file" + puts "Usage:\n ucfinfo <ucf-file>" exit 1 end usage unless ARGV.length == 1 ucffile = ARGV[0] begin ucf = UCF::Container.open(ucffile) -rescue UCF::MalformedUCFError, Zip::ZipError => err +rescue ZipContainer::MalformedContainerError, Zip::ZipError => err puts err.to_s exit 1 end puts "Archive: #{ucf.to_s}"