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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d4663e5dcbd65463c62e3fd2d204cf0ad3bac87dd8b8c20f2812a4b2e28f82e
4
- data.tar.gz: 074d079407abe61c365984f5d945054383f2cca91007cea95e6e4e3cacd9006a
3
+ metadata.gz: 38d4eeb603e945da7dc88276eeec404e80e210dbb7256d0a1c6dbf0f5afe128e
4
+ data.tar.gz: d3be687ed15dad803823d873a9fb0189a96c97c45870c69a7a4887f165c60075
5
5
  SHA512:
6
- metadata.gz: 6363362daf26cf5c8e4f32bfe3cdea4b577340f3231a4f377df5f4ed6f95f0a04ace24e165569a7fa2e6a4f2b13783b3d8e7011c7c1c0569f730ae7bd06a7dd3
7
- data.tar.gz: d8da3197efd8947f4b33b98e4cc9983a3e27dccb644d853bf70ea69883467bbc605dc8e025cf49f40fbd92341516f5e3f4ed95ad350248e31ef432ec0c4d475e
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
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Iso
3
- VERSION = "0.4.0".freeze
3
+ VERSION = "0.4.1".freeze
4
4
  end
5
5
  end
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2023-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake