review 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +90 -66
- data/.travis.yml +1 -1
- data/Gemfile +0 -1
- data/NEWS.ja.md +82 -0
- data/NEWS.md +83 -0
- data/README.md +5 -3
- data/Rakefile +8 -8
- data/bin/review +1 -5
- data/bin/review-catalog-converter +22 -27
- data/bin/review-check +36 -43
- data/bin/review-checkdep +10 -15
- data/bin/review-compile +37 -55
- data/bin/review-epubmaker +4 -5
- data/bin/review-index +21 -29
- data/bin/review-init +26 -37
- data/bin/review-pdfmaker +0 -2
- data/bin/review-preproc +25 -45
- data/bin/review-validate +19 -18
- data/bin/review-vol +15 -27
- data/doc/config.yml.sample +5 -2
- data/doc/format.ja.md +20 -1
- data/doc/format.md +21 -5
- data/doc/images/review-generate.png +0 -0
- data/lib/epubmaker.rb +1 -3
- data/lib/epubmaker/content.rb +24 -27
- data/lib/epubmaker/epubcommon.rb +135 -148
- data/lib/epubmaker/epubv2.rb +39 -46
- data/lib/epubmaker/epubv3.rb +93 -103
- data/lib/epubmaker/producer.rb +138 -151
- data/lib/epubmaker/zip_exporter.rb +21 -26
- data/lib/review/book.rb +3 -6
- data/lib/review/book/base.rb +78 -103
- data/lib/review/book/chapter.rb +36 -40
- data/lib/review/book/compilable.rb +28 -31
- data/lib/review/book/image_finder.rb +6 -13
- data/lib/review/book/index.rb +100 -121
- data/lib/review/book/page_metric.rb +2 -7
- data/lib/review/book/part.rb +18 -20
- data/lib/review/book/volume.rb +9 -13
- data/lib/review/builder.rb +81 -116
- data/lib/review/catalog.rb +15 -19
- data/lib/review/compiler.rb +64 -83
- data/lib/review/configure.rb +87 -97
- data/lib/review/converter.rb +2 -7
- data/lib/review/epubbuilder.rb +1 -3
- data/lib/review/epubmaker.rb +213 -205
- data/lib/review/exception.rb +2 -4
- data/lib/review/extentions.rb +0 -1
- data/lib/review/extentions/hash.rb +2 -2
- data/lib/review/extentions/string.rb +5 -30
- data/lib/review/htmlbuilder.rb +320 -375
- data/lib/review/htmltoc.rb +4 -7
- data/lib/review/htmlutils.rb +29 -32
- data/lib/review/i18n.rb +33 -44
- data/lib/review/i18n.yml +3 -3
- data/lib/review/idgxmlbuilder.rb +309 -345
- data/lib/review/latexbuilder.rb +175 -212
- data/lib/review/latexindex.rb +2 -8
- data/lib/review/latexutils.rb +33 -43
- data/lib/review/lineinput.rb +1 -1
- data/lib/review/logger.rb +21 -0
- data/lib/review/makerhelper.rb +1 -4
- data/lib/review/markdownbuilder.rb +44 -53
- data/lib/review/md2inaobuilder.rb +6 -12
- data/lib/review/pdfmaker.rb +143 -173
- data/lib/review/preprocessor.rb +64 -101
- data/lib/review/rstbuilder.rb +126 -158
- data/lib/review/sec_counter.rb +18 -34
- data/lib/review/template.rb +4 -5
- data/lib/review/textbuilder.rb +2 -3
- data/lib/review/textutils.rb +7 -13
- data/lib/review/tocparser.rb +31 -56
- data/lib/review/tocprinter.rb +26 -52
- data/lib/review/topbuilder.rb +219 -247
- data/lib/review/unfold.rb +15 -24
- data/lib/review/version.rb +1 -1
- data/lib/review/webmaker.rb +75 -99
- data/lib/review/webtocprinter.rb +15 -20
- data/lib/review/yamlloader.rb +13 -15
- data/review.gemspec +20 -22
- data/templates/latex/layout.tex.erb +2 -2
- data/templates/opf/epubv2.opf.erb +7 -7
- data/templates/opf/epubv3.opf.erb +7 -7
- data/templates/web/html/layout-html5.html.erb +2 -2
- data/test/assets/black.eps +280 -0
- data/test/assets/fit.png +0 -0
- data/test/assets/large.gif +0 -0
- data/test/assets/large.jpg +0 -0
- data/test/assets/large.png +0 -0
- data/test/assets/large.svg +65 -0
- data/test/assets/test_template.tex +1 -1
- data/test/book_test_helper.rb +2 -2
- data/test/run_test.rb +4 -4
- data/test/sample-book/src/Rakefile +21 -22
- data/test/syntax-book/Gemfile +4 -0
- data/test/syntax-book/Rakefile +72 -0
- data/test/syntax-book/appA.re +22 -0
- data/test/syntax-book/bib.re +6 -0
- data/test/syntax-book/catalog.yml +15 -0
- data/test/syntax-book/ch01.re +136 -0
- data/test/syntax-book/ch02.re +351 -0
- data/test/syntax-book/ch03.re +82 -0
- data/test/syntax-book/config.yml +35 -0
- data/test/syntax-book/images/ball.png +0 -0
- data/test/syntax-book/images/cover.jpg +0 -0
- data/test/syntax-book/images/fractal.png +0 -0
- data/test/syntax-book/images/img3-1.png +0 -0
- data/test/syntax-book/images/inlineicon.jpg +0 -0
- data/test/syntax-book/images/logic.png +0 -0
- data/test/syntax-book/images/logic2.png +0 -0
- data/test/syntax-book/images/puzzle.jpg +0 -0
- data/test/syntax-book/images/table.jpg +0 -0
- data/test/syntax-book/part2.re +6 -0
- data/test/syntax-book/pre01.re +26 -0
- data/test/syntax-book/review-ext.rb +14 -0
- data/test/syntax-book/sty/jumoline.sty +310 -0
- data/test/syntax-book/sty/reviewmacro.sty +39 -0
- data/test/syntax-book/style.css +494 -0
- data/test/syntax-book/syntax.dic +2 -0
- data/test/test_book.rb +106 -111
- data/test/test_book_chapter.rb +21 -22
- data/test/test_book_part.rb +3 -5
- data/test/test_builder.rb +11 -22
- data/test/test_catalog.rb +17 -18
- data/test/test_catalog_converter_cmd.rb +5 -5
- data/test/test_compiler.rb +18 -16
- data/test/test_configure.rb +35 -38
- data/test/test_converter.rb +3 -4
- data/test/test_epub3maker.rb +136 -117
- data/test/test_epubmaker.rb +107 -114
- data/test/test_epubmaker_cmd.rb +2 -4
- data/test/test_extentions_hash.rb +32 -33
- data/test/test_helper.rb +9 -11
- data/test/test_htmlbuilder.rb +454 -420
- data/test/test_htmltoc.rb +8 -12
- data/test/test_htmlutils.rb +0 -2
- data/test/test_i18n.rb +159 -150
- data/test/test_idgxmlbuilder.rb +190 -197
- data/test/test_image_finder.rb +21 -22
- data/test/test_index.rb +24 -29
- data/test/test_latexbuilder.rb +274 -264
- data/test/test_lineinput.rb +7 -10
- data/test/test_location.rb +7 -7
- data/test/test_makerhelper.rb +13 -25
- data/test/test_markdownbuilder.rb +23 -26
- data/test/test_md2inaobuilder.rb +8 -11
- data/test/test_pdfmaker.rb +114 -123
- data/test/test_pdfmaker_cmd.rb +1 -3
- data/test/test_review_ext.rb +3 -5
- data/test/test_rstbuilder.rb +92 -97
- data/test/test_template.rb +3 -7
- data/test/test_textutils.rb +27 -27
- data/test/test_tocparser.rb +2 -2
- data/test/test_topbuilder.rb +98 -103
- data/test/test_webtocprinter.rb +5 -6
- data/test/test_yamlloader.rb +42 -42
- data/test/test_zip_exporter.rb +12 -18
- metadata +86 -9
- data/lib/review/ewbbuilder.rb +0 -382
data/test/test_webtocprinter.rb
CHANGED
@@ -12,7 +12,7 @@ class WEBTOCPrinterTest < Test::Unit::TestCase
|
|
12
12
|
|
13
13
|
def test_webtocprinter_null
|
14
14
|
dummy_book = ReVIEW::Book::Base.load
|
15
|
-
chap = ReVIEW::Book::Chapter.new(dummy_book, 1, '-', nil, StringIO.new)
|
15
|
+
# chap = ReVIEW::Book::Chapter.new(dummy_book, 1, '-', nil, StringIO.new)
|
16
16
|
str = WEBTOCPrinter.book_to_string(dummy_book)
|
17
17
|
expect = <<-EOB
|
18
18
|
<ul class="book-toc">
|
@@ -30,7 +30,7 @@ CHAPS:
|
|
30
30
|
EOB
|
31
31
|
mktmpbookdir 'catalog.yml' => catalog_yml,
|
32
32
|
'ch1.re' => "= ch. 1\n\n111\n",
|
33
|
-
'ch2.re' => "= ch. 2\n\n222\n" do |
|
33
|
+
'ch2.re' => "= ch. 2\n\n222\n" do |_dir, book, _files|
|
34
34
|
str = WEBTOCPrinter.book_to_string(book)
|
35
35
|
expect = <<-EOB
|
36
36
|
<ul class="book-toc">
|
@@ -53,7 +53,7 @@ CHAPS:
|
|
53
53
|
EOB
|
54
54
|
mktmpbookdir 'catalog.yml' => catalog_yml,
|
55
55
|
'ch1.re' => "= ch. 1\n\n111\n",
|
56
|
-
'ch2.re' => "= ch. 2\n\n222\n" do |
|
56
|
+
'ch2.re' => "= ch. 2\n\n222\n" do |_dir, book, _files|
|
57
57
|
str = WEBTOCPrinter.book_to_string(book)
|
58
58
|
expect = <<-EOB
|
59
59
|
<ul class="book-toc">
|
@@ -86,7 +86,7 @@ EOB
|
|
86
86
|
'p1.re' => "= This is PART1\n\np111\n",
|
87
87
|
'p2.re' => "= This is PART2\n\np111\n",
|
88
88
|
'ch1.re' => "= ch. 1\n\n111\n",
|
89
|
-
'ch2.re' => "= ch. 2\n\n222\n" do |
|
89
|
+
'ch2.re' => "= ch. 2\n\n222\n" do |_dir, book, _files|
|
90
90
|
str = WEBTOCPrinter.book_to_string(book)
|
91
91
|
expect = <<-EOB
|
92
92
|
<ul class="book-toc">
|
@@ -134,7 +134,7 @@ EOB
|
|
134
134
|
'post1.re' => "= POST1\n\npo111\n",
|
135
135
|
'post2.re' => "= POST2\n\npo222\n",
|
136
136
|
'ch1.re' => "= ch. 1\n\n111\n",
|
137
|
-
'ch2.re' => "= ch. 2\n\n222\n" do |
|
137
|
+
'ch2.re' => "= ch. 2\n\n222\n" do |_dir, book, _files|
|
138
138
|
str = WEBTOCPrinter.book_to_string(book)
|
139
139
|
expect = <<-EOB
|
140
140
|
<ul class="book-toc">
|
@@ -160,5 +160,4 @@ EOB
|
|
160
160
|
assert_equal expect, str
|
161
161
|
end
|
162
162
|
end
|
163
|
-
|
164
163
|
end
|
data/test/test_yamlloader.rb
CHANGED
@@ -13,23 +13,23 @@ class YAMLLoaderTest < Test::Unit::TestCase
|
|
13
13
|
|
14
14
|
def test_load_file
|
15
15
|
Dir.mktmpdir do |dir|
|
16
|
-
yaml_file = File.join(dir,
|
17
|
-
File.open(yaml_file,
|
16
|
+
yaml_file = File.join(dir, 'test.yml')
|
17
|
+
File.open(yaml_file, 'w') do |f|
|
18
18
|
f.write <<EOB
|
19
19
|
foo:
|
20
20
|
bar: "test"
|
21
21
|
EOB
|
22
22
|
end
|
23
23
|
yaml = @loader.load_file(yaml_file)
|
24
|
-
assert_equal yaml,
|
24
|
+
assert_equal yaml, 'foo' => { 'bar' => 'test' }
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
28
|
def test_load_file_inherit
|
29
29
|
Dir.mktmpdir do |dir|
|
30
|
-
yaml_file = File.join(dir,
|
31
|
-
yaml_file2 = File.join(dir,
|
32
|
-
File.open(yaml_file,
|
30
|
+
yaml_file = File.join(dir, 'test.yml')
|
31
|
+
yaml_file2 = File.join(dir, 'test2.yml')
|
32
|
+
File.open(yaml_file, 'w') do |f|
|
33
33
|
f.write <<EOB
|
34
34
|
k0: 2
|
35
35
|
k1:
|
@@ -38,7 +38,7 @@ k1:
|
|
38
38
|
inherit: ["test2.yml"]
|
39
39
|
EOB
|
40
40
|
end
|
41
|
-
File.open(yaml_file2,
|
41
|
+
File.open(yaml_file2, 'w') do |f|
|
42
42
|
f.write <<EOB
|
43
43
|
k1:
|
44
44
|
name: "test2"
|
@@ -48,20 +48,20 @@ k2: "3"
|
|
48
48
|
EOB
|
49
49
|
end
|
50
50
|
yaml = @loader.load_file(yaml_file)
|
51
|
-
assert_equal({
|
52
|
-
|
53
|
-
|
54
|
-
|
51
|
+
assert_equal({ 'k0' => 2,
|
52
|
+
'k1' => { 'name' => 'test', 'name2' => 'value2',
|
53
|
+
'array' => [{ 'name' => 'N', 'val' => 'V' }] },
|
54
|
+
'k2' => '3' },
|
55
55
|
yaml)
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
59
|
def test_load_file_inherit2
|
60
60
|
Dir.mktmpdir do |dir|
|
61
|
-
yaml_file = File.join(dir,
|
62
|
-
yaml_file2 = File.join(dir,
|
63
|
-
yaml_file3 = File.join(dir,
|
64
|
-
File.open(yaml_file,
|
61
|
+
yaml_file = File.join(dir, 'test.yml')
|
62
|
+
yaml_file2 = File.join(dir, 'test2.yml')
|
63
|
+
yaml_file3 = File.join(dir, 'test3.yml')
|
64
|
+
File.open(yaml_file, 'w') do |f|
|
65
65
|
f.write <<EOB
|
66
66
|
k0: 2
|
67
67
|
k1:
|
@@ -69,7 +69,7 @@ k1:
|
|
69
69
|
inherit: ["test3.yml", "test2.yml"]
|
70
70
|
EOB
|
71
71
|
end
|
72
|
-
File.open(yaml_file2,
|
72
|
+
File.open(yaml_file2, 'w') do |f|
|
73
73
|
f.write <<EOB
|
74
74
|
k1:
|
75
75
|
name1: "value1-2"
|
@@ -77,7 +77,7 @@ k1:
|
|
77
77
|
k2: "B"
|
78
78
|
EOB
|
79
79
|
end
|
80
|
-
File.open(yaml_file3,
|
80
|
+
File.open(yaml_file3, 'w') do |f|
|
81
81
|
f.write <<EOB
|
82
82
|
k1:
|
83
83
|
name1: "value1-3"
|
@@ -88,10 +88,10 @@ EOB
|
|
88
88
|
end
|
89
89
|
yaml = @loader.load_file(yaml_file)
|
90
90
|
assert_equal({
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
91
|
+
'k0' => 2,
|
92
|
+
'k1' => { 'name1' => 'value1-1', 'name2' => 'value2-2', 'name3' => 'value3-3' },
|
93
|
+
'k2' => 'B',
|
94
|
+
'k3' => 'C'
|
95
95
|
},
|
96
96
|
yaml)
|
97
97
|
end
|
@@ -99,21 +99,21 @@ EOB
|
|
99
99
|
|
100
100
|
def test_load_file_inherit3
|
101
101
|
Dir.mktmpdir do |dir|
|
102
|
-
yaml_file1 = File.join(dir,
|
103
|
-
yaml_file2 = File.join(dir,
|
104
|
-
yaml_file3 = File.join(dir,
|
105
|
-
yaml_file4 = File.join(dir,
|
106
|
-
yaml_file5 = File.join(dir,
|
107
|
-
yaml_file6 = File.join(dir,
|
108
|
-
yaml_file7 = File.join(dir,
|
109
|
-
File.open(yaml_file7,
|
102
|
+
yaml_file1 = File.join(dir, 'test1.yml')
|
103
|
+
yaml_file2 = File.join(dir, 'test2.yml')
|
104
|
+
yaml_file3 = File.join(dir, 'test3.yml')
|
105
|
+
yaml_file4 = File.join(dir, 'test4.yml')
|
106
|
+
yaml_file5 = File.join(dir, 'test5.yml')
|
107
|
+
yaml_file6 = File.join(dir, 'test6.yml')
|
108
|
+
yaml_file7 = File.join(dir, 'test7.yml')
|
109
|
+
File.open(yaml_file7, 'w') do |f|
|
110
110
|
f.write <<EOB
|
111
111
|
k1:
|
112
112
|
name1: "N7"
|
113
113
|
inherit: ["test3.yml", "test6.yml"]
|
114
114
|
EOB
|
115
115
|
end
|
116
|
-
File.open(yaml_file6,
|
116
|
+
File.open(yaml_file6, 'w') do |f|
|
117
117
|
f.write <<EOB
|
118
118
|
k1:
|
119
119
|
name1: "N6"
|
@@ -121,7 +121,7 @@ k1:
|
|
121
121
|
inherit: ["test4.yml", "test5.yml"]
|
122
122
|
EOB
|
123
123
|
end
|
124
|
-
File.open(yaml_file5,
|
124
|
+
File.open(yaml_file5, 'w') do |f|
|
125
125
|
f.write <<EOB
|
126
126
|
k1:
|
127
127
|
name1: "N5"
|
@@ -129,7 +129,7 @@ k1:
|
|
129
129
|
name3: "N5"
|
130
130
|
EOB
|
131
131
|
end
|
132
|
-
File.open(yaml_file4,
|
132
|
+
File.open(yaml_file4, 'w') do |f|
|
133
133
|
f.write <<EOB
|
134
134
|
k1:
|
135
135
|
name1: "N4"
|
@@ -138,7 +138,7 @@ k1:
|
|
138
138
|
name4: "N4"
|
139
139
|
EOB
|
140
140
|
end
|
141
|
-
File.open(yaml_file3,
|
141
|
+
File.open(yaml_file3, 'w') do |f|
|
142
142
|
f.write <<EOB
|
143
143
|
k1:
|
144
144
|
name1: "N3"
|
@@ -149,7 +149,7 @@ k1:
|
|
149
149
|
inherit: ["test1.yml", "test2.yml"]
|
150
150
|
EOB
|
151
151
|
end
|
152
|
-
File.open(yaml_file2,
|
152
|
+
File.open(yaml_file2, 'w') do |f|
|
153
153
|
f.write <<EOB
|
154
154
|
k1:
|
155
155
|
name1: "N2"
|
@@ -160,7 +160,7 @@ k1:
|
|
160
160
|
name6: "N2"
|
161
161
|
EOB
|
162
162
|
end
|
163
|
-
File.open(yaml_file1,
|
163
|
+
File.open(yaml_file1, 'w') do |f|
|
164
164
|
f.write <<EOB
|
165
165
|
k1:
|
166
166
|
name1: "N1"
|
@@ -174,13 +174,13 @@ EOB
|
|
174
174
|
end
|
175
175
|
|
176
176
|
yaml = @loader.load_file(yaml_file7)
|
177
|
-
assert_equal({
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
177
|
+
assert_equal({ 'k1' => { 'name1' => 'N7',
|
178
|
+
'name2' => 'N6',
|
179
|
+
'name3' => 'N5',
|
180
|
+
'name4' => 'N4',
|
181
|
+
'name5' => 'N3',
|
182
|
+
'name6' => 'N2',
|
183
|
+
'name7' => 'N1' } },
|
184
184
|
yaml)
|
185
185
|
end
|
186
186
|
end
|
data/test/test_zip_exporter.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
require 'test_helper'
|
4
2
|
require 'epubmaker'
|
5
3
|
require 'epubmaker/zip_exporter'
|
@@ -13,7 +11,7 @@ class ZipExporterTest < Test::Unit::TestCase
|
|
13
11
|
@epubdir = "#{@tmpdir}/epubdir"
|
14
12
|
FileUtils.mkdir_p("#{@epubdir}/META-INF")
|
15
13
|
FileUtils.mkdir_p("#{@epubdir}/OEBPS")
|
16
|
-
File.write("#{@epubdir}/mimetype",
|
14
|
+
File.write("#{@epubdir}/mimetype", 'application/epub+zip')
|
17
15
|
|
18
16
|
container_xml = <<-EOB
|
19
17
|
<?xml version="1.0" encoding="UTF-8"?>
|
@@ -67,9 +65,9 @@ class ZipExporterTest < Test::Unit::TestCase
|
|
67
65
|
return
|
68
66
|
end
|
69
67
|
|
70
|
-
|
71
|
-
epubfile = File.join(@tmpdir,
|
72
|
-
exporter = ZipExporter.new(@epubdir,
|
68
|
+
config = { 'epubmaker' => {} }
|
69
|
+
epubfile = File.join(@tmpdir, 'test.epub')
|
70
|
+
exporter = ZipExporter.new(@epubdir, config)
|
73
71
|
exporter.export_zip_extcmd(epubfile)
|
74
72
|
assert_true(File.exist?(epubfile))
|
75
73
|
|
@@ -78,21 +76,18 @@ class ZipExporterTest < Test::Unit::TestCase
|
|
78
76
|
::Zip::InputStream.open(f) do |fzip|
|
79
77
|
## get first entry
|
80
78
|
entry = fzip.get_next_entry
|
81
|
-
assert_equal
|
82
|
-
assert_equal
|
79
|
+
assert_equal 'mimetype', entry.name
|
80
|
+
assert_equal 'application/epub+zip', fzip.read
|
83
81
|
end
|
84
82
|
end
|
85
83
|
end
|
86
84
|
end
|
87
85
|
|
88
86
|
def test_export_rubyzip
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
params = {"epubmaker"=>{}}
|
94
|
-
epubfile = File.join(@tmpdir, "test.epub")
|
95
|
-
exporter = ZipExporter.new(@epubdir, params)
|
87
|
+
return unless defined?(Zip) ## skip test
|
88
|
+
config = { 'epubmaker' => {} }
|
89
|
+
epubfile = File.join(@tmpdir, 'test.epub')
|
90
|
+
exporter = ZipExporter.new(@epubdir, config)
|
96
91
|
exporter.export_zip_rubyzip(epubfile)
|
97
92
|
assert_true(File.exist?(epubfile))
|
98
93
|
|
@@ -100,8 +95,8 @@ class ZipExporterTest < Test::Unit::TestCase
|
|
100
95
|
::Zip::InputStream.open(f) do |fzip|
|
101
96
|
## get first entry
|
102
97
|
entry = fzip.get_next_entry
|
103
|
-
assert_equal
|
104
|
-
assert_equal
|
98
|
+
assert_equal 'mimetype', entry.name
|
99
|
+
assert_equal 'application/epub+zip', fzip.read
|
105
100
|
end
|
106
101
|
end
|
107
102
|
end
|
@@ -109,5 +104,4 @@ class ZipExporterTest < Test::Unit::TestCase
|
|
109
104
|
def teardown
|
110
105
|
FileUtils.remove_entry_secure(@tmpdir)
|
111
106
|
end
|
112
|
-
|
113
107
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: review
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kmuto
|
@@ -9,10 +9,10 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-06-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: image_size
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
@@ -40,13 +40,13 @@ dependencies:
|
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: rubyzip
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
|
-
type: :
|
49
|
+
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: pygments.rb
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: rake
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
@@ -95,6 +95,20 @@ dependencies:
|
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: test-unit
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
98
112
|
description: Re:VIEW is a digital publishing system for books and ebooks. It supports
|
99
113
|
InDesign, EPUB and LaTeX.
|
100
114
|
email: kmuto@debian.org
|
@@ -164,6 +178,7 @@ files:
|
|
164
178
|
- doc/format.ja.md
|
165
179
|
- doc/format.md
|
166
180
|
- doc/format_idg.ja.md
|
181
|
+
- doc/images/review-generate.png
|
167
182
|
- doc/makeindex.ja.md
|
168
183
|
- doc/makeindex.md
|
169
184
|
- doc/pdfmaker.ja.md
|
@@ -200,7 +215,6 @@ files:
|
|
200
215
|
- lib/review/converter.rb
|
201
216
|
- lib/review/epubbuilder.rb
|
202
217
|
- lib/review/epubmaker.rb
|
203
|
-
- lib/review/ewbbuilder.rb
|
204
218
|
- lib/review/exception.rb
|
205
219
|
- lib/review/extentions.rb
|
206
220
|
- lib/review/extentions/hash.rb
|
@@ -216,6 +230,7 @@ files:
|
|
216
230
|
- lib/review/latexindex.rb
|
217
231
|
- lib/review/latexutils.rb
|
218
232
|
- lib/review/lineinput.rb
|
233
|
+
- lib/review/logger.rb
|
219
234
|
- lib/review/makerhelper.rb
|
220
235
|
- lib/review/markdownbuilder.rb
|
221
236
|
- lib/review/md2inaobuilder.rb
|
@@ -247,6 +262,12 @@ files:
|
|
247
262
|
- templates/web/html/layout-xhtml1.html.erb
|
248
263
|
- templates/xml/container.xml.erb
|
249
264
|
- test/CHAPS
|
265
|
+
- test/assets/black.eps
|
266
|
+
- test/assets/fit.png
|
267
|
+
- test/assets/large.gif
|
268
|
+
- test/assets/large.jpg
|
269
|
+
- test/assets/large.png
|
270
|
+
- test/assets/large.svg
|
250
271
|
- test/assets/test.xml.erb
|
251
272
|
- test/assets/test_template.tex
|
252
273
|
- test/assets/test_template_backmatter.tex
|
@@ -272,6 +293,31 @@ files:
|
|
272
293
|
- test/sample-book/src/vendor/jumoline/jumoline.dtx
|
273
294
|
- test/sample-book/src/vendor/jumoline/jumoline.ins
|
274
295
|
- test/sample-book/src/vendor/jumoline/lppl.txt
|
296
|
+
- test/syntax-book/Gemfile
|
297
|
+
- test/syntax-book/Rakefile
|
298
|
+
- test/syntax-book/appA.re
|
299
|
+
- test/syntax-book/bib.re
|
300
|
+
- test/syntax-book/catalog.yml
|
301
|
+
- test/syntax-book/ch01.re
|
302
|
+
- test/syntax-book/ch02.re
|
303
|
+
- test/syntax-book/ch03.re
|
304
|
+
- test/syntax-book/config.yml
|
305
|
+
- test/syntax-book/images/ball.png
|
306
|
+
- test/syntax-book/images/cover.jpg
|
307
|
+
- test/syntax-book/images/fractal.png
|
308
|
+
- test/syntax-book/images/img3-1.png
|
309
|
+
- test/syntax-book/images/inlineicon.jpg
|
310
|
+
- test/syntax-book/images/logic.png
|
311
|
+
- test/syntax-book/images/logic2.png
|
312
|
+
- test/syntax-book/images/puzzle.jpg
|
313
|
+
- test/syntax-book/images/table.jpg
|
314
|
+
- test/syntax-book/part2.re
|
315
|
+
- test/syntax-book/pre01.re
|
316
|
+
- test/syntax-book/review-ext.rb
|
317
|
+
- test/syntax-book/sty/jumoline.sty
|
318
|
+
- test/syntax-book/sty/reviewmacro.sty
|
319
|
+
- test/syntax-book/style.css
|
320
|
+
- test/syntax-book/syntax.dic
|
275
321
|
- test/test.re
|
276
322
|
- test/test_book.rb
|
277
323
|
- test/test_book_chapter.rb
|
@@ -332,12 +378,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
332
378
|
version: '0'
|
333
379
|
requirements: []
|
334
380
|
rubyforge_project:
|
335
|
-
rubygems_version: 2.6.
|
381
|
+
rubygems_version: 2.6.13
|
336
382
|
signing_key:
|
337
383
|
specification_version: 4
|
338
384
|
summary: 'Re:VIEW: a easy-to-use digital publishing system'
|
339
385
|
test_files:
|
340
386
|
- test/CHAPS
|
387
|
+
- test/assets/black.eps
|
388
|
+
- test/assets/fit.png
|
389
|
+
- test/assets/large.gif
|
390
|
+
- test/assets/large.jpg
|
391
|
+
- test/assets/large.png
|
392
|
+
- test/assets/large.svg
|
341
393
|
- test/assets/test.xml.erb
|
342
394
|
- test/assets/test_template.tex
|
343
395
|
- test/assets/test_template_backmatter.tex
|
@@ -363,6 +415,31 @@ test_files:
|
|
363
415
|
- test/sample-book/src/vendor/jumoline/jumoline.dtx
|
364
416
|
- test/sample-book/src/vendor/jumoline/jumoline.ins
|
365
417
|
- test/sample-book/src/vendor/jumoline/lppl.txt
|
418
|
+
- test/syntax-book/Gemfile
|
419
|
+
- test/syntax-book/Rakefile
|
420
|
+
- test/syntax-book/appA.re
|
421
|
+
- test/syntax-book/bib.re
|
422
|
+
- test/syntax-book/catalog.yml
|
423
|
+
- test/syntax-book/ch01.re
|
424
|
+
- test/syntax-book/ch02.re
|
425
|
+
- test/syntax-book/ch03.re
|
426
|
+
- test/syntax-book/config.yml
|
427
|
+
- test/syntax-book/images/ball.png
|
428
|
+
- test/syntax-book/images/cover.jpg
|
429
|
+
- test/syntax-book/images/fractal.png
|
430
|
+
- test/syntax-book/images/img3-1.png
|
431
|
+
- test/syntax-book/images/inlineicon.jpg
|
432
|
+
- test/syntax-book/images/logic.png
|
433
|
+
- test/syntax-book/images/logic2.png
|
434
|
+
- test/syntax-book/images/puzzle.jpg
|
435
|
+
- test/syntax-book/images/table.jpg
|
436
|
+
- test/syntax-book/part2.re
|
437
|
+
- test/syntax-book/pre01.re
|
438
|
+
- test/syntax-book/review-ext.rb
|
439
|
+
- test/syntax-book/sty/jumoline.sty
|
440
|
+
- test/syntax-book/sty/reviewmacro.sty
|
441
|
+
- test/syntax-book/style.css
|
442
|
+
- test/syntax-book/syntax.dic
|
366
443
|
- test/test.re
|
367
444
|
- test/test_book.rb
|
368
445
|
- test/test_book_chapter.rb
|