Sha256: eb6d7baee04b4b7f17d394f06d31b5bb7e39a665a6def61f27f20239637f8a3f
Contents?: true
Size: 510 Bytes
Versions: 1
Compression:
Stored size: 510 Bytes
Contents
module EpubValidator class FormatMessage def process_message(message) status = Hash.new status[:valid] = 1 return status if message.match('No errors or warnings detected') m_array = message.split(/\n/) # clean up all useless info m_array.delete_if do |s| s.empty? or s.match('^Epubcheck Version.*') or s.match('^Check finished.*') end status[:valid] = 0 status[:message] = m_array return status end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
epub_validator-0.2.0 | lib/epub_validator/format_message.rb |