relaton-ietf 1.1.3 → 1.1.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: 3006ceb252c3088fecd5336bf823174607e924b833e16a6d2fe4576ea2c7bd96
4
- data.tar.gz: 168f027b083c485350ceb59337702f99559da99408b4ea62f19306ac29400368
3
+ metadata.gz: 9b4c5d8312868629129478bdcae9e7974ed1e32052a4bb674f8e2e93f43448ab
4
+ data.tar.gz: 6fd9cc41e53b2a0333faafaa692a6c6a5c0f60b36a1a93d3520a31e420c48cc3
5
5
  SHA512:
6
- metadata.gz: 64fc796033522eb10b764b741fba523ba11fcb5fd4c9806df0cb2156bbe76bff150dec088c6e031d2ff318c87bb16560ebb09479998bc92d8d4205ae5f6ba12d
7
- data.tar.gz: 14d06c4354e3b2a61ae946ca819bbbe56aa7f5cfabba7ffe4d57dbf68e9112ef3828dc0d755969bba0460a38cd7e0c90356a74c1dfa289b8cfed0621580b3fa5
6
+ metadata.gz: 721d3953bb74e0ca0b7a63a8870ce845491c458fe9b1f33d1f9219cf2d40d853da68c2c413296480aad01c546caa79ed89820408f391a5f62c35e178a1ef0354
7
+ data.tar.gz: 4c6ea63c04af0190e09e0bc42b807be9e4e7e2f0548022b8de6fc640829e46a887b83f2cf3ed8e07b9acbb0497c62cea0951db9e9b96c99d6944b69bcdabb0bf
@@ -10,7 +10,6 @@ module RelatonIetf
10
10
  # @param keyword [Array<String>]
11
11
  def initialize(**args)
12
12
  @doctype = args.delete :doctype
13
- # @keyword = args.delete(:keyword) || []
14
13
  super
15
14
  end
16
15
 
@@ -20,10 +19,9 @@ module RelatonIetf
20
19
  def to_xml(builder = nil, **opts)
21
20
  opts[:date_format] ||= :short
22
21
  super builder, **opts do |b|
23
- if opts[:bibdata]
22
+ if opts[:bibdata] && doctype
24
23
  b.ext do
25
24
  b.doctype doctype if doctype
26
- # keyword.each { |k| b.keyword k }
27
25
  end
28
26
  end
29
27
  end
@@ -330,10 +330,13 @@ module RelatonIetf
330
330
  # @return [Array<RelatonBib::DocumentIdentifier>]
331
331
  #
332
332
  def docids(reference, ver)
333
- id = (reference[:anchor] || reference[:docName] || reference[:number]).
334
- sub(/^(RFC)/, "\\1 ")
333
+ id = (reference[:anchor] || reference[:docName] || reference[:number])
335
334
  ret = []
336
- ret << RelatonBib::DocumentIdentifier.new(type: "IETF", id: id)
335
+ if id
336
+ ret << RelatonBib::DocumentIdentifier.new(
337
+ type: "IETF", id: id.sub(/^(RFC)/, "\\1 "),
338
+ )
339
+ end
337
340
  if (id = reference[:anchor])
338
341
  ret << RelatonBib::DocumentIdentifier.new(type: "rfc-anchor", id: id)
339
342
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.1.3".freeze
2
+ VERSION = "1.1.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.1.3
4
+ version: 1.1.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: 2020-06-11 00:00:00.000000000 Z
11
+ date: 2020-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase