couchbase-git-scribe 0.1.1.1 → 0.1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.asciidoc +5 -0
- data/lib/decorator.rb +2 -0
- data/lib/git-scribe/generate.rb +8 -6
- data/lib/git-scribe/version.rb +1 -1
- data/stylesheets/scribe.css +5 -0
- metadata +2 -2
data/README.asciidoc
CHANGED
@@ -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
|
data/lib/decorator.rb
CHANGED
data/lib/git-scribe/generate.rb
CHANGED
@@ -117,11 +117,12 @@ class GitScribe
|
|
117
117
|
info "GENERATING HTML"
|
118
118
|
|
119
119
|
# TODO: look for custom stylesheets
|
120
|
-
|
121
|
-
cmd = "asciidoc -a
|
122
|
-
|
123
|
-
|
124
|
-
|
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.
|
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
|
data/lib/git-scribe/version.rb
CHANGED
data/stylesheets/scribe.css
CHANGED
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.
|
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-
|
12
|
+
date: 2012-12-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|