relaton-ietf 1.11.1 → 1.11.2
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/data_fetcher.rb +8 -2
- 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: 36682c0123ce382610e18c06a3c9ae748ed3d906080786e40c88b61143ed9c0d
|
4
|
+
data.tar.gz: 88e8bd5dac94beb166f4fa467f83625376630ea36da7c314d044677bce541709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e1bc72dbf69771e46ff1250b21126f08cc794c16cc69b14d4a2a5f0fd8de544de07597e4a6e4bc0ef8ec5f1ec5699ab07f01d8a3f8bd0d9bd5bfefc38210d2a
|
7
|
+
data.tar.gz: 55eea68edf4a372065475fe74d86f407782d007b99a6fcffa1f121f44dd70d75f60fa0bf97cb0d38a76a595ff7c3b505d0f3e9b3a091417a0625fd71fa076461
|
@@ -63,13 +63,19 @@ module RelatonIetf
|
|
63
63
|
#
|
64
64
|
# Fetches ietf-internet-drafts documents
|
65
65
|
#
|
66
|
-
def fetch_ieft_internet_drafts # rubocop:disable Metrics/MethodLength
|
66
|
+
def fetch_ieft_internet_drafts # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
67
67
|
versions = Dir["bibxml-ids/*.xml"].each_with_object([]) do |path, vers|
|
68
68
|
file = File.basename path, ".xml"
|
69
69
|
if file.include?("D.draft-")
|
70
70
|
vers << file.sub(/^reference\.I-D\./, "")
|
71
|
+
/(?<ver>\d+)$/ =~ file
|
71
72
|
end
|
72
|
-
|
73
|
+
bib = BibXMLParser.parse(File.read(path, encoding: "UTF-8"))
|
74
|
+
if ver
|
75
|
+
version = RelatonBib::BibliographicItem::Version.new nil, [ver]
|
76
|
+
bib.instance_variable_set :@version, version
|
77
|
+
end
|
78
|
+
save_doc bib
|
73
79
|
end
|
74
80
|
update_versions(versions) if versions.any? && @format != "bibxml"
|
75
81
|
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.11.
|
4
|
+
version: 1.11.2
|
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-05-
|
11
|
+
date: 2022-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|