relaton-ieee 1.14.5 → 1.14.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: 00e27e5a5b433c742b68257cf7e5255e6ca00340ce418ce6abd8a25c01e7c45f
4
- data.tar.gz: 36f8f46ba0a3f255b559b60e66abe396d72ce2bd6ef86641714be2ac38c48e3d
3
+ metadata.gz: 8d8765c1fbcffbcaa1100c86bf97e9dc3704aae3dea2617c839b00db5822dc47
4
+ data.tar.gz: 74577930c19049f0ee094ef155b8e6125c286b61592d69b89fdb1afc2c68f925
5
5
  SHA512:
6
- metadata.gz: fef0694b4d753c8472a95dce28e2be839bc9a163ae1ae8b9737148f10dbb0b7ca30256d69a98d68e496b6672c773251f14242665c05abf1adf8f4c965bcce916
7
- data.tar.gz: f02c71b8da934372620aeff7efd6d2c3ad22b6881209fe593d67bc15e9839cdc3b258eeb1b58868dee1658aea8bb67c4001230f5a7ff23cac2ffd2d36afab63d
6
+ metadata.gz: ba4821384d2c1f45ccf4328c40063e690422366320a138d06e02a65b5dc7e74c9ec7ab04467907eb4f67b1616977fa09605db45f6a3c2db07eab97cae113cd46
7
+ data.tar.gz: 80de43ec9e466351f04751e6d9347766258a1ba82e581e24914204219e1ac6eb21949b07be654f99564621578f4e6ab1e791dd64d1c7cc623cc729506b54e66e
@@ -4,7 +4,7 @@ module RelatonIeee
4
4
  "LastInspecUpd" => "updated" }.freeze
5
5
  ATTRS = %i[
6
6
  docnumber title date docid contributor abstract copyright docstatus
7
- relation link keyword ics editorialgroup standard_status standard_modifier
7
+ relation link keyword ics editorialgroup standard_status standard_modified
8
8
  pubstatus holdstatus doctype
9
9
  ].freeze
10
10
 
@@ -223,7 +223,7 @@ module RelatonIeee
223
223
  # @return [RelatonIee::DocumentStatus, nil]
224
224
  #
225
225
  def parse_docstatus
226
- st = parse_standard_modifier
226
+ st = parse_standard_modified
227
227
  return unless %w[Draft Approved Superseded Withdrawn].include?(st)
228
228
 
229
229
  DocumentStatus.new stage: st.downcase
@@ -307,7 +307,7 @@ module RelatonIeee
307
307
  #
308
308
  # @return [String, nil] standard modifier or nil
309
309
  #
310
- def parse_standard_modifier
310
+ def parse_standard_modified
311
311
  doc.at("./publicationinfo/standardmodifierset/standard_modifier")&.text
312
312
  end
313
313
 
@@ -335,7 +335,7 @@ module RelatonIeee
335
335
  # @return [String] doctype
336
336
  #
337
337
  def parse_doctype
338
- parse_standard_modifier == "Redline" ? "redline" : "standard"
338
+ parse_standard_modified == "Redline" ? "redline" : "standard"
339
339
  end
340
340
  end
341
341
  end
@@ -30,7 +30,7 @@ module RelatonIeee
30
30
  ext = hash.delete(:ext)
31
31
  return unless ext
32
32
 
33
- attrs = %i[standard_status standard_modifier pubstatus holdstatus]
33
+ attrs = %i[standard_status standard_modified pubstatus holdstatus]
34
34
  ext.select { |k, _| attrs.include? k }.each do |k, v|
35
35
  hash[k] = v
36
36
  end
@@ -10,7 +10,7 @@ module RelatonIeee
10
10
  attr_reader :trialuse
11
11
 
12
12
  # @return [String, nil]
13
- attr_reader :standard_status, :standard_modifier, :pubstatus, :holdstatus
13
+ attr_reader :standard_status, :standard_modified, :pubstatus, :holdstatus
14
14
 
15
15
  #
16
16
  # @param [Hash] args
@@ -18,7 +18,7 @@ module RelatonIeee
18
18
  # @option args [Array<RelatonIeee::EditorialGroup>] :editorialgroup
19
19
  # Editorial group
20
20
  # @option args [String, nil] :standard_status Active, Inactive, Superseded
21
- # @option args [String, nil] :standard_modifier Draft, Withdrawn, Suspended,
21
+ # @option args [String, nil] :standard_modified Draft, Withdrawn, Suspended,
22
22
  # Approved, Reserved, Redline
23
23
  # @option args [String, nil] :pubstatus Active, Inactive
24
24
  # @option args [String, nil] :holdstatus Held, Publish
@@ -35,7 +35,7 @@ module RelatonIeee
35
35
  eg = args.delete(:editorialgroup)
36
36
  @trialuse = args.delete(:trialuse)
37
37
  @standard_status = args.delete(:standard_status)
38
- @standard_modifier = args.delete(:standard_modifier)
38
+ @standard_modified = args.delete(:standard_modified)
39
39
  @pubstatus = args.delete(:pubstatus)
40
40
  @holdstatus = args.delete(:holdstatus)
41
41
  super
@@ -66,7 +66,7 @@ module RelatonIeee
66
66
  def to_xml(**opts) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
67
67
  super(**opts) do |bldr|
68
68
  if opts[:bibdata] && (doctype || subdoctype || !trialuse.nil? || editorialgroup ||
69
- ics.any? || standard_status || standard_modifier || pubstatus || holdstatus)
69
+ ics.any? || standard_status || standard_modified || pubstatus || holdstatus)
70
70
  ext = bldr.ext do |b|
71
71
  b.doctype doctype if doctype
72
72
  b.subdoctype subdoctype if subdoctype
@@ -74,7 +74,7 @@ module RelatonIeee
74
74
  editorialgroup&.to_xml(b)
75
75
  ics.each { |ic| ic.to_xml(b) }
76
76
  b.standard_status standard_status if standard_status
77
- b.standard_modifier standard_modifier if standard_modifier
77
+ b.standard_modified standard_modified if standard_modified
78
78
  b.pubstatus pubstatus if pubstatus
79
79
  b.holdstatus holdstatus if holdstatus
80
80
  end
@@ -94,7 +94,7 @@ module RelatonIeee
94
94
  hash = super
95
95
  hash["trialuse"] = trialuse unless trialuse.nil?
96
96
  hash["ext"]["standard_status"] = standard_status unless standard_status.nil?
97
- hash["ext"]["standard_modifier"] = standard_modifier unless standard_modifier.nil?
97
+ hash["ext"]["standard_modified"] = standard_modified unless standard_modified.nil?
98
98
  hash["ext"]["pubstatus"] = pubstatus unless pubstatus.nil?
99
99
  hash["ext"]["holdstatus"] = holdstatus unless holdstatus.nil?
100
100
  hash
@@ -1,3 +1,3 @@
1
1
  module RelatonIeee
2
- VERSION = "1.14.5".freeze
2
+ VERSION = "1.14.6".freeze
3
3
  end
@@ -13,7 +13,7 @@ module RelatonIeee
13
13
 
14
14
  data[:editorialgroup] = parse_editorialgroup(item)
15
15
  data[:standard_status] = ext.at("./standard_status")&.text
16
- data[:standard_modifier] = ext.at("./standard_modifier")&.text
16
+ data[:standard_modified] = ext.at("./standard_modified")&.text
17
17
  data[:pubstatus] = ext.at("./pubstatus")&.text
18
18
  data[:holdstatus] = ext.at("./holdstatus")&.text
19
19
  data
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.5
4
+ version: 1.14.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.