pubid-ccsds 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +1 -1
- data/lib/pubid/ccsds/identifier/base.rb +6 -1
- data/lib/pubid/ccsds/parser.rb +3 -3
- data/lib/pubid/ccsds/version.rb +1 -1
- data/lib/pubid/ccsds.rb +5 -0
- data/update_codes.yaml +1 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dd76879d199ecc673d5e7bc7bfeb7585dc8ee4bc9b815840ebe039a122d20fa
|
4
|
+
data.tar.gz: 122f94ec9a8ad572d5e5a1b73f1504b5bc8daed327230832696a15105a43052e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 653741128e390ed4a8669179fac34c030a5d9061c1d93e88e22b064c84bd1a328f67b08821dab3ae32eb47c48a3d5ad3a46283b67a132cb514e4120a5a279760
|
7
|
+
data.tar.gz: 1df9b5b79fb741c843141a327ac5b65655038f97eca3cabc6aad1d68fd6d2acd5ebed3880b0e842dceadca9f8f5adb5f2e2529c0da2532e14fa8a1947a7aeca7
|
data/README.adoc
CHANGED
@@ -12,12 +12,13 @@ module Pubid::Ccsds
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def initialize(publisher: "CCSDS", book_color: nil, part: nil,
|
15
|
-
series: nil, retired: nil, **opts)
|
15
|
+
series: nil, retired: nil, edition: nil, **opts)
|
16
16
|
super(**opts.merge(publisher: publisher))
|
17
17
|
@book_color = book_color
|
18
18
|
@part = part || 0
|
19
19
|
@series = series
|
20
20
|
@retired = retired
|
21
|
+
@edition = edition
|
21
22
|
end
|
22
23
|
|
23
24
|
class << self
|
@@ -49,6 +50,10 @@ module Pubid::Ccsds
|
|
49
50
|
def get_renderer_class
|
50
51
|
Renderer::Base
|
51
52
|
end
|
53
|
+
|
54
|
+
def get_update_codes
|
55
|
+
UPDATE_CODES
|
56
|
+
end
|
52
57
|
end
|
53
58
|
end
|
54
59
|
end
|
data/lib/pubid/ccsds/parser.rb
CHANGED
@@ -2,11 +2,11 @@ module Pubid::Ccsds
|
|
2
2
|
class Parser < Pubid::Core::Parser
|
3
3
|
|
4
4
|
rule(:book_color) do
|
5
|
-
dash >> match["
|
5
|
+
dash >> match["BGMYOR"].as(:book_color)
|
6
6
|
end
|
7
7
|
|
8
8
|
rule(:edition) do
|
9
|
-
dash >> digits.as(:edition)
|
9
|
+
dash >> (digits >> (dot >> digits).maybe).as(:edition)
|
10
10
|
end
|
11
11
|
|
12
12
|
rule(:part) do
|
@@ -31,7 +31,7 @@ module Pubid::Ccsds
|
|
31
31
|
|
32
32
|
rule(:identifier) do
|
33
33
|
str("CCSDS") >> space >> series.maybe >> digits.as(:number) >> part >>
|
34
|
-
book_color >> edition >> retired.maybe >> corrigendum.maybe >> language.maybe
|
34
|
+
book_color >> edition.maybe >> retired.maybe >> corrigendum.maybe >> language.maybe
|
35
35
|
end
|
36
36
|
|
37
37
|
rule(:root) { identifier }
|
data/lib/pubid/ccsds/version.rb
CHANGED
data/lib/pubid/ccsds.rb
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "parslet"
|
4
|
+
require "yaml"
|
4
5
|
|
5
6
|
module Pubid
|
7
|
+
module Ccsds
|
8
|
+
UPDATE_CODES = YAML.load_file(File.join(File.dirname(__FILE__), "../../update_codes.yaml"))
|
9
|
+
end
|
6
10
|
end
|
7
11
|
|
12
|
+
|
8
13
|
require "pubid-core"
|
9
14
|
|
10
15
|
require_relative "ccsds/identifier/base"
|
data/update_codes.yaml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
CCSDS 320.0-B-1-S Corrigendum 1: CCSDS 320.0-B-1-S Cor. 1
|
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.3
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.12.2
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
68
|
+
version: 1.12.2
|
69
69
|
description: Library to generate, parse and manipulate CCSDS PubID.
|
70
70
|
email:
|
71
71
|
- open.source@ribose.com
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- lib/pubid/ccsds/renderer/base.rb
|
87
87
|
- lib/pubid/ccsds/renderer/corrigendum.rb
|
88
88
|
- lib/pubid/ccsds/version.rb
|
89
|
+
- update_codes.yaml
|
89
90
|
homepage: https://github.com/metanorma/pubid-jis
|
90
91
|
licenses:
|
91
92
|
- BSD-2-Clause
|