relaton-ietf 1.9.4 → 1.9.5
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 +5 -2
- 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: 662721a37445e18e6d5c2cce9f99cc3a62fe3d59a20870d00bf2f840bb645fd7
|
4
|
+
data.tar.gz: 4129066b66f1fc0391ac2d06db9735dfe86c288be0004276be0092e06e2cf461
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 797bacba502406e48b573ab58ca9ec413dd8e51b5fef5c28b4676e7ba233cb2e4db3ffffefcff233a2f8a440bee9296083c11420684f9307a4b2bbf7e85c68b5
|
7
|
+
data.tar.gz: e0fcc1ac666e54a869aec07fa5fe6fd5397b04e6afced205cbee57366310b7fccf23840b1d724a30e7c8f2781fb8d97f4a5ad36f9637510b5466f0ba14c1621b
|
@@ -120,9 +120,12 @@ module RelatonIetf
|
|
120
120
|
#
|
121
121
|
def file_name(entry)
|
122
122
|
id = if entry.respond_to? :docidentifier
|
123
|
-
entry.docidentifier.detect { |i| i.type == "Internet-Draft" }&.id
|
123
|
+
entry.docidentifier.detect { |i| i.type == "Internet-Draft" }&.id
|
124
124
|
end
|
125
|
-
id ||= entry.docnumber
|
125
|
+
id ||= entry.docnumber
|
126
|
+
if @source == "ietf-internet-drafts" then id.downcase!
|
127
|
+
else id.upcase!
|
128
|
+
end
|
126
129
|
name = id.gsub(/[\s,:\/]/, "_").squeeze("_")
|
127
130
|
File.join @output, "#{name}.#{@ext}"
|
128
131
|
end
|
data/lib/relaton_ietf/version.rb
CHANGED