relaton-ietf 1.1.3 → 1.1.4
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/ietf_bibliographic_item.rb +1 -3
- data/lib/relaton_ietf/scrapper.rb +6 -3
- 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: 9b4c5d8312868629129478bdcae9e7974ed1e32052a4bb674f8e2e93f43448ab
|
4
|
+
data.tar.gz: 6fd9cc41e53b2a0333faafaa692a6c6a5c0f60b36a1a93d3520a31e420c48cc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 721d3953bb74e0ca0b7a63a8870ce845491c458fe9b1f33d1f9219cf2d40d853da68c2c413296480aad01c546caa79ed89820408f391a5f62c35e178a1ef0354
|
7
|
+
data.tar.gz: 4c6ea63c04af0190e09e0bc42b807be9e4e7e2f0548022b8de6fc640829e46a887b83f2cf3ed8e07b9acbb0497c62cea0951db9e9b96c99d6944b69bcdabb0bf
|
@@ -10,7 +10,6 @@ module RelatonIetf
|
|
10
10
|
# @param keyword [Array<String>]
|
11
11
|
def initialize(**args)
|
12
12
|
@doctype = args.delete :doctype
|
13
|
-
# @keyword = args.delete(:keyword) || []
|
14
13
|
super
|
15
14
|
end
|
16
15
|
|
@@ -20,10 +19,9 @@ module RelatonIetf
|
|
20
19
|
def to_xml(builder = nil, **opts)
|
21
20
|
opts[:date_format] ||= :short
|
22
21
|
super builder, **opts do |b|
|
23
|
-
if opts[:bibdata]
|
22
|
+
if opts[:bibdata] && doctype
|
24
23
|
b.ext do
|
25
24
|
b.doctype doctype if doctype
|
26
|
-
# keyword.each { |k| b.keyword k }
|
27
25
|
end
|
28
26
|
end
|
29
27
|
end
|
@@ -330,10 +330,13 @@ module RelatonIetf
|
|
330
330
|
# @return [Array<RelatonBib::DocumentIdentifier>]
|
331
331
|
#
|
332
332
|
def docids(reference, ver)
|
333
|
-
id = (reference[:anchor] || reference[:docName] || reference[:number])
|
334
|
-
sub(/^(RFC)/, "\\1 ")
|
333
|
+
id = (reference[:anchor] || reference[:docName] || reference[:number])
|
335
334
|
ret = []
|
336
|
-
|
335
|
+
if id
|
336
|
+
ret << RelatonBib::DocumentIdentifier.new(
|
337
|
+
type: "IETF", id: id.sub(/^(RFC)/, "\\1 "),
|
338
|
+
)
|
339
|
+
end
|
337
340
|
if (id = reference[:anchor])
|
338
341
|
ret << RelatonBib::DocumentIdentifier.new(type: "rfc-anchor", id: id)
|
339
342
|
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.1.
|
4
|
+
version: 1.1.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: 2020-06-
|
11
|
+
date: 2020-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|