pubid-nist 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pubid/nist/stage.rb +3 -4
- data/lib/pubid/nist/version.rb +1 -1
- data/series.yaml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d4329248de2fde990db7f396796b104fc7152a4d3cf19c9b1fba9817bd9bc59
|
4
|
+
data.tar.gz: 1f1368050820296d410019b9bb66d980de01d166ba62ec9572b9f048c1fde931
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d711d29e07f10c5f69307dcfb0267a4a480c12a715d75901d083362fb123ff5a7074d45d9d37f83cea5efc12ae8a5aa6e2c8d47f529c2b78858dba4e3e7fb23
|
7
|
+
data.tar.gz: 50b16da1bb63033efe8c09d37f2f9687e79d2efc73a0b7b66a61637e1fad7d414a71b6a182b4710556ab9f332b6e9670d1af10d82940a170f30e12b1fc8f04d2
|
data/lib/pubid/nist/stage.rb
CHANGED
@@ -6,6 +6,9 @@ module Pubid::Nist
|
|
6
6
|
|
7
7
|
def initialize(id:, type:)
|
8
8
|
@id, @type = id.to_s.downcase, type.to_s.downcase
|
9
|
+
|
10
|
+
raise ArgumentError, "id cannot be #{id.inspect}" unless STAGES['id'].key?(@id)
|
11
|
+
raise ArgumentError, "type cannot be #{type.inspect}" unless STAGES['type'].key?(@type)
|
9
12
|
end
|
10
13
|
|
11
14
|
def to_s(format = :short)
|
@@ -20,9 +23,5 @@ module Pubid::Nist
|
|
20
23
|
"(#{STAGES['id'][@id]} #{STAGES['type'][@type]})"
|
21
24
|
end
|
22
25
|
end
|
23
|
-
|
24
|
-
def nil?
|
25
|
-
@id.nil? && @type.nil?
|
26
|
-
end
|
27
26
|
end
|
28
27
|
end
|
data/lib/pubid/nist/version.rb
CHANGED
data/series.yaml
CHANGED
@@ -26,7 +26,7 @@ long:
|
|
26
26
|
NCSTAR: National Construction Safety Team Act Reports
|
27
27
|
NSRDS: National Standard Reference Data Series
|
28
28
|
NSRDS-NBS: National Standard Reference Data Series
|
29
|
-
IR:
|
29
|
+
IR: IR
|
30
30
|
OWMWP: Office of Weights and Measures White Papers
|
31
31
|
PC: Photographic Laboratory Circulars
|
32
32
|
RPT: Reports
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pubid-nist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
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-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|