relaton-ietf 1.9.3 → 1.9.4

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: 05a6c063cec7b11a826ebe390cc8ebc70974504a70098886a9ac815036428314
4
- data.tar.gz: e99a83cfdc93c51e58af1c50baba6a4b518a1895da6a7949cb4fa2e500b56f0b
3
+ metadata.gz: 639209bd0a93d43f7d9d671d709a40e635ef7978ac33b502afde91b64e03c857
4
+ data.tar.gz: d33475e9becda05d7eadc6b9e48e3df700aa4620dc6081811708faddd84b650f
5
5
  SHA512:
6
- metadata.gz: 10ec58d5177d45a71079daee30517c3ea040cf5b231ff5fb0688c10818ba7d77b0cd5e61cec478739851a1a460d4b37cec8dcb1d4ce3b53ae2a84bca3300348f
7
- data.tar.gz: 4fda1bcdab90ddc307f11d9684016b625d2f7c7221aeb25b9f7fcc1b1679f65b2829833fd982df913e8a7f0dfc910522bf2905dd7555c8da30e80cfa64ae18fb
6
+ metadata.gz: 87f20d0e95cc16aa9462b78cf67eef1ca40e0124bda85ec2a480de960b44d33ef333083ce25fdd2fff6e109b071fdbf2cf27226c210eef65331b1786daa59f85
7
+ data.tar.gz: 3865277ac823c1fe10731a813ca5085d9e3ced27bb5af6e1bb53cb9a7c952c76e47f249cbb6cc013293c5ba2f46410f309689be307e55e1fc1aff4d508219d88
@@ -120,10 +120,10 @@ 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&.downcase
124
124
  end
125
- id ||= entry.docnumber
126
- name = id.gsub(/[\s,:\/]/, "_").squeeze("_").upcase
125
+ id ||= entry.docnumber.upcase
126
+ name = id.gsub(/[\s,:\/]/, "_").squeeze("_")
127
127
  File.join @output, "#{name}.#{@ext}"
128
128
  end
129
129
  end
@@ -73,7 +73,7 @@ module RelatonIetf
73
73
  # @return [String] PubID
74
74
  #
75
75
  def pub_id
76
- "IETF #{code}"
76
+ "IETF #{code.sub(/^(RFC)(\d+)/, '\1 \2')}"
77
77
  end
78
78
 
79
79
  #
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.9.3".freeze
2
+ VERSION = "1.9.4".freeze
3
3
  end
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.9.3
4
+ version: 1.9.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: 2021-12-19 00:00:00.000000000 Z
11
+ date: 2021-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml