cbor-diag-e 0.0.1 → 0.0.2

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: 2449eb352d8fdcbf25a4ebf8c0c59b0e2201dd4c4a3e7ef9397fe02db1df6950
4
- data.tar.gz: c14f54a5064af129bbb24b5d338f7e55c6fff9ad4dc9ed9a5f26b1fb256bbf41
3
+ metadata.gz: 1297f05e51135be0bccc470d9a5b519a6a6ed14cb384109a221b024fa4c6d3d3
4
+ data.tar.gz: ffd692eea345c1a6c1ae1f9192ef0bbd035ed9ebb7a403af22f76469b028d060
5
5
  SHA512:
6
- metadata.gz: bcaef91b813e01df029830e8f80bb04244bc1875db9669700daeb10601fa1f22e9771c2857b685342f0175c35074049a73d030f767bbefb9992da8d4b85c6a05
7
- data.tar.gz: 4d0076e46b2aa09d115e73f3244290e46995c423787b89443572b37df48339a5c189b8edf23be8fbca421c6ce31104a6a72ff12d33ee5486a2fad443d8d21c67
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.1"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbor-diag-e
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann