relaton-ietf 1.10.2 → 1.10.3

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: 2b981efd1d7feca207943b7bfd7e59a70615bbc23a9f7d5a8627a148fa7122ee
4
- data.tar.gz: 959f7382d73071e9fb53211ae081129ccb5016ba7427afc026334e6f9ebda6a2
3
+ metadata.gz: 39327270eb3e1efbd565881ac04a81623a6a1b9b0c03bfe5bec0403c47c6ffc6
4
+ data.tar.gz: 93d3e101fd02e503d7e3ba64b5c3e6e15c63071c769b4242094611bc40ed1685
5
5
  SHA512:
6
- metadata.gz: a5e2d560647cfeb636ebf7de38c921a82b094c9995bfcc2972a24c843d9877158c3a7667140c747627e2c21d073170f494ca80ff250db54e2d720c7765a37058
7
- data.tar.gz: 49d8dc28f9c5b7831c4b5c3bee346440a7562eb6c6e6cb6d0bba8a821a0c52f72b062abbd2f46aeb59b2d5fcc782d839626299dd018b9bc0e656247a3f8ba4ea
6
+ metadata.gz: 05ab0ccbc44d9c51ca1565e74dcaacfba1977d1bea2b28684132a249959c427ae83a81c9fde16b87418c82c16dfe5433959e8bce2ec01cf821eb1ae069de7c4a
7
+ data.tar.gz: 5d3ffb6cb20c518447106b78df29e1db9489ad291e31ba1542162e69e6f283809490805a28cc9bf382cfced8d845594dcc1174851be1b8d165c07016d8db4022
@@ -37,10 +37,14 @@ module RelatonIetf
37
37
  # @param reference [Nokogiri::XML::Element]
38
38
  # @return [Array<Hash>]
39
39
  def contributors(reference)
40
- [{
41
- entity: new_org("Internet Engineering Task Force", "IETF"),
42
- role: [type: "publisher"],
43
- }] + super
40
+ contribs = []
41
+ unless reference[:anchor]&.match?(/^I-D/)
42
+ contribs << {
43
+ entity: new_org("Internet Engineering Task Force", "IETF"),
44
+ role: [type: "publisher"],
45
+ }
46
+ end
47
+ contribs + super
44
48
  # persons(reference) + organizations(reference)
45
49
  end
46
50
  end
@@ -256,11 +256,13 @@ module RelatonIetf
256
256
  # @return [RelatonBib::EditorialGroup] document editorial group
257
257
  #
258
258
  def parse_editorialgroup
259
- tc = @doc.xpath("./xmlns:wg_acronym").map do |wg|
259
+ tc = @doc.xpath("./xmlns:wg_acronym").each_with_object([]) do |wg, arr|
260
+ next if wg.text == "NON WORKING GROUP"
261
+
260
262
  wg = RelatonBib::WorkGroup.new(name: wg.text)
261
- RelatonBib::TechnicalCommittee.new(wg)
263
+ arr << RelatonBib::TechnicalCommittee.new(wg)
262
264
  end
263
- RelatonBib::EditorialGroup.new(tc)
265
+ RelatonBib::EditorialGroup.new(tc) if tc.any?
264
266
  end
265
267
  end
266
268
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.10.2".freeze
2
+ VERSION = "1.10.3".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.10.2
4
+ version: 1.10.3
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-02-11 00:00:00.000000000 Z
11
+ date: 2022-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml