persie 0.0.1.alpha
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.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.rspec +3 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/README.md +52 -0
- data/Rakefile +85 -0
- data/bin/persie +12 -0
- data/lib/persie/asciidoctor_ext/htmlbook.rb +1120 -0
- data/lib/persie/asciidoctor_ext/sample.rb +54 -0
- data/lib/persie/asciidoctor_ext/spine_item_processor.rb +43 -0
- data/lib/persie/book.rb +60 -0
- data/lib/persie/builder.rb +110 -0
- data/lib/persie/builders/epub.rb +434 -0
- data/lib/persie/builders/mobi.rb +80 -0
- data/lib/persie/builders/pdf.rb +113 -0
- data/lib/persie/builders/site.rb +110 -0
- data/lib/persie/cli.rb +106 -0
- data/lib/persie/dependency.rb +26 -0
- data/lib/persie/generator.rb +68 -0
- data/lib/persie/server.rb +27 -0
- data/lib/persie/ui.rb +27 -0
- data/lib/persie/version.rb +3 -0
- data/lib/persie.rb +32 -0
- data/persie.gemspec +41 -0
- data/spec/build_pdf_command_spec.rb +25 -0
- data/spec/fixtures/a-book/.gitignore +2 -0
- data/spec/fixtures/a-book/Gemfile +3 -0
- data/spec/fixtures/a-book/book.adoc +31 -0
- data/spec/fixtures/a-book/manuscript/chapter1.adoc +5 -0
- data/spec/fixtures/a-book/manuscript/chapter2.adoc +3 -0
- data/spec/fixtures/a-book/manuscript/preface.adoc +6 -0
- data/spec/fixtures/a-book/themes/pdf/pdf.css +1 -0
- data/spec/fixtures/a-book-with-parts/.gitignore +2 -0
- data/spec/fixtures/a-book-with-parts/Gemfile +3 -0
- data/spec/fixtures/a-book-with-parts/book.adoc +39 -0
- data/spec/fixtures/a-book-with-parts/manuscript/chapter1.adoc +4 -0
- data/spec/fixtures/a-book-with-parts/manuscript/chapter2.adoc +4 -0
- data/spec/fixtures/a-book-with-parts/manuscript/chapter3.adoc +3 -0
- data/spec/fixtures/a-book-with-parts/manuscript/chapter4.adoc +3 -0
- data/spec/fixtures/a-book-with-parts/manuscript/part1.adoc +3 -0
- data/spec/fixtures/a-book-with-parts/manuscript/part2.adoc +3 -0
- data/spec/fixtures/a-book-with-parts/manuscript/preface.adoc +4 -0
- data/spec/htmlbook_spec.rb +29 -0
- data/spec/new_command_spec.rb +57 -0
- data/spec/pdf_builder_spec.rb +39 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/version_command_spec.rb +8 -0
- data/templates/Gemfile.txt +3 -0
- data/templates/book.adoc.erb +35 -0
- data/templates/chapter1.adoc +3 -0
- data/templates/chapter2.adoc +3 -0
- data/templates/gitignore.txt +2 -0
- data/templates/preface.adoc +4 -0
- data/workflow.png +0 -0
- metadata +278 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
= A Book
|
2
|
+
:author: Author Name
|
3
|
+
:email: your@email.com
|
4
|
+
:translator: Translator Name
|
5
|
+
:translator-email: translator@email.com
|
6
|
+
:revnumber: 0.0.1
|
7
|
+
:revdate: 2014-09-22T21:17:48+08:00
|
8
|
+
:lang: en
|
9
|
+
:description: Tell me some information about your book.
|
10
|
+
:keywords: the, book, keywords
|
11
|
+
:uuid: urn:uuid:c56a57f0-2488-0132-e4fb-482a140fb2a7
|
12
|
+
:author-label: {author}
|
13
|
+
:translator-label: {translator}
|
14
|
+
:version-label: rev
|
15
|
+
:toc:
|
16
|
+
:toc-title: Table of Contents
|
17
|
+
:listing-caption: Listing %NUM%-%SUBNUM%.
|
18
|
+
:image-caption: Image %NUM%-%SUBNUM%.
|
19
|
+
:table-caption: Table %NUM%-%SUBNUM%.
|
20
|
+
:caption-append-space:
|
21
|
+
:chapter-caption: Chapter %NUM%.
|
22
|
+
:appendix-caption: Appendix %NUM%.
|
23
|
+
:epub-identifier-scheme: uuid
|
24
|
+
|
25
|
+
include::manuscript/preface.adoc[]
|
26
|
+
|
27
|
+
:numbered:
|
28
|
+
|
29
|
+
include::manuscript/chapter1.adoc[]
|
30
|
+
|
31
|
+
include::manuscript/chapter2.adoc[]
|
@@ -0,0 +1 @@
|
|
1
|
+
/* PLACEHOLDER */
|
@@ -0,0 +1,39 @@
|
|
1
|
+
= A Book with Parts
|
2
|
+
:author: Author Name
|
3
|
+
:email: your@email.com
|
4
|
+
:translator: Translator Name
|
5
|
+
:translator-email: translator@email.com
|
6
|
+
:revnumber: 0.0.1
|
7
|
+
:revdate: 2014-09-22T21:18:11+08:00
|
8
|
+
:lang: en
|
9
|
+
:description: Tell me some information about your book.
|
10
|
+
:keywords: the, book, keywords
|
11
|
+
:uuid: urn:uuid:d34fcb60-2488-0132-e4fc-482a140fb2a7
|
12
|
+
:author-label: {author}
|
13
|
+
:translator-label: {translator}
|
14
|
+
:version-label: rev
|
15
|
+
:toc:
|
16
|
+
:toc-title: Table of Contents
|
17
|
+
:listing-caption: Listing %NUM%-%SUBNUM%.
|
18
|
+
:image-caption: Image %NUM%-%SUBNUM%.
|
19
|
+
:table-caption: Table %NUM%-%SUBNUM%.
|
20
|
+
:caption-append-space:
|
21
|
+
:chapter-caption: Chapter %NUM%.
|
22
|
+
:appendix-caption: Appendix %NUM%.
|
23
|
+
:epub-identifier-scheme: uuid
|
24
|
+
|
25
|
+
include::manuscript/preface.adoc[]
|
26
|
+
|
27
|
+
:numbered:
|
28
|
+
|
29
|
+
include::manuscript/part1.adoc[]
|
30
|
+
|
31
|
+
include::manuscript/chapter1.adoc[]
|
32
|
+
|
33
|
+
include::manuscript/chapter2.adoc[]
|
34
|
+
|
35
|
+
include::manuscript/part1.adoc[]
|
36
|
+
|
37
|
+
include::manuscript/chapter3.adoc[]
|
38
|
+
|
39
|
+
include::manuscript/chapter4.adoc[]
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Generated contents' do
|
4
|
+
|
5
|
+
context 'xref' do
|
6
|
+
|
7
|
+
it 'has no prefix when ref another file in pdf' do
|
8
|
+
str = render_string '<<file#id,text>>',
|
9
|
+
:attributes => {
|
10
|
+
'ebook-format' => 'pdf',
|
11
|
+
'outfilesuffix' => '.html'
|
12
|
+
}
|
13
|
+
html = '<a href="#id">text</a>'
|
14
|
+
expect(str).to eq(html)
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'has prefix when ref another file in epub' do
|
18
|
+
str = render_string '<<file#id,text>>',
|
19
|
+
:attributes => {
|
20
|
+
'ebook-format' => 'epub',
|
21
|
+
'outfilesuffix' => '.xhtml'
|
22
|
+
}
|
23
|
+
html = '<a href="file.xhtml#id">text</a>'
|
24
|
+
expect(str).to eq(html)
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require_relative 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Cli#new' do
|
4
|
+
|
5
|
+
before(:all) do
|
6
|
+
book_slug = 'sample-book'
|
7
|
+
tmp_dir = File.join(::Persie::GEM_ROOT, 'tmp')
|
8
|
+
book_dir = File.join(tmp_dir, book_slug)
|
9
|
+
|
10
|
+
FileUtils.mkdir_p(tmp_dir) unless Dir.exist? tmp_dir
|
11
|
+
FileUtils.remove_dir(book_dir) if Dir.exist? book_dir
|
12
|
+
|
13
|
+
FileUtils.cd(tmp_dir) do
|
14
|
+
persie_command "new #{book_slug}"
|
15
|
+
end
|
16
|
+
|
17
|
+
FileUtils.cd book_dir
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'generates a master file' do
|
21
|
+
expect(File.exist?('book.adoc')).to be true
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'generates a .gitignore' do
|
25
|
+
expect(File.exist?('.gitignore')).to be true
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'generates a Gemfile' do
|
29
|
+
expect(File.exist?('Gemfile')).to be true
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'puts correct persie version in Gemfile' do
|
33
|
+
content = File.read('Gemfile')
|
34
|
+
expect(content).to match(/gem 'persie', '(\d+\.\d+\.\d+\.?\w*)'/m)
|
35
|
+
end
|
36
|
+
|
37
|
+
it 'generates a themes directory' do
|
38
|
+
expect(Dir.exist?('themes')).to be true
|
39
|
+
end
|
40
|
+
|
41
|
+
it 'generates a builds directory' do
|
42
|
+
expect(Dir.exist?('builds')).to be true
|
43
|
+
end
|
44
|
+
|
45
|
+
it 'generates a images directory' do
|
46
|
+
expect(Dir.exist?('images')).to be true
|
47
|
+
end
|
48
|
+
|
49
|
+
it 'generates a plugins directory' do
|
50
|
+
expect(Dir.exist?('plugins')).to be true
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'generates a tmp directory' do
|
54
|
+
expect(Dir.exist?('tmp')).to be true
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require_relative 'spec_helper'
|
2
|
+
|
3
|
+
describe 'PDF Builder' do
|
4
|
+
|
5
|
+
before(:all) do
|
6
|
+
@book = ::Persie::Book.new(A_BOOK_PATH)
|
7
|
+
@builder = ::Persie::PDF.new(@book, test: true)
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'responds to #build' do
|
11
|
+
expect(@builder.respond_to?(:build)).to be true
|
12
|
+
end
|
13
|
+
|
14
|
+
describe '#convert_to_html' do
|
15
|
+
it 'generates a html file' do
|
16
|
+
@builder.convert_to_html
|
17
|
+
|
18
|
+
path = File.join(A_BOOK_PATH, 'tmp', 'pdf', 'a-book.html')
|
19
|
+
expect(File.exist? path).to be true
|
20
|
+
|
21
|
+
FileUtils.remove_dir File.join(A_BOOK_PATH, 'tmp', 'pdf')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
describe '#convert_to_pdf' do
|
26
|
+
it 'generates a pdf file' do
|
27
|
+
@builder.convert_to_html
|
28
|
+
@builder.restart_page_number
|
29
|
+
@builder.convert_to_pdf
|
30
|
+
|
31
|
+
path = File.join(A_BOOK_PATH, 'builds', 'pdf', 'a-book.pdf')
|
32
|
+
expect(File.exist? path).to be true
|
33
|
+
|
34
|
+
FileUtils.remove_dir File.join(A_BOOK_PATH, 'tmp', 'pdf')
|
35
|
+
FileUtils.remove_dir File.join(A_BOOK_PATH, 'builds', 'pdf')
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'persie'
|
2
|
+
|
3
|
+
SPEC_FIXTURES_PATH = File.join(File.dirname(__FILE__), 'fixtures')
|
4
|
+
A_BOOK_PATH = File.join(SPEC_FIXTURES_PATH, 'a-book')
|
5
|
+
|
6
|
+
def persie_command(cmd)
|
7
|
+
`#{::Persie::GEM_ROOT}/bin/persie #{cmd}`.chomp
|
8
|
+
end
|
9
|
+
|
10
|
+
def render_string(src, opts = {})
|
11
|
+
opts[:doctype] = 'inline' unless opts.has_key? :doctype
|
12
|
+
opts[:backend] = 'htmlbook' unless opts.has_key? :backend
|
13
|
+
Asciidoctor.render(src, opts)
|
14
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
= Sample Book
|
2
|
+
:author: Author Name
|
3
|
+
:email: your@email.com
|
4
|
+
:translator: Translator Name
|
5
|
+
:translator-email: translator@email.com
|
6
|
+
:revnumber: 0.0.1
|
7
|
+
:revdate: <%= time_now %>
|
8
|
+
:lang: en
|
9
|
+
:description: Tell me some information about your book.
|
10
|
+
:keywords: the, book, keywords
|
11
|
+
:uuid: <%= uuid %>
|
12
|
+
// Custom labels
|
13
|
+
:author-label: {author} 著
|
14
|
+
:translator-label: {translator} 译
|
15
|
+
:version-label: rev
|
16
|
+
// Table of contents
|
17
|
+
:toc:
|
18
|
+
:toc-title: Table of Contents
|
19
|
+
// Custom captions
|
20
|
+
:listing-caption: Listing %NUM%-%SUBNUM%.
|
21
|
+
:image-caption: Image %NUM%-%SUBNUM%.
|
22
|
+
:table-caption: Table %NUM%-%SUBNUM%.
|
23
|
+
:caption-append-space:
|
24
|
+
:chapter-caption: Chapter %NUM%.
|
25
|
+
:appendix-caption: Appendix %NUM%.
|
26
|
+
// ePub
|
27
|
+
:epub-identifier-scheme: uuid
|
28
|
+
|
29
|
+
include::manuscript/preface.adoc[]
|
30
|
+
|
31
|
+
:numbered:
|
32
|
+
|
33
|
+
include::manuscript/chapter1.adoc[]
|
34
|
+
|
35
|
+
include::manuscript/chapter2.adoc[]
|
data/workflow.png
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,278 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: persie
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1.alpha
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andor Chen
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.19.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.19.1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: uuid
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.3.7
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.3.7
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rouge
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.7.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.7.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: gepub
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.6.9.2
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.6.9.2
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: liquid
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.6.1
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.6.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: colorize
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.7.3
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.7.3
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: nokogiri
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.6.3.1
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.6.3.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: thread_safe
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.3.4
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.3.4
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: asciidoctor
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.5.1
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.5.1
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 10.3.2
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 10.3.2
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rspec
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 3.1.0
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 3.1.0
|
167
|
+
description: 使用 AsciiDoc 编写书籍内容,通过 persie 将其转换成 PDF,ePub 和 Mobi 格式电子书。
|
168
|
+
email: andor.chen.27@gmail.com
|
169
|
+
executables:
|
170
|
+
- persie
|
171
|
+
extensions: []
|
172
|
+
extra_rdoc_files:
|
173
|
+
- README.md
|
174
|
+
- LICENSE
|
175
|
+
files:
|
176
|
+
- .gitignore
|
177
|
+
- .rspec
|
178
|
+
- Gemfile
|
179
|
+
- LICENSE
|
180
|
+
- README.md
|
181
|
+
- Rakefile
|
182
|
+
- bin/persie
|
183
|
+
- lib/persie.rb
|
184
|
+
- lib/persie/asciidoctor_ext/htmlbook.rb
|
185
|
+
- lib/persie/asciidoctor_ext/sample.rb
|
186
|
+
- lib/persie/asciidoctor_ext/spine_item_processor.rb
|
187
|
+
- lib/persie/book.rb
|
188
|
+
- lib/persie/builder.rb
|
189
|
+
- lib/persie/builders/epub.rb
|
190
|
+
- lib/persie/builders/mobi.rb
|
191
|
+
- lib/persie/builders/pdf.rb
|
192
|
+
- lib/persie/builders/site.rb
|
193
|
+
- lib/persie/cli.rb
|
194
|
+
- lib/persie/dependency.rb
|
195
|
+
- lib/persie/generator.rb
|
196
|
+
- lib/persie/server.rb
|
197
|
+
- lib/persie/ui.rb
|
198
|
+
- lib/persie/version.rb
|
199
|
+
- persie.gemspec
|
200
|
+
- spec/build_pdf_command_spec.rb
|
201
|
+
- spec/fixtures/a-book-with-parts/.gitignore
|
202
|
+
- spec/fixtures/a-book-with-parts/Gemfile
|
203
|
+
- spec/fixtures/a-book-with-parts/book.adoc
|
204
|
+
- spec/fixtures/a-book-with-parts/manuscript/chapter1.adoc
|
205
|
+
- spec/fixtures/a-book-with-parts/manuscript/chapter2.adoc
|
206
|
+
- spec/fixtures/a-book-with-parts/manuscript/chapter3.adoc
|
207
|
+
- spec/fixtures/a-book-with-parts/manuscript/chapter4.adoc
|
208
|
+
- spec/fixtures/a-book-with-parts/manuscript/part1.adoc
|
209
|
+
- spec/fixtures/a-book-with-parts/manuscript/part2.adoc
|
210
|
+
- spec/fixtures/a-book-with-parts/manuscript/preface.adoc
|
211
|
+
- spec/fixtures/a-book/.gitignore
|
212
|
+
- spec/fixtures/a-book/Gemfile
|
213
|
+
- spec/fixtures/a-book/book.adoc
|
214
|
+
- spec/fixtures/a-book/manuscript/chapter1.adoc
|
215
|
+
- spec/fixtures/a-book/manuscript/chapter2.adoc
|
216
|
+
- spec/fixtures/a-book/manuscript/preface.adoc
|
217
|
+
- spec/fixtures/a-book/themes/pdf/pdf.css
|
218
|
+
- spec/htmlbook_spec.rb
|
219
|
+
- spec/new_command_spec.rb
|
220
|
+
- spec/pdf_builder_spec.rb
|
221
|
+
- spec/spec_helper.rb
|
222
|
+
- spec/version_command_spec.rb
|
223
|
+
- templates/Gemfile.txt
|
224
|
+
- templates/book.adoc.erb
|
225
|
+
- templates/chapter1.adoc
|
226
|
+
- templates/chapter2.adoc
|
227
|
+
- templates/gitignore.txt
|
228
|
+
- templates/preface.adoc
|
229
|
+
- workflow.png
|
230
|
+
homepage: https://github.com/AndorChen/persie
|
231
|
+
licenses:
|
232
|
+
- MIT
|
233
|
+
metadata: {}
|
234
|
+
post_install_message:
|
235
|
+
rdoc_options:
|
236
|
+
- --charset=UTF-8
|
237
|
+
require_paths:
|
238
|
+
- lib
|
239
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - '>='
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
245
|
+
requirements:
|
246
|
+
- - '>'
|
247
|
+
- !ruby/object:Gem::Version
|
248
|
+
version: 1.3.1
|
249
|
+
requirements: []
|
250
|
+
rubyforge_project:
|
251
|
+
rubygems_version: 2.0.3
|
252
|
+
signing_key:
|
253
|
+
specification_version: 2
|
254
|
+
summary: 电子书制作工具
|
255
|
+
test_files:
|
256
|
+
- spec/build_pdf_command_spec.rb
|
257
|
+
- spec/fixtures/a-book-with-parts/.gitignore
|
258
|
+
- spec/fixtures/a-book-with-parts/Gemfile
|
259
|
+
- spec/fixtures/a-book-with-parts/book.adoc
|
260
|
+
- spec/fixtures/a-book-with-parts/manuscript/chapter1.adoc
|
261
|
+
- spec/fixtures/a-book-with-parts/manuscript/chapter2.adoc
|
262
|
+
- spec/fixtures/a-book-with-parts/manuscript/chapter3.adoc
|
263
|
+
- spec/fixtures/a-book-with-parts/manuscript/chapter4.adoc
|
264
|
+
- spec/fixtures/a-book-with-parts/manuscript/part1.adoc
|
265
|
+
- spec/fixtures/a-book-with-parts/manuscript/part2.adoc
|
266
|
+
- spec/fixtures/a-book-with-parts/manuscript/preface.adoc
|
267
|
+
- spec/fixtures/a-book/.gitignore
|
268
|
+
- spec/fixtures/a-book/Gemfile
|
269
|
+
- spec/fixtures/a-book/book.adoc
|
270
|
+
- spec/fixtures/a-book/manuscript/chapter1.adoc
|
271
|
+
- spec/fixtures/a-book/manuscript/chapter2.adoc
|
272
|
+
- spec/fixtures/a-book/manuscript/preface.adoc
|
273
|
+
- spec/fixtures/a-book/themes/pdf/pdf.css
|
274
|
+
- spec/htmlbook_spec.rb
|
275
|
+
- spec/new_command_spec.rb
|
276
|
+
- spec/pdf_builder_spec.rb
|
277
|
+
- spec/spec_helper.rb
|
278
|
+
- spec/version_command_spec.rb
|