review 2.0.0 → 2.1.0
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 +4 -4
- data/.rubocop.yml +43 -1
- data/.rubocop_todo.yml +0 -5
- data/.travis.yml +2 -1
- data/README.md +2 -1
- data/appveyor.yml +10 -1
- data/bin/review-init +12 -0
- data/bin/review-validate +5 -4
- data/doc/NEWS.ja.md +82 -0
- data/doc/NEWS.md +84 -0
- data/doc/config.yml.sample +1 -0
- data/doc/config.yml.sample-simple +77 -0
- data/doc/customize_epub.md +47 -0
- data/doc/preproc.ja.md +153 -0
- data/doc/preproc.md +160 -0
- data/lib/epubmaker/producer.rb +6 -3
- data/lib/lineinput.rb +4 -4
- data/lib/review/book/base.rb +4 -0
- data/lib/review/book/compilable.rb +3 -3
- data/lib/review/book/index.rb +3 -24
- data/lib/review/book/part.rb +6 -2
- data/lib/review/configure.rb +4 -2
- data/lib/review/htmlbuilder.rb +17 -10
- data/lib/review/htmlutils.rb +4 -5
- data/lib/review/i18n.rb +17 -11
- data/lib/review/i18n.yml +6 -0
- data/lib/review/idgxmlbuilder.rb +2 -2
- data/lib/review/makerhelper.rb +1 -1
- data/lib/review/markdownbuilder.rb +12 -1
- data/lib/review/md2inaobuilder.rb +66 -0
- data/lib/review/pdfmaker.rb +20 -7
- data/lib/review/preprocessor.rb +2 -2
- data/lib/review/topbuilder.rb +18 -0
- data/lib/review/version.rb +1 -1
- data/lib/review/webtocprinter.rb +9 -2
- data/templates/LICENSE +20 -0
- data/templates/README.md +8 -0
- data/templates/latex/layout.tex.erb +58 -36
- data/templates/web/html/layout-html5.html.erb +1 -1
- data/test/assets/test_template.tex +44 -8
- data/test/book_test_helper.rb +10 -7
- data/test/sample-book/src/Rakefile +7 -0
- data/test/test_book.rb +1 -4
- data/test/test_epub3maker.rb +1 -3
- data/test/test_htmlbuilder.rb +30 -8
- data/test/test_i18n.rb +28 -0
- data/test/test_idgxmlbuilder.rb +2 -2
- data/test/test_index.rb +10 -0
- data/test/test_location.rb +30 -0
- data/test/test_markdownbuilder.rb +6 -0
- data/test/test_md2inaobuilder.rb +75 -0
- data/test/test_pdfmaker.rb +1 -0
- data/test/test_review_ext.rb +3 -2
- data/test/test_topbuilder.rb +11 -0
- data/test/test_webtocprinter.rb +164 -0
- data/test/test_yamlloader.rb +6 -7
- metadata +14 -1
data/test/test_yamlloader.rb
CHANGED
@@ -87,10 +87,11 @@ k3: "C"
|
|
87
87
|
EOB
|
88
88
|
end
|
89
89
|
yaml = @loader.load_file(yaml_file)
|
90
|
-
assert_equal({
|
91
|
-
|
92
|
-
|
93
|
-
|
90
|
+
assert_equal({
|
91
|
+
"k0" => 2,
|
92
|
+
"k1" => {"name1"=>"value1-1", "name2"=>"value2-2", "name3"=>"value3-3"},
|
93
|
+
"k2" => "B",
|
94
|
+
"k3" => "C",
|
94
95
|
},
|
95
96
|
yaml)
|
96
97
|
end
|
@@ -179,9 +180,7 @@ EOB
|
|
179
180
|
"name4"=>"N4",
|
180
181
|
"name5"=>"N3",
|
181
182
|
"name6"=>"N2",
|
182
|
-
"name7"=>"N1",
|
183
|
-
},
|
184
|
-
},
|
183
|
+
"name7"=>"N1"}},
|
185
184
|
yaml)
|
186
185
|
end
|
187
186
|
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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kmuto
|
@@ -145,12 +145,16 @@ files:
|
|
145
145
|
- doc/catalog.ja.md
|
146
146
|
- doc/catalog.md
|
147
147
|
- doc/config.yml.sample
|
148
|
+
- doc/config.yml.sample-simple
|
148
149
|
- doc/customize_epub.ja.md
|
150
|
+
- doc/customize_epub.md
|
149
151
|
- doc/format.ja.md
|
150
152
|
- doc/format.md
|
151
153
|
- doc/format_idg.ja.md
|
152
154
|
- doc/pdfmaker.ja.md
|
153
155
|
- doc/pdfmaker.md
|
156
|
+
- doc/preproc.ja.md
|
157
|
+
- doc/preproc.md
|
154
158
|
- doc/quickstart.ja.md
|
155
159
|
- doc/quickstart.md
|
156
160
|
- doc/sample.css
|
@@ -198,6 +202,7 @@ files:
|
|
198
202
|
- lib/review/lineinput.rb
|
199
203
|
- lib/review/makerhelper.rb
|
200
204
|
- lib/review/markdownbuilder.rb
|
205
|
+
- lib/review/md2inaobuilder.rb
|
201
206
|
- lib/review/pdfmaker.rb
|
202
207
|
- lib/review/preprocessor.rb
|
203
208
|
- lib/review/sec_counter.rb
|
@@ -213,6 +218,8 @@ files:
|
|
213
218
|
- lib/review/webtocprinter.rb
|
214
219
|
- lib/review/yamlloader.rb
|
215
220
|
- review.gemspec
|
221
|
+
- templates/LICENSE
|
222
|
+
- templates/README.md
|
216
223
|
- templates/html/layout-html5.html.erb
|
217
224
|
- templates/html/layout-xhtml1.html.erb
|
218
225
|
- templates/latex/layout.tex.erb
|
@@ -270,8 +277,10 @@ files:
|
|
270
277
|
- test/test_index.rb
|
271
278
|
- test/test_latexbuilder.rb
|
272
279
|
- test/test_lineinput.rb
|
280
|
+
- test/test_location.rb
|
273
281
|
- test/test_makerhelper.rb
|
274
282
|
- test/test_markdownbuilder.rb
|
283
|
+
- test/test_md2inaobuilder.rb
|
275
284
|
- test/test_pdfmaker.rb
|
276
285
|
- test/test_pdfmaker_cmd.rb
|
277
286
|
- test/test_preprocessor.rb
|
@@ -280,6 +289,7 @@ files:
|
|
280
289
|
- test/test_textutils.rb
|
281
290
|
- test/test_tocparser.rb
|
282
291
|
- test/test_topbuilder.rb
|
292
|
+
- test/test_webtocprinter.rb
|
283
293
|
- test/test_yamlloader.rb
|
284
294
|
homepage: http://github.com/kmuto/review
|
285
295
|
licenses:
|
@@ -354,8 +364,10 @@ test_files:
|
|
354
364
|
- test/test_index.rb
|
355
365
|
- test/test_latexbuilder.rb
|
356
366
|
- test/test_lineinput.rb
|
367
|
+
- test/test_location.rb
|
357
368
|
- test/test_makerhelper.rb
|
358
369
|
- test/test_markdownbuilder.rb
|
370
|
+
- test/test_md2inaobuilder.rb
|
359
371
|
- test/test_pdfmaker.rb
|
360
372
|
- test/test_pdfmaker_cmd.rb
|
361
373
|
- test/test_preprocessor.rb
|
@@ -364,4 +376,5 @@ test_files:
|
|
364
376
|
- test/test_textutils.rb
|
365
377
|
- test/test_tocparser.rb
|
366
378
|
- test/test_topbuilder.rb
|
379
|
+
- test/test_webtocprinter.rb
|
367
380
|
- test/test_yamlloader.rb
|