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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 905967f1d00f1aa14e1cc6209670cb9c81773c2a798416c06e78766921abdf89
|
4
|
+
data.tar.gz: 4fd6dfee3f486a7c42f13dfc844f5441567297a6bb0388b57d63fb8d7c7bdf32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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(**
|
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 = "")
|
data/lib/relaton_nist/version.rb
CHANGED
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.
|
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.
|
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
|
+
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.
|
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.
|
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.
|
160
|
+
rubygems_version: 3.3.27
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: 'RelatonNist: retrive NIST standards.'
|