relaton-ietf 1.12.7 → 1.12.10

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: f2fd674003889725827b1fabaa8f17e203d89c3db34c94a00dda7cbac76217c1
4
- data.tar.gz: 0bacd63b9c7593281255b93aaef453378a1e9cc60f1e1fe0cfb0b2c7b5f438d4
3
+ metadata.gz: 891d0ed12d4b647657c35f6cd1e38aacfb9cf9546322117b49bd6a6844c08d78
4
+ data.tar.gz: a291172eb2625ef08c709021424ce69c89ae3124e72a9445d1b56df6215ba22f
5
5
  SHA512:
6
- metadata.gz: d054a537dc2f99f682a874f5945fa96dd80e097beacd2e2174167cfa4a0679d0f4402b3e77d24b5e99cb4e51542d42323c8c9d853d1e0b304896e084e19f3366
7
- data.tar.gz: 72a6c35c33589156f569248d4b10979047f3459f90c37e8013c69ec1ff89a87e6238c1ddd599bee4aec6246e22051a788a99de6fc1eabe526557e9a750b21ce4
6
+ metadata.gz: 16c489706d16e147853451e386704c2bc5e4970c30b88ed7f499aa5bea979c28c1d9629182190f687431154ed1914a374f4c06534d6f7610975838dd4ce93113
7
+ data.tar.gz: 74dbea799c54201a3eb7e1b763274974ebcef370611b383f2b4e098edfd9a0434b68a4fd45e564a17a78475a9d7b421711fb550ee536be5bab8af2a7f8e1da6f
@@ -68,7 +68,7 @@ module RelatonIetf
68
68
  def parse_docid
69
69
  ids = [
70
70
  RelatonBib::DocumentIdentifier.new(id: pub_id, type: "IETF", primary: true),
71
- RelatonBib::DocumentIdentifier.new(id: anchor, type: "IETF", scope: "anchor"),
71
+ # RelatonBib::DocumentIdentifier.new(id: anchor, type: "IETF", scope: "anchor"),
72
72
  ]
73
73
  doi = @doc.at("./xmlns:doi").text
74
74
  ids << RelatonBib::DocumentIdentifier.new(id: doi, type: "DOI")
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.12.7".freeze
2
+ VERSION = "1.12.10".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.7
4
+ version: 1.12.10
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-25 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml