git-scribe 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/git-scribe.gemspec CHANGED
@@ -9,7 +9,7 @@ puts files
9
9
  # piece file back together and write...
10
10
  Gem::Specification.new do |s|
11
11
  s.name = "git-scribe"
12
- s.version = "0.0.5"
12
+ s.version = "0.0.6"
13
13
  s.date = Time.now.strftime('%Y-%m-%d')
14
14
  s.summary = "git-scribe is an authors toolkit for writing and publishing books"
15
15
  s.homepage = "http://github.com/schacon/git-scribe"
@@ -19,6 +19,9 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.files = files
21
21
 
22
+ s.add_dependency('nokogiri')
23
+ s.add_dependency('liquid')
24
+
22
25
  s.executables = %w( git-scribe )
23
26
 
24
27
  s.description = <<desc
@@ -4,15 +4,6 @@ class GitScribe
4
4
  def check(args = [])
5
5
  status = {}
6
6
 
7
- # check for git
8
- if !check_can_run('git --version')
9
- info "git is not present, please install it for anything to work"
10
- status[:git] = true
11
- else
12
- info "git - ok"
13
- status[:git] = false
14
- end
15
-
16
7
  # check for asciidoc
17
8
  if !check_can_run('asciidoc')
18
9
  info "asciidoc is not present, please install it for anything to work"
@@ -40,6 +31,16 @@ class GitScribe
40
31
  status[:a2x] = false
41
32
  end
42
33
 
34
+ # check for source-highlight
35
+ if !check_can_run('source-highlight --version')
36
+ info "source-highlight is not present, please install it for source code highlighting"
37
+ status[:highlight] = false
38
+ else
39
+ info "highlighting - ok"
40
+ status[:highlight] = true
41
+ end
42
+
43
+
43
44
  # check for fop
44
45
  if !check_can_run('fop -version')
45
46
  info "fop is not present, please install for PDF generation"
@@ -71,6 +71,10 @@ class GitScribe
71
71
  end
72
72
  end
73
73
 
74
+ def do_mobi
75
+ info "GENERATING MOBI"
76
+ end
77
+
74
78
  def do_html
75
79
  info "GENERATING HTML"
76
80
  # TODO: look for custom stylesheets
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-scribe
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Chacon
@@ -15,10 +15,37 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-21 00:00:00 -08:00
18
+ date: 2011-02-22 00:00:00 -08:00
19
19
  default_executable:
20
- dependencies: []
21
-
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: nokogiri
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: liquid
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :runtime
48
+ version_requirements: *id002
22
49
  description: " git-scribe is a workflow tool for starting, writing, reviewing and publishing\n multiple forms of a book. it allows you to use asciidoc plain text markup to\n write, review and translate a work and provides a simple toolkit for generating\n common digital outputs for publishing - epub, mobi, pdf and html. it is also\n integrated into github functionality, letting you automate the publishing and\n collaboration process.\n"
23
50
  email: schacon@gmail.com
24
51
  executables: