pubid-ccsds 0.1.4 → 0.1.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 429cf76d346f8420e94b6a42fb2caba4e8b1e8e91ae528eaf67c447baf8449e5
|
4
|
+
data.tar.gz: 3ea94a5e038b5cbf38cba320a3c6d4389bea0d73ff5e0ae40a8b53e0238b2f49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7c351b69160822523d9a10d8b5d3f87cbfad74f8b5003052fd28df3ab2afa9e6323d683287834a96457a257c4ccedfce8a2c16da5f4fdfa46aae748a1a2e737
|
7
|
+
data.tar.gz: 58bac405a6d28ffb20234ec96bd034dfbfff56bcfc4eb2cad87875e9ab67d7cdd9ddf6e6b47eb3ef2a5148bb13799bc3e5f185a88348b3ba44e4a41968abda14
|
@@ -14,11 +14,11 @@ module Pubid::Ccsds
|
|
14
14
|
def initialize(publisher: "CCSDS", book_color: nil, part: nil,
|
15
15
|
series: nil, retired: nil, edition: nil, **opts)
|
16
16
|
super(**opts.merge(publisher: publisher))
|
17
|
-
@book_color = book_color
|
18
|
-
@part = part || 0
|
19
|
-
@series = series
|
20
|
-
@retired = retired
|
21
|
-
@edition = edition
|
17
|
+
@book_color = book_color.to_s
|
18
|
+
@part = part.to_i || 0
|
19
|
+
@series = series.to_s if series
|
20
|
+
@retired = retired ? true : false
|
21
|
+
@edition = edition.to_s if edition
|
22
22
|
end
|
23
23
|
|
24
24
|
class << self
|
@@ -7,11 +7,15 @@ module Pubid::Ccsds
|
|
7
7
|
|
8
8
|
def initialize(base: nil, **opts)
|
9
9
|
super(**opts)
|
10
|
-
|
10
|
+
if base.is_a?(Hash)
|
11
|
+
@base = Identifier.create(**base)
|
12
|
+
else
|
13
|
+
@base = base
|
14
|
+
end
|
11
15
|
end
|
12
16
|
|
13
17
|
def self.type
|
14
|
-
{ key: :corrigendum, title: "Corrigendum" }
|
18
|
+
{ key: :corrigendum, title: "Corrigendum", short: "corrigendum" }
|
15
19
|
end
|
16
20
|
|
17
21
|
def self.get_renderer_class
|
data/lib/pubid/ccsds/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pubid-ccsds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
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-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|