review 5.3.0 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby-tex.yml +1 -1
  3. data/.github/workflows/ruby.yml +1 -1
  4. data/.rubocop.yml +1 -322
  5. data/NEWS.ja.md +48 -0
  6. data/NEWS.md +48 -0
  7. data/README.md +9 -8
  8. data/bin/review +1 -1
  9. data/bin/review-catalog-converter +15 -15
  10. data/bin/review-check +7 -7
  11. data/bin/review-compile +6 -8
  12. data/bin/review-index +1 -1
  13. data/bin/review-preproc +1 -1
  14. data/bin/review-validate +2 -2
  15. data/doc/config.yml.sample +7 -1
  16. data/doc/config.yml.sample-simple +1 -1
  17. data/lib/review/book/base.rb +3 -3
  18. data/lib/review/book/book_unit.rb +1 -1
  19. data/lib/review/book/chapter.rb +1 -1
  20. data/lib/review/book/index.rb +3 -3
  21. data/lib/review/book/part.rb +12 -13
  22. data/lib/review/book/volume.rb +1 -1
  23. data/lib/review/builder.rb +10 -12
  24. data/lib/review/catalog.rb +5 -5
  25. data/lib/review/compiler.rb +13 -13
  26. data/lib/review/configure.rb +5 -2
  27. data/lib/review/epub2html.rb +12 -12
  28. data/lib/review/epubmaker/content.rb +1 -1
  29. data/lib/review/epubmaker/epubcommon.rb +44 -42
  30. data/lib/review/epubmaker/epubv2.rb +2 -1
  31. data/lib/review/epubmaker/epubv3.rb +5 -4
  32. data/lib/review/epubmaker/producer.rb +3 -3
  33. data/lib/review/epubmaker/reviewheaderlistener.rb +1 -1
  34. data/lib/review/epubmaker.rb +32 -31
  35. data/lib/review/extentions/string.rb +1 -1
  36. data/lib/review/htmlbuilder.rb +16 -15
  37. data/lib/review/htmlutils.rb +17 -17
  38. data/lib/review/i18n.rb +3 -3
  39. data/lib/review/idgxmlbuilder.rb +22 -21
  40. data/lib/review/idgxmlmaker.rb +15 -13
  41. data/lib/review/index_builder.rb +4 -20
  42. data/lib/review/init.rb +4 -4
  43. data/lib/review/latexbuilder.rb +30 -32
  44. data/lib/review/lineinput.rb +3 -3
  45. data/lib/review/location.rb +1 -1
  46. data/lib/review/logger.rb +21 -21
  47. data/lib/review/makerhelper.rb +3 -3
  48. data/lib/review/markdownbuilder.rb +6 -6
  49. data/lib/review/pdfmaker.rb +23 -19
  50. data/lib/review/plaintextbuilder.rb +5 -5
  51. data/lib/review/preprocessor/repository.rb +1 -1
  52. data/lib/review/preprocessor.rb +5 -5
  53. data/lib/review/textmaker.rb +20 -18
  54. data/lib/review/textutils.rb +3 -5
  55. data/lib/review/topbuilder.rb +71 -12
  56. data/lib/review/update.rb +16 -8
  57. data/lib/review/version.rb +1 -1
  58. data/lib/review/webmaker.rb +32 -32
  59. data/lib/review/webtocprinter.rb +10 -10
  60. data/lib/review/yamlloader.rb +35 -2
  61. data/review.gemspec +1 -0
  62. data/samples/sample-book/src/config.yml +0 -1
  63. data/templates/html/_titlepage.html.erb +9 -17
  64. data/templates/opf/opf_manifest_epubv2.opf.erb +1 -1
  65. data/templates/opf/opf_manifest_epubv3.opf.erb +1 -1
  66. data/test/book_test_helper.rb +10 -10
  67. data/test/test_epub3maker.rb +3 -3
  68. data/test/test_epubmaker.rb +14 -29
  69. data/test/test_epubmaker_cmd.rb +2 -2
  70. data/test/test_htmlbuilder.rb +4 -5
  71. data/test/test_idgxmlbuilder.rb +10 -10
  72. data/test/test_idgxmlmaker_cmd.rb +1 -1
  73. data/test/test_img_math.rb +11 -2
  74. data/test/test_latexbuilder.rb +2 -3
  75. data/test/test_pdfmaker_cmd.rb +10 -10
  76. data/test/test_textmaker_cmd.rb +1 -1
  77. data/test/test_topbuilder.rb +151 -11
  78. data/test/test_yamlloader.rb +28 -42
  79. metadata +8 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f75b248a75c068752f6940450fce0815923dd26423d339b50df3b137601742e0
4
- data.tar.gz: 37607fe69c2fa934968ee1a0f2f66415ee341b5ac777480a19d97086f99a9c15
3
+ metadata.gz: 3ad3162f29bf4de92283c57885f6b590ba44a6cb27c2d34a206c09b3609bf3d4
4
+ data.tar.gz: eb217e39616f9ec506079906643d47a73533ec3f19759f92bdb01b2bf4e30a68
5
5
  SHA512:
6
- metadata.gz: 88444aa04c1503229eab1a1342d672f9149f499ebc3d15025134f3bdbf96fe1036a96ae9729622eea72fcf39b42aead1c17a1fa802e51838d9dfe25d5e8b5df8
7
- data.tar.gz: 7096c49f6db52f29d81ec977479803fc55f6772d319ea96d30e673a72638a59d2031ca4bc88453d83e85e1141a1984724b2a88e253b6b786abe7a2c090565426
6
+ metadata.gz: 51ced5b39f84d352092f335e43f621e75d7dc2a096f7ce1f39aa62715e5bd858aafde903a96a3586980c6064909a8096b7405be6e851ff5c592ea68b04a1830b
7
+ data.tar.gz: 958233d45fec5df7643ead4e66bf4998494e30772e312c20f8f9348df1f863ff393284df8adb30fe35b457fa3d8e80a384f4bef3b1b83b5b53a54bfef1c4d280
@@ -13,7 +13,7 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- ruby: [2.5, 3.0]
16
+ ruby: ['2.5', '3.0', '3.1']
17
17
  os: [ubuntu-20.04]
18
18
  steps:
19
19
  - uses: actions/checkout@v2
@@ -13,7 +13,7 @@ jobs:
13
13
  strategy:
14
14
  fail-fast: false
15
15
  matrix:
16
- ruby: [2.4, 2.5, 2.6, 2.7, 3.0]
16
+ ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1']
17
17
  os: [ubuntu-latest, macOS-latest]
18
18
  steps:
19
19
  - uses: actions/checkout@v2
data/.rubocop.yml CHANGED
@@ -13,9 +13,6 @@ require:
13
13
 
14
14
  #### Lint
15
15
 
16
- Lint/EmptyWhen:
17
- Enabled: true
18
-
19
16
  Lint/NestedMethodDefinition:
20
17
  Exclude:
21
18
  - 'test/*'
@@ -23,85 +20,18 @@ Lint/NestedMethodDefinition:
23
20
  Lint/AssignmentInCondition:
24
21
  Enabled: false
25
22
 
26
- Lint/ParenthesesAsGroupedExpression:
27
- Enabled: true
28
-
29
- Lint/UnderscorePrefixedVariableName:
30
- Enabled: true
31
-
32
- Lint/UnusedBlockArgument:
33
- Enabled: true
34
-
35
- Lint/UnusedMethodArgument:
36
- Enabled: true
37
-
38
- Lint/UselessAssignment:
39
- Enabled: true
40
-
41
23
  Lint/ErbNewArguments:
42
24
  Enabled: false
43
25
 
44
- Lint/DeprecatedOpenSSLConstant:
45
- Enabled: true
46
-
47
- Lint/MixedRegexpCaptureTypes:
48
- Enabled: true
49
-
50
- Lint/RaiseException:
51
- Enabled: true
52
-
53
- Lint/StructNewOverride:
54
- Enabled: true
55
-
56
26
  # make it enable when supporting only Ruby 3.0 and higher.
57
27
  Lint/RedundantDirGlobSort:
58
28
  Enabled: false
59
29
 
60
- Lint/ElseLayout:
61
- Enabled: false
62
-
63
30
  #### Performance
64
31
 
65
- Performance/RegexpMatch:
66
- Enabled: false
67
-
68
- Performance/ReverseEach:
69
- Enabled: true
70
-
71
- # Use tr instead of gsub.
72
- Performance/StringReplacement:
73
- Enabled: true
74
-
75
- Performance/RangeInclude:
76
- Enabled: true
77
-
78
32
  Performance/DeletePrefix:
79
33
  Enabled: false
80
34
 
81
- Performance/RedundantMerge:
82
- Enabled: true
83
-
84
- Performance/AncestorsInclude:
85
- Enabled: true
86
-
87
- Performance/BigDecimalWithNumericArgument:
88
- Enabled: true
89
-
90
- Performance/RedundantSortBlock:
91
- Enabled: true
92
-
93
- Performance/RedundantStringChars:
94
- Enabled: true
95
-
96
- Performance/ReverseFirst:
97
- Enabled: true
98
-
99
- Performance/SortReverse:
100
- Enabled: true
101
-
102
- Performance/Squeeze:
103
- Enabled: true
104
-
105
35
  Performance/StringInclude:
106
36
  Enabled: false
107
37
 
@@ -110,9 +40,6 @@ Performance/CollectionLiteralInLoop:
110
40
 
111
41
  #### Style
112
42
 
113
- Style/AccessModifierDeclarations:
114
- Enabled: false
115
-
116
43
  Style/AsciiComments:
117
44
  Enabled: false
118
45
 
@@ -121,57 +48,19 @@ Style/Alias:
121
48
  EnforcedStyle: prefer_alias_method
122
49
  Enabled: true
123
50
 
124
- Style/AndOr:
125
- Enabled: true
126
-
127
51
  Style/BarePercentLiterals:
128
52
  EnforcedStyle: percent_q
129
53
  Enabled: true
130
54
 
131
- Style/BlockDelimiters:
132
- Enabled: true
133
-
134
- Style/CaseEquality:
135
- Enabled: false
136
-
137
- Style/ClassCheck:
138
- Enabled: true
139
-
140
- Style/ClassMethods:
141
- Enabled: true
142
-
143
55
  Style/CommentedKeyword:
144
56
  Enabled: false
145
57
 
146
58
  Style/DocumentDynamicEvalDefinition:
147
59
  Enabled: false
148
60
 
149
- Style/FloatDivision:
150
- Enabled: false
151
-
152
- # Do not introduce global variables.
153
- Style/GlobalVars:
154
- Enabled: true
155
-
156
- # Use self-assignment shorthand +=.
157
- Style/SelfAssignment:
158
- Enabled: true
159
-
160
- Style/ConditionalAssignment:
161
- Enabled: false
162
-
163
61
  Style/Documentation:
164
62
  Enabled: false
165
63
 
166
- Style/Encoding:
167
- Enabled: true
168
-
169
- Style/EmptyElse:
170
- Enabled: true
171
-
172
- Style/EvalWithLocation:
173
- Enabled: true
174
-
175
64
  Style/FormatString:
176
65
  EnforcedStyle: sprintf
177
66
  Enabled: true
@@ -182,21 +71,12 @@ Style/FormatStringToken:
182
71
  Style/GuardClause:
183
72
  Enabled: false
184
73
 
185
- Style/IfInsideElse:
186
- Enabled: true
187
-
188
74
  Style/IfUnlessModifier:
189
75
  Enabled: false
190
76
 
191
77
  Style/MutableConstant:
192
78
  Enabled: false
193
79
 
194
- Style/MultipleComparison:
195
- Enabled: true
196
-
197
- Style/RedundantInterpolation:
198
- Enabled: true
199
-
200
80
  Style/ZeroLengthPredicate:
201
81
  Enabled: false
202
82
 
@@ -218,9 +98,6 @@ Style/EmptyMethod:
218
98
  EnforcedStyle: expanded
219
99
  Enabled: true
220
100
 
221
- Style/HashSyntax:
222
- Enabled: true
223
-
224
101
  Style/RescueModifier:
225
102
  Enabled: false
226
103
 
@@ -228,21 +105,9 @@ Style/ClassAndModuleChildren:
228
105
  EnforcedStyle: nested
229
106
  Enabled: true
230
107
 
231
- Style/ColonMethodCall:
232
- Enabled: true
233
-
234
- Style/For:
235
- Enabled: true
236
-
237
- Style/InfiniteLoop:
238
- Enabled: true
239
-
240
108
  Style/LineEndConcatenation:
241
109
  Enabled: false
242
110
 
243
- Style/MethodCallWithoutArgsParentheses:
244
- Enabled: true
245
-
246
111
  Style/MethodCallWithArgsParentheses:
247
112
  IgnoredMethods:
248
113
  - 'require'
@@ -276,24 +141,9 @@ Style/MethodCallWithArgsParentheses:
276
141
  Style/MixinUsage:
277
142
  Enabled: false
278
143
 
279
- Style/MultilineBlockChain:
280
- Enabled: true
281
-
282
- Style/NegatedIf:
283
- Enabled: true
284
-
285
- Style/Next:
286
- Enabled: true
287
-
288
- Style/Not:
289
- Enabled: true
290
-
291
144
  Style/NumericLiterals:
292
145
  MinDigits: 6
293
146
 
294
- Style/PercentLiteralDelimiters:
295
- Enabled: true
296
-
297
147
  Style/PercentQLiterals:
298
148
  EnforcedStyle: upper_case_q
299
149
  Enabled: true
@@ -308,51 +158,15 @@ Style/RaiseArgs:
308
158
  Style/RedundantBegin:
309
159
  Enabled: false
310
160
 
311
- Style/RedundantParentheses:
312
- Enabled: true
313
-
314
161
  Style/RedundantReturn:
315
162
  Enabled: false
316
163
 
317
164
  Style/RedundantSelf:
318
165
  Enabled: false
319
166
 
320
- Style/RegexpLiteral:
321
- Enabled: true
322
-
323
- Style/RescueStandardError:
324
- Enabled: false
325
-
326
- Style/Semicolon:
327
- Enabled: true
328
-
329
- Style/SingleLineMethods:
330
- Enabled: true
331
-
332
- Style/SpecialGlobalVars:
333
- Enabled: true
334
-
335
167
  Style/StderrPuts:
336
168
  Enabled: false
337
169
 
338
- Style/StringLiterals:
339
- Enabled: true
340
-
341
- Style/StringLiteralsInInterpolation:
342
- Enabled: true
343
-
344
- Style/SymbolProc:
345
- Enabled: true
346
-
347
- Style/SymbolArray:
348
- Enabled: true
349
-
350
- Style/TrailingCommaInArrayLiteral:
351
- Enabled: true
352
-
353
- Style/TrailingCommaInHashLiteral:
354
- Enabled: true
355
-
356
170
  Style/WordArray:
357
171
  MinSize: 10
358
172
 
@@ -362,30 +176,6 @@ Style/RedundantPercentQ:
362
176
  Style/WhileUntilModifier:
363
177
  Enabled: false
364
178
 
365
- Style/YodaCondition:
366
- Enabled: true
367
-
368
- Style/ExponentialNotation:
369
- Enabled: true
370
-
371
- Style/HashEachMethods:
372
- Enabled: true
373
-
374
- Style/HashTransformKeys:
375
- Enabled: true
376
-
377
- Style/HashTransformValues:
378
- Enabled: true
379
-
380
- Style/RedundantFetchBlock:
381
- Enabled: true
382
-
383
- Style/RedundantRegexpCharacterClass:
384
- Enabled: true
385
-
386
- Style/RedundantRegexpEscape:
387
- Enabled: true
388
-
389
179
  Style/SlicingWithRange:
390
180
  Enabled: false
391
181
 
@@ -401,26 +191,13 @@ Style/StringConcatenation:
401
191
  Style/OptionalBooleanParameter:
402
192
  Enabled: false
403
193
 
404
- Style/SoleNestedConditional:
405
- Enabled: false
406
-
407
194
  Style/CombinableLoops:
408
195
  Enabled: false
409
196
 
410
197
  ### Layout
411
198
 
412
199
  Layout/BlockAlignment:
413
- Enabled: true
414
-
415
- Layout/EndAlignment:
416
- Enabled: true
417
-
418
- Layout/MultilineMethodCallBraceLayout:
419
- Enabled: true
420
-
421
- Layout/AccessModifierIndentation:
422
- EnforcedStyle: indent
423
- Enabled: true
200
+ Enabled: false
424
201
 
425
202
  Layout/ClosingHeredocIndentation:
426
203
  Enabled: false
@@ -429,99 +206,21 @@ Layout/DotPosition:
429
206
  EnforcedStyle: trailing
430
207
  Enabled: true
431
208
 
432
- Layout/EmptyLines:
433
- Enabled: true
434
-
435
- Layout/EmptyLineAfterGuardClause:
436
- Enabled: true
437
-
438
- Layout/EmptyLinesAroundAccessModifier:
439
- Enabled: true
440
-
441
- Layout/EmptyLinesAroundClassBody:
442
- Enabled: true
443
-
444
- Layout/EmptyLinesAroundMethodBody:
445
- Enabled: true
446
-
447
- Layout/EmptyLinesAroundModuleBody:
448
- Enabled: true
449
-
450
- Layout/EndOfLine:
451
- Enabled: true
452
-
453
- Layout/ExtraSpacing:
454
- Enabled: true
455
-
456
- Layout/IndentationConsistency:
457
- Enabled: true
458
-
459
- Layout/IndentationWidth:
460
- Enabled: true
461
-
462
- Layout/FirstHashElementIndentation:
463
- Enabled: true
464
-
465
209
  Layout/HeredocIndentation:
466
210
  Enabled: false
467
211
 
468
- Layout/LeadingCommentSpace:
469
- Enabled: true
470
-
471
- Layout/MultilineOperationIndentation:
472
- Enabled: true
473
-
474
212
  Layout/SpaceAroundBlockParameters:
475
213
  EnforcedStyleInsidePipes: no_space
476
214
  Enabled: true
477
215
 
478
- Layout/SpaceAfterComma:
479
- Enabled: true
480
-
481
- Layout/SpaceAfterNot:
482
- Enabled: true
483
-
484
- Layout/SpaceAfterSemicolon:
485
- Enabled: true
486
-
487
- Layout/SpaceAroundEqualsInParameterDefault:
488
- Enabled: true
489
-
490
- Layout/SpaceAroundOperators:
491
- Enabled: true
492
-
493
- Layout/SpaceBeforeBlockBraces:
494
- Enabled: true
495
-
496
- Layout/SpaceBeforeComma:
497
- Enabled: true
498
-
499
- Layout/SpaceInsideBlockBraces:
500
- Enabled: true
501
-
502
- Layout/SpaceInsideHashLiteralBraces:
503
- Enabled: true
504
-
505
- Layout/SpaceInsideArrayLiteralBrackets:
506
- Enabled: true
507
-
508
216
  Layout/SpaceInsideStringInterpolation:
509
217
  EnforcedStyle: no_space
510
218
  Enabled: true
511
219
 
512
- Layout/TrailingEmptyLines:
513
- Enabled: true
514
-
515
220
  Layout/TrailingWhitespace:
516
221
  Enabled: true
517
222
  AllowInHeredoc: true
518
223
 
519
- Layout/EmptyLinesAroundAttributeAccessor:
520
- Enabled: true
521
-
522
- Layout/SpaceAroundMethodCallOperator:
523
- Enabled: true
524
-
525
224
  Layout/LineLength:
526
225
  Max: 256
527
226
  Exclude:
@@ -576,32 +275,15 @@ Metrics/BlockLength:
576
275
 
577
276
  ## Naming
578
277
 
579
- Naming/AccessorMethodName:
580
- Enabled: true
581
-
582
- # When defining the == operator, name its argument other.
583
- Naming/BinaryOperatorParameterName:
584
- Enabled: true
585
-
586
278
  Naming/FileName:
587
279
  Enabled: false
588
280
 
589
281
  Naming/HeredocDelimiterNaming:
590
282
  Enabled: false
591
283
 
592
- Naming/MemoizedInstanceVariableName:
593
- Enabled: true
594
-
595
- Naming/MethodName:
596
- Enabled: true
597
-
598
284
  Naming/MethodParameterName:
599
285
  Enabled: false
600
286
 
601
- # Use snake_case for variable names.
602
- Naming/VariableName:
603
- Enabled: true
604
-
605
287
  Naming/VariableNumber:
606
288
  EnforcedStyle: normalcase
607
289
  Enabled: true
@@ -610,9 +292,6 @@ Naming/VariableNumber:
610
292
 
611
293
  #### Security
612
294
 
613
- Security/YAMLLoad:
614
- Enabled: true
615
-
616
295
  #### Gemspec
617
296
 
618
297
  Gemspec/RequiredRubyVersion:
data/NEWS.ja.md CHANGED
@@ -1,3 +1,51 @@
1
+ # Version 5.4.0
2
+ ## 新機能
3
+ * Re:VIEW に関する質問の受け付けに対応する [GitHub Discussions](https://github.com/kmuto/review/discussions) を開始しました
4
+
5
+ ## 非互換の変更
6
+ * EPUBMaker: opf ファイルの `manifest` 内の `item` を ID 文字列の辞書順でソートするようにしました ([#1763])
7
+ * TextMaker: 表の見出しセル行を太字表現(★〜☆)にするのではなく、見出しセル行と通常セル行の区切り線を入れるようにしました。従来の太字表現に戻すには `textmaker` セクションの `th_bold` パラメータを true に設定してください ([#1789])
8
+ * TextMaker: `//indepimage` 命令の出力結果を `//image` に合わせました。開始・終了マークが入り、画像ファイルが見つからないときにはコメント内容を出力するようになります ([#1790])
9
+ * TextMaker: `//imgtable` 命令の出力結果を `//image` および `//table` に合わせました。開始・終了マークが入り、画像ファイルが見つからないときにはコメント内容を出力するようになります ([#1791])
10
+ * ハイライト有効時に、`//source` 命令もハイライト対象として中身をエスケープしないようにしました ([#1788])
11
+
12
+ ## バグ修正
13
+ * Ruby 3.1 で YAML のエラーが発生するのを修正し、互換性も持たせました ([#1767], [#1775])
14
+ * EPUBMaker: `epub:type=cover` が大扉や奥付に入るのを修正しました ([#1776])
15
+ * 無効な urnid の例がサンプルとして示されているのを削除しました ([#1779])
16
+ * config.yml の YAML 構文にエラーがあったときに例外ではなく妥当なエラーを返すようにしました ([#1797])
17
+ * IDGXMLMaker: secttags を有効にしている状態で前付や後付がエラーになるのを修正しました ([#1800])
18
+
19
+ ## 機能強化
20
+ * EPUBMaker, WebMaker: 表紙・大扉・奥付・部のベーステンプレートに通常の章と同じく `layout.html.erb` または `layout-web.html.erb` を使うようにしました ([#1780])
21
+ * EPUBMaker, WebMaker: 表紙・大扉・奥付・部のカスタムテンプレートとして、`layouts` フォルダの `_cover.html.erb`、`_titlepage.html.erb`、`_colophon.html.erb`、`_colophon_history.html.erb`、`_part_body.html.erb` で上書きできるようにしました ([#1777])
22
+
23
+ ## ドキュメント
24
+ * GitHub Discussions について README.md に記載しました ([#1772])
25
+
26
+ ## その他
27
+ * RuboCop 1.25.1 の指摘を反映しました ([#1773], [#1782], [#1783], [#1784], [#1792])
28
+
29
+ [#1763]: https://github.com/kmuto/review/pull/1763
30
+ [#1767]: https://github.com/kmuto/review/pull/1767
31
+ [#1772]: https://github.com/kmuto/review/pull/1772
32
+ [#1773]: https://github.com/kmuto/review/pull/1773
33
+ [#1775]: https://github.com/kmuto/review/pull/1775
34
+ [#1776]: https://github.com/kmuto/review/pull/1776
35
+ [#1777]: https://github.com/kmuto/review/issues/1777
36
+ [#1779]: https://github.com/kmuto/review/pull/1779
37
+ [#1780]: https://github.com/kmuto/review/pull/1780
38
+ [#1782]: https://github.com/kmuto/review/pull/1782
39
+ [#1783]: https://github.com/kmuto/review/pull/1783
40
+ [#1784]: https://github.com/kmuto/review/pull/1784
41
+ [#1788]: https://github.com/kmuto/review/pull/1788
42
+ [#1789]: https://github.com/kmuto/review/issues/1789
43
+ [#1790]: https://github.com/kmuto/review/issues/1790
44
+ [#1791]: https://github.com/kmuto/review/issues/1791
45
+ [#1792]: https://github.com/kmuto/review/pull/1792
46
+ [#1797]: https://github.com/kmuto/review/issues/1797
47
+ [#1800]: https://github.com/kmuto/review/pull/1800
48
+
1
49
  # Version 5.3.0
2
50
  ## 新機能
3
51
  * 後注のサポートを追加しました。`//endnote` 命令で後注内容、`@<endnote>` 命令で後注参照、`//printendnotes` 命令で後注を配置する場所を指定します ([#1724])
data/NEWS.md CHANGED
@@ -1,3 +1,51 @@
1
+ # Version 5.4.0
2
+ ## New Features
3
+ * [GitHub Discussions](https://github.com/kmuto/review/discussions) has been opened to answer questions about Re:VIEW
4
+
5
+ ## Breaking Changes
6
+ * EPUBMaker: `manifest/item` in the opf file is now sorted by the dictional order of ID strings ([#1763])
7
+ * TextMaker: the separator line now put between the heading rows and the normal rows of the table. To revert this behavior to old version, set `textmaker/th_bold` parameter to true ([#1789])
8
+ * TextMaker: the output result of the `//indepimage` op has been adjusted to `//image` ([#1790])
9
+ * TextMaker: the output result of the `//imgtable` op has been adjusted to `//image` and `//table` ([#1791])
10
+ * `//source` op is now also not escaped when highlighting is enabled ([#1788])
11
+
12
+ ## Bug Fixes
13
+ * fixed YAML error in Ruby 3.1 and kept backward compatibility ([#1767], [#1775])
14
+ * EPUBMaker: removed `epub:type=cover` from titlepage and colophon ([#1776])
15
+ * removed invalid urnid sample ([#1779])
16
+ * when there is a syntax error in config.yml, exit with proper error message instead of an exception ([#1797])
17
+ * IDGXMLMaker: fixed an error to compile prefaces or postfaces when secttags is enabled ([#1800])
18
+
19
+ ## Enhancements
20
+ * EPUBMaker, WebMaker: use `layout.html.erb` or `layout-web.html.erb` as the base template for cover, titlepage, colophon, and part, just like regular chapters ([#1780])
21
+ * EPUBMaker, WebMaker: cover, titlepage, colophon, and part can now be overwritten with `_cover.html.erb`, `_titlepage.html.erb`, `_colophon.html.erb`, `_colophon_history.html.erb`, and `_part_body.html.erb` ([#1777])
22
+
23
+ ## Docs
24
+ * mentioned GitHub Discussions in README.md ([#1772])
25
+
26
+ ## Others
27
+ * refactor code with RuboCop 1.25.1 ([#1773], [#1782], [#1783], [#1784], [#1792])
28
+
29
+ [#1763]: https://github.com/kmuto/review/pull/1763
30
+ [#1767]: https://github.com/kmuto/review/pull/1767
31
+ [#1772]: https://github.com/kmuto/review/pull/1772
32
+ [#1773]: https://github.com/kmuto/review/pull/1773
33
+ [#1775]: https://github.com/kmuto/review/pull/1775
34
+ [#1776]: https://github.com/kmuto/review/pull/1776
35
+ [#1777]: https://github.com/kmuto/review/issues/1777
36
+ [#1779]: https://github.com/kmuto/review/pull/1779
37
+ [#1780]: https://github.com/kmuto/review/pull/1780
38
+ [#1782]: https://github.com/kmuto/review/pull/1782
39
+ [#1783]: https://github.com/kmuto/review/pull/1783
40
+ [#1784]: https://github.com/kmuto/review/pull/1784
41
+ [#1788]: https://github.com/kmuto/review/pull/1788
42
+ [#1789]: https://github.com/kmuto/review/issues/1789
43
+ [#1790]: https://github.com/kmuto/review/issues/1790
44
+ [#1791]: https://github.com/kmuto/review/issues/1791
45
+ [#1792]: https://github.com/kmuto/review/pull/1792
46
+ [#1797]: https://github.com/kmuto/review/issues/1797
47
+ [#1800]: https://github.com/kmuto/review/pull/1800
48
+
1
49
  # Version 5.3.0
2
50
  ## New Features
3
51
  * add the future of endnote. `//endnote` specifies the content of the endnote, `@<endnote>` specifies the reference to the endnote, and `//printendnotes` places endnotes ([#1724])
data/README.md CHANGED
@@ -74,13 +74,14 @@ For further information, see [doc/quickstart.md](https://github.com/kmuto/review
74
74
 
75
75
  ## Resources
76
76
 
77
- | | URL |
78
- |---------|----------------------------------------|
79
- | Home | http://reviewml.org |
80
- | Project | https://github.com/kmuto/review/ |
81
- | Gems | https://rubygems.org/gems/review |
82
- | Wiki | https://github.com/kmuto/review/wiki |
83
- | Bugs | https://github.com/kmuto/review/issues |
77
+ | | URL |
78
+ |---------|---------------------------------------------|
79
+ | Home | http://reviewml.org |
80
+ | Project | https://github.com/kmuto/review/ |
81
+ | Gems | https://rubygems.org/gems/review |
82
+ | Q&A | https://github.com/kmuto/review/discussions |
83
+ | Wiki | https://github.com/kmuto/review/wiki |
84
+ | Bugs | https://github.com/kmuto/review/issues |
84
85
 
85
86
  ### Documents
86
87
 
@@ -116,4 +117,4 @@ Exception:
116
117
 
117
118
  ## Copyright
118
119
 
119
- Copyright (c) 2006-2021 Minero Aoki, Kenshi Muto, Masayoshi Takahashi, Masanori Kado.
120
+ Copyright (c) 2006-2022 Minero Aoki, Kenshi Muto, Masayoshi Takahashi, Masanori Kado.
data/bin/review CHANGED
@@ -58,7 +58,7 @@ unless File.exist?(command_path)
58
58
  usage
59
59
  end
60
60
 
61
- if RUBY_PLATFORM =~ /mswin|bccwin|mingw/
61
+ if RUBY_PLATFORM.match?(/mswin|bccwin|mingw/)
62
62
  cmd = File.join(RbConfig::CONFIG['bindir'],
63
63
  RbConfig::CONFIG['ruby_install_name'])
64
64
  cmd << RbConfig::CONFIG['EXEEXT']