relaton-nist 1.19.7 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 255770dfd71b03dfd82eb6d6cfd9710a77fc0dab5e46f744b2a544058ef497c1
4
- data.tar.gz: 9914dce97923f334dff7dcead5e9037135eed26d0d4c31e96a8d632f211a5699
3
+ metadata.gz: 905967f1d00f1aa14e1cc6209670cb9c81773c2a798416c06e78766921abdf89
4
+ data.tar.gz: 4fd6dfee3f486a7c42f13dfc844f5441567297a6bb0388b57d63fb8d7c7bdf32
5
5
  SHA512:
6
- metadata.gz: 54eaf26dc7f4f01f05206af204cd44b737b8b87c2a486afd18b0c4b1593420e26ef4dc38c74fdef8825ca6e62e7ecc9ce271ccb37aeef4e68bb363642f26ed04
7
- data.tar.gz: 6cee7c2c9776dcbbf96c8868837682870a575a6ccb86831a4afad1f1ea2a88d55d47b44e113819a9d6976c53f6f1a829bcece881fdcafcb22f6a9b2d35a852a7
6
+ metadata.gz: 2d6422c42a810aea5e80d10a09ca3ceb0e7e03f7c14bac33118f7592041370d0feafecf615422d11bf287b584c5f69580f57d8fc69da98f4df95ffa532788f55
7
+ data.tar.gz: e633bf3b78b8421933b59862d3207a6202a00eaba5c89267be72340a728de93eeef75569695b8815d79c0ea703a43292f8d8ddb466827ad3852091fc8eef19b5
@@ -24,9 +24,10 @@ module RelatonNist
24
24
  end
25
25
 
26
26
  def commentperiod_hash_to_bib(ret)
27
- return unless ret[:commentperiod]
27
+ cp = ret.dig(:ext, :commentperiod) || ret[:commentperiod] # @TODO: remove ret[:commentperiod] after all gem versions are updated
28
+ return unless cp
28
29
 
29
- ret[:commentperiod] = CommentPeriod.new(**ret[:commentperiod])
30
+ ret[:commentperiod] = CommentPeriod.new(**cp)
30
31
  end
31
32
 
32
33
  # @param ret [Hash]
@@ -98,10 +98,14 @@ module RelatonNist
98
98
  def to_hash(embedded: false)
99
99
  hash = super
100
100
  # hash["keyword"] = single_element_array(keyword) if keyword&.any?
101
- hash["commentperiod"] = commentperiod.to_hash if commentperiod
101
+ hash["ext"]["commentperiod"] = commentperiod.to_hash if commentperiod
102
102
  hash
103
103
  end
104
104
 
105
+ def has_ext?
106
+ super || commentperiod
107
+ end
108
+
105
109
  # @param prefix [String]
106
110
  # @return [String]
107
111
  def to_asciibib(prefix = "")
@@ -1,3 +1,3 @@
1
1
  module RelatonNist
2
- VERSION = "1.19.7".freeze
2
+ VERSION = "1.20.0".freeze
3
3
  end
data/relaton_nist.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency "base64"
27
27
  spec.add_dependency "loc_mods", "~> 0.2.0"
28
28
  spec.add_dependency "pubid", "~> 0.1.0"
29
- spec.add_dependency "relaton-bib", "~> 1.19.2"
29
+ spec.add_dependency "relaton-bib", "~> 1.20.0"
30
30
  spec.add_dependency "relaton-index", "~> 0.2.0"
31
31
  spec.add_dependency "rubyzip"
32
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-nist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.7
4
+ version: 1.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-09 00:00:00.000000000 Z
11
+ date: 2024-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.19.2
61
+ version: 1.20.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.19.2
68
+ version: 1.20.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: relaton-index
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
- rubygems_version: 3.5.19
160
+ rubygems_version: 3.3.27
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: 'RelatonNist: retrive NIST standards.'