pubid-iso 0.7.0 → 0.7.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/addendum.rb +1 -1
- data/lib/pubid/iso/identifier/amendment.rb +1 -1
- data/lib/pubid/iso/identifier/base.rb +16 -4
- data/lib/pubid/iso/identifier/corrigendum.rb +1 -1
- data/lib/pubid/iso/identifier/directives.rb +1 -1
- data/lib/pubid/iso/identifier/extract.rb +1 -1
- data/lib/pubid/iso/identifier/guide.rb +1 -1
- data/lib/pubid/iso/identifier/international_standard.rb +1 -1
- data/lib/pubid/iso/identifier/international_standardized_profile.rb +1 -1
- data/lib/pubid/iso/identifier/international_workshop_agreement.rb +1 -1
- data/lib/pubid/iso/identifier/publicly_available_specification.rb +1 -1
- data/lib/pubid/iso/identifier/recommendation.rb +1 -1
- data/lib/pubid/iso/identifier/supplement.rb +1 -1
- data/lib/pubid/iso/identifier/technical_committee.rb +1 -1
- data/lib/pubid/iso/identifier/technical_report.rb +1 -1
- data/lib/pubid/iso/identifier/technical_specification.rb +1 -1
- data/lib/pubid/iso/identifier/technology_trends_assessments.rb +1 -1
- 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: 554740ba301fe225d6b7a58931013bb6d33d2c9ffa41de45c2b72b53b16340e7
|
4
|
+
data.tar.gz: ad603b65a477dbf70222252e0b286226d9dc576ff24fc794e9873fdea4a0a45e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 731c5b93d0c2a443a6d1af5c965d6eb4984279bb062d1bd3136436cf65044186332661cbc6ae51a0500131b1cc13204991c4ed8e211fe28937298db806c65817
|
7
|
+
data.tar.gz: 441fbee4c9481f6c60f7f25a7ea6256550dab0241c0fb1a048e3272eaab4b87ac1089c08d2f7a33dbd74d418151793193ee7e0d36143b8c46ac79594134b3fcf
|
@@ -21,7 +21,7 @@ module Pubid::Iso
|
|
21
21
|
#
|
22
22
|
# @param stage [Stage, Symbol, String] stage or typed stage, e.g. "PWI", "NP", "50.00", Stage.new(abbr: :WD), "DTR"
|
23
23
|
# @param iteration [Integer] document iteration, eg. "1", "2", "3"
|
24
|
-
# @param joint_document [Identifier] joint document
|
24
|
+
# @param joint_document [Identifier, Hash] joint document
|
25
25
|
# @param supplements [Array<Supplement>] supplements
|
26
26
|
# @param tctype [String] Technical Committee type, eg. "TC", "JTC"
|
27
27
|
# @param sctype [String] TC subsommittee, eg. "SC"
|
@@ -30,7 +30,7 @@ module Pubid::Iso
|
|
30
30
|
# @param scnumber [Integer] Subsommittee number, eg. "1", "2"
|
31
31
|
# @param wgnumber [Integer] Working group number, eg. "1", "2"
|
32
32
|
# @param dirtype [String] Directives document type, eg. "JTC"
|
33
|
-
# @param base [Identifier] base document for supplement's identifier
|
33
|
+
# @param base [Identifier, Hash] base document for supplement's identifier
|
34
34
|
# @param type [nil, :tr, :ts, :amd, :cor, :guide, :dir, :tc, Type] document's type, eg. :tr, :ts, :amd, :cor, Type.new(:tr)
|
35
35
|
# @raise [Errors::SupplementWithoutYearOrStageError] when trying to apply
|
36
36
|
# supplement to the document without edition year or stage
|
@@ -68,7 +68,13 @@ module Pubid::Iso
|
|
68
68
|
end
|
69
69
|
|
70
70
|
@iteration = iteration.to_i if iteration
|
71
|
-
|
71
|
+
if joint_document
|
72
|
+
if joint_document.is_a?(Hash)
|
73
|
+
@joint_document = Identifier.create(**joint_document)
|
74
|
+
else
|
75
|
+
@joint_document = joint_document
|
76
|
+
end
|
77
|
+
end
|
72
78
|
@tctype = tctype if tctype
|
73
79
|
@sctype = sctype.to_s if sctype
|
74
80
|
@wgtype = wgtype.to_s if wgtype
|
@@ -77,7 +83,13 @@ module Pubid::Iso
|
|
77
83
|
@wgnumber = wgnumber.to_s if wgnumber
|
78
84
|
@dir = dir.to_s if dir
|
79
85
|
@dirtype = dirtype.to_s if dirtype
|
80
|
-
|
86
|
+
if base
|
87
|
+
if base.is_a?(Hash)
|
88
|
+
@base = Identifier.create(**base)
|
89
|
+
else
|
90
|
+
@base = base
|
91
|
+
end
|
92
|
+
end
|
81
93
|
@part = part if part
|
82
94
|
@addendum = addendum if addendum
|
83
95
|
@edition = edition
|
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.7.
|
4
|
+
version: 0.7.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:
|
11
|
+
date: 2024-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|