Sha256: 345854920c51ee355b7c368109144bbbd44a71bf71270934aeb7e519d16015a6

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH << File.expand_path(File.dirname(__FILE__) + '/../lib')

require 'epub_validator'

args = ARGV.dup
ARGV.clear
command = args.shift.strip rescue 'help'

puts "\nChecking...."
validation = EpubValidator.check(command)

puts
puts "Detected as EPUB version #{validation.epub_version}"
puts

if validation.valid?
  puts "...Passed.\n"
  puts
  puts validation.messages
else
  puts "FAILED!\n\n"
  puts
  puts validation.messages
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
epub_validator-1.0.0 bin/epub_validator