metanorma-iso 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module ISO
3
- VERSION = "1.6.0".freeze
3
+ VERSION = "1.6.1".freeze
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
31
31
 
32
32
  spec.add_dependency "ruby-jing"
33
- spec.add_dependency "isodoc", "~> 1.4.0"
33
+ spec.add_dependency "isodoc", "~> 1.4.2"
34
34
  spec.add_dependency "metanorma-standoc", "~> 1.7.0"
35
35
  spec.add_dependency "tokenizer", "~> 0.3.0"
36
36
  spec.add_dependency "twitter_cldr"
@@ -3,7 +3,7 @@ require "fileutils"
3
3
 
4
4
  RSpec.describe Asciidoctor::ISO do
5
5
  it "processes amendment sections" do
6
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
7
7
  #{AMD_BLANK_HDR}
8
8
  == Foreword
9
9
 
@@ -132,7 +132,7 @@ OUTPUT
132
132
  end
133
133
 
134
134
  it "processes default metadata, amendment" do
135
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
135
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
136
136
  = Document title
137
137
  Author
138
138
  :docfile: test.adoc
@@ -284,7 +284,7 @@ OUTPUT
284
284
  end
285
285
 
286
286
  it "processes metadata, amendment" do
287
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
287
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
288
288
  = Document title
289
289
  Author
290
290
  :docfile: test.adoc
@@ -325,7 +325,7 @@ INPUT
325
325
  <substage>00</substage>
326
326
  </status>
327
327
  <copyright>
328
- <from>2020</from>
328
+ <from>#{Time.now.year}</from>
329
329
  <owner>
330
330
  <organization>
331
331
  <name>International Organization for Standardization</name>
@@ -352,7 +352,7 @@ OUTPUT
352
352
  end
353
353
 
354
354
  it "processes metadata, amendment" do
355
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
355
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
356
356
  = Document title
357
357
  Author
358
358
  :docfile: test.adoc
@@ -393,7 +393,7 @@ INPUT
393
393
  <substage>00</substage>
394
394
  </status>
395
395
  <copyright>
396
- <from>2020</from>
396
+ <from>#{Time.now.year}</from>
397
397
  <owner>
398
398
  <organization>
399
399
  <name>International Organization for Standardization</name>
@@ -420,7 +420,7 @@ OUTPUT
420
420
  end
421
421
 
422
422
  it "processes metadata, amendment" do
423
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
423
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
424
424
  = Document title
425
425
  Author
426
426
  :docfile: test.adoc
@@ -460,7 +460,7 @@ INPUT
460
460
  <substage>60</substage>
461
461
  </status>
462
462
  <copyright>
463
- <from>2020</from>
463
+ <from>#{Time.now.year}</from>
464
464
  <owner>
465
465
  <organization>
466
466
  <name>International Organization for Standardization</name>
@@ -487,7 +487,7 @@ OUTPUT
487
487
  end
488
488
 
489
489
  it "processes metadata, corrigendum" do
490
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
490
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
491
491
  = Document title
492
492
  Author
493
493
  :docfile: test.adoc
@@ -528,7 +528,7 @@ INPUT
528
528
  <substage>00</substage>
529
529
  </status>
530
530
  <copyright>
531
- <from>2020</from>
531
+ <from>#{Time.now.year}</from>
532
532
  <owner>
533
533
  <organization>
534
534
  <name>International Organization for Standardization</name>
@@ -555,7 +555,7 @@ OUTPUT
555
555
  end
556
556
 
557
557
  it "processes metadata, corrigendum" do
558
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
558
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
559
559
  = Document title
560
560
  Author
561
561
  :docfile: test.adoc
@@ -596,7 +596,7 @@ INPUT
596
596
  <substage>00</substage>
597
597
  </status>
598
598
  <copyright>
599
- <from>2020</from>
599
+ <from>#{Time.now.year}</from>
600
600
  <owner>
601
601
  <organization>
602
602
  <name>International Organization for Standardization</name>
@@ -623,7 +623,7 @@ OUTPUT
623
623
  end
624
624
 
625
625
  it "processes metadata, corrigendum" do
626
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
626
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
627
627
  = Document title
628
628
  Author
629
629
  :docfile: test.adoc
@@ -663,7 +663,7 @@ INPUT
663
663
  <substage>60</substage>
664
664
  </status>
665
665
  <copyright>
666
- <from>2020</from>
666
+ <from>#{Time.now.year}</from>
667
667
  <owner>
668
668
  <organization>
669
669
  <name>International Organization for Standardization</name>
@@ -7,7 +7,7 @@ RSpec.describe Asciidoctor::ISO do
7
7
  end
8
8
 
9
9
  it "processes a blank document" do
10
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
10
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
11
11
  #{ASCIIDOC_BLANK_HDR}
12
12
  INPUT
13
13
  #{BLANK_HDR}
@@ -21,7 +21,7 @@ RSpec.describe Asciidoctor::ISO do
21
21
  FileUtils.rm_f "test.html"
22
22
  FileUtils.rm_f "test.pdf"
23
23
  FileUtils.rm_f "test_alt.html"
24
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
24
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
25
25
  = Document title
26
26
  Author
27
27
  :docfile: test.adoc
@@ -40,7 +40,7 @@ RSpec.describe Asciidoctor::ISO do
40
40
  end
41
41
 
42
42
  it "converts a blank document in French" do
43
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
43
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
44
44
  = Document title
45
45
  Author
46
46
  :docfile: test.adoc
@@ -56,7 +56,7 @@ RSpec.describe Asciidoctor::ISO do
56
56
  end
57
57
 
58
58
  it "processes default metadata" do
59
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
59
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
60
60
  = Document title
61
61
  Author
62
62
  :docfile: test.adoc
@@ -185,7 +185,7 @@ RSpec.describe Asciidoctor::ISO do
185
185
 
186
186
 
187
187
  it "processes complex metadata" do
188
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
188
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
189
189
  = Document title
190
190
  Author
191
191
  :docfile: test.adoc
@@ -299,7 +299,7 @@ RSpec.describe Asciidoctor::ISO do
299
299
  end
300
300
 
301
301
  it "processes subdivisions" do
302
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, "")))).to be_equivalent_to xmlpp(<<~"OUTPUT")
302
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, "")))).to be_equivalent_to xmlpp(<<~"OUTPUT")
303
303
  = Document title
304
304
  Author
305
305
  :docfile: test.adoc
@@ -373,7 +373,7 @@ RSpec.describe Asciidoctor::ISO do
373
373
  <substage>60</substage>
374
374
  </status>
375
375
  <copyright>
376
- <from>2020</from>
376
+ <from>#{Time.now.year}</from>
377
377
  <owner>
378
378
  <organization>
379
379
  <name>International Organization for Standardization</name>
@@ -409,7 +409,7 @@ OUTPUT
409
409
  end
410
410
 
411
411
  it "defaults substage, defines iteration on stage 50, gives stage 50 on technical specification" do
412
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
412
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
413
413
  = Document title
414
414
  Author
415
415
  :docfile: test.adoc
@@ -478,7 +478,7 @@ OUTPUT
478
478
  end
479
479
 
480
480
  it "defaults substage for stage 60" do
481
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
481
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
482
482
  = Document title
483
483
  Author
484
484
  :docfile: test.adoc
@@ -543,7 +543,7 @@ OUTPUT
543
543
  end
544
544
 
545
545
  it "populates metadata for PRF" do
546
- expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
546
+ expect(xmlpp(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true).sub(%r{<boilerplate>.*</boilerplate>}m, ""))).to be_equivalent_to xmlpp(<<~"OUTPUT")
547
547
  = Document title
548
548
  Author
549
549
  :docfile: test.adoc
@@ -611,7 +611,7 @@ OUTPUT
611
611
 
612
612
  it "reads scripts into blank HTML document" do
613
613
  FileUtils.rm_f "test.html"
614
- Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
614
+ Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
615
615
  = Document title
616
616
  Author
617
617
  :docfile: test.adoc
@@ -625,7 +625,7 @@ OUTPUT
625
625
 
626
626
  it "uses default fonts" do
627
627
  FileUtils.rm_f "test.html"
628
- Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
628
+ Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
629
629
  = Document title
630
630
  Author
631
631
  :docfile: test.adoc
@@ -641,7 +641,7 @@ OUTPUT
641
641
 
642
642
  it "uses default fonts for alt doc" do
643
643
  FileUtils.rm_f "test_alt.html"
644
- Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
644
+ Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
645
645
  = Document title
646
646
  Author
647
647
  :docfile: test.adoc
@@ -657,7 +657,7 @@ OUTPUT
657
657
 
658
658
  it "uses Chinese fonts" do
659
659
  FileUtils.rm_f "test.html"
660
- Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
660
+ Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
661
661
  = Document title
662
662
  Author
663
663
  :docfile: test.adoc
@@ -674,7 +674,7 @@ OUTPUT
674
674
 
675
675
  it "uses specified fonts" do
676
676
  FileUtils.rm_f "test.html"
677
- Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
677
+ Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
678
678
  = Document title
679
679
  Author
680
680
  :docfile: test.adoc
@@ -695,7 +695,7 @@ OUTPUT
695
695
  it "strips MS-specific CSS" do
696
696
  FileUtils.rm_f "test.html"
697
697
  FileUtils.rm_f "test.doc"
698
- Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)
698
+ Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)
699
699
  = Document title
700
700
  Author
701
701
  :docfile: test.adoc
@@ -2,7 +2,7 @@ require "spec_helper"
2
2
 
3
3
  RSpec.describe Asciidoctor::ISO do
4
4
  it "processes open blocks" do
5
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
5
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
6
6
  #{ASCIIDOC_BLANK_HDR}
7
7
  --
8
8
  x
@@ -21,7 +21,7 @@ RSpec.describe Asciidoctor::ISO do
21
21
  end
22
22
 
23
23
  it "processes stem blocks" do
24
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
24
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
25
25
  #{ASCIIDOC_BLANK_HDR}
26
26
  [stem]
27
27
  ++++
@@ -49,7 +49,7 @@ RSpec.describe Asciidoctor::ISO do
49
49
  end
50
50
 
51
51
  it "ignores review blocks unless document is in draft mode" do
52
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
52
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
53
53
  #{ASCIIDOC_BLANK_HDR}
54
54
  [[foreword]]
55
55
  .Foreword
@@ -70,7 +70,7 @@ RSpec.describe Asciidoctor::ISO do
70
70
  end
71
71
 
72
72
  it "processes review blocks if document is in draft mode" do
73
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)).sub(/^.+<sections>/m, "<iso-standard><sections>"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
73
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)).sub(/^.+<sections>/m, "<iso-standard><sections>"))).to be_equivalent_to xmlpp(<<~"OUTPUT")
74
74
  = Document title
75
75
  Author
76
76
  :docfile: test.adoc
@@ -100,7 +100,7 @@ RSpec.describe Asciidoctor::ISO do
100
100
  end
101
101
 
102
102
  it "processes term notes" do
103
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
103
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
104
104
  #{ASCIIDOC_BLANK_HDR}
105
105
  == Terms and Definitions
106
106
 
@@ -126,7 +126,7 @@ RSpec.describe Asciidoctor::ISO do
126
126
  end
127
127
 
128
128
  it "processes notes" do
129
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
129
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
130
130
  #{ASCIIDOC_BLANK_HDR}
131
131
  NOTE: This is a note
132
132
  INPUT
@@ -142,7 +142,7 @@ RSpec.describe Asciidoctor::ISO do
142
142
  end
143
143
 
144
144
  it "processes literals" do
145
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
145
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
146
146
  #{ASCIIDOC_BLANK_HDR}
147
147
  ....
148
148
  LITERAL
@@ -159,7 +159,7 @@ RSpec.describe Asciidoctor::ISO do
159
159
  end
160
160
 
161
161
  it "processes simple admonitions with Asciidoc names" do
162
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
162
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
163
163
  #{ASCIIDOC_BLANK_HDR}
164
164
  CAUTION: Only use paddy or parboiled rice for the determination of husked rice yield.
165
165
  INPUT
@@ -176,7 +176,7 @@ RSpec.describe Asciidoctor::ISO do
176
176
 
177
177
 
178
178
  it "processes complex admonitions with non-Asciidoc names" do
179
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
179
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
180
180
  #{ASCIIDOC_BLANK_HDR}
181
181
  [CAUTION,type=Safety Precautions]
182
182
  .Safety Precautions
@@ -209,7 +209,7 @@ RSpec.describe Asciidoctor::ISO do
209
209
  end
210
210
 
211
211
  it "processes term examples" do
212
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
212
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
213
213
  #{ASCIIDOC_BLANK_HDR}
214
214
  == Terms and Definitions
215
215
 
@@ -237,7 +237,7 @@ RSpec.describe Asciidoctor::ISO do
237
237
  end
238
238
 
239
239
  it "processes examples" do
240
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
240
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
241
241
  #{ASCIIDOC_BLANK_HDR}
242
242
  [example]
243
243
  ====
@@ -256,7 +256,7 @@ RSpec.describe Asciidoctor::ISO do
256
256
  end
257
257
 
258
258
  it "processes preambles" do
259
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
259
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
260
260
  #{ASCIIDOC_BLANK_HDR}
261
261
  This is a preamble
262
262
 
@@ -275,7 +275,7 @@ RSpec.describe Asciidoctor::ISO do
275
275
  end
276
276
 
277
277
  it "processes images" do
278
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
278
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
279
279
  #{ASCIIDOC_BLANK_HDR}
280
280
  .Split-it-right sample divider
281
281
  image::spec/examples/rice_images/rice_image1.png[]
@@ -293,7 +293,7 @@ RSpec.describe Asciidoctor::ISO do
293
293
  end
294
294
 
295
295
  it "accepts width and height attributes on images" do
296
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
296
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
297
297
  #{ASCIIDOC_BLANK_HDR}
298
298
  [height=4,width=3]
299
299
  image::spec/examples/rice_images/rice_image1.png[]
@@ -310,7 +310,7 @@ RSpec.describe Asciidoctor::ISO do
310
310
  end
311
311
 
312
312
  it "accepts auto for width and height attributes on images" do
313
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
313
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
314
314
  #{ASCIIDOC_BLANK_HDR}
315
315
  [height=4,width=auto]
316
316
  image::spec/examples/rice_images/rice_image1.png[]
@@ -327,7 +327,7 @@ RSpec.describe Asciidoctor::ISO do
327
327
  end
328
328
 
329
329
  it "accepts alignment attribute on paragraphs" do
330
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
330
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
331
331
  #{ASCIIDOC_BLANK_HDR}
332
332
  [align=right]
333
333
  This para is right-aligned.
@@ -341,7 +341,7 @@ RSpec.describe Asciidoctor::ISO do
341
341
  end
342
342
 
343
343
  it "processes blockquotes" do
344
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
344
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
345
345
  #{ASCIIDOC_BLANK_HDR}
346
346
  [quote, ISO, "ISO7301,section 1"]
347
347
  ____
@@ -365,7 +365,7 @@ RSpec.describe Asciidoctor::ISO do
365
365
  end
366
366
 
367
367
  it "processes source code" do
368
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
368
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
369
369
  #{ASCIIDOC_BLANK_HDR}
370
370
  [source,ruby]
371
371
  --
@@ -387,7 +387,7 @@ RSpec.describe Asciidoctor::ISO do
387
387
  end
388
388
 
389
389
  it "processes callouts" do
390
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
390
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
391
391
  #{ASCIIDOC_BLANK_HDR}
392
392
  [source,ruby]
393
393
  --
@@ -414,7 +414,7 @@ RSpec.describe Asciidoctor::ISO do
414
414
  end
415
415
 
416
416
  it "processes unmodified term sources" do
417
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
417
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
418
418
  #{ASCIIDOC_BLANK_HDR}
419
419
  == Terms and Definitions
420
420
 
@@ -445,7 +445,7 @@ RSpec.describe Asciidoctor::ISO do
445
445
  end
446
446
 
447
447
  it "processes modified term sources" do
448
- expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
448
+ expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iso, header_footer: true, agree_to_terms: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
449
449
  #{ASCIIDOC_BLANK_HDR}
450
450
  == Terms and Definitions
451
451