relaton-ietf 1.10.1 → 1.10.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: '00386986e612c0c1a0398ddb906f70f4713b58d0656669f6ccb5b35cb2534969'
4
- data.tar.gz: d3203c37cee308e7286df6aebe7c22e80ea634c2088c6dfb1b5bede5ba667ace
3
+ metadata.gz: aea00f6f466ab9780b8fbb93cd69ea04e7bd099ab8793be0edd6be843143a3f6
4
+ data.tar.gz: a9259ce6290b92dc98679aded761e2563d4771118f4a44434142cd26b3248c4e
5
5
  SHA512:
6
- metadata.gz: 509beae062402de5ab592997a9aeb407dd558ac9da995aefe815c624f75fdb1ee88349701507c8a5646dc86c88f67e33f3bf2e222b3e298ca630d70f42d2b382
7
- data.tar.gz: 6412e4a373d77d92ea445452cdfbb3946061dd9f355900e60c2072db1cbdea3114f50918ef660761fcfd4f98b8bc31fad87e178c2a9ca02b46efecf74697c270
6
+ metadata.gz: 7d4cf8fc6b8ce6483732b0c8f350596a41cd76ac35001e0257f683ebf854646cb473f08d293e40b8fc84cee61527ab421bd6178ba5a2f14ec32a29c4c2ac97c0
7
+ data.tar.gz: c8016eb29a720c92dc25c4e364a5877d31fa1aa0cffa6bb5acae164ec9a169c0022e4c6eb6cc5b3b05963ae74b5a922cb036e0c196d205fe85907cd9d22cd79c
@@ -8,7 +8,7 @@ module RelatonIetf
8
8
  def bib_item(**attrs)
9
9
  unless attrs.delete(:is_relation)
10
10
  attrs[:fetched] = Date.today.to_s
11
- attrs[:place] = ["Fremont, CA"]
11
+ # attrs[:place] = ["Fremont, CA"]
12
12
  end
13
13
  RelatonIetf::IetfBibliographicItem.new(**attrs)
14
14
  end
@@ -24,6 +24,7 @@ module RelatonIetf
24
24
  type = super
25
25
  case type
26
26
  when "BCP", "FYI", "STD", "RFC" then "RFC"
27
+ when "Internet-Draft" then type
27
28
  else "IETF"
28
29
  end
29
30
  end
@@ -37,10 +38,14 @@ module RelatonIetf
37
38
  # @param reference [Nokogiri::XML::Element]
38
39
  # @return [Array<Hash>]
39
40
  def contributors(reference)
40
- [{
41
- entity: new_org("Internet Engineering Task Force", "IETF"),
42
- role: [type: "publisher"],
43
- }] + super
41
+ contribs = []
42
+ unless reference[:anchor]&.match?(/^I-D/)
43
+ contribs << {
44
+ entity: new_org("Internet Engineering Task Force", "IETF"),
45
+ role: [type: "publisher"],
46
+ }
47
+ end
48
+ contribs + super
44
49
  # persons(reference) + organizations(reference)
45
50
  end
46
51
  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.1".freeze
2
+ VERSION = "1.10.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.10.1
4
+ version: 1.10.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: 2022-02-09 00:00:00.000000000 Z
11
+ date: 2022-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml