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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 639209bd0a93d43f7d9d671d709a40e635ef7978ac33b502afde91b64e03c857
4
- data.tar.gz: d33475e9becda05d7eadc6b9e48e3df700aa4620dc6081811708faddd84b650f
3
+ metadata.gz: 662721a37445e18e6d5c2cce9f99cc3a62fe3d59a20870d00bf2f840bb645fd7
4
+ data.tar.gz: 4129066b66f1fc0391ac2d06db9735dfe86c288be0004276be0092e06e2cf461
5
5
  SHA512:
6
- metadata.gz: 87f20d0e95cc16aa9462b78cf67eef1ca40e0124bda85ec2a480de960b44d33ef333083ce25fdd2fff6e109b071fdbf2cf27226c210eef65331b1786daa59f85
7
- data.tar.gz: 3865277ac823c1fe10731a813ca5085d9e3ced27bb5af6e1bb53cb9a7c952c76e47f249cbb6cc013293c5ba2f46410f309689be307e55e1fc1aff4d508219d88
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&.downcase
123
+ entry.docidentifier.detect { |i| i.type == "Internet-Draft" }&.id
124
124
  end
125
- id ||= entry.docnumber.upcase
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
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.9.4".freeze
2
+ VERSION = "1.9.5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ietf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.4
4
+ version: 1.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.