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 +4 -4
- data/grammars/basicdoc.rng +18 -2
- data/grammars/biblio.rng +1 -0
- data/grammars/versions.json +5 -4
- data/lib/relaton_bib/bibliographic_date.rb +2 -2
- data/lib/relaton_bib/contribution_info.rb +1 -1
- data/lib/relaton_bib/hash_converter.rb +1 -1
- data/lib/relaton_bib/localized_string.rb +1 -1
- data/lib/relaton_bib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7deac57a314879f0712e2a4b0ed696231284dee696eb1761129b595ed19a8680
|
4
|
+
data.tar.gz: '052873d3bbd058acde24892cfacf1d751ed72ed15ef2706e04750ede16a01628'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b7a9cab63a7d4f1d222d9b166e5893709968f76e33f74faceee6427f84f09162e6461a61e7661778ec0262417ff6cb128d21ef7da1f7141d686082452ddf6ed
|
7
|
+
data.tar.gz: 8bd841a1cfa0cba89333d3a12f66576b469855c0f3746fd5a2a2bad5e1472da52484b825172203015ec58245a43b21391f079b8af1f119598b6f2208a20bf516
|
data/grammars/basicdoc.rng
CHANGED
@@ -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
|
-
<
|
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
|
-
<
|
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
data/grammars/versions.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
|
-
"relaton-models": "v1.2.
|
3
|
-
"basicdoc-models": "v1.0.
|
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
|
-
"
|
32
|
-
"
|
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]
|
@@ -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
|
data/lib/relaton_bib/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|