relaton-itu 1.13.0 → 1.14.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,35 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
- <!--
4
- Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
5
- we cannot have a new default namespace: we will end up with a grammar with two different
6
- namespaces, one for isostandard and one for csand additions. And we do not want that.
7
- -->
8
- <include href="isodoc.rng">
9
- <start>
10
- <ref name="itu"/>
11
- </start>
12
- <define name="ol">
13
- <element name="ol">
14
- <attribute name="id">
15
- <data type="ID"/>
16
- </attribute>
17
- <optional>
18
- <attribute name="class">
19
- <value>steps</value>
20
- </attribute>
21
- </optional>
22
- <optional>
23
- <ref name="tname"/>
24
- </optional>
25
- <oneOrMore>
26
- <ref name="li"/>
27
- </oneOrMore>
28
- <zeroOrMore>
29
- <ref name="note"/>
30
- </zeroOrMore>
31
- </element>
32
- </define>
3
+ <include href="biblio-standoc.rng">
33
4
  <define name="DocumentType">
34
5
  <choice>
35
6
  <value>recommendation</value>
@@ -87,6 +58,9 @@
87
58
  </element>
88
59
  </define>
89
60
  <define name="BibDataExtensionType">
61
+ <optional>
62
+ <attribute name="schema-version"/>
63
+ </optional>
90
64
  <optional>
91
65
  <ref name="doctype"/>
92
66
  </optional>
@@ -122,73 +96,6 @@
122
96
  <ref name="structuredidentifier"/>
123
97
  </optional>
124
98
  </define>
125
- <define name="preface">
126
- <element name="preface">
127
- <oneOrMore>
128
- <choice>
129
- <ref name="content"/>
130
- <ref name="abstract"/>
131
- <ref name="foreword"/>
132
- <ref name="introduction"/>
133
- <ref name="acknowledgements"/>
134
- <ref name="clause"/>
135
- </choice>
136
- </oneOrMore>
137
- </element>
138
- </define>
139
- <define name="Clause-Section">
140
- <optional>
141
- <attribute name="id">
142
- <data type="ID"/>
143
- </attribute>
144
- </optional>
145
- <optional>
146
- <attribute name="language"/>
147
- </optional>
148
- <optional>
149
- <attribute name="script"/>
150
- </optional>
151
- <optional>
152
- <attribute name="inline-header">
153
- <data type="boolean"/>
154
- </attribute>
155
- </optional>
156
- <optional>
157
- <attribute name="obligation">
158
- <choice>
159
- <value>normative</value>
160
- <value>informative</value>
161
- </choice>
162
- </attribute>
163
- </optional>
164
- <optional>
165
- <attribute name="type"/>
166
- </optional>
167
- <optional>
168
- <attribute name="unnumbered">
169
- <data type="boolean"/>
170
- </attribute>
171
- </optional>
172
- <optional>
173
- <ref name="section-title"/>
174
- </optional>
175
- <group>
176
- <choice>
177
- <zeroOrMore>
178
- <ref name="BasicBlock"/>
179
- </zeroOrMore>
180
- <ref name="amend"/>
181
- </choice>
182
- <zeroOrMore>
183
- <choice>
184
- <ref name="clause-subsection"/>
185
- <ref name="terms"/>
186
- <ref name="definitions"/>
187
- <ref name="floating-title"/>
188
- </choice>
189
- </zeroOrMore>
190
- </group>
191
- </define>
192
99
  </include>
193
100
  <define name="meeting">
194
101
  <element name="meeting">
@@ -345,36 +252,4 @@
345
252
  <ref name="ItuGroup"/>
346
253
  </element>
347
254
  </define>
348
- <define name="itu">
349
- <element name="itu-standard">
350
- <attribute name="version"/>
351
- <attribute name="type">
352
- <choice>
353
- <value>semantic</value>
354
- <value>presentation</value>
355
- </choice>
356
- </attribute>
357
- <ref name="bibdata"/>
358
- <zeroOrMore>
359
- <ref name="termdocsource"/>
360
- </zeroOrMore>
361
- <optional>
362
- <ref name="misccontainer"/>
363
- </optional>
364
- <optional>
365
- <ref name="boilerplate"/>
366
- </optional>
367
- <ref name="preface"/>
368
- <oneOrMore>
369
- <ref name="sections"/>
370
- </oneOrMore>
371
- <zeroOrMore>
372
- <ref name="annex"/>
373
- </zeroOrMore>
374
- <ref name="bibliography"/>
375
- <zeroOrMore>
376
- <ref name="indexsect"/>
377
- </zeroOrMore>
378
- </element>
379
- </define>
380
255
  </grammar>
@@ -15,6 +15,15 @@ module RelatonItu
15
15
  super
16
16
  end
17
17
 
18
+ #
19
+ # Fetch flavor schema version
20
+ #
21
+ # @return [String] flavor schema version
22
+ #
23
+ def ext_schema
24
+ @ext_schema ||= schema_versions["relaton-model-itu"]
25
+ end
26
+
18
27
  # @param hash [Hash]
19
28
  # @return [RelatonItu::ItuBibliographicItem]
20
29
  def self.from_hash(hash)
@@ -1,3 +1,3 @@
1
1
  module RelatonItu
2
- VERSION = "1.13.0".freeze
2
+ VERSION = "1.14.0".freeze
3
3
  end
data/relaton-itu.gemspec CHANGED
@@ -36,5 +36,5 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency "webmock"
37
37
 
38
38
  spec.add_dependency "mechanize", "~> 2.8.0"
39
- spec.add_dependency "relaton-bib", "~> 1.13.0"
39
+ spec.add_dependency "relaton-bib", "~> 1.14.0"
40
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-21 00:00:00.000000000 Z
11
+ date: 2022-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.13.0
145
+ version: 1.14.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.13.0
152
+ version: 1.14.0
153
153
  description: 'RelatonItu: retrieve ITU Standards for bibliographic use using the BibliographicItem
154
154
  model'
155
155
  email:
@@ -159,6 +159,7 @@ extensions: []
159
159
  extra_rdoc_files: []
160
160
  files:
161
161
  - ".github/workflows/rake.yml"
162
+ - ".github/workflows/release.yml"
162
163
  - ".gitignore"
163
164
  - ".rspec"
164
165
  - ".rubocop.yml"
@@ -170,10 +171,10 @@ files:
170
171
  - bin/rspec
171
172
  - bin/setup
172
173
  - grammars/basicdoc.rng
174
+ - grammars/biblio-standoc.rng
173
175
  - grammars/biblio.rng
174
- - grammars/isodoc.rng
175
- - grammars/itu.rng
176
- - grammars/reqt.rng
176
+ - grammars/relaton-itu-compile.rng
177
+ - grammars/relaton-itu.rng
177
178
  - lib/relaton_itu.rb
178
179
  - lib/relaton_itu/editorial_group.rb
179
180
  - lib/relaton_itu/hash_converter.rb
@@ -192,7 +193,7 @@ homepage: https://github.com/metanorma/relaton-itu
192
193
  licenses:
193
194
  - MIT
194
195
  metadata: {}
195
- post_install_message:
196
+ post_install_message:
196
197
  rdoc_options: []
197
198
  require_paths:
198
199
  - lib
@@ -207,8 +208,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
208
  - !ruby/object:Gem::Version
208
209
  version: '0'
209
210
  requirements: []
210
- rubygems_version: 3.2.3
211
- signing_key:
211
+ rubygems_version: 3.1.6
212
+ signing_key:
212
213
  specification_version: 4
213
214
  summary: 'RelatonItu: retrieve ITU Standards for bibliographic use using the BibliographicItem
214
215
  model'