Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

check for source-highlight and bump the version

  • Loading branch information...
commit a6f18229d4f5bb98339192d16a0431c3e32e7c8e 1 parent 81041d0
@schacon schacon authored
View
5 git-scribe.gemspec
@@ -9,7 +9,7 @@ puts files
# piece file back together and write...
Gem::Specification.new do |s|
s.name = "git-scribe"
- s.version = "0.0.4"
+ s.version = "0.0.7"
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = "git-scribe is an authors toolkit for writing and publishing books"
s.homepage = "http://github.com/schacon/git-scribe"
@@ -19,6 +19,9 @@ Gem::Specification.new do |s|
s.files = files
+ s.add_dependency('nokogiri')
+ s.add_dependency('liquid')
+
s.executables = %w( git-scribe )
s.description = <<desc
View
19 lib/git-scribe/check.rb
@@ -4,15 +4,6 @@ module Check
def check(args = [])
status = {}
- # check for git
- if !check_can_run('git --version')
- info "git is not present, please install it for anything to work"
- status[:git] = true
- else
- info "git - ok"
- status[:git] = false
- end
-
# check for asciidoc
if !check_can_run('asciidoc')
info "asciidoc is not present, please install it for anything to work"
@@ -40,6 +31,16 @@ def check(args = [])
status[:a2x] = false
end
+ # check for source-highlight
+ if !check_can_run('source-highlight --version')
+ info "source-highlight is not present, please install it for source code highlighting"
+ status[:highlight] = false
+ else
+ info "highlighting - ok"
+ status[:highlight] = true
+ end
+
+
# check for fop
if !check_can_run('fop -version')
info "fop is not present, please install for PDF generation"
View
4 lib/git-scribe/generate.rb
@@ -71,6 +71,10 @@ def do_epub
end
end
+ def do_mobi
+ info "GENERATING MOBI"
+ end
+
def do_html
info "GENERATING HTML"
# TODO: look for custom stylesheets
Please sign in to comment.
Something went wrong with that request. Please try again.