relaton-ietf 1.12.5 → 1.12.6
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 +2 -4
- data/lib/relaton_ietf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '029ac486811190a8734f2b620b92a99b5270e8f100a793901d96052c71f6dbed'
|
4
|
+
data.tar.gz: 2cb2fc3ef85479025d220878b3796587de1ce3622c1372f21faeaa37d581775d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2da2657783478b1fa88cf1669fb5d5e1f556baed0d43e4efbbf8728309dc10c27a6ffd073653f80e97b3eb9619776fac8ee78264868ce2bcfb0ef8dad38f1298
|
7
|
+
data.tar.gz: 5828a4b7d87cc7c258c213c5a3bb6d0cd7ed11f7c60d5eaaf8ede3ed8d65213a1d7fefe7254705ce9f1355e4450e7903bfb0859067ad4d205c43f31c6fd1d9cf
|
@@ -67,7 +67,7 @@ module RelatonIetf
|
|
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
|
-
vers << file.sub(/^reference\.I-D\./, "")
|
70
|
+
vers << file.sub(/^reference\.I-D\./, "").downcase
|
71
71
|
/(?<ver>\d+)$/ =~ file
|
72
72
|
end
|
73
73
|
bib = BibXMLParser.parse(File.read(path, encoding: "UTF-8"))
|
@@ -92,7 +92,7 @@ module RelatonIetf
|
|
92
92
|
match = /(?<series>draft-.+)-(?<ver>\d{2})\.#{@ext}$/.match file
|
93
93
|
if match
|
94
94
|
if series != match[:series]
|
95
|
-
bib_versions = versions.grep(/^#{match[:series]}-\d{2}/)
|
95
|
+
bib_versions = versions.grep(/^#{Regexp.quote match[:series]}-\d{2}/)
|
96
96
|
create_series match[:series], bib_versions
|
97
97
|
series = match[:series]
|
98
98
|
end
|
@@ -115,8 +115,6 @@ module RelatonIetf
|
|
115
115
|
# @param [Array<String>] versions list of versions
|
116
116
|
#
|
117
117
|
def create_series(ref, versions) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
118
|
-
return if versions.size < 2
|
119
|
-
|
120
118
|
vs = versions.sort_by { |v| v.match(/\d+$/).to_s.to_i }
|
121
119
|
fref = RelatonBib::FormattedRef.new content: ref
|
122
120
|
docid = RelatonBib::DocumentIdentifier.new type: "Internet-Draft", id: ref, primary: true
|
data/lib/relaton_ietf/version.rb
CHANGED