lib/softcover/commands/check.rb in softcover-0.9.9 vs lib/softcover/commands/check.rb in softcover-0.9.10

- old
+ new

@@ -32,17 +32,19 @@ end end def dependencies [[:latex, 'LaTeX'], + [:ghostscript, 'GhostScript'], [:convert, 'ImageMagick'], [:node, 'Node.js'], [:phantomjs, 'PhantomJS'], [:inkscape, 'Inkscape'], [:calibre, 'Calibre'], [:kindlegen, 'KindleGen'], [:java, 'Java'], + [:zip, 'zip'], [:epubcheck, 'EpubCheck'], ] end def dependency_labels @@ -56,31 +58,37 @@ def missing_dependency_message(label) case label when :latex message = "LaTeX (http://latex-project.org/ftp.html)\n" message += " ∟ Huge download—start it now!" + when :ghostscript + message = "GhostScript (should come with LaTeX)\n" when :convert "ImageMagick (http://www.imagemagick.org/script/binary-releases.php)" when :node "NodeJS (http://nodejs.org/)" when :phantomjs "PhantomJS (http://phantomjs.org/)" when :kindlegen url = 'http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211' - "KindleGen (#{url})" + message = "KindleGen (#{url})\n" + message += " ∟ Put the kindlegen executable on your path, " + message += "e.g., in /usr/local/bin" when :calibre url = 'http://calibre-ebook.com/' message = "Calibre (#{url})\n" message += " ∟ Enable Calibre command-line tools" message += " (http://manual.calibre-ebook.com/cli/cli-index.html)" when :java url = 'http://www.java.com/en/download/help/index_installing.xml' "Java (#{url})" + when :zip + "Install zip (e.g., apt-get install zip)" when :epubcheck url = 'https://github.com/IDPF/epubcheck/releases/' url += 'download/v3.0/epubcheck-3.0.zip' message = "EpubCheck 3.0 (#{url})\n" - message += " ∟ Unzip EpubCheck into your home directory" + message += " ∟ Unzip and put epubcheck-3.0/ in $HOME/bin" when :inkscape message = "Inkscape (http://inkscape.org/)" else raise "Unknown label #{label}" end