relaton-ietf 1.9.9 → 1.9.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 +6 -2
- data/lib/relaton_ietf/rfc_index_entry.rb +5 -4
- 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: b228ad21183ba091376ece03262981610397d4bd24dbbe4d25ecaade5919afc8
|
4
|
+
data.tar.gz: 7afaa7821c8402caf21880b5f89c8f6cedf726e9f7d63e373378d3bc23396af5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '019d2fe2d610aa3a5cd57d87e208c8b0eba266fd6a1239acbcc8cc20e080aaa7ab4939b05ecdff9fd455a45b4363cbc4cc514bd6d6b6d7b8fd21b46fb4115c86'
|
7
|
+
data.tar.gz: 9c4c8ca423d371e2702d7427014b30546e8da6a3c47f85f543ab7f6b6dabc4ff41114add59875fd1265857c8d04aeffc49e15324381fd92471ed11b9791069db
|
@@ -51,7 +51,10 @@ module RelatonIetf
|
|
51
51
|
# @return [Array<RelatonBib::DocumentIdettifier>] document identifiers
|
52
52
|
#
|
53
53
|
def parse_docid
|
54
|
-
ids = [
|
54
|
+
ids = [
|
55
|
+
RelatonBib::DocumentIdentifier.new(id: pub_id, type: "IETF"),
|
56
|
+
RelatonBib::DocumentIdentifier.new(id: code, type: "IETF", scope: "anchor"),
|
57
|
+
]
|
55
58
|
doi = @doc.at("./xmlns:doi").text
|
56
59
|
ids << RelatonBib::DocumentIdentifier.new(id: doi, type: "DOI")
|
57
60
|
ids
|
@@ -73,7 +76,8 @@ module RelatonIetf
|
|
73
76
|
# @return [String] PubID
|
74
77
|
#
|
75
78
|
def pub_id
|
76
|
-
|
79
|
+
/^RFC(?<num>\d+)$/ =~ code
|
80
|
+
"RFC #{num.sub(/^0+/, '')}"
|
77
81
|
end
|
78
82
|
|
79
83
|
#
|
@@ -54,13 +54,14 @@ module RelatonIetf
|
|
54
54
|
|
55
55
|
def parse_docid
|
56
56
|
[
|
57
|
-
RelatonBib::DocumentIdentifier.new(type: "IETF",
|
57
|
+
RelatonBib::DocumentIdentifier.new(type: "IETF", id: pub_id),
|
58
|
+
RelatonBib::DocumentIdentifier.new(type: "IETF", scope: "anchor", id: @doc_id),
|
58
59
|
]
|
59
60
|
end
|
60
61
|
|
61
|
-
|
62
|
-
|
63
|
-
|
62
|
+
def pub_id
|
63
|
+
"#{@name.upcase} #{@shortnum}"
|
64
|
+
end
|
64
65
|
|
65
66
|
def anchor
|
66
67
|
"#{@name.upcase}#{@shortnum}"
|
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.9.
|
4
|
+
version: 1.9.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: 2021-12-
|
11
|
+
date: 2021-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|