metanorma-un 0.9.10 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@
5
5
  we cannot have a new default namespace: we will end up with a grammar with two different
6
6
  namespaces, one for isostandard and one for csand additions. And we do not want that.
7
7
  -->
8
+ <include href="relaton-un.rng"/>
8
9
  <include href="isodoc.rng">
9
10
  <start>
10
11
  <ref name="un-standard"/>
@@ -14,6 +15,7 @@
14
15
  <text/>
15
16
  <ref name="em"/>
16
17
  <ref name="eref"/>
18
+ <ref name="erefstack"/>
17
19
  <ref name="strong"/>
18
20
  <ref name="stem"/>
19
21
  <ref name="sub"/>
@@ -81,28 +83,6 @@
81
83
  </zeroOrMore>
82
84
  </element>
83
85
  </define>
84
- <define name="DocumentType">
85
- <choice>
86
- <value>recommendation</value>
87
- <value>plenary</value>
88
- <value>addendum</value>
89
- <value>communication</value>
90
- <value>corrigendum</value>
91
- <value>reissue</value>
92
- <value>agenda</value>
93
- <value>budgetary</value>
94
- <value>sec-gen-notes</value>
95
- <value>expert-report</value>
96
- <value>resolution</value>
97
- </choice>
98
- </define>
99
- <define name="editorialgroup">
100
- <element name="editorialgroup">
101
- <oneOrMore>
102
- <ref name="committee"/>
103
- </oneOrMore>
104
- </element>
105
- </define>
106
86
  <define name="sections">
107
87
  <element name="sections">
108
88
  <oneOrMore>
@@ -113,32 +93,6 @@
113
93
  </oneOrMore>
114
94
  </element>
115
95
  </define>
116
- <define name="BibDataExtensionType">
117
- <optional>
118
- <ref name="doctype"/>
119
- </optional>
120
- <optional>
121
- <ref name="docsubtype"/>
122
- </optional>
123
- <zeroOrMore>
124
- <ref name="submissionlanguage"/>
125
- </zeroOrMore>
126
- <optional>
127
- <ref name="editorialgroup"/>
128
- </optional>
129
- <zeroOrMore>
130
- <ref name="ics"/>
131
- </zeroOrMore>
132
- <optional>
133
- <ref name="distribution"/>
134
- </optional>
135
- <optional>
136
- <ref name="session"/>
137
- </optional>
138
- <optional>
139
- <ref name="job_number"/>
140
- </optional>
141
- </define>
142
96
  <define name="preface">
143
97
  <element name="preface">
144
98
  <optional>
@@ -253,99 +207,6 @@
253
207
  </group>
254
208
  </define>
255
209
  </include>
256
- <define name="session">
257
- <element name="session">
258
- <optional>
259
- <ref name="session-number"/>
260
- </optional>
261
- <optional>
262
- <ref name="session-date"/>
263
- </optional>
264
- <zeroOrMore>
265
- <ref name="item-number"/>
266
- </zeroOrMore>
267
- <zeroOrMore>
268
- <ref name="item-name"/>
269
- </zeroOrMore>
270
- <zeroOrMore>
271
- <ref name="subitem-name"/>
272
- </zeroOrMore>
273
- <optional>
274
- <ref name="collaborator"/>
275
- </optional>
276
- <optional>
277
- <ref name="agenda-id"/>
278
- </optional>
279
- <optional>
280
- <ref name="item-footnote"/>
281
- </optional>
282
- </element>
283
- </define>
284
- <define name="committee">
285
- <element name="committee">
286
- <text/>
287
- </element>
288
- </define>
289
- <define name="session-number">
290
- <element name="number">
291
- <text/>
292
- </element>
293
- </define>
294
- <define name="session-date">
295
- <element name="session-date">
296
- <data type="date"/>
297
- </element>
298
- </define>
299
- <define name="item-number">
300
- <element name="item-number">
301
- <text/>
302
- </element>
303
- </define>
304
- <define name="collaborator">
305
- <element name="collaborator">
306
- <text/>
307
- </element>
308
- </define>
309
- <define name="agenda-id">
310
- <element name="agenda-id">
311
- <text/>
312
- </element>
313
- </define>
314
- <define name="item-name">
315
- <element name="item-name">
316
- <text/>
317
- </element>
318
- </define>
319
- <define name="subitem-name">
320
- <element name="subitem-name">
321
- <text/>
322
- </element>
323
- </define>
324
- <define name="item-footnote">
325
- <element name="item-footnote">
326
- <text/>
327
- </element>
328
- </define>
329
- <define name="submissionlanguage">
330
- <element name="submissionlanguage">
331
- <text/>
332
- </element>
333
- </define>
334
- <define name="distribution">
335
- <element name="distribution">
336
- <choice>
337
- <value>general</value>
338
- <value>limited</value>
339
- <value>restricted</value>
340
- <value>provisional</value>
341
- </choice>
342
- </element>
343
- </define>
344
- <define name="job_number">
345
- <element name="job_number">
346
- <text/>
347
- </element>
348
- </define>
349
210
  <define name="un-standard">
350
211
  <element name="un-standard">
351
212
  <attribute name="version"/>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module UN
3
- VERSION = "0.9.10".freeze
3
+ VERSION = "0.9.12".freeze
4
4
  end
5
5
  end
data/metanorma-un.gemspec CHANGED
@@ -19,12 +19,13 @@ Gem::Specification.new do |spec|
19
19
  spec.license = "BSD-2-Clause"
20
20
 
21
21
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
22
- f.match(%r{^(test|spec|features)/})
22
+ f.match(%r{^(test|spec|features|bin|.github)/}) \
23
+ || f.match(%r{Rakefile|bin/rspec})
23
24
  end
24
25
  spec.bindir = "exe"
25
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
27
  spec.require_paths = ["lib"]
27
- spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
28
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
28
29
 
29
30
  spec.add_dependency "iso-639"
30
31
  spec.add_dependency "roman-numerals"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-un
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-10 00:00:00.000000000 Z
11
+ date: 2022-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: iso-639
@@ -216,8 +216,6 @@ executables: []
216
216
  extensions: []
217
217
  extra_rdoc_files: []
218
218
  files:
219
- - ".github/workflows/rake.yml"
220
- - ".github/workflows/release.yml"
221
219
  - ".gitignore"
222
220
  - ".hound.yml"
223
221
  - ".rubocop.yml"
@@ -225,10 +223,6 @@ files:
225
223
  - Gemfile
226
224
  - LICENSE
227
225
  - README.adoc
228
- - Rakefile
229
- - bin/console
230
- - bin/rspec
231
- - bin/setup
232
226
  - lib/isodoc/un.rb
233
227
  - lib/isodoc/un/base_convert.rb
234
228
  - lib/isodoc/un/html/header.html
@@ -262,12 +256,14 @@ files:
262
256
  - lib/metanorma/un.rb
263
257
  - lib/metanorma/un/UN_emblem_blue.svg
264
258
  - lib/metanorma/un/basicdoc.rng
259
+ - lib/metanorma/un/biblio-standoc.rng
265
260
  - lib/metanorma/un/biblio.rng
266
261
  - lib/metanorma/un/boilerplate.xml
267
262
  - lib/metanorma/un/converter.rb
268
263
  - lib/metanorma/un/input.rb
269
264
  - lib/metanorma/un/isodoc.rng
270
265
  - lib/metanorma/un/processor.rb
266
+ - lib/metanorma/un/relaton-un.rng
271
267
  - lib/metanorma/un/reqt.rng
272
268
  - lib/metanorma/un/un.rng
273
269
  - lib/metanorma/un/validate.rb
@@ -285,14 +281,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
285
281
  requirements:
286
282
  - - ">="
287
283
  - !ruby/object:Gem::Version
288
- version: 2.5.0
284
+ version: 2.7.0
289
285
  required_rubygems_version: !ruby/object:Gem::Requirement
290
286
  requirements:
291
287
  - - ">="
292
288
  - !ruby/object:Gem::Version
293
289
  version: '0'
294
290
  requirements: []
295
- rubygems_version: 3.1.6
291
+ rubygems_version: 3.3.7
296
292
  signing_key:
297
293
  specification_version: 4
298
294
  summary: Metanorma for UN.
@@ -1,15 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: rake
4
-
5
- on:
6
- push:
7
- branches: [ master, main ]
8
- tags: [ v* ]
9
- pull_request:
10
-
11
- jobs:
12
- notify:
13
- uses: metanorma/ci/.github/workflows/mn-processor-rake.yml@main
14
- secrets:
15
- pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
@@ -1,24 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: release
4
-
5
- on:
6
- workflow_dispatch:
7
- inputs:
8
- next_version:
9
- description: |
10
- Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
11
- required: true
12
- default: 'skip'
13
- push:
14
- tags: [ v* ]
15
-
16
- jobs:
17
- release:
18
- uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
19
- with:
20
- next_version: ${{ github.event.inputs.next_version }}
21
- secrets:
22
- rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
23
- pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
24
-
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
- require "isodoc/gem_tasks"
4
-
5
- IsoDoc::GemTasks.install
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "metanorma/unece"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/rspec DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rspec' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require "pathname"
10
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path(
11
- "../../Gemfile", Pathname.new(__FILE__).realpath
12
- )
13
-
14
- require "rubygems"
15
- require "bundler/setup"
16
-
17
- load Gem.bin_path("rspec-core", "rspec")
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here