metanorma-iec 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af53938e7079717d8149023ce306df0cd80dc70a48d7babd881ae161f16d00eb
4
- data.tar.gz: 71d8c4d6d55c3454019ba0921b68ab016719aa62107ffa5e933bd91e3bb86f1b
3
+ metadata.gz: aeea3a9fe1769d11cf8dd35270a1a45cad54ad976c94bf8ab871bbbef3509e09
4
+ data.tar.gz: 36628127433147b77fcf6537c22f3c07667367a5a4b83529e5b6f446180a5b4a
5
5
  SHA512:
6
- metadata.gz: bc0592c3aac3ad73c9680cbf83ac6c1755de964d2e9c56fee6289dec1b26576f6a2b392411ab9cf465cd9aab7e4296a625cfdfeca84563ad0b112c03161f0af4
7
- data.tar.gz: dadbab4be0ca22ce1df81abb3b9832f19e4a3629a4800a39d19bf7e96d23c5f0089cf3855af1ce38fa9224c8731b75a425db92005071fa0aa9bf8a542494c9b8
6
+ metadata.gz: 58fee559bbde5f882118b6eda4032f4d0134e3413dcf1b8eff29fc190674133816ebcd2f3dc48173ceb9c4f7b7a19afb96c97096cc5d09e44457e4877b5dc933
7
+ data.tar.gz: 10375e49683e94979c6c0b70c2840ea5cab8d1ffeaf1cf53d7815286f6d01dc5ee00f3b84cce2402f37294c238cb1e7f1dea3ae0e8380809f256868de1e1a182
@@ -87,7 +87,7 @@
87
87
  </element>
88
88
  </define>
89
89
  <define name="reqinherit">
90
- <element name="subject">
90
+ <element name="inherit">
91
91
  <text/>
92
92
  </element>
93
93
  </define>
@@ -55,8 +55,8 @@ an International Standard.</p>
55
55
  of this draft are invited to submit, with their comments, notification of any
56
56
  relevant patent rights of which they are aware and to provide supporting
57
57
  documentation.</p>
58
- {% endif %}
59
58
 
60
59
  </div>
60
+ {% endif %}
61
61
 
62
62
 
@@ -1657,7 +1657,7 @@ div.colophon
1657
1657
  mso-list-style-id:901253906;}
1658
1658
  @list l26:level1
1659
1659
  {mso-level-style-link:"Heading 1";
1660
- mso-level-text:%1;
1660
+ mso-level-text:"%1";
1661
1661
  mso-level-tab-stop:19.85pt;
1662
1662
  mso-level-number-position:left;
1663
1663
  margin-left:19.85pt;
@@ -1,6 +1,6 @@
1
1
  module Metanorma
2
2
  module Iec
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
6
6
 
@@ -29,8 +29,8 @@ Gem::Specification.new do |spec|
29
29
 
30
30
  spec.add_dependency "asciidoctor", "~> 1.5.7"
31
31
  spec.add_dependency "ruby-jing"
32
- spec.add_dependency "isodoc", "~> 0.10.0"
33
- spec.add_dependency "metanorma-iso", "~> 1.2.0"
32
+ spec.add_dependency "isodoc", "~> 1.0.0"
33
+ spec.add_dependency "metanorma-iso", "~> 1.3.0"
34
34
 
35
35
  spec.add_development_dependency "bundler", "~> 2.0.1"
36
36
  spec.add_development_dependency "byebug"
@@ -649,7 +649,7 @@ r = 1 %</stem>
649
649
 
650
650
  <clause id="_" inline-header="false" obligation="normative">
651
651
  <title>Clause</title>
652
- <p id="_"><fn reference="3">
652
+ <p id="_"><fn reference="2">
653
653
  <p id="_">Footnote2</p>
654
654
  </fn>
655
655
  </p>
@@ -229,7 +229,7 @@ RSpec.describe IsoDoc do
229
229
  </bibliography>
230
230
  </iso-standard>
231
231
  INPUT
232
- #{HTML_HDR}
232
+ #{HTML_HDR.sub(/"en"/, '"tlh"')}
233
233
  <div>
234
234
  <h1 class="ForewordTitle">FOREWORD</h1>
235
235
  <div class="boilerplate_legal"/>
@@ -386,7 +386,8 @@ RSpec.describe IsoDoc do
386
386
  </bibliography>
387
387
  </iso-standard>
388
388
  INPUT
389
- #{HTML_HDR.sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "COMMISSION ELECTROTECHNIQUE INTERNATIONALE")}
389
+ #{HTML_HDR.sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "COMMISSION ELECTROTECHNIQUE INTERNATIONALE").
390
+ sub(/"en"/, '"fr"')}
390
391
  <div>
391
392
  <h1 class="ForewordTitle">AVANT-PROPOS</h1>
392
393
  <div class="boilerplate_legal"/>
@@ -553,7 +554,7 @@ RSpec.describe IsoDoc do
553
554
  </bibliography>
554
555
  </iso-standard>
555
556
  INPUT
556
- #{HTML_HDR.sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "国际电工委员会")}
557
+ #{HTML_HDR.sub(/"en"/, '"zh"').sub(/INTERNATIONAL ELECTROTECHNICAL COMMISSION/, "国际电工委员会")}
557
558
  <div>
558
559
  <h1 class="ForewordTitle">&#21069;&#35328;</h1>
559
560
  <div class="boilerplate_legal"/>
@@ -373,7 +373,7 @@ RSpec.describe IsoDoc do
373
373
  <img src="test_htmlimages/_.png" height="776" width="922" />
374
374
  <img src="test_htmlimages/_.png" height="800" width="53" />
375
375
  <img src="test_htmlimages/_.png" height="83" width="99" />
376
- <p class="FigureTitle" align="center">Figure 1&#xA0;&#x2014; Split-it-right sample divider</p></div>
376
+ <p class="FigureTitle" style="text-align:center;">Figure 1&#xA0;&#x2014; Split-it-right sample divider</p></div>
377
377
  </div>
378
378
  #{IEC_TITLE}
379
379
  </main>
@@ -465,10 +465,10 @@ RSpec.describe IsoDoc do
465
465
  </p>
466
466
  <div class="Section3"><a name="P" id="P"></a>
467
467
  <div class="example"><a name="_63112cbc-cde0-435f-9553-e0b8c4f5851c" id="_63112cbc-cde0-435f-9553-e0b8c4f5851c"></a>
468
- <p class="MsoNormal"><span class="example_label">EXAMPLE 1</span><span style="mso-tab-count:1">&#xA0; </span>'1M', '01M', and '0001M' all describe the calendar month January.</p>
468
+ <p class="example"><span class="example_label">EXAMPLE 1</span><span style="mso-tab-count:1">&#xA0; </span>'1M', '01M', and '0001M' all describe the calendar month January.</p>
469
469
  </div>
470
470
  <div class="example"><a name="_63112cbc-cde0-435f-9553-e0b8c4f5851d" id="_63112cbc-cde0-435f-9553-e0b8c4f5851d"></a>
471
- <p class="MsoNormal"><span class="example_label">EXAMPLE 2</span><span style="mso-tab-count:1">&#xA0; </span>'2M', '02M', and '0002M' all describe the calendar month February.</p>
471
+ <p class="example"><span class="example_label">EXAMPLE 2</span><span style="mso-tab-count:1">&#xA0; </span>'2M', '02M', and '0002M' all describe the calendar month February.</p>
472
472
  </div>
473
473
  </div>
474
474
  </div>
@@ -508,7 +508,7 @@ RSpec.describe IsoDoc do
508
508
  <p class="MsoNormal">Hello</p>
509
509
  <p class="MsoNormal">Key</p>
510
510
  <p class="MsoNormal"><b>Key</b></p><div class="figdl"><table class="figdl"><tr><td valign="top" align="left"><p align="left" style="margin-left:0pt;text-align:left;" class="MsoNormal"><p class="MsoNormal">A</p></p></td><td valign="top"><p class="MsoNormal">B</p></td></tr></table></div>
511
- <p class="FigureTitle" align="center">Figure A.1</p></div>
511
+ <p class="FigureTitle" style="text-align:center;">Figure A.1</p></div>
512
512
  </div>
513
513
  </div>
514
514
  <br clear="all" style="page-break-before:left;mso-break-type:section-break"/>
@@ -544,9 +544,9 @@ RSpec.describe IsoDoc do
544
544
  </p>
545
545
  <div class="Section3"><a name="P" id="P"></a>
546
546
  <p class="Sourcecode"><a name="A" id="A"></a>puts "Hello, world."</p>
547
- <p class="TableTitle" align="center">Table A.1</p>
547
+ <p class="TableTitle" style="text-align:center;">Table A.1</p>
548
548
  <div align="center">
549
- <table style="mso-table-lspace:15.0cm;margin-left:423.0pt;mso-table-rspace:15.0cm;margin-right:423.0pt;mso-table-bspace:14.2pt;mso-table-anchor-vertical:paragraph;mso-table-anchor-horizontal:column;mso-table-overlap:never;" class="MsoISOTable" border="1" cellspacing="0" cellpadding="0"><a name="samplecode" id="samplecode"></a>
549
+ <table style="mso-table-lspace:15.0cm;margin-left:423.0pt;mso-table-rspace:15.0cm;margin-right:423.0pt;mso-table-bspace:14.2pt;mso-table-anchor-vertical:paragraph;mso-table-anchor-horizontal:column;mso-table-overlap:never;border-spacing:0;border-width:1px;" class="MsoISOTable"><a name="samplecode" id="samplecode"></a>
550
550
  <tbody>
551
551
  <tr>
552
552
  <td style="border-top:solid windowtext 1.5pt;mso-border-top-alt:solid windowtext 1.5pt;border-bottom:solid windowtext 1.5pt;mso-border-bottom-alt:solid windowtext 1.5pt;" class="TABLE-cell">
@@ -71,7 +71,7 @@ RSpec.describe IsoDoc do
71
71
  INPUT
72
72
  <html xmlns:epub="http://www.idpf.org/2007/ops">
73
73
  <head/>
74
- <body lang="EN-US" link="blue" vlink="#954F72">
74
+ <body lang="en">
75
75
  <div class="title-section">
76
76
  <p>&#160;</p>
77
77
  </div>
data/spec/spec_helper.rb CHANGED
@@ -162,7 +162,7 @@ END
162
162
  HTML_HDR = <<~END
163
163
  <html xmlns:epub="http://www.idpf.org/2007/ops">
164
164
  <head/>
165
- <body lang="EN-US" link="blue" vlink="#954F72">
165
+ <body lang="en">
166
166
  <div class="title-section">
167
167
  <p>&#160;</p>
168
168
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-iec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-04 00:00:00.000000000 Z
11
+ date: 2019-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.10.0
47
+ version: 1.0.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.10.0
54
+ version: 1.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: metanorma-iso
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.0
61
+ version: 1.3.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2.0
68
+ version: 1.3.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -281,7 +281,6 @@ files:
281
281
  - spec/asciidoctor-iec/inline_spec.rb
282
282
  - spec/asciidoctor-iec/lists_spec.rb
283
283
  - spec/asciidoctor-iec/macros_spec.rb
284
- - spec/asciidoctor-iec/refs_spec.rb
285
284
  - spec/asciidoctor-iec/section_spec.rb
286
285
  - spec/asciidoctor-iec/table_spec.rb
287
286
  - spec/asciidoctor-iec/validate_spec.rb
@@ -296,7 +295,6 @@ files:
296
295
  - spec/isodoc/postproc_spec.rb
297
296
  - spec/isodoc/section_spec.rb
298
297
  - spec/isodoc/terms_spec.rb
299
- - spec/isodoc/xref_spec.rb
300
298
  - spec/metanorma/processor_spec.rb
301
299
  - spec/spec_helper.rb
302
300
  homepage: https://github.com/metanorma/metanorma-iec
@@ -1,268 +0,0 @@
1
- require "spec_helper"
2
- require "relaton_iso"
3
- require "relaton_ietf"
4
-
5
- RSpec.describe Asciidoctor::Iec do
6
- it "processes draft ISO reference" do
7
- #stub_fetch_ref no_year: true, note: "The standard is in press"
8
-
9
- expect(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true))).to be_equivalent_to <<~"OUTPUT"
10
- #{ASCIIDOC_BLANK_HDR}
11
- [bibliography]
12
- == Normative References
13
-
14
- * [[[iso123,ISO 123:--]]] footnote:[The standard is in press] _Standard_
15
- INPUT
16
- #{BLANK_HDR}
17
- <sections>
18
- </sections><bibliography><references id="_" obligation="informative">
19
- <title>Normative References</title>
20
- <bibitem id="iso123" type="standard">
21
- <title format="text/plain">Standard</title>
22
- <docidentifier>ISO 123:—</docidentifier>
23
- <date type="published">
24
- <on>--</on>
25
- </date>
26
- <contributor>
27
- <role type="publisher"/>
28
- <organization>
29
- <name>International Organization for Standardization</name>
30
- <abbreviation>ISO</abbreviation>
31
- </organization>
32
- </contributor>
33
- <note format="text/plain">ISO DATE: The standard is in press</note>
34
- </bibitem>
35
- </references>
36
- </bibliography>
37
- </iso-standard>
38
- OUTPUT
39
- end
40
-
41
- it "processes all-parts ISO reference" do
42
- #stub_fetch_ref(all_parts: true)
43
-
44
- expect(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true))).to be_equivalent_to <<~"OUTPUT"
45
- #{ASCIIDOC_BLANK_HDR}
46
- [bibliography]
47
- == Normative References
48
-
49
- * [[[iso123,ISO 123:1066 (all parts)]]] _Standard_
50
- INPUT
51
- #{BLANK_HDR}
52
- <sections>
53
- </sections><bibliography><references id="_" obligation="informative">
54
- <title>Normative References</title>
55
- <bibitem id="iso123" type="standard">
56
- <title format="text/plain">Standard</title>
57
- <docidentifier>ISO 123:1066 (all parts)</docidentifier>
58
- <date type="published">
59
- <on>1066</on>
60
- </date>
61
- <contributor>
62
- <role type="publisher"/>
63
- <organization>
64
- <name>International Organization for Standardization</name>
65
- <abbreviation>ISO</abbreviation>
66
- </organization>
67
- </contributor>
68
- <extent type="part"><referenceFrom>all</referenceFrom></extent>
69
- </bibitem>
70
- </references>
71
- </bibliography>
72
- </iso-standard>
73
- OUTPUT
74
- end
75
-
76
- it "processes non-ISO reference in Normative References" do
77
- expect(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true))).to be_equivalent_to <<~"OUTPUT"
78
- #{ASCIIDOC_BLANK_HDR}
79
- [bibliography]
80
- == Normative References
81
-
82
- * [[[iso123,XYZ 123:1066 (all parts)]]] _Standard_
83
- INPUT
84
- #{BLANK_HDR}
85
- <sections>
86
-
87
- </sections><bibliography><references id="_" obligation="informative">
88
- <title>Normative References</title>
89
- <bibitem id="iso123">
90
- <formattedref format="application/x-isodoc+xml">
91
- <em>Standard</em>
92
- </formattedref>
93
- <docidentifier>XYZ 123:1066 (all parts)</docidentifier>
94
- </bibitem>
95
- </references>
96
- </bibliography>
97
- </iso-standard>
98
- OUTPUT
99
- end
100
-
101
- it "processes non-ISO reference in Bibliography" do
102
- expect(strip_guid(Asciidoctor.convert(<<~"INPUT", backend: :iec, header_footer: true))).to be_equivalent_to <<~"OUTPUT"
103
- #{ASCIIDOC_BLANK_HDR}
104
- [bibliography]
105
- == Bibliography
106
-
107
- * [[[iso123,1]]] _Standard_
108
- INPUT
109
- #{BLANK_HDR}
110
- <sections>
111
-
112
- </sections><bibliography><references id="_" obligation="informative">
113
- <title>Bibliography</title>
114
- <bibitem id="iso123">
115
- <formattedref format="application/x-isodoc+xml">
116
- <em>Standard</em>
117
- </formattedref>
118
- <docidentifier>[1]</docidentifier>
119
- </bibitem>
120
- </references>
121
- </bibliography>
122
- </iso-standard>
123
- OUTPUT
124
- end
125
-
126
- private
127
-
128
- private
129
-
130
- def mock_isobib_get_123
131
- expect(Isobib::IsoBibliography).to receive(:get).with("ISO 123", nil, {}) do
132
- IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
133
- <bibitem type=\"international-standard\" id=\"ISO123\">\n <fetched>#{Date.today}</fetched>\n<title format=\"text/plain\" language=\"en\" script=\"Latn\">Rubber latex -- Sampling</title>\n <title format=\"text/plain\" language=\"fr\" script=\"Latn\">Latex de caoutchouc -- ?chantillonnage</title>\n <uri type=\"src\">https://www.iso.org/standard/23281.html</uri>\n <uri type=\"obp\">https://www.iso.org/obp/ui/#!iso:std:23281:en</uri>\n <uri type=\"rss\">https://www.iso.org/contents/data/standard/02/32/23281.detail.rss</uri>\n <docidentifier type="ISO">ISO 123:2001</docidentifier>\n <date type=\"published\">\n <on>2001</on>\n </date>\n <contributor>\n <role type=\"publisher\"/>\n <organization>\n <name>International Organization for Standardization</name>\n <abbreviation>ISO</abbreviation>\n <uri>www.iso.org</uri>\n </organization>\n </contributor>\n <edition>3</edition>\n <language>en</language>\n <language>fr</language>\n <script>Latn</script>\n <status>Published</status>\n <copyright>\n <from>2001</from>\n <owner>\n <organization>\n <name>ISO</name>\n <abbreviation></abbreviation>\n </organization>\n </owner>\n </copyright>\n <relation type=\"obsoletes\">\n <bibitem>\n <formattedref>ISO 123:1985</formattedref>\n </bibitem>\n </relation>\n <relation type=\"updates\">\n <bibitem>\n <formattedref>ISO 123:2001</formattedref>\n </bibitem>\n </relation>\n</bibitem>
134
- OUTPUT
135
- end
136
- end
137
-
138
- def mock_isobib_get_124
139
- expect(Isobib::IsoBibliography).to receive(:get).with("ISO 124", "2014", {}) do
140
- IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
141
- <bibitem type="international-standard" id="iso124">
142
- <fetched>#{Date.today}</fetched>
143
- <title format="text/plain" language="en" script="Latn">Latex, rubber -- Determination of total solids content</title>
144
- <title format="text/plain" language="fr" script="Latn">Latex de caoutchouc -- Détermination des matières solides totales</title>
145
- <uri type="src">https://www.iso.org/standard/61884.html</uri>
146
- <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:61884:en</uri>
147
- <uri type="rss">https://www.iso.org/contents/data/standard/06/18/61884.detail.rss</uri>
148
- <docidentifier type="ISO">ISO 124:2014</docidentifier>
149
- <date type="published">
150
- <on>2014</on>
151
- </date>
152
- <contributor>
153
- <role type="publisher"/>
154
- <organization>
155
- <name>International Organization for Standardization</name>
156
- <abbreviation>ISO</abbreviation>
157
- <uri>www.iso.org</uri>
158
- </organization>
159
- </contributor>
160
- <edition>7</edition>
161
- <language>en</language>
162
- <language>fr</language>
163
- <script>Latn</script>
164
- <abstract format="plain" language="en" script="Latn">ISO 124:2014 specifies methods for the determination of the total solids content of natural rubber field and concentrated latices and synthetic rubber latex. These methods are not necessarily suitable for latex from natural sources other than the Hevea brasiliensis, for vulcanized latex, for compounded latex, or for artificial dispersions of rubber.</abstract>
165
- <status>Published</status>
166
- <copyright>
167
- <from>2014</from>
168
- <owner>
169
- <organization>
170
- <name>ISO</name>
171
- <abbreviation/>
172
- </organization>
173
- </owner>
174
- </copyright>
175
- <relation type="obsoletes">
176
- <bibitem>
177
- <formattedref>ISO 124:2011</formattedref>
178
- </bibitem>
179
- </relation>
180
- <ics>
181
- <code>83.040.10</code>
182
- <text>Latex and raw rubber</text>
183
- </ics>
184
- </bibitem>
185
- OUTPUT
186
- end
187
- end
188
-
189
- def mock_isobib_get_iec12382
190
- expect(Isobib::IsoBibliography).to receive(:get).with("ISO/IEC TR 12382", "1992", {}) do
191
- IsoBibItem::XMLParser.from_xml(<<~"OUTPUT")
192
- <bibitem type="international-standard" id="iso123">
193
- <fetched>#{Date.today}</fetched>
194
- <title format="text/plain" language="en" script="Latn">Permuted index of the vocabulary of information technology</title>
195
- <title format="text/plain" language="fr" script="Latn">Index permuté du vocabulaire des technologies de l'information</title>
196
- <uri type="src">https://www.iso.org/standard/21071.html</uri>
197
- <uri type="obp">https://www.iso.org/obp/ui/#!iso:std:21071:en</uri>
198
- <uri type="rss">https://www.iso.org/contents/data/standard/02/10/21071.detail.rss</uri>
199
- <docidentifier type="ISO">ISO/IEC 12382:1992</docidentifier>
200
- <date type="published">
201
- <on>1992</on>
202
- </date>
203
- <contributor>
204
- <role type="publisher"/>
205
- <organization>
206
- <name>International Organization for Standardization</name>
207
- <abbreviation>ISO</abbreviation>
208
- <uri>www.iso.org</uri>
209
- </organization>
210
- </contributor>
211
- <contributor>
212
- <role type="publisher"/>
213
- <organization>
214
- <name>International Electrotechnical Commission</name>
215
- <abbreviation>IEC</abbreviation>
216
- <uri>www.iec.ch</uri>
217
- </organization>
218
- </contributor>
219
- <edition>2</edition>
220
- <language>en</language>
221
- <language>fr</language>
222
- <script>Latn</script>
223
- <abstract format="plain" language="en" script="Latn">Contains a permuted index of all terms included in the parts 1 - 28 of ISO 2382. If any of these parts has been revised, the present TR refers to the revision.</abstract>
224
- <status>Published</status>
225
- <copyright>
226
- <from>1992</from>
227
- <owner>
228
- <organization>
229
- <name>ISO/IEC</name>
230
- <abbreviation/>
231
- </organization>
232
- </owner>
233
- </copyright>
234
- <relation type="updates">
235
- <bibitem>
236
- <formattedref>ISO/IEC TR 12382:1992</formattedref>
237
- </bibitem>
238
- </relation>
239
- <ics>
240
- <code>35.020</code>
241
- <text>Information technology (IT) in general</text>
242
- </ics>
243
- <ics>
244
- <code>01.040.35</code>
245
- <text>Information technology (Vocabularies)</text>
246
- </ics>
247
- </bibitem>
248
- OUTPUT
249
- end
250
- end
251
-
252
- def mock_rfcbib_get_rfc8341
253
- expect(IETFBib::RfcBibliography).to receive(:get).with("RFC 8341", nil, {}) do
254
- IETFBib::XMLParser.from_xml(<<~"OUTPUT")
255
- <bibitem id="RFC8341">
256
- <fetched>#{Date.today}</fetched>
257
- <title format="text/plain" language="en" script="Latn">Network Configuration Access Control Model</title>
258
- <docidentifier type="IETF">RFC 8341</docidentifier>
259
- <date type="published">
260
- <on>2018</on>
261
- </date>
262
- <status>published</status>
263
- </bibitem>
264
- OUTPUT
265
- end
266
- end
267
-
268
- end