relaton-bib 1.16.2 → 1.16.4

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: 8098843fe273de5162b5c7f640ed970e78829a22a71aef66675a65bd9eaa60aa
4
- data.tar.gz: 89e952252458837ebbec87cec74801414f676e0aafea76bf69a7c98157e96c32
3
+ metadata.gz: 7deac57a314879f0712e2a4b0ed696231284dee696eb1761129b595ed19a8680
4
+ data.tar.gz: '052873d3bbd058acde24892cfacf1d751ed72ed15ef2706e04750ede16a01628'
5
5
  SHA512:
6
- metadata.gz: cc73ddea87f2eed0caca6361ec228aaac81d609ac1309d54d6da77aec9f9bdb6ec64182288b670f85c42f80115eb60c6372a3fd7ed240bd9e191ea253e350b9b
7
- data.tar.gz: f58d6eb817231bc984a8d7928ca4f1d2319497e30debdaa46781a610949056ec5a2bdd768e7a742be77fc30dfd3288ff3006a6cc2dcf0476c7548ac48becc878
6
+ metadata.gz: 7b7a9cab63a7d4f1d222d9b166e5893709968f76e33f74faceee6427f84f09162e6461a61e7661778ec0262417ff6cb128d21ef7da1f7141d686082452ddf6ed
7
+ data.tar.gz: 8bd841a1cfa0cba89333d3a12f66576b469855c0f3746fd5a2a2bad5e1472da52484b825172203015ec58245a43b21391f079b8af1f119598b6f2208a20bf516
@@ -346,6 +346,8 @@
346
346
  <ref name="keyword"/>
347
347
  <ref name="xref"/>
348
348
  <ref name="hyperlink"/>
349
+ <ref name="index"/>
350
+ <ref name="index-xref"/>
349
351
  </choice>
350
352
  </oneOrMore>
351
353
  </element>
@@ -623,6 +625,8 @@
623
625
  <ref name="eref"/>
624
626
  <ref name="xref"/>
625
627
  <ref name="hyperlink"/>
628
+ <ref name="index"/>
629
+ <ref name="index-xref"/>
626
630
  </choice>
627
631
  </zeroOrMore>
628
632
  </element>
@@ -636,6 +640,8 @@
636
640
  <ref name="eref"/>
637
641
  <ref name="xref"/>
638
642
  <ref name="hyperlink"/>
643
+ <ref name="index"/>
644
+ <ref name="index-xref"/>
639
645
  </choice>
640
646
  </zeroOrMore>
641
647
  </element>
@@ -648,6 +654,8 @@
648
654
  <ref name="eref"/>
649
655
  <ref name="xref"/>
650
656
  <ref name="hyperlink"/>
657
+ <ref name="index"/>
658
+ <ref name="index-xref"/>
651
659
  </choice>
652
660
  </zeroOrMore>
653
661
  </element>
@@ -655,7 +663,11 @@
655
663
  <define name="keyword">
656
664
  <element name="keyword">
657
665
  <zeroOrMore>
658
- <ref name="PureTextElement"/>
666
+ <choice>
667
+ <ref name="PureTextElement"/>
668
+ <ref name="index"/>
669
+ <ref name="index-xref"/>
670
+ </choice>
659
671
  </zeroOrMore>
660
672
  </element>
661
673
  </define>
@@ -676,7 +688,11 @@
676
688
  <define name="strike">
677
689
  <element name="strike">
678
690
  <zeroOrMore>
679
- <ref name="PureTextElement"/>
691
+ <choice>
692
+ <ref name="PureTextElement"/>
693
+ <ref name="index"/>
694
+ <ref name="index-xref"/>
695
+ </choice>
680
696
  </zeroOrMore>
681
697
  </element>
682
698
  </define>
data/grammars/biblio.rng CHANGED
@@ -942,6 +942,7 @@
942
942
  <value>obsoleted</value>
943
943
  <value>confirmed</value>
944
944
  <value>updated</value>
945
+ <value>corrected</value>
945
946
  <value>issued</value>
946
947
  <value>transmitted</value>
947
948
  <value>copied</value>
@@ -1,6 +1,6 @@
1
1
  {
2
- "relaton-models": "v1.2.4",
3
- "basicdoc-models": "v1.0.2",
2
+ "relaton-models": "v1.2.5",
3
+ "basicdoc-models": "v1.0.3",
4
4
  "metanorma-requirements-models": "v1.0.0",
5
5
  "relaton-model-ieee": "v1.0.0",
6
6
  "relaton-model-iso": "v1.0.0",
@@ -28,6 +28,7 @@
28
28
  "relaton-model-omg": "v1.0.0",
29
29
  "relaton-model-oasis": "v1.0.1",
30
30
  "relaton-model-jis": "v0.0.1",
31
- "metanorma-model": "v1.2.4",
32
- "date": "2023-08-31T02:58:33Z"
31
+ "relaton-model-etsi": "v0.0.1",
32
+ "metanorma-model": "v1.2.8",
33
+ "date": "2023-11-13T23:08:26Z"
33
34
  }
@@ -6,8 +6,8 @@ module RelatonBib
6
6
  # Bibliographic date.
7
7
  class BibliographicDate
8
8
  TYPES = %w[published accessed created implemented obsoleted confirmed
9
- updated issued transmitted copied unchanged circulated adapted
10
- vote-started vote-ended announced].freeze
9
+ updated corrected issued transmitted copied unchanged circulated adapted
10
+ vote-started vote-ended announced stable-until].freeze
11
11
 
12
12
  # @return [String]
13
13
  attr_reader :type
@@ -22,7 +22,7 @@ module RelatonBib
22
22
  # @param description [Array<String>]
23
23
  def initialize(**args)
24
24
  if args[:type] && !TYPES.include?(args[:type])
25
- Util.warn %{Contributor's type `#{args[:type]}` is invalid.}
25
+ Util.warn %{WARNING: Contributor's type `#{args[:type]}` is invalid.}
26
26
  end
27
27
 
28
28
  @type = args[:type]
@@ -349,7 +349,7 @@ module RelatonBib
349
349
  if rel[:bibitem]
350
350
  rel[:bibitem] = bib_item hash_to_bib(rel[:bibitem])
351
351
  else
352
- Util.warn "bibitem missing: `#{rel}`"
352
+ Util.warn "WARNING: bibitem missing: `#{rel}`"
353
353
  rel[:bibitem] = nil
354
354
  end
355
355
  end
@@ -99,7 +99,7 @@ module RelatonBib
99
99
  # return content unless language || script
100
100
 
101
101
  hash = {}
102
- hash["content"] = content unless content.nil? || content.empty?
102
+ hash["content"] = content # unless content.nil? || content.empty?
103
103
  hash["language"] = single_element_array(language) if language&.any?
104
104
  hash["script"] = single_element_array(script) if script&.any?
105
105
  hash
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.16.2".freeze
2
+ VERSION = "1.16.4".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.2
4
+ version: 1.16.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-03 00:00:00.000000000 Z
11
+ date: 2023-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable