relaton-ieee 1.12.5 → 1.12.6

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: b6ad7f017d693570ce6e8c4831ce40b7d5c6385014292abd35511b73b33e4dfa
4
- data.tar.gz: 851deaf7128da40b1e419a9bb1003879a7ac86580ea9386abd62c7549d4c3292
3
+ metadata.gz: 5d518d9c4d21f989941f871c62682bdb996e8d060997e1211fb6bca708cfbd32
4
+ data.tar.gz: 6b160e9ed08862a141fd4068ce70be0a2cf5ea97196013d87c8cf9af0a4ea133
5
5
  SHA512:
6
- metadata.gz: 796570f9e1769e5550e77c5f41a675c7f8a8ae8c3ad39e975fa7a7db6bd20379752ca0b1e8fddd3e58e4f650ff8fc6588fcd6cb3c9ecaf6c1559d3814e44fe79
7
- data.tar.gz: 67a34e3ab8b37a25c128cb46f3957b453a111b7a4afea312cd925f4a33579ef63bc32e2400420900a71f4c5fb1fd206402ca90a9d6868d99af1c5f6d6d2fe65f
6
+ metadata.gz: d8768c3e725410a80ccf1075e33491e1ff99b6c5051576e1441734d9ef31018ffc9077e3ec01ab0bcfb353efd43018a304aff0967beb2b9839a8271a0fdaaa9b
7
+ data.tar.gz: b79ca69d3aa30965fef5ce03b910739fa9e4f1816cbfe37b2d66ddb069b4134160f1c73ad2e603a69d214998e5a737819c7cf5949327491275767df25eab6835
@@ -51,6 +51,7 @@ module RelatonIeee
51
51
  link: parse_link,
52
52
  keyword: parse_keyword,
53
53
  ics: parse_ics,
54
+ editorialgroup: parse_editorialgroup,
54
55
  }
55
56
  IeeeBibliographicItem.new(**args)
56
57
  end
@@ -283,5 +284,17 @@ module RelatonIeee
283
284
  RelatonBib::ICS.new code: ics[:codenum], text: ics.text
284
285
  end
285
286
  end
287
+
288
+ #
289
+ # Parse editorialgroup
290
+ #
291
+ # @return [RelatonIeee::EditorialGroup, nil] editorialgroup or nil
292
+ #
293
+ def parse_editorialgroup
294
+ committee = doc.xpath(
295
+ "./publicationinfo/pubsponsoringcommitteeset/pubsponsoringcommittee",
296
+ ).map &:text
297
+ EditorialGroup.new committee: committee if committee.any?
298
+ end
286
299
  end
287
300
  end
@@ -309,7 +309,8 @@ module RelatonIeee
309
309
  PubId.new(publisher: $1, number: $2, stage: $3, year: $5, month: mn($4))
310
310
 
311
311
  # publisher, stage, number, part, draft
312
- when /^([A-Z\/]+)[.-]([[:alnum:].-]+)[\/_]D([[:alnum:].]+)[\/_](#{STAGES})/o
312
+ when /^([A-Z\/]+)[.-]([[:alnum:].-]+)[\/_]D([[:alnum:].]+)[\/_](#{STAGES})/o,
313
+ /^(\w+)[.-]([[:alnum:].]+)[\/\s_]D([\d.]+)_(#{STAGES})/o
313
314
  PubId.new(publisher: "IEEE", number: $1, part: sp($2), draft: dn($3), stage: $4)
314
315
 
315
316
  # publisher, stage, number, year
@@ -1,3 +1,3 @@
1
1
  module RelatonIeee
2
- VERSION = "1.12.5".freeze
2
+ VERSION = "1.12.6".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.5
4
+ version: 1.12.6
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-26 00:00:00.000000000 Z
11
+ date: 2022-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml