Sha256: 5015b16f0bdb2bd4b69284489279df9a1e7d9013a08d6508c8812b2f81e213a7

Contents?: true

Size: 530 Bytes

Versions: 1

Compression:

Stored size: 530 Bytes

Contents

#!/usr/bin/env ruby

lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
$LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)

require 'epub_validator'
#require 'epub_validator/command'

# From heroku!
args = ARGV.dup
ARGV.clear
command = args.shift.strip rescue 'help'

# need to implement Command class
#EpubValidator::Command.run(command, args)

print "\nChecking...."
ev = EpubValidator.check(command)
if (ev[:valid] == 1)
  print "Passed.\n"
else
  print "FAILED!\n\n"
  puts ev[:message]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
epub_validator-0.2.0 bin/epub_validator