relaton-ietf 1.12.7 → 1.12.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_ietf/rfc_entry.rb +2 -2
- data/lib/relaton_ietf/rfc_index_entry.rb +2 -1
- data/lib/relaton_ietf/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: 891d0ed12d4b647657c35f6cd1e38aacfb9cf9546322117b49bd6a6844c08d78
|
4
|
+
data.tar.gz: a291172eb2625ef08c709021424ce69c89ae3124e72a9445d1b56df6215ba22f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16c489706d16e147853451e386704c2bc5e4970c30b88ed7f499aa5bea979c28c1d9629182190f687431154ed1914a374f4c06534d6f7610975838dd4ce93113
|
7
|
+
data.tar.gz: 74dbea799c54201a3eb7e1b763274974ebcef370611b383f2b4e098edfd9a0434b68a4fd45e564a17a78475a9d7b421711fb550ee536be5bab8af2a7f8e1da6f
|
@@ -68,7 +68,7 @@ module RelatonIetf
|
|
68
68
|
def parse_docid
|
69
69
|
ids = [
|
70
70
|
RelatonBib::DocumentIdentifier.new(id: pub_id, type: "IETF", primary: true),
|
71
|
-
RelatonBib::DocumentIdentifier.new(id: anchor, type: "IETF", scope: "anchor"),
|
71
|
+
# RelatonBib::DocumentIdentifier.new(id: anchor, type: "IETF", scope: "anchor"),
|
72
72
|
]
|
73
73
|
doi = @doc.at("./xmlns:doi").text
|
74
74
|
ids << RelatonBib::DocumentIdentifier.new(id: doi, type: "DOI")
|
@@ -218,7 +218,7 @@ module RelatonIetf
|
|
218
218
|
def initials(int)
|
219
219
|
return [] unless int
|
220
220
|
|
221
|
-
int.split(
|
221
|
+
int.split(/(?<=\.)-?\s?|\s/).map { |i| RelatonBib::LocalizedString.new i, "en", "Latn" }
|
222
222
|
end
|
223
223
|
|
224
224
|
#
|
@@ -126,7 +126,8 @@ module RelatonIetf
|
|
126
126
|
def parse_relation
|
127
127
|
@is_also.map do |ref|
|
128
128
|
fref = RelatonBib::FormattedRef.new content: ref
|
129
|
-
|
129
|
+
id = ref.sub(/^([A-Z]+)0*(\d+)$/, '\1 \2')
|
130
|
+
docid = RelatonBib::DocumentIdentifier.new(type: "IETF", id: id, primary: true)
|
130
131
|
bib = IetfBibliographicItem.new formattedref: fref, docid: [docid]
|
131
132
|
{ type: "includes", bibitem: bib }
|
132
133
|
end
|
data/lib/relaton_ietf/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ietf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.10
|
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-
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|