Sha256: 7068b72c0422e702dbf242bf2e05d6a69aa12199d31da4281ea59865447d1b37
Contents?: true
Size: 563 Bytes
Versions: 22
Compression:
Stored size: 563 Bytes
Contents
module Softcover module Commands module EpubValidator extend Softcover::Utils extend self # Validates a book according to the EPUB standard. def validate! epub = Dir.glob('ebooks/*.epub').first puts "Validating EPUB..." system("#{java} -jar #{epubcheck} #{epub}") end private def java @java ||= executable(dependency_filename(:java)) end def epubcheck @epubcheck ||= executable(dependency_filename(:epubcheck)).inspect end end end end
Version data entries
22 entries across 22 versions & 1 rubygems