cbor-diag-e 0.0.1 → 0.0.2
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/cbor-diag-e.gemspec +1 -1
- data/lib/cbor-diagnostic-app/e.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1297f05e51135be0bccc470d9a5b519a6a6ed14cb384109a221b024fa4c6d3d3
|
4
|
+
data.tar.gz: ffd692eea345c1a6c1ae1f9192ef0bbd035ed9ebb7a403af22f76469b028d060
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3df82edb78fa919819d06cd87508b91ada9b020638503ad809371f2c4c9943e1e8ea5a3910fa084f0262f8e131bbc18710e4fed07fdae01f605e0bfb1857100d
|
7
|
+
data.tar.gz: eceb8fe7aa7a9a1de8a53aca34fe3f0829b52dbe9fe300c79092585050fbb5c29903c57aa82e8e375beb77695ae07021ac1d5935767c09860359c0deb6956b9b
|
data/cbor-diag-e.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cbor-diag-e"
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.2"
|
4
4
|
s.summary = "CBOR (Concise Binary Object Representation) diagnostic notation"
|
5
5
|
s.description = %q{cbor-diag-e implements external constants for CBOR diagnostic notation}
|
6
6
|
s.author = "Carsten Bormann"
|
@@ -8,13 +8,13 @@ class CBOR_DIAG::App_e
|
|
8
8
|
raise "e'...': No CBOR_DIAG_CDDL given" unless CBOR_DIAG_CDDL_NAME
|
9
9
|
|
10
10
|
cddlcs, status = Open3.capture2("cddlc -2tconst #{Shellwords.escape(CBOR_DIAG_CDDL_NAME)}")
|
11
|
-
raise unless status.success?
|
11
|
+
raise "e'...': cannot run cddlc" unless status.success?
|
12
12
|
CONSTS_MAP = YAML.load(cddlcs)
|
13
13
|
|
14
14
|
def self.decode(_, s)
|
15
15
|
CONSTS_MAP.fetch(s) do
|
16
16
|
construct = "e'#{s}'"
|
17
|
-
warn "*** No external constant value defined for #{construct}"
|
17
|
+
warn "*** e'...': No external constant value defined for #{construct}"
|
18
18
|
construct
|
19
19
|
end
|
20
20
|
end
|