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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ac016ca575f6b9815da56cb9424c1ba9bce844f494822e8bf407d9bb51de4cd
4
- data.tar.gz: 5fe93360f4980550e766cffc5b7c0ad6ae00124fa818cfd6ac4ba6b6eb2bf445
3
+ metadata.gz: 6d4329248de2fde990db7f396796b104fc7152a4d3cf19c9b1fba9817bd9bc59
4
+ data.tar.gz: 1f1368050820296d410019b9bb66d980de01d166ba62ec9572b9f048c1fde931
5
5
  SHA512:
6
- metadata.gz: afdb479f21109aaf05b75d9ae2d0d783b347fe2cea4734e18ec01cabfe3129bba69cb36e444f9005d12bb153516097642147a3a464ee576f1b9866ce03030eaf
7
- data.tar.gz: 9a41dd6a27fda08447e56b1c128971fec36057739fd48a802ac503af1078247addf9329fe4a9d9b2a839d3e827b39be60108f536f39633eb798152ef431cff8c
6
+ metadata.gz: 0d711d29e07f10c5f69307dcfb0267a4a480c12a715d75901d083362fb123ff5a7074d45d9d37f83cea5efc12ae8a5aa6e2c8d47f529c2b78858dba4e3e7fb23
7
+ data.tar.gz: 50b16da1bb63033efe8c09d37f2f9687e79d2efc73a0b7b66a61637e1fad7d414a71b6a182b4710556ab9f332b6e9670d1af10d82940a170f30e12b1fc8f04d2
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Nist
3
- VERSION = "0.3.0".freeze
3
+ VERSION = "0.3.1".freeze
4
4
  end
5
5
  end
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: Interagency or Internal Report
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.0
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-02-21 00:00:00.000000000 Z
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake