relaton-ietf 1.12.8 → 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: cf939eb8fbf40547a0fcfad3bd4c23494374fabb316f1b73e504c1dbb90787de
4
- data.tar.gz: cc4ad5a95dad765a8f03007d1a7b98d7e452b8e63d917627fc6f7376017b7621
3
+ metadata.gz: 7fcc6282898f946176c5c567b46a82bb1b872499f960131a196f6f1588001990
4
+ data.tar.gz: d9162d9946a6d15ccb14747d02997c3a6f80301e71a45d97bdf0eba8bb4c5a7e
5
5
  SHA512:
6
- metadata.gz: 2fca716e0d98b6a38dbf97f9dfffc7aad28028c8289f214dc90627ac060977101e2a9a1950a8c24e80a065877650c8e2fea609b9737a460ea412f4e32fcbe61f
7
- data.tar.gz: 59b10d824cbe656afb0c9ef74c480b4267fdd48c1a9097d8ef4afee59017c7b0112aa96533b9195bf6611de1547805bb1c05c20968cf7f33959eb825d4f58b5b
6
+ metadata.gz: 1a27a9b3e71451c38b179e1a24b8318f21fb6ed289ab57d80afefbe440c508ea5ed888435c29ac33db278c7de26a41dae328be73ccecfef5d5c0065d94b78115
7
+ data.tar.gz: 4f726b7e50e90479faeab8979df196ce59f9de5625aa24b71fcc9d86d22d5622b378db2a55c1a7e17cbda52431a367946e70ab1d92965935342277c3ab89e0c7
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.12.8".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.8
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-31 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