relaton-iso-bib 1.18.0 → 1.18.2

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: 240dcef5e33b4150ea0b8dbd7e5fca3d33b9142272444bec69f563465fef421f
4
- data.tar.gz: 991fc22a605a89a0e60cf1e0fdcda36d762dbd009423b2a72f6c84eb31a44ca3
3
+ metadata.gz: 3772db04334749e7660ad48d85986192d3fa3f12fa0a13ace255750c49bf46ff
4
+ data.tar.gz: e5960422e57fff1057e0caf7dfcb53ad7d03efa4a3c9cf865b117dd5d9e45afc
5
5
  SHA512:
6
- metadata.gz: e4127f04b3be531d2bfd44faaa8c2d7df59c67009175ca06d52912cc0e0f4bac19a971ce60dba7d19f59abf6d178b8cc019035080b809bb92d0b123f155d7bf4
7
- data.tar.gz: 45e28f577e029540ae0baaab72fc3cc2e1eb2fae114f71178d1f503a6c9c0ad9a4764379bcdd31869638eda4c831022779693064d55874d13b786f5a0924137e
6
+ metadata.gz: d90be3009cb539fd5f8e4859e648a9a419510b594295ca6d0a7ed538428456eb39571ec516da73c5a9844d36b6e9521185ca70606a08016f5572a9bdf94f6fed
7
+ data.tar.gz: 2aa5a4573faf9422cd9ffe67259d346e835b1d7440b219239610e159521b22624d844b461f4c7c8eb95dea8b210873f8527dfff2b8d3b38cbb39aacd5bde6b48
@@ -244,6 +244,9 @@
244
244
  <data type="ID"/>
245
245
  </attribute>
246
246
  <attribute name="reviewer"/>
247
+ <optional>
248
+ <attribute name="type"/>
249
+ </optional>
247
250
  <optional>
248
251
  <attribute name="date">
249
252
  <data type="dateTime"/>
@@ -26,6 +26,9 @@
26
26
  <optional>
27
27
  <ref name="updates_document_type"/>
28
28
  </optional>
29
+ <optional>
30
+ <ref name="fast_track"/>
31
+ </optional>
29
32
  </define>
30
33
  <define name="bdate">
31
34
  <element name="date">
@@ -95,9 +98,11 @@
95
98
  <value>publicly-available-specification</value>
96
99
  <value>international-workshop-agreement</value>
97
100
  <value>guide</value>
101
+ <value>recommendation</value>
98
102
  <value>amendment</value>
99
103
  <value>technical-corrigendum</value>
100
104
  <value>directive</value>
105
+ <value>committee-document</value>
101
106
  </choice>
102
107
  </define>
103
108
  <define name="DocumentSubtype">
@@ -222,4 +227,9 @@
222
227
  <text/>
223
228
  </element>
224
229
  </define>
230
+ <define name="fast_track">
231
+ <element name="fast-track">
232
+ <data type="boolean"/>
233
+ </element>
234
+ </define>
225
235
  </grammar>
@@ -3,7 +3,7 @@ module RelatonIsoBib
3
3
  DOCTYPES = %w[
4
4
  international-standard technical-specification technical-report
5
5
  publicly-available-specification international-workshop-agreement guide
6
- amendment technical-corrigendum directive
6
+ recommendation amendment technical-corrigendum directive committee-document
7
7
  ].freeze
8
8
 
9
9
  #
@@ -30,7 +30,7 @@ module RelatonIsoBib
30
30
  # @return [RelatonIsoBib::DocumentType]
31
31
 
32
32
  # @return [Boolean, nil]
33
- attr_reader :horizontal
33
+ attr_reader :horizontal, :fast_track
34
34
 
35
35
  # @return [RelatonIsoBib::EditorialGroup]
36
36
  attr_reader :editorialgroup
@@ -42,28 +42,28 @@ module RelatonIsoBib
42
42
  # rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity
43
43
 
44
44
  # @param edition [String]
45
- # @param docnumber [String, NilClass]
45
+ # @param docnumber [String, nil]
46
46
  # @param language [Array<String>]
47
47
  # @param script [Arrra<String>]
48
- # @param docstatus [RelatonBib::DocumentStatus, NilClass]
49
- # @param type [String, NilClass]
50
- # @param formattedref [RelatonBib::FormattedRef, NilClass]
51
- # @param version [RelatonBib::BibliographicItem::Version, NilClass]
48
+ # @param docstatus [RelatonBib::DocumentStatus, nil]
49
+ # @param type [String, nil]
50
+ # @param formattedref [RelatonBib::FormattedRef, nil]
51
+ # @param version [RelatonBib::BibliographicItem::Version, nil]
52
52
  # @param biblionote [Array<RelatonBib::BiblioNote>]
53
53
  # @param series [Array<RelatonBib::Series>]
54
54
  # @param medium [RelatonBib::Medium, NilClas]
55
55
  # @param place [Array<String>]
56
56
  # @param extent [Array<Relaton::BibItemLocality>]
57
57
  # @param accesslocation [Array<String>]
58
- # @param classification [RelatonBib::Classification, NilClass]
59
- # @param validity [RelatonBib:Validity, NilClass]
58
+ # @param classification [RelatonBib::Classification, nil]
59
+ # @param validity [RelatonBib:Validity, nil]
60
60
  # @param docid [Array<RelatonBib::DocumentIdentifier>]
61
61
  # @param doctype [RelatonIsoBib::DocumentType]
62
62
  # @param subdoctype [String, nil]
63
63
  # @param horizontal [Boolean, nil]
64
64
  # @param structuredidentifier [RelatonIsoBib::StructuredIdentifier]
65
- # @param stagename [String, NilClass]
66
- #
65
+ # @param stagename [String, nil]
66
+ # @param fast_track [Boolean, nil]
67
67
  # @param title [Array<Hash, RelatonBib::TypedTitleString>, RelatonBib::TypedTitleStringCollection]
68
68
  #
69
69
  # @param editorialgroup [Hash, RelatonIsoBib::EditorialGroup]
@@ -143,6 +143,7 @@ module RelatonIsoBib
143
143
  @ics = args.fetch(:ics, []).map { |i| i.is_a?(Hash) ? Ics.new(**i) : i }
144
144
  @stagename = args[:stagename]
145
145
  @id_attribute = true
146
+ @fast_track = args[:fast_track]
146
147
  end
147
148
 
148
149
  #
@@ -177,6 +178,7 @@ module RelatonIsoBib
177
178
  ics.each { |i| i.to_xml b }
178
179
  structuredidentifier&.to_xml b
179
180
  b.stagename stagename if stagename
181
+ b.send("fast-track", fast_track) unless fast_track.nil?
180
182
  end
181
183
  ext["schema-version"] = ext_schema unless opts[:embedded]
182
184
  end
@@ -197,6 +199,7 @@ module RelatonIsoBib
197
199
  hash = super
198
200
  hash["horizontal"] = horizontal unless horizontal.nil?
199
201
  hash["stagename"] = stagename if stagename
202
+ hash["fast_track"] = fast_track unless fast_track.nil?
200
203
  hash
201
204
  end
202
205
 
@@ -206,6 +209,7 @@ module RelatonIsoBib
206
209
  pref = prefix.empty? ? prefix : "#{prefix}."
207
210
  out = super
208
211
  out += "#{pref}stagename:: #{stagename}\n" if stagename
212
+ out += "#{pref}fast-track:: #{fast_track}\n" unless fast_track.nil?
209
213
  out
210
214
  end
211
215
 
@@ -1,3 +1,3 @@
1
1
  module RelatonIsoBib
2
- VERSION = "1.18.0".freeze
2
+ VERSION = "1.18.2".freeze
3
3
  end
@@ -16,6 +16,7 @@ module RelatonIsoBib
16
16
  hrzt = ext.at("./horizontal")
17
17
  data[:horizontal] = hrzt.text == "true" if hrzt
18
18
  data[:stagename] = ext.at("./stagename")&.text
19
+ data[:fast_track] = ext.at("./fast-track")&.text
19
20
  data
20
21
  end
21
22
 
@@ -26,6 +27,10 @@ module RelatonIsoBib
26
27
  IsoBibliographicItem.new(**item_hash)
27
28
  end
28
29
 
30
+ def create_doctype(type)
31
+ DocumentType.new type: type.text, abbreviation: type[:abbreviation]
32
+ end
33
+
29
34
  # @param ext [Nokogiri::XML::Element]
30
35
  # @return [RelatonIsoBib::StructuredIdentifier]
31
36
  def fetch_structuredidentifier(ext)
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
28
28
 
29
29
  spec.add_dependency "isoics", "~> 0.1.6"
30
- spec.add_dependency "relaton-bib", "~> 1.18.0"
30
+ spec.add_dependency "relaton-bib", "~> 1.18.2"
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iso-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0
4
+ version: 1.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-06 00:00:00.000000000 Z
11
+ date: 2024-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: isoics
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.18.0
33
+ version: 1.18.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.18.0
40
+ version: 1.18.2
41
41
  description: 'RelatonIsoBib: Ruby ISOXMLDOC impementation.'
42
42
  email:
43
43
  - open.source@ribose.com