pubid-iso 0.4.0 → 0.4.1
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 +4 -4
- data/lib/pubid/iso/identifier/amendment.rb +0 -14
- data/lib/pubid/iso/identifier/corrigendum.rb +0 -14
- data/lib/pubid/iso/version.rb +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: 38d4eeb603e945da7dc88276eeec404e80e210dbb7256d0a1c6dbf0f5afe128e
|
|
4
|
+
data.tar.gz: d3be687ed15dad803823d873a9fb0189a96c97c45870c69a7a4887f165c60075
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f99b0267a9322ceb93893b931a7ead3ac6e603cf95b8a75a75a192a8db6de3bab0c75fff137e7294b566a2d10960e8861dcddf9663d7b6a7473d0544f0e15683
|
|
7
|
+
data.tar.gz: 2067033963eeac42aac98bf5178f0cf19fefe21f5eb334e53e1e3fe41c6665b64b6e580c1f126d4f8936c6008e47c4d12b49cc793e5f305a8732525ade50604b
|
|
@@ -20,20 +20,6 @@ module Pubid::Iso
|
|
|
20
20
|
harmonized_stages: %w[50.00 50.20 50.60 50.92 50.98 50.99],
|
|
21
21
|
},
|
|
22
22
|
}.freeze
|
|
23
|
-
def initialize(publisher: "ISO", number: nil, stage: nil, iteration: nil, supplement: nil,
|
|
24
|
-
joint_document: nil, tctype: nil, sctype: nil, wgtype: nil, tcnumber: nil,
|
|
25
|
-
scnumber: nil, wgnumber:nil,
|
|
26
|
-
dir: nil, dirtype: nil, year: nil, amendments: nil,
|
|
27
|
-
corrigendums: nil, type: nil, base: nil, supplements: nil, **opts)
|
|
28
|
-
|
|
29
|
-
if base.year.nil? && base.stage.nil?
|
|
30
|
-
raise Errors::SupplementWithoutYearOrStageError,
|
|
31
|
-
"Cannot apply supplement to document without base identifier edition year or stage"
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
super
|
|
35
|
-
end
|
|
36
|
-
|
|
37
23
|
def self.type
|
|
38
24
|
{ key: :amd, title: "Amendment" }
|
|
39
25
|
end
|
|
@@ -21,20 +21,6 @@ module Pubid::Iso
|
|
|
21
21
|
},
|
|
22
22
|
}.freeze
|
|
23
23
|
|
|
24
|
-
def initialize(publisher: "ISO", number: nil, stage: nil, iteration: nil, supplement: nil,
|
|
25
|
-
joint_document: nil, tctype: nil, sctype: nil, wgtype: nil, tcnumber: nil,
|
|
26
|
-
scnumber: nil, wgnumber:nil,
|
|
27
|
-
dir: nil, dirtype: nil, year: nil, amendments: nil,
|
|
28
|
-
corrigendums: nil, type: nil, base: nil, supplements: nil, **opts)
|
|
29
|
-
|
|
30
|
-
if base.year.nil? && base.stage.nil?
|
|
31
|
-
raise Errors::SupplementWithoutYearOrStageError,
|
|
32
|
-
"Cannot apply supplement to document without base identifier edition year or stage"
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
super
|
|
36
|
-
end
|
|
37
|
-
|
|
38
24
|
def self.type
|
|
39
25
|
{ key: :cor, title: "Corrigendum" }
|
|
40
26
|
end
|
data/lib/pubid/iso/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pubid-iso
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.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: 2023-02-
|
|
11
|
+
date: 2023-02-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|