Sha256: ea9f3f59c20b25593a9b3fc2d6ad733cac336be39ce792f11120797c2de9b6b3

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 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'

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

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

puts "Checking...."
ev = EpubValidator.check_file(command)
puts ev.message

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
epub_validator-0.1.0 bin/epub_validator