metanorma-iec 1.2.11 → 1.2.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "1.2.11"
3
+ VERSION = "1.2.12"
4
4
  end
5
5
  end
6
6
 
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
29
29
 
30
30
  spec.add_dependency "ruby-jing"
31
- spec.add_dependency "metanorma-iso", "~> 1.6.0"
31
+ spec.add_dependency "metanorma-iso", "~> 1.6.1"
32
32
 
33
33
  spec.add_development_dependency "byebug"
34
34
  spec.add_development_dependency "sassc", "2.4.0"
@@ -2,6 +2,11 @@ require "spec_helper"
2
2
  require "fileutils"
3
3
 
4
4
  RSpec.describe Asciidoctor::Iec do
5
+ before(:all) do
6
+ @blank_hdr = blank_hdr_gen
7
+ end
8
+
9
+
5
10
  it "has a version number" do
6
11
  expect(Metanorma::Iec::VERSION).not_to be nil
7
12
  end
@@ -21,7 +26,7 @@ RSpec.describe Asciidoctor::Iec do
21
26
  expect(xmlpp(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true)))).to be_equivalent_to xmlpp(<<~"OUTPUT")
22
27
  #{ASCIIDOC_BLANK_HDR}
23
28
  INPUT
24
- #{BLANK_HDR}
29
+ #{@blank_hdr}
25
30
  <sections/>
26
31
  </iec-standard>
27
32
  OUTPUT
@@ -38,7 +43,7 @@ RSpec.describe Asciidoctor::Iec do
38
43
  :novalid:
39
44
  :no-isobib:
40
45
  INPUT
41
- #{BLANK_HDR}
46
+ #{@blank_hdr}
42
47
  <sections/>
43
48
  </iec-standard>
44
49
  OUTPUT
@@ -94,6 +99,8 @@ RSpec.describe Asciidoctor::Iec do
94
99
  :accessibility-color-inside: true
95
100
  :price-code: XC
96
101
  :cen-processing: true
102
+ :secretary: Fred Nerk
103
+ :interest-to-committees: TC 6121, SC 12
97
104
  INPUT
98
105
  <?xml version="1.0" encoding="UTF-8"?>
99
106
  <iec-standard xmlns="https://www.metanorma.org/ns/iec" type="semantic" version="#{Metanorma::Iec::VERSION}">
@@ -171,9 +178,141 @@ RSpec.describe Asciidoctor::Iec do
171
178
  <accessibility-color-inside>true</accessibility-color-inside>
172
179
  <price-code>XC</price-code>
173
180
  <cen-processing>true</cen-processing>
181
+ <secretary>Fred Nerk</secretary>
182
+ <interest-to-committees>TC 6121, SC 12</interest-to-committees>
174
183
  </ext>
175
184
  </bibdata>
176
- #{UNPUBLISHED_BOILERPLATE}
185
+ <boilerplate>
186
+ <copyright-statement>
187
+ <clause>
188
+ <p id='_'>
189
+ <strong>Copyright © #{Time.now.year} International Electrotechnical Commission, IEC.</strong>
190
+ All rights reserved. It is permitted to download this electronic
191
+ file, to make a copy and to print out the content for the sole purpose
192
+ of preparing National Committee positions. You may not copy or
193
+ “mirror” the file or printed version of the document, or any part of
194
+ it, for any other purpose without permission in writing from IEC.
195
+ </p>
196
+ </clause>
197
+ </copyright-statement>
198
+ <legal-statement>
199
+ <clause>
200
+ <ol id='_'>
201
+ <li>
202
+ <p id='_'>
203
+ The International Electrotechnical Commission (IEC) is a worldwide
204
+ organization for standardization comprising all national
205
+ electrotechnical committees (IEC National Committees). The object
206
+ of IEC is to promote international co-operation on all questions
207
+ concerning standardization in the electrical and electronic
208
+ fields. To this end and in addition to other activities, IEC
209
+ publishes International Standards, Technical Specifications,
210
+ Technical Reports, Publicly Available Specifications (PAS) and
211
+ Guides (hereafter referred to as “IEC Publication(s)”). Their
212
+ preparation is entrusted to technical committees; any IEC National
213
+ Committee interested in the subject dealt with may participate in
214
+ this preparatory work. International, governmental and
215
+ non-governmental organizations liaising with the IEC also
216
+ participate in this preparation. IEC collaborates closely with the
217
+ International Organization for Standardization (ISO) in accordance
218
+ with conditions determined by agreement between the two
219
+ organizations.
220
+ </p>
221
+ </li>
222
+ <li>
223
+ <p id='_'>
224
+ The formal decisions or agreements of IEC on technical matters
225
+ express, as nearly as possible, an international consensus of
226
+ opinion on the relevant subjects since each technical committee
227
+ has representation from all interested IEC National Committees.
228
+ </p>
229
+ </li>
230
+ <li>
231
+ <p id='_'>
232
+ IEC Publications have the form of recommendations for
233
+ international use and are accepted by IEC National Committees in
234
+ that sense. While all reasonable efforts are made to ensure that
235
+ the technical content of IEC Publications is accurate, IEC cannot
236
+ be held responsible for the way in which they are used or for any
237
+ misinterpretation by any end user.
238
+ </p>
239
+ </li>
240
+ <li>
241
+ <p id='_'>
242
+ In order to promote international uniformity, IEC National
243
+ Committees undertake to apply IEC Publications transparently to
244
+ the maximum extent possible in their national and regional
245
+ publications. Any divergence between any IEC Publication and the
246
+ corresponding national or regional publication shall be clearly
247
+ indicated in the latter.
248
+ </p>
249
+ </li>
250
+ <li>
251
+ <p id='_'>
252
+ IEC itself does not provide any attestation of conformity.
253
+ Independent certification bodies provide conformity assessment
254
+ services and, in some areas, access to IEC marks of conformity.
255
+ IEC is not responsible for any services carried out by independent
256
+ certification bodies.
257
+ </p>
258
+ </li>
259
+ <li>
260
+ <p id='_'>All users should ensure that they have the latest edition of this publication.</p>
261
+ </li>
262
+ <li>
263
+ <p id='_'>
264
+ No liability shall attach to IEC or its directors, employees,
265
+ servants or agents including individual experts and members of its
266
+ technical committees and IEC National Committees for any personal
267
+ injury, property damage or other damage of any nature whatsoever,
268
+ whether direct or indirect, or for costs (including legal fees)
269
+ and expenses arising out of the publication, use of, or reliance
270
+ upon, this IEC Publication or any other IEC Publications.
271
+ </p>
272
+ </li>
273
+ <li>
274
+ <p id='_'>
275
+ Attention is drawn to the Normative references cited in this
276
+ publication. Use of the referenced publications is indispensable
277
+ for the correct application of this publication.
278
+ </p>
279
+ </li>
280
+ <li>
281
+ <p id='_'>
282
+ Attention is drawn to the possibility that some of the elements of
283
+ this IEC Publication may be the subject of patent rights. IEC
284
+ shall not be held responsible for identifying any or all such
285
+ patent rights.
286
+ </p>
287
+ </li>
288
+ </ol>
289
+ </clause>
290
+ </legal-statement>
291
+ <license-statement>
292
+ <clause>
293
+ <p id='_'>
294
+ This document is still under study and subject to change. It should
295
+ not be used for reference purposes.
296
+ </p>
297
+ until published as such.
298
+ <p id='_'>
299
+ Recipients of this document are invited to submit, with their
300
+ comments, notification of any relevant patent rights of which they are
301
+ aware and to provide supporting documentation.
302
+ </p>
303
+ </clause>
304
+ </license-statement>
305
+ <feedback-statement>
306
+ <clause id='boilerplate-cenelec-attention'>
307
+ <title>Attention IEC-CENELEC parallel voting</title>
308
+ <p id='_'>
309
+ The attention of IEC National Committees, members of CENELEC, is drawn
310
+ to the fact that this (NWIP) is submitted for parallel voting.
311
+ </p>
312
+ <p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
313
+ </clause>
314
+ </feedback-statement>
315
+ </boilerplate>
177
316
  <sections/>
178
317
  </iec-standard>
179
318
  OUTPUT
@@ -294,7 +433,138 @@ RSpec.describe Asciidoctor::Iec do
294
433
  <stagename>Committee draft</stagename>
295
434
  </ext>
296
435
  </bibdata>
297
- #{UNPUBLISHED_BOILERPLATE.sub(/IEC #{Date.today.year}/, "ISO/IEC/IETF 2001")}
436
+ <boilerplate>
437
+ <copyright-statement>
438
+ <clause>
439
+ <p id='_'>
440
+ <strong>Copyright © 2001 International Electrotechnical Commission, IEC.</strong>
441
+ All rights reserved. It is permitted to download this electronic
442
+ file, to make a copy and to print out the content for the sole purpose
443
+ of preparing National Committee positions. You may not copy or
444
+ “mirror” the file or printed version of the document, or any part of
445
+ it, for any other purpose without permission in writing from IEC.
446
+ </p>
447
+ </clause>
448
+ </copyright-statement>
449
+ <legal-statement>
450
+ <clause>
451
+ <ol id='_'>
452
+ <li>
453
+ <p id='_'>
454
+ The International Electrotechnical Commission (IEC) is a worldwide
455
+ organization for standardization comprising all national
456
+ electrotechnical committees (IEC National Committees). The object
457
+ of IEC is to promote international co-operation on all questions
458
+ concerning standardization in the electrical and electronic
459
+ fields. To this end and in addition to other activities, IEC
460
+ publishes International Standards, Technical Specifications,
461
+ Technical Reports, Publicly Available Specifications (PAS) and
462
+ Guides (hereafter referred to as “IEC Publication(s)”). Their
463
+ preparation is entrusted to technical committees; any IEC National
464
+ Committee interested in the subject dealt with may participate in
465
+ this preparatory work. International, governmental and
466
+ non-governmental organizations liaising with the IEC also
467
+ participate in this preparation. IEC collaborates closely with the
468
+ International Organization for Standardization (ISO) in accordance
469
+ with conditions determined by agreement between the two
470
+ organizations.
471
+ </p>
472
+ </li>
473
+ <li>
474
+ <p id='_'>
475
+ The formal decisions or agreements of IEC on technical matters
476
+ express, as nearly as possible, an international consensus of
477
+ opinion on the relevant subjects since each technical committee
478
+ has representation from all interested IEC National Committees.
479
+ </p>
480
+ </li>
481
+ <li>
482
+ <p id='_'>
483
+ IEC Publications have the form of recommendations for
484
+ international use and are accepted by IEC National Committees in
485
+ that sense. While all reasonable efforts are made to ensure that
486
+ the technical content of IEC Publications is accurate, IEC cannot
487
+ be held responsible for the way in which they are used or for any
488
+ misinterpretation by any end user.
489
+ </p>
490
+ </li>
491
+ <li>
492
+ <p id='_'>
493
+ In order to promote international uniformity, IEC National
494
+ Committees undertake to apply IEC Publications transparently to
495
+ the maximum extent possible in their national and regional
496
+ publications. Any divergence between any IEC Publication and the
497
+ corresponding national or regional publication shall be clearly
498
+ indicated in the latter.
499
+ </p>
500
+ </li>
501
+ <li>
502
+ <p id='_'>
503
+ IEC itself does not provide any attestation of conformity.
504
+ Independent certification bodies provide conformity assessment
505
+ services and, in some areas, access to IEC marks of conformity.
506
+ IEC is not responsible for any services carried out by independent
507
+ certification bodies.
508
+ </p>
509
+ </li>
510
+ <li>
511
+ <p id='_'>All users should ensure that they have the latest edition of this publication.</p>
512
+ </li>
513
+ <li>
514
+ <p id='_'>
515
+ No liability shall attach to IEC or its directors, employees,
516
+ servants or agents including individual experts and members of its
517
+ technical committees and IEC National Committees for any personal
518
+ injury, property damage or other damage of any nature whatsoever,
519
+ whether direct or indirect, or for costs (including legal fees)
520
+ and expenses arising out of the publication, use of, or reliance
521
+ upon, this IEC Publication or any other IEC Publications.
522
+ </p>
523
+ </li>
524
+ <li>
525
+ <p id='_'>
526
+ Attention is drawn to the Normative references cited in this
527
+ publication. Use of the referenced publications is indispensable
528
+ for the correct application of this publication.
529
+ </p>
530
+ </li>
531
+ <li>
532
+ <p id='_'>
533
+ Attention is drawn to the possibility that some of the elements of
534
+ this IEC Publication may be the subject of patent rights. IEC
535
+ shall not be held responsible for identifying any or all such
536
+ patent rights.
537
+ </p>
538
+ </li>
539
+ </ol>
540
+ </clause>
541
+ </legal-statement>
542
+ <license-statement>
543
+ <clause>
544
+ <p id='_'>
545
+ This document is still under study and subject to change. It should
546
+ not be used for reference purposes.
547
+ </p>
548
+ until published as such.
549
+ <p id='_'>
550
+ Recipients of this document are invited to submit, with their
551
+ comments, notification of any relevant patent rights of which they are
552
+ aware and to provide supporting documentation.
553
+ </p>
554
+ </clause>
555
+ </license-statement>
556
+ <feedback-statement>
557
+ <clause id='boilerplate-cenelec-attention'>
558
+ <title>Attention IEC-CENELEC parallel voting</title>
559
+ <p id='_'>
560
+ The attention of IEC National Committees, members of CENELEC, is drawn
561
+ to the fact that this Committee Draft (CD) is submitted for parallel
562
+ voting.
563
+ </p>
564
+ <p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
565
+ </clause>
566
+ </feedback-statement>
567
+ </boilerplate>
298
568
  <sections/>
299
569
  </iec-standard>
300
570
  OUTPUT
@@ -399,7 +669,144 @@ RSpec.describe Asciidoctor::Iec do
399
669
  <stagename>Final draft international standard</stagename>
400
670
  </ext>
401
671
  </bibdata>
402
- #{UNPUBLISHED_BOILERPLATE}
672
+ <boilerplate>
673
+ <copyright-statement>
674
+ <clause>
675
+ <p id='_'>
676
+ <strong>Copyright © #{Time.now.year} International Electrotechnical Commission, IEC.</strong>
677
+ All rights reserved. It is permitted to download this electronic
678
+ file, to make a copy and to print out the content for the sole purpose
679
+ of preparing National Committee positions. You may not copy or
680
+ “mirror” the file or printed version of the document, or any part of
681
+ it, for any other purpose without permission in writing from IEC.
682
+ </p>
683
+ </clause>
684
+ </copyright-statement>
685
+ <legal-statement>
686
+ <clause>
687
+ <ol id='_'>
688
+ <li>
689
+ <p id='_'>
690
+ The International Electrotechnical Commission (IEC) is a worldwide
691
+ organization for standardization comprising all national
692
+ electrotechnical committees (IEC National Committees). The object
693
+ of IEC is to promote international co-operation on all questions
694
+ concerning standardization in the electrical and electronic
695
+ fields. To this end and in addition to other activities, IEC
696
+ publishes International Standards, Technical Specifications,
697
+ Technical Reports, Publicly Available Specifications (PAS) and
698
+ Guides (hereafter referred to as “IEC Publication(s)”). Their
699
+ preparation is entrusted to technical committees; any IEC National
700
+ Committee interested in the subject dealt with may participate in
701
+ this preparatory work. International, governmental and
702
+ non-governmental organizations liaising with the IEC also
703
+ participate in this preparation. IEC collaborates closely with the
704
+ International Organization for Standardization (ISO) in accordance
705
+ with conditions determined by agreement between the two
706
+ organizations.
707
+ </p>
708
+ </li>
709
+ <li>
710
+ <p id='_'>
711
+ The formal decisions or agreements of IEC on technical matters
712
+ express, as nearly as possible, an international consensus of
713
+ opinion on the relevant subjects since each technical committee
714
+ has representation from all interested IEC National Committees.
715
+ </p>
716
+ </li>
717
+ <li>
718
+ <p id='_'>
719
+ IEC Publications have the form of recommendations for
720
+ international use and are accepted by IEC National Committees in
721
+ that sense. While all reasonable efforts are made to ensure that
722
+ the technical content of IEC Publications is accurate, IEC cannot
723
+ be held responsible for the way in which they are used or for any
724
+ misinterpretation by any end user.
725
+ </p>
726
+ </li>
727
+ <li>
728
+ <p id='_'>
729
+ In order to promote international uniformity, IEC National
730
+ Committees undertake to apply IEC Publications transparently to
731
+ the maximum extent possible in their national and regional
732
+ publications. Any divergence between any IEC Publication and the
733
+ corresponding national or regional publication shall be clearly
734
+ indicated in the latter.
735
+ </p>
736
+ </li>
737
+ <li>
738
+ <p id='_'>
739
+ IEC itself does not provide any attestation of conformity.
740
+ Independent certification bodies provide conformity assessment
741
+ services and, in some areas, access to IEC marks of conformity.
742
+ IEC is not responsible for any services carried out by independent
743
+ certification bodies.
744
+ </p>
745
+ </li>
746
+ <li>
747
+ <p id='_'>All users should ensure that they have the latest edition of this publication.</p>
748
+ </li>
749
+ <li>
750
+ <p id='_'>
751
+ No liability shall attach to IEC or its directors, employees,
752
+ servants or agents including individual experts and members of its
753
+ technical committees and IEC National Committees for any personal
754
+ injury, property damage or other damage of any nature whatsoever,
755
+ whether direct or indirect, or for costs (including legal fees)
756
+ and expenses arising out of the publication, use of, or reliance
757
+ upon, this IEC Publication or any other IEC Publications.
758
+ </p>
759
+ </li>
760
+ <li>
761
+ <p id='_'>
762
+ Attention is drawn to the Normative references cited in this
763
+ publication. Use of the referenced publications is indispensable
764
+ for the correct application of this publication.
765
+ </p>
766
+ </li>
767
+ <li>
768
+ <p id='_'>
769
+ Attention is drawn to the possibility that some of the elements of
770
+ this IEC Publication may be the subject of patent rights. IEC
771
+ shall not be held responsible for identifying any or all such
772
+ patent rights.
773
+ </p>
774
+ </li>
775
+ </ol>
776
+ </clause>
777
+ </legal-statement>
778
+ <license-statement>
779
+ <clause>
780
+ <p id='_'>
781
+ This document is a draft distributed for approval. It may not be
782
+ referred to as an International Standard until published as such.
783
+ </p>
784
+ <p id='_'>
785
+ In addition to their evaluation as being acceptable for industrial,
786
+ technological, commercial and user purposes, Final Draft International
787
+ Standards may on occasion have to be considered in the light of their
788
+ potential to become standards to which reference may be made in
789
+ national regulations.
790
+ </p>
791
+ <p id='_'>
792
+ Recipients of this document are invited to submit, with their
793
+ comments, notification of any relevant patent rights of which they are
794
+ aware and to provide supporting documentation.
795
+ </p>
796
+ </clause>
797
+ </license-statement>
798
+ <feedback-statement>
799
+ <clause id='boilerplate-cenelec-attention'>
800
+ <title>Attention IEC-CENELEC parallel voting</title>
801
+ <p id='_'>
802
+ The attention of IEC National Committees, members of CENELEC, is drawn
803
+ to the fact that this Final Draft International Standard (FDIS) is
804
+ submitted for parallel voting.
805
+ </p>
806
+ <p id='_'>The CENELEC members are invited to vote through the CENELEC voting system.</p>
807
+ </clause>
808
+ </feedback-statement>
809
+ </boilerplate>
403
810
  <sections/>
404
811
  </iec-standard>
405
812
  OUTPUT
@@ -464,7 +871,7 @@ OUTPUT
464
871
  <stagename>International standard</stagename>
465
872
  </ext>
466
873
  </bibdata>
467
- #{BOILERPLATE}
874
+ #{boilerplate(Nokogiri::XML(BLANK_HDR + "</iec-standard>"))}
468
875
  <sections/>
469
876
  </iec-standard>
470
877
  OUTPUT
@@ -530,7 +937,7 @@ OUTPUT
530
937
  <stagename>International standard</stagename>
531
938
  </ext>
532
939
  </bibdata>
533
- #{BOILERPLATE}
940
+ #{boilerplate(Nokogiri::XML(BLANK_HDR + "</iec-standard>"))}
534
941
  <sections/>
535
942
  </iec-standard>
536
943
  OUTPUT