metanorma-iec 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/bin/rspec +18 -0
  4. data/lib/asciidoctor/iec/biblio.rng +949 -0
  5. data/lib/asciidoctor/iec/converter.rb +68 -0
  6. data/lib/asciidoctor/iec/iec_intro_en.xml +15 -0
  7. data/lib/asciidoctor/iec/iec_intro_fr.xml +15 -0
  8. data/lib/asciidoctor/iec/isodoc.rng +1132 -0
  9. data/lib/asciidoctor/iec/isostandard.rng +789 -0
  10. data/lib/asciidoctor/iec/reqt.rng +162 -0
  11. data/lib/isodoc/iec/base_convert.rb +69 -0
  12. data/lib/isodoc/iec/html/header.html +160 -0
  13. data/lib/isodoc/iec/html/html_iec_intro.html +34 -0
  14. data/lib/isodoc/iec/html/html_iec_titlepage.html +62 -0
  15. data/lib/isodoc/iec/html/htmlstyle.scss +840 -0
  16. data/lib/isodoc/iec/html/isodoc.scss +785 -0
  17. data/lib/isodoc/iec/html/scripts.html +176 -0
  18. data/lib/isodoc/iec/html/word_iec_intro.html +72 -0
  19. data/lib/isodoc/iec/html/word_iec_titlepage.html +92 -0
  20. data/lib/isodoc/iec/html/wordstyle.scss +1849 -0
  21. data/lib/isodoc/iec/html_convert.rb +33 -0
  22. data/lib/isodoc/iec/i18n-en.yaml +3 -0
  23. data/lib/isodoc/iec/i18n-fr.yaml +3 -0
  24. data/lib/isodoc/iec/i18n-zh-Hans.yaml +3 -0
  25. data/lib/isodoc/iec/metadata.rb +20 -0
  26. data/lib/isodoc/iec/word_convert.rb +165 -0
  27. data/lib/metanorma-iec.rb +12 -0
  28. data/lib/metanorma/iec.rb +8 -0
  29. data/lib/metanorma/iec/processor.rb +40 -0
  30. data/lib/metanorma/iec/version.rb +6 -0
  31. data/metanorma-iec.gemspec +47 -0
  32. data/spec/asciidoctor-iec/base_spec.rb +609 -0
  33. data/spec/asciidoctor-iec/blocks_spec.rb +467 -0
  34. data/spec/asciidoctor-iec/cleanup_spec.rb +766 -0
  35. data/spec/asciidoctor-iec/inline_spec.rb +162 -0
  36. data/spec/asciidoctor-iec/lists_spec.rb +190 -0
  37. data/spec/asciidoctor-iec/macros_spec.rb +21 -0
  38. data/spec/asciidoctor-iec/refs_spec.rb +268 -0
  39. data/spec/asciidoctor-iec/section_spec.rb +341 -0
  40. data/spec/asciidoctor-iec/table_spec.rb +307 -0
  41. data/spec/asciidoctor-iec/validate_spec.rb +132 -0
  42. data/spec/examples/rice.adoc +723 -0
  43. data/spec/examples/rice.doc +19162 -0
  44. data/spec/examples/rice.html +1787 -0
  45. data/spec/examples/rice.xml +1951 -0
  46. data/spec/isodoc/i18n_spec.rb +642 -0
  47. data/spec/isodoc/inline_spec.rb +265 -0
  48. data/spec/isodoc/iso_spec.rb +319 -0
  49. data/spec/isodoc/metadata_spec.rb +153 -0
  50. data/spec/isodoc/postproc_spec.rb +569 -0
  51. data/spec/isodoc/section_spec.rb +686 -0
  52. data/spec/isodoc/terms_spec.rb +206 -0
  53. data/spec/isodoc/xref_spec.rb +1323 -0
  54. data/spec/metanorma/processor_spec.rb +88 -0
  55. data/spec/spec_helper.rb +253 -0
  56. metadata +325 -0
@@ -0,0 +1,88 @@
1
+ require "spec_helper"
2
+ require "metanorma"
3
+ require "fileutils"
4
+
5
+ #RSpec.describe Asciidoctor::Gb do
6
+ RSpec.describe Metanorma::Iec::Processor do
7
+
8
+ registry = Metanorma::Registry.instance
9
+ registry.register(Metanorma::Iec::Processor)
10
+ processor = registry.find_processor(:iec)
11
+
12
+ it "registers against metanorma" do
13
+ expect(processor).not_to be nil
14
+ end
15
+
16
+ it "registers output formats against metanorma" do
17
+ expect(processor.output_formats.sort.to_s).to be_equivalent_to <<~"OUTPUT"
18
+ [[:doc, "doc"], [:html, "html"], [:rxl, "rxl"], [:xml, "xml"]]
19
+ OUTPUT
20
+ end
21
+
22
+ it "registers version against metanorma" do
23
+ expect(processor.version.to_s).to match(%r{^Metanorma::Iec })
24
+ end
25
+
26
+ it "generates IsoDoc XML from a blank document" do
27
+ expect(strip_guid(processor.input_to_isodoc(<<~"INPUT", nil))).to be_equivalent_to <<~"OUTPUT"
28
+ #{ASCIIDOC_BLANK_HDR}
29
+ INPUT
30
+ #{BLANK_HDR}
31
+ <sections/>
32
+ </iso-standard>
33
+ OUTPUT
34
+ end
35
+
36
+ it "generates HTML from IsoDoc XML" do
37
+ FileUtils.rm_f "test.xml"
38
+ processor.output(<<~"INPUT", "test.html", :html)
39
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
40
+ <sections>
41
+ <terms id="H" obligation="normative"><title>Terms, Definitions, Symbols and Abbreviated Terms</title>
42
+ <term id="J">
43
+ <preferred>Term2</preferred>
44
+ </term>
45
+ </terms>
46
+ </sections>
47
+ </iso-standard>
48
+ INPUT
49
+ expect(File.read("test.html", encoding: "utf-8").gsub(%r{^.*<main}m, "<main").gsub(%r{</main>.*}m, "</main>")).to be_equivalent_to <<~"OUTPUT"
50
+ <main class="main-section"><button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>
51
+ <br />
52
+ <p class="zzSTDTitle1">INTERNATIONAL ELECTROTECHNICAL COMMISSION</p>
53
+ <p class="zzSTDTitle1">____________</p>
54
+ <p class="zzSTDTitle1">&#xA0;</p>
55
+ <p class="zzSTDTitle1">
56
+ <b></b>
57
+ </p>
58
+ <p class="zzSTDTitle1">&#xA0;</p>
59
+ <div id="">
60
+ <h1 class="ForewordTitle">FOREWORD</h1>
61
+ <div class="boilerplate_legal"></div>
62
+ </div>
63
+ <p class="zzSTDTitle1">INTERNATIONAL ELECTROTECHNICAL COMMISSION</p>
64
+ <p class="zzSTDTitle1">____________</p>
65
+ <p class="zzSTDTitle1">&#xA0;</p>
66
+ <p class="zzSTDTitle1">
67
+ <b></b>
68
+ </p>
69
+ <p class="zzSTDTitle1">&#xA0;</p>
70
+ <div id="H"><h1>1&#xA0; Terms and definitions</h1><p>For the purposes of this document,
71
+ the following terms and definitions apply.</p>
72
+ <p>ISO and IEC maintain terminological databases for use in
73
+ standardization at the following addresses:</p>
74
+
75
+ <ul>
76
+ <li> <p>ISO Online browsing platform: available at
77
+ <a href="http://www.iso.org/obp">http://www.iso.org/obp</a></p> </li>
78
+ <li> <p>IEC Electropedia: available at
79
+ <a href="http://www.electropedia.org">http://www.electropedia.org</a>
80
+ </p> </li> </ul>
81
+ <h2 class="TermNum" id="J">1.1</h2>
82
+ <p class="Terms" style="text-align:left;">Term2</p>
83
+ </div>
84
+ </main>
85
+ OUTPUT
86
+ end
87
+
88
+ end
@@ -0,0 +1,253 @@
1
+ require "simplecov"
2
+ SimpleCov.start do
3
+ add_filter "/spec/"
4
+ end
5
+
6
+ require "bundler/setup"
7
+ require "asciidoctor"
8
+ require "metanorma-iec"
9
+ require "rspec/matchers"
10
+ require "equivalent-xml"
11
+ require "metanorma"
12
+ require "metanorma/iec"
13
+ require "iev"
14
+
15
+ RSpec.configure do |config|
16
+ # Enable flags like --only-failures and --next-failure
17
+ config.example_status_persistence_file_path = ".rspec_status"
18
+
19
+ # Disable RSpec exposing methods globally on `Module` and `main`
20
+ config.disable_monkey_patching!
21
+
22
+ config.expect_with :rspec do |c|
23
+ c.syntax = :expect
24
+ end
25
+ end
26
+
27
+ def strip_guid(x)
28
+ x.gsub(%r{ id="_[^"]+"}, ' id="_"').gsub(%r{ target="_[^"]+"}, ' target="_"')
29
+ end
30
+
31
+ ASCIIDOC_BLANK_HDR = <<~"HDR"
32
+ = Document title
33
+ Author
34
+ :docfile: test.adoc
35
+ :nodoc:
36
+ :novalid:
37
+ :no-isobib:
38
+
39
+ HDR
40
+
41
+ ISOBIB_BLANK_HDR = <<~"HDR"
42
+ = Document title
43
+ Author
44
+ :docfile: test.adoc
45
+ :nodoc:
46
+ :novalid:
47
+ :no-isobib-cache:
48
+
49
+ HDR
50
+
51
+ FLUSH_CACHE_ISOBIB_BLANK_HDR = <<~"HDR"
52
+ = Document title
53
+ Author
54
+ :docfile: test.adoc
55
+ :nodoc:
56
+ :novalid:
57
+ :flush-caches:
58
+
59
+ HDR
60
+
61
+ CACHED_ISOBIB_BLANK_HDR = <<~"HDR"
62
+ = Document title
63
+ Author
64
+ :docfile: test.adoc
65
+ :nodoc:
66
+ :novalid:
67
+
68
+ HDR
69
+
70
+ LOCAL_CACHED_ISOBIB_BLANK_HDR = <<~"HDR"
71
+ = Document title
72
+ Author
73
+ :docfile: test.adoc
74
+ :nodoc:
75
+ :novalid:
76
+ :local-cache:
77
+
78
+ HDR
79
+
80
+ VALIDATING_BLANK_HDR = <<~"HDR"
81
+ = Document title
82
+ Author
83
+ :docfile: test.adoc
84
+ :nodoc:
85
+ :no-isobib:
86
+
87
+ HDR
88
+
89
+ BOILERPLATE = <<~"BOILERPLATE"
90
+ <boilerplate>
91
+ <legal-statement>
92
+ <ol id="_">
93
+ <li><p id="_">The International Electrotechnical Commission (IEC) is a worldwide organization for standardization comprising all national electrotechnical committees (IEC National Committees). The object of IEC is to promote international co-operation on all questions concerning standardization in the electrical and electronic fields. To this end and in addition to other activities, IEC publishes International Standards, Technical Specifications, Technical Reports, Publicly Available Specifications (PAS) and Guides (hereafter referred to as “IEC Publication(s)”). Their preparation is entrusted to technical committees; any IEC National Committee interested in the subject dealt with may participate in this preparatory work. International, governmental and non-governmental organizations liaising with the IEC also participate in this preparation. IEC collaborates closely with the International Organization for Standardization (ISO) in accordance with conditions determined by agreement between the two organizations.</p></li>
94
+ <li><p id="_">The formal decisions or agreements of IEC on technical matters express, as nearly as possible, an international consensus of opinion on the relevant subjects since each technical committee has representation from all interested IEC National Committees.</p></li>
95
+ <li><p id="_">IEC Publications have the form of recommendations for international use and are accepted by IEC National Committees in that sense. While all reasonable efforts are made to ensure that the technical content of IEC Publications is accurate, IEC cannot be held responsible for the way in which they are used or for any misinterpretation by any end user.</p></li>
96
+ <li><p id="_">In order to promote international uniformity, IEC National Committees undertake to apply IEC Publications transparently to the maximum extent possible in their national and regional publications. Any divergence between any IEC Publication and the corresponding national or regional publication shall be clearly indicated in the latter.</p></li>
97
+ <li><p id="_">IEC itself does not provide any attestation of conformity. Independent certification bodies provide conformity assessment services and, in some areas, access to IEC marks of conformity. IEC is not responsible for any services carried out by independent certification bodies.</p></li>
98
+ <li><p id="_">All users should ensure that they have the latest edition of this publication.</p></li>
99
+ <li><p id="_">No liability shall attach to IEC or its directors, employees, servants or agents including individual experts and members of its technical committees and IEC National Committees for any personal injury, property damage or other damage of any nature whatsoever, whether direct or indirect, or for costs (including legal fees) and expenses arising out of the publication, use of, or reliance upon, this IEC Publication or any other IEC Publications.</p></li>
100
+ <li><p id="_">Attention is drawn to the Normative references cited in this publication. Use of the referenced publications is indispensable for the correct application of this publication.</p></li>
101
+ <li><p id="_">Attention is drawn to the possibility that some of the elements of this IEC Publication may be the subject of patent rights. IEC shall not be held responsible for identifying any or all such patent rights.</p></li>
102
+ </ol>
103
+ </legal-statement>
104
+ </boilerplate>
105
+ BOILERPLATE
106
+
107
+ BLANK_HDR = <<~"HDR"
108
+ <?xml version="1.0" encoding="UTF-8"?>
109
+ <iso-standard xmlns="http://riboseinc.com/isoxml">
110
+ <bibdata type="standard">
111
+ <contributor>
112
+ <role type="author"/>
113
+ <organization>
114
+ <name>International Electrotechnical Commission</name>
115
+ <abbreviation>IEC</abbreviation>
116
+ </organization>
117
+ </contributor>
118
+ <contributor>
119
+ <role type="publisher"/>
120
+ <organization>
121
+ <name>International Electrotechnical Commission</name>
122
+ <abbreviation>IEC</abbreviation>
123
+ </organization>
124
+ </contributor>
125
+ <language>en</language>
126
+ <script>Latn</script>
127
+ <status>
128
+ <stage>60</stage>
129
+ <substage>60</substage>
130
+ </status>
131
+ <copyright>
132
+ <from>#{Time.new.year}</from>
133
+ <owner>
134
+ <organization>
135
+ <name>International Electrotechnical Commission</name>
136
+ <abbreviation>IEC</abbreviation>
137
+ </organization>
138
+ </owner>
139
+ </copyright>
140
+ <ext>
141
+ <doctype>article</doctype>
142
+ <editorialgroup>
143
+ <technical-committee/>
144
+ <subcommittee/>
145
+ <workgroup/>
146
+ </editorialgroup>
147
+ </ext>
148
+ </bibdata>
149
+ #{BOILERPLATE}
150
+ HDR
151
+
152
+ IEC_TITLE = <<~END
153
+ <p class="zzSTDTitle1">INTERNATIONAL ELECTROTECHNICAL COMMISSION</p>
154
+ <p class="zzSTDTitle1">____________</p>
155
+ <p class="zzSTDTitle1">&#160;</p>
156
+ <p class="zzSTDTitle1">
157
+ <b/>
158
+ </p>
159
+ <p class="zzSTDTitle1">&#160;</p>
160
+ END
161
+
162
+ HTML_HDR = <<~END
163
+ <html xmlns:epub="http://www.idpf.org/2007/ops">
164
+ <head/>
165
+ <body lang="EN-US" link="blue" vlink="#954F72">
166
+ <div class="title-section">
167
+ <p>&#160;</p>
168
+ </div>
169
+ <br/>
170
+ <div class="prefatory-section">
171
+ <p>&#160;</p>
172
+ </div>
173
+ <br/>
174
+ <div class="main-section">
175
+ <br/>
176
+ #{IEC_TITLE}
177
+ END
178
+
179
+ WORD_HDR = <<~END
180
+ <html xmlns:epub="http://www.idpf.org/2007/ops">
181
+ <head>
182
+ <title>test</title>
183
+ </head>
184
+ <body lang="EN-US" link="blue" vlink="#954F72">
185
+ <div class="WordSection1">
186
+ <p>&#160;</p>
187
+ </div>
188
+ <p><br clear="all" class="section"/></p>
189
+ <div class="WordSection2">
190
+ <p>&#160;</p>
191
+ </div>
192
+ <p><br clear="all" class="section"/></p>
193
+ <div class="WordSection3">
194
+ END
195
+
196
+
197
+ def stub_fetch_ref(**opts)
198
+ xml = ""
199
+
200
+ hit = double("hit")
201
+ expect(hit).to receive(:"[]").with("title") do
202
+ Nokogiri::XML(xml).at("//docidentifier").content
203
+ end.at_least(:once)
204
+
205
+ hit_instance = double("hit_instance")
206
+ expect(hit_instance).to receive(:hit).and_return(hit).at_least(:once)
207
+ expect(hit_instance).to receive(:to_xml) do |builder, opt|
208
+ expect(builder).to be_instance_of Nokogiri::XML::Builder
209
+ expect(opt).to eq opts
210
+ builder << xml
211
+ end.at_least :once
212
+
213
+ hit_page = double("hit_page")
214
+ expect(hit_page).to receive(:first).and_return(hit_instance).at_least :once
215
+
216
+ hit_pages = double("hit_pages")
217
+ expect(hit_pages).to receive(:first).and_return(hit_page).at_least :once
218
+
219
+ expect(Isobib::IsoBibliography).to receive(:search).
220
+ and_wrap_original do |search, *args|
221
+ code = args[0]
222
+ expect(code).to be_instance_of String
223
+ xml = get_xml(search, code, opts)
224
+ hit_pages
225
+ end.at_least :once
226
+ end
227
+
228
+ private
229
+
230
+ def get_xml(search, code, opts)
231
+ c = code.gsub(%r{[\/\s:-]}, "_").sub(%r{_+$}, "").downcase
232
+ o = opts.keys.join "_"
233
+ file = "spec/examples/#{[c, o].join '_'}.xml"
234
+ if File.exist? file
235
+ File.read file
236
+ else
237
+ result = search.call(code)
238
+ hit = result&.first&.first
239
+ xml = hit.to_xml nil, opts
240
+ File.write file, xml
241
+ xml
242
+ end
243
+ end
244
+
245
+ def mock_open_uri(code)
246
+ #expect(OpenURI).to receive(:open_uri).and_wrap_original do |m, *args|
247
+ expect(Iev).to receive(:get).with(code, "en") do |m, *args|
248
+ file = "spec/examples/#{code.tr('-', '_')}.html"
249
+ File.write file, m.call(*args).read unless File.exist? file
250
+ File.read file
251
+ end.at_least :once
252
+ end
253
+
metadata ADDED
@@ -0,0 +1,325 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: metanorma-iec
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Ribose Inc.
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-07-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: asciidoctor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.5.7
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.5.7
27
+ - !ruby/object:Gem::Dependency
28
+ name: ruby-jing
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: isodoc
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.10.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.10.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: metanorma-iso
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.2.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.2.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.0.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.0.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: equivalent-xml
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.6'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.6'
111
+ - !ruby/object:Gem::Dependency
112
+ name: guard
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '2.14'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '2.14'
125
+ - !ruby/object:Gem::Dependency
126
+ name: guard-rspec
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '4.7'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '4.7'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rake
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '12.0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '12.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rspec
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '3.6'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '3.6'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rubocop
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '='
172
+ - !ruby/object:Gem::Version
173
+ version: 0.54.0
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '='
179
+ - !ruby/object:Gem::Version
180
+ version: 0.54.0
181
+ - !ruby/object:Gem::Dependency
182
+ name: simplecov
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '0.15'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '0.15'
195
+ - !ruby/object:Gem::Dependency
196
+ name: timecop
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '0.9'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '0.9'
209
+ - !ruby/object:Gem::Dependency
210
+ name: metanorma
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: 0.3.0
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: 0.3.0
223
+ - !ruby/object:Gem::Dependency
224
+ name: iev
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: 0.2.0
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: 0.2.0
237
+ description: |
238
+ metanorma-iso lets you write IEC standards in AsciiDoc syntax.
239
+
240
+ This gem is in active development.
241
+ email:
242
+ - open.source@ribose.com
243
+ executables: []
244
+ extensions: []
245
+ extra_rdoc_files: []
246
+ files:
247
+ - Gemfile
248
+ - bin/rspec
249
+ - lib/asciidoctor/iec/biblio.rng
250
+ - lib/asciidoctor/iec/converter.rb
251
+ - lib/asciidoctor/iec/iec_intro_en.xml
252
+ - lib/asciidoctor/iec/iec_intro_fr.xml
253
+ - lib/asciidoctor/iec/isodoc.rng
254
+ - lib/asciidoctor/iec/isostandard.rng
255
+ - lib/asciidoctor/iec/reqt.rng
256
+ - lib/isodoc/iec/base_convert.rb
257
+ - lib/isodoc/iec/html/header.html
258
+ - lib/isodoc/iec/html/html_iec_intro.html
259
+ - lib/isodoc/iec/html/html_iec_titlepage.html
260
+ - lib/isodoc/iec/html/htmlstyle.scss
261
+ - lib/isodoc/iec/html/isodoc.scss
262
+ - lib/isodoc/iec/html/scripts.html
263
+ - lib/isodoc/iec/html/word_iec_intro.html
264
+ - lib/isodoc/iec/html/word_iec_titlepage.html
265
+ - lib/isodoc/iec/html/wordstyle.scss
266
+ - lib/isodoc/iec/html_convert.rb
267
+ - lib/isodoc/iec/i18n-en.yaml
268
+ - lib/isodoc/iec/i18n-fr.yaml
269
+ - lib/isodoc/iec/i18n-zh-Hans.yaml
270
+ - lib/isodoc/iec/metadata.rb
271
+ - lib/isodoc/iec/word_convert.rb
272
+ - lib/metanorma-iec.rb
273
+ - lib/metanorma/iec.rb
274
+ - lib/metanorma/iec/processor.rb
275
+ - lib/metanorma/iec/version.rb
276
+ - metanorma-iec.gemspec
277
+ - spec/asciidoctor-iec/base_spec.rb
278
+ - spec/asciidoctor-iec/blocks_spec.rb
279
+ - spec/asciidoctor-iec/cleanup_spec.rb
280
+ - spec/asciidoctor-iec/inline_spec.rb
281
+ - spec/asciidoctor-iec/lists_spec.rb
282
+ - spec/asciidoctor-iec/macros_spec.rb
283
+ - spec/asciidoctor-iec/refs_spec.rb
284
+ - spec/asciidoctor-iec/section_spec.rb
285
+ - spec/asciidoctor-iec/table_spec.rb
286
+ - spec/asciidoctor-iec/validate_spec.rb
287
+ - spec/examples/rice.adoc
288
+ - spec/examples/rice.doc
289
+ - spec/examples/rice.html
290
+ - spec/examples/rice.xml
291
+ - spec/isodoc/i18n_spec.rb
292
+ - spec/isodoc/inline_spec.rb
293
+ - spec/isodoc/iso_spec.rb
294
+ - spec/isodoc/metadata_spec.rb
295
+ - spec/isodoc/postproc_spec.rb
296
+ - spec/isodoc/section_spec.rb
297
+ - spec/isodoc/terms_spec.rb
298
+ - spec/isodoc/xref_spec.rb
299
+ - spec/metanorma/processor_spec.rb
300
+ - spec/spec_helper.rb
301
+ homepage: https://github.com/metanorma/metanorma-iec
302
+ licenses:
303
+ - BSD-2-Clause
304
+ metadata: {}
305
+ post_install_message:
306
+ rdoc_options: []
307
+ require_paths:
308
+ - lib
309
+ required_ruby_version: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ version: 2.4.0
314
+ required_rubygems_version: !ruby/object:Gem::Requirement
315
+ requirements:
316
+ - - ">="
317
+ - !ruby/object:Gem::Version
318
+ version: '0'
319
+ requirements: []
320
+ rubyforge_project:
321
+ rubygems_version: 2.7.6
322
+ signing_key:
323
+ specification_version: 4
324
+ summary: metanorma-iec lets you write IEC standards in AsciiDoc.
325
+ test_files: []