couchbase-git-scribe 0.1.1.1 → 0.1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,11 @@
1
1
  This Fork
2
2
  ---------
3
3
 
4
+ This is fork of fork https://github.com/eee-c/git-scribe. The goal
5
+ is to amend .gemspec file and release changes to rubygems.org as
6
+ prefixed package. I've chosen 'couchbase-' prefix just to avoid
7
+ any intersection. Read original "This Fork" message below:
8
+
4
9
  This fork is used to maintain my ebooks: http://spdybook.com,
5
10
  http://recipeswithbackbone.com, and http://dartforhipsters.com. It
6
11
  adds some features (page resizing, formatting tweaks, Kindle Fire
@@ -1,3 +1,5 @@
1
+ require 'open3'
2
+
1
3
  class Decorator
2
4
  def initialize
3
5
  @dir = Dir.pwd
@@ -117,11 +117,12 @@ class GitScribe
117
117
  info "GENERATING HTML"
118
118
 
119
119
  # TODO: look for custom stylesheets
120
- styledir = local('stylesheets')
121
- cmd = "asciidoc -a stylesdir=#{styledir} -a theme=scribe #{BOOK_FILE}"
122
- return false unless ex(cmd)
123
-
124
- @done['html'] = true
120
+ stylesheet = local('stylesheets') + '/scribe.css'
121
+ cmd = "asciidoc -a stylesheet=#{stylesheet} #{BOOK_FILE}"
122
+ if ex(cmd)
123
+ @done['html'] == true
124
+ 'book.html'
125
+ end
125
126
  end
126
127
 
127
128
  def do_site
@@ -152,7 +153,7 @@ class GitScribe
152
153
 
153
154
  def clean_up
154
155
  FileUtils.rm Dir.glob('**/*.asc')
155
- FileUtils.rm_r @remove_when_done
156
+ FileUtils.rm_rf @remove_when_done
156
157
  end
157
158
 
158
159
  def ex(command)
@@ -320,6 +321,7 @@ _EOM
320
321
  'book.epub.d' <<
321
322
  'book_for_mobi.epub'
322
323
 
324
+ FileUtils.mkdir_p('book.epub.d')
323
325
  Dir.chdir('book.epub.d') do
324
326
  ex("zip ../book_for_mobi.epub . -r")
325
327
  end
@@ -1,3 +1,3 @@
1
1
  class GitScribe
2
- VERSION = '0.1.1.1'
2
+ VERSION = '0.1.1.2'
3
3
  end
@@ -180,3 +180,8 @@ h5 {
180
180
  color:#000;
181
181
  text-transform:uppercase
182
182
  }
183
+
184
+ pre {
185
+ white-space: pre-wrap;
186
+ overflow: hidden;
187
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchbase-git-scribe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.1
4
+ version: 0.1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-06 00:00:00.000000000 Z
12
+ date: 2012-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri