review 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +92 -73
  3. data/{doc/NEWS.ja.md → NEWS.ja.md} +60 -0
  4. data/{doc/NEWS.md → NEWS.md} +60 -0
  5. data/bin/review-compile +1 -1
  6. data/bin/review-epubmaker +2 -2
  7. data/bin/review-pdfmaker +2 -2
  8. data/debian/control +1 -1
  9. data/{ChangeLog → doc/ChangeLog-0.x_to_2.0} +0 -0
  10. data/doc/config.yml.sample +6 -6
  11. data/doc/format.ja.md +19 -1
  12. data/doc/format.md +28 -10
  13. data/doc/quickstart.ja.md +1 -1
  14. data/doc/quickstart.md +1 -1
  15. data/lib/epubmaker.rb +2 -1
  16. data/lib/epubmaker/content.rb +2 -1
  17. data/lib/epubmaker/epubcommon.rb +1 -0
  18. data/lib/epubmaker/epubv2.rb +2 -1
  19. data/lib/epubmaker/epubv3.rb +2 -1
  20. data/lib/epubmaker/producer.rb +2 -1
  21. data/lib/epubmaker/zip_exporter.rb +2 -2
  22. data/lib/review/book/base.rb +2 -2
  23. data/lib/review/book/index.rb +7 -3
  24. data/lib/review/builder.rb +15 -7
  25. data/lib/review/compiler.rb +4 -3
  26. data/lib/review/converter.rb +1 -1
  27. data/lib/review/epubmaker.rb +2 -2
  28. data/lib/review/ewbbuilder.rb +2 -1
  29. data/lib/review/htmlbuilder.rb +59 -9
  30. data/lib/review/idgxmlbuilder.rb +13 -5
  31. data/lib/review/latexbuilder.rb +44 -17
  32. data/lib/review/latexutils.rb +2 -2
  33. data/lib/review/makerhelper.rb +2 -2
  34. data/lib/review/markdownbuilder.rb +12 -8
  35. data/lib/review/pdfmaker.rb +1 -2
  36. data/lib/review/rstbuilder.rb +10 -4
  37. data/lib/review/sec_counter.rb +9 -3
  38. data/lib/review/topbuilder.rb +47 -5
  39. data/lib/review/version.rb +1 -1
  40. data/lib/review/webmaker.rb +1 -2
  41. data/review.gemspec +1 -1
  42. data/templates/latex/layout.tex.erb +5 -0
  43. data/test/assets/test_template.tex +5 -0
  44. data/test/test_book.rb +2 -1
  45. data/test/test_book_chapter.rb +1 -3
  46. data/test/test_epub3maker.rb +0 -2
  47. data/test/test_htmlbuilder.rb +72 -3
  48. data/test/test_idgxmlbuilder.rb +11 -2
  49. data/test/test_index.rb +0 -1
  50. data/test/test_latexbuilder.rb +96 -2
  51. data/test/test_pdfmaker.rb +0 -1
  52. data/test/test_rstbuilder.rb +5 -0
  53. data/test/test_topbuilder.rb +26 -1
  54. metadata +6 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '01394f19285dcc106f75ad8b4bd078b9161f1fa4'
4
- data.tar.gz: 2cec0e65aa5c831899d20025edd1d17414165b56
3
+ metadata.gz: 82d28fa3ffbcbcc1cf5a4bdb81a4e465d32ba530
4
+ data.tar.gz: d0d1914dcce4b11276ef4b097252265986e74425
5
5
  SHA512:
6
- metadata.gz: 2bafefd24ca1c03a92d8a3fd9bb6e8deb97348a7cca65b387d0da9d853bc7c058363a84ba44295c7638d5bf09d91bb58687bc996a5dc1ae998d710a13c9410a0
7
- data.tar.gz: 14d4571b74b645a8cfa33c643ab3af6fae031a7b12c351e39afe613da29ca0bb01e9834c7d5ee0e7932bfdec58253e86b8a690ca92c418c62456fdd0696011a9
6
+ metadata.gz: fd778716edf5e843f81d680bdb5d375d99bb7c893c52a3cee49fb1717cb3328fa9d32f13364f85f3299cf3523538aa0d32f00a0ffb851f9b004b07d9d922184c
7
+ data.tar.gz: 9e937dfde5a4bbe29c5621ff88695bad140d4baddbb20233bc9c4ccce22b328d5ffb63219501464f0ca196798d887cc57577de1d498eb21f6dd36a50ee971cad
@@ -6,6 +6,8 @@ AllCops:
6
6
 
7
7
  inherit_from: .rubocop_todo.yml
8
8
 
9
+ #### Lint
10
+
9
11
  Lint/BlockAlignment:
10
12
  Enabled: true
11
13
 
@@ -37,6 +39,8 @@ Lint/UnusedMethodArgument:
37
39
  Lint/UselessAssignment:
38
40
  Enabled: false
39
41
 
42
+ #### Performance
43
+
40
44
  Performance/RegexpMatch:
41
45
  Enabled: false
42
46
 
@@ -50,6 +54,8 @@ Performance/StringReplacement:
50
54
  Performance/RangeInclude:
51
55
  Enabled: false
52
56
 
57
+ #### Style
58
+
53
59
  Style/AccessorMethodName:
54
60
  Enabled: false
55
61
 
@@ -83,10 +89,6 @@ Style/ClassCheck:
83
89
  Style/ClassMethods:
84
90
  Enabled: false
85
91
 
86
- # Unnecessary spacing detected.
87
- Style/ExtraSpacing:
88
- Enabled: true
89
-
90
92
  # Do not introduce global variables.
91
93
  Style/GlobalVars:
92
94
  Enabled: true
@@ -109,22 +111,9 @@ Style/ConditionalAssignment:
109
111
  Style/Documentation:
110
112
  Enabled: false
111
113
 
112
- Style/DotPosition:
113
- EnforcedStyle: trailing
114
- Enabled: true
115
-
116
114
  Style/EmptyElse:
117
115
  Enabled: false
118
116
 
119
- Style/EmptyLines:
120
- Enabled: false
121
-
122
- Style/EmptyLinesAroundClassBody:
123
- Enabled: false
124
-
125
- Style/EmptyLinesAroundModuleBody:
126
- Enabled: false
127
-
128
117
  Style/FormatString:
129
118
  EnforcedStyle: sprintf
130
119
  Enabled: true
@@ -141,6 +130,9 @@ Style/IfUnlessModifier:
141
130
  Style/MutableConstant:
142
131
  Enabled: false
143
132
 
133
+ Style/MultipleComparison:
134
+ Enabled: false
135
+
144
136
  Style/UnneededInterpolation:
145
137
  Enabled: false
146
138
 
@@ -181,52 +173,19 @@ Style/HashSyntax:
181
173
  Style/RescueModifier:
182
174
  Enabled: false
183
175
 
184
- Style/AccessModifierIndentation:
185
- EnforcedStyle: indent
186
- Enabled: true
187
-
188
176
  Style/ClassAndModuleChildren:
189
177
  EnforcedStyle: nested
190
178
  Enabled: true
191
179
 
192
- Style/SpaceAroundBlockParameters:
193
- EnforcedStyleInsidePipes: no_space
194
- Enabled: true
195
-
196
- Style/SpaceInsideStringInterpolation:
197
- EnforcedStyle: no_space
198
- Enabled: true
199
-
200
180
  Style/ColonMethodCall:
201
181
  Enabled: true
202
182
 
203
- Style/EmptyLinesAroundAccessModifier:
204
- Enabled: true
205
-
206
- Style/EmptyLinesAroundMethodBody:
207
- Enabled: true
208
-
209
- Style/ExtraSpacing:
210
- Enabled: true
211
-
212
183
  Style/For:
213
184
  Enabled: true
214
185
 
215
- Style/IndentHash:
216
- Enabled: true
217
-
218
- Style/IndentationWidth:
219
- Enabled: true
220
-
221
- Style/IndentationConsistency:
222
- Enabled: true
223
-
224
186
  Style/InfiniteLoop:
225
187
  Enabled: false
226
188
 
227
- Style/LeadingCommentSpace:
228
- Enabled: false
229
-
230
189
  Style/LineEndConcatenation:
231
190
  Enabled: false
232
191
 
@@ -239,9 +198,6 @@ Style/MethodName:
239
198
  Style/MultilineBlockChain:
240
199
  Enabled: false
241
200
 
242
- Style/MultilineOperationIndentation:
243
- Enabled: false
244
-
245
201
  Style/NegatedIf:
246
202
  Enabled: false
247
203
 
@@ -282,58 +238,121 @@ Style/Semicolon:
282
238
  Style/SingleLineMethods:
283
239
  Enabled: true
284
240
 
285
- Style/SpaceAfterComma:
241
+ Style/SpecialGlobalVars:
242
+ Enabled: false
243
+
244
+ Style/StringLiterals:
245
+ Enabled: false
246
+
247
+ Style/StringLiteralsInInterpolation:
248
+ Enabled: false
249
+
250
+ Style/SymbolProc:
251
+ Enabled: false
252
+
253
+ Style/SymbolArray:
254
+ Enabled: false
255
+
256
+ Style/TrailingCommaInLiteral:
257
+ Enabled: false
258
+
259
+ Style/WordArray:
260
+ MinSize: 10
261
+
262
+ Style/UnneededPercentQ:
263
+ Enabled: false
264
+
265
+ Style/WhileUntilModifier:
266
+ Enabled: false
267
+
268
+ Style/YodaCondition:
286
269
  Enabled: false
287
270
 
288
- Style/SpaceAfterNot:
271
+ #### Layout
272
+
273
+ Layout/AccessModifierIndentation:
274
+ EnforcedStyle: indent
289
275
  Enabled: true
290
276
 
291
- Style/SpaceAfterSemicolon:
277
+ Layout/DotPosition:
278
+ EnforcedStyle: trailing
292
279
  Enabled: true
293
280
 
294
- Style/SpaceAroundEqualsInParameterDefault:
281
+ Layout/EmptyLines:
295
282
  Enabled: false
296
283
 
297
- Style/SpaceAroundOperators:
298
- Enabled: false
284
+ Layout/EmptyLinesAroundAccessModifier:
285
+ Enabled: true
299
286
 
300
- Style/SpaceBeforeBlockBraces:
287
+ Layout/EmptyLinesAroundClassBody:
301
288
  Enabled: false
302
289
 
303
- Style/SpaceBeforeComma:
290
+ Layout/EmptyLinesAroundMethodBody:
304
291
  Enabled: true
305
292
 
306
- Style/SpaceInsideBlockBraces:
293
+ Layout/EmptyLinesAroundModuleBody:
307
294
  Enabled: false
308
295
 
309
- Style/SpaceInsideHashLiteralBraces:
296
+ Layout/EndOfLine:
310
297
  Enabled: false
311
298
 
312
- Style/SpecialGlobalVars:
299
+ Layout/ExtraSpacing:
300
+ Enabled: true
301
+
302
+ Layout/IndentationConsistency:
303
+ Enabled: true
304
+
305
+ Layout/IndentationWidth:
306
+ Enabled: true
307
+
308
+ Layout/IndentHash:
309
+ Enabled: true
310
+
311
+ Layout/IndentHeredoc:
313
312
  Enabled: false
314
313
 
315
- Style/StringLiterals:
314
+ Layout/LeadingCommentSpace:
316
315
  Enabled: false
317
316
 
318
- Style/StringLiteralsInInterpolation:
317
+ Layout/MultilineOperationIndentation:
319
318
  Enabled: false
320
319
 
321
- Style/SymbolProc:
320
+ Layout/SpaceAroundBlockParameters:
321
+ EnforcedStyleInsidePipes: no_space
322
+ Enabled: true
323
+
324
+ Layout/SpaceAfterComma:
325
+ Enabled: false
326
+
327
+ Layout/SpaceAfterNot:
328
+ Enabled: true
329
+
330
+ Layout/SpaceAfterSemicolon:
331
+ Enabled: true
332
+
333
+ Layout/SpaceAroundEqualsInParameterDefault:
322
334
  Enabled: false
323
335
 
324
- Style/TrailingBlankLines:
336
+ Layout/SpaceAroundOperators:
325
337
  Enabled: false
326
338
 
327
- Style/TrailingCommaInLiteral:
339
+ Layout/SpaceBeforeBlockBraces:
328
340
  Enabled: false
329
341
 
330
- Style/WordArray:
331
- MinSize: 10
342
+ Layout/SpaceBeforeComma:
343
+ Enabled: true
332
344
 
333
- Style/UnneededPercentQ:
345
+ Layout/SpaceInsideBlockBraces:
334
346
  Enabled: false
335
347
 
336
- Style/WhileUntilModifier:
348
+ Layout/SpaceInsideHashLiteralBraces:
349
+ Enabled: false
350
+
351
+ Layout/SpaceInsideStringInterpolation:
352
+ EnforcedStyle: no_space
353
+ Enabled: true
354
+
355
+ Layout/TrailingBlankLines:
337
356
  Enabled: false
338
357
 
339
358
 
@@ -1,3 +1,63 @@
1
+ # Version 2.3.0
2
+
3
+ ## 新機能
4
+
5
+ * 連番がつかない表 `//emtable` を追加しました ([#777]) ([#787])
6
+ * EPUBMaker: 数式を画像にするオプション `imgmath` を追加しました ([#773]) ([#774])
7
+ * HTMLBuilder: 数式を画像にできるようにしました ([#774])
8
+
9
+ ## バグ修正
10
+
11
+ * LATEXBuilder: appendix内でのキャプションの章番号を修正しました ([#766])
12
+ * `//imgtable`を使った際、表の連番カウントがずれる問題を修正しました ([#782])
13
+ * 用語リストの直後に箇条書きを使った場合の不具合を修正しました ([#794])([#795])
14
+
15
+ ## 機能強化
16
+
17
+ * `doc/config.yml.sample`のbackcoverの説明を修正しました ([#765])([#767])
18
+ * 部(part)ファイル内で見出しや図表リストへの参照の接頭辞を修正しました ([#779])
19
+ * LATEXBuilder: LaTeX内で使用できる画像フォーマットの設定を修正しました ([#785])
20
+
21
+ ## ドキュメント
22
+
23
+ * `//embed` の説明を NEWS.ja.md にも追加しました
24
+ * `doc/NEWS.*`をトップレベルに移動しました ([#780])
25
+ * 他の章の図表の参照方法を追記しました ([#770]) ([#771])
26
+ * `//table`記法の説明を修正しました ([#776])
27
+ * gitレポジトリのURLに https: ではなく git: を使うよう修正しました ([#778])
28
+ * ChangeLogをアーカイブしました。今後はgit logをお使いください ([#784]) ([#788])
29
+
30
+ ## その他
31
+
32
+ * `.rubocop.yml` の警告を抑制しました
33
+
34
+ ## コントリビューターのみなさん
35
+
36
+ * [@karino2](https://github.com/karino2)
37
+ * [@imamurayusuke](https://github.com/imamurayusuke)
38
+ * [@znz](https://github.com/znz)
39
+ * [@hanachin](https://github.com/hanachin)
40
+
41
+ [#765]: https://github.com/kmuto/review/issues/765
42
+ [#766]: https://github.com/kmuto/review/issues/766
43
+ [#767]: https://github.com/kmuto/review/issues/767
44
+ [#770]: https://github.com/kmuto/review/issues/770
45
+ [#771]: https://github.com/kmuto/review/issues/771
46
+ [#773]: https://github.com/kmuto/review/issues/773
47
+ [#774]: https://github.com/kmuto/review/issues/774
48
+ [#776]: https://github.com/kmuto/review/issues/776
49
+ [#777]: https://github.com/kmuto/review/issues/777
50
+ [#778]: https://github.com/kmuto/review/issues/778
51
+ [#779]: https://github.com/kmuto/review/issues/779
52
+ [#780]: https://github.com/kmuto/review/issues/780
53
+ [#782]: https://github.com/kmuto/review/issues/782
54
+ [#784]: https://github.com/kmuto/review/issues/784
55
+ [#785]: https://github.com/kmuto/review/issues/785
56
+ [#787]: https://github.com/kmuto/review/issues/787
57
+ [#788]: https://github.com/kmuto/review/issues/788
58
+ [#795]: https://github.com/kmuto/review/issues/795
59
+
60
+
1
61
  # Version 2.2.0
2
62
 
3
63
  ## 新機能
@@ -1,3 +1,63 @@
1
+ # Version 2.3.0
2
+
3
+ ## New Features
4
+
5
+ * add `//emtable`, embedded table ([#777]) ([#787])
6
+ * EPUBMaker: add new option `imgmath` ([#773]) ([#774])
7
+ * HTMLBuilder: generate images for math notations ([#774])
8
+
9
+ ## Bug Fixes
10
+
11
+ * LATEXBuilder: fix chpation numbering in appendix ([#766])
12
+ * fix counting of `//imgtable` ([#782])
13
+ * fix handling of numbered/itemized list in dlist. ([#794])([#795])
14
+
15
+ ## Enhancements
16
+
17
+ * add comments of backcover in doc/config.yml.sample ([#765])([#767])
18
+ * use actual part counters for heading, list, image, and table in part ([#779])
19
+ * LATEXBuilder: define the acceptable image formats for LaTeX Builder ([#785])
20
+
21
+ ## Docs
22
+
23
+ * add `//embed` into NEWS.ja.md
24
+ * move `doc/NEWS.*` to top level directory ([#780])
25
+ * add how to refer images in other sections ([#770]) ([#771])
26
+ * fix description of `//table` markup ([#776])
27
+ * Use https: instead of git: ([#778])
28
+ * archive ChangeLog; use git log instead of ChangeLog ([#784]) ([#788])
29
+
30
+ ## Others
31
+
32
+ * fix `.rubocop.yml` and suppress warnings
33
+
34
+ ## Contributors
35
+
36
+ * [@karino2](https://github.com/karino2)
37
+ * [@imamurayusuke](https://github.com/imamurayusuke)
38
+ * [@znz](https://github.com/znz)
39
+ * [@hanachin](https://github.com/hanachin)
40
+
41
+ [#765]: https://github.com/kmuto/review/issues/765
42
+ [#766]: https://github.com/kmuto/review/issues/766
43
+ [#767]: https://github.com/kmuto/review/issues/767
44
+ [#770]: https://github.com/kmuto/review/issues/770
45
+ [#771]: https://github.com/kmuto/review/issues/771
46
+ [#773]: https://github.com/kmuto/review/issues/773
47
+ [#774]: https://github.com/kmuto/review/issues/774
48
+ [#776]: https://github.com/kmuto/review/issues/776
49
+ [#777]: https://github.com/kmuto/review/issues/777
50
+ [#778]: https://github.com/kmuto/review/issues/778
51
+ [#779]: https://github.com/kmuto/review/issues/779
52
+ [#780]: https://github.com/kmuto/review/issues/780
53
+ [#782]: https://github.com/kmuto/review/issues/782
54
+ [#784]: https://github.com/kmuto/review/issues/784
55
+ [#785]: https://github.com/kmuto/review/issues/785
56
+ [#787]: https://github.com/kmuto/review/issues/787
57
+ [#788]: https://github.com/kmuto/review/issues/788
58
+ [#795]: https://github.com/kmuto/review/issues/795
59
+
60
+
1
61
  # Version 2.2.0
2
62
 
3
63
  ## New Features
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # $Id: review-compile 4326 2010-01-12 14:10:17Z kmuto $
4
4
  #
5
- # Copyright (c) 2008-2016 Kenshi Muto, Masayoshi Takahashi, KADO Masanori, Minero Aoki
5
+ # Copyright (c) 2008-2017 Kenshi Muto, Masayoshi Takahashi, KADO Masanori, Minero Aoki
6
6
  # Copyright (c) 1999-2007 Minero Aoki
7
7
  #
8
8
  # This program is free software.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- #
4
- # Copyright (c) 2010-2013 Kenshi Muto and Masayoshi Takahashi
3
+
4
+ # Copyright (c) 2010-2017 Kenshi Muto and Masayoshi Takahashi
5
5
  #
6
6
  # This program is free software.
7
7
  # You can distribute or modify this program under the terms of
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- #
4
- # Copyright (c) 2010-2014 Kenshi Muto and Masayoshi Takahashi
3
+
4
+ # Copyright (c) 2010-2017 Kenshi Muto and Masayoshi Takahashi
5
5
  #
6
6
  # This program is free software.
7
7
  # You can distribute or modify this program under the terms of
@@ -5,7 +5,7 @@ Maintainer: Kenshi Muto <kmuto@debian.org>
5
5
  Build-Depends: debhelper (>= 7.0.50~), quilt (>= 0.46-7~)
6
6
  Standards-Version: 3.9.1
7
7
  Homepage: http://github.com/kmuto/review
8
- Vcs-Git: git://github.com/kmuto/review.git
8
+ Vcs-Git: https://github.com/kmuto/review.git
9
9
 
10
10
  Package: review
11
11
  Architecture: all