relaton-ietf 1.12.6 → 1.12.9

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: '029ac486811190a8734f2b620b92a99b5270e8f100a793901d96052c71f6dbed'
4
- data.tar.gz: 2cb2fc3ef85479025d220878b3796587de1ce3622c1372f21faeaa37d581775d
3
+ metadata.gz: 7fcc6282898f946176c5c567b46a82bb1b872499f960131a196f6f1588001990
4
+ data.tar.gz: d9162d9946a6d15ccb14747d02997c3a6f80301e71a45d97bdf0eba8bb4c5a7e
5
5
  SHA512:
6
- metadata.gz: 2da2657783478b1fa88cf1669fb5d5e1f556baed0d43e4efbbf8728309dc10c27a6ffd073653f80e97b3eb9619776fac8ee78264868ce2bcfb0ef8dad38f1298
7
- data.tar.gz: 5828a4b7d87cc7c258c213c5a3bb6d0cd7ed11f7c60d5eaaf8ede3ed8d65213a1d7fefe7254705ce9f1355e4450e7903bfb0859067ad4d205c43f31c6fd1d9cf
6
+ metadata.gz: 1a27a9b3e71451c38b179e1a24b8318f21fb6ed289ab57d80afefbe440c508ea5ed888435c29ac33db278c7de26a41dae328be73ccecfef5d5c0065d94b78115
7
+ data.tar.gz: 4f726b7e50e90479faeab8979df196ce59f9de5625aa24b71fcc9d86d22d5622b378db2a55c1a7e17cbda52431a367946e70ab1d92965935342277c3ab89e0c7
@@ -6,7 +6,7 @@ module RelatonIetf
6
6
  def initialize # rubocop:disable Lint/MissingSuper
7
7
  @short = :relaton_ietf
8
8
  @prefix = "IETF"
9
- @defaultprefix = /^(IETF|RFC|BCP|FYI|STD)\s/
9
+ @defaultprefix = /^((IETF|RFC|BCP|FYI|STD)\s|I-D[.\s])/
10
10
  @idtype = "IETF"
11
11
  @datasets = %w[ietf-rfcsubseries ietf-internet-drafts ietf-rfc-entries]
12
12
  end
@@ -218,7 +218,7 @@ module RelatonIetf
218
218
  def initials(int)
219
219
  return [] unless int
220
220
 
221
- int.split(/\.-?\s?|\s/).map { |i| RelatonBib::LocalizedString.new i, "en", "Latn" }
221
+ int.split(/(?<=\.)-?\s?|\s/).map { |i| RelatonBib::LocalizedString.new i, "en", "Latn" }
222
222
  end
223
223
 
224
224
  #
@@ -126,7 +126,8 @@ module RelatonIetf
126
126
  def parse_relation
127
127
  @is_also.map do |ref|
128
128
  fref = RelatonBib::FormattedRef.new content: ref
129
- docid = RelatonBib::DocumentIdentifier.new(type: "IETF", id: ref, primary: true)
129
+ id = ref.sub(/^([A-Z]+)0*(\d+)$/, '\1 \2')
130
+ docid = RelatonBib::DocumentIdentifier.new(type: "IETF", id: id, primary: true)
130
131
  bib = IetfBibliographicItem.new formattedref: fref, docid: [docid]
131
132
  { type: "includes", bibitem: bib }
132
133
  end
@@ -31,7 +31,7 @@ module RelatonIetf
31
31
  when /^RFC/ then RFC
32
32
  when /^(?:BCP|FYI|STD)/ then RSS
33
33
  when /^I-D/
34
- ref.sub!(/^I-D\./, "")
34
+ ref.sub!(/^I-D[.\s]/, "")
35
35
  IDS
36
36
  else return
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.12.6".freeze
2
+ VERSION = "1.12.9".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.12.6
4
+ version: 1.12.9
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-07-22 00:00:00.000000000 Z
11
+ date: 2022-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml