cddl 0.12.8 → 0.12.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/cddl.gemspec +1 -1
  3. data/lib/cddl.rb +2 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d0d87a6a4651bea40e4aa0cf6f348ba14820b187e75543534ba9dc41c299d19
4
- data.tar.gz: 0b75c2f9aad67bf11b5d44035248515aa974c13ab11882d4fdc92422e21ec8b9
3
+ metadata.gz: 4c98730c57c25c57066cc2c35d0912b14df39e1d3f3ff3815950217435513d30
4
+ data.tar.gz: 1da65aafd52644087e1fa33d5e158ae4c85d58b11658fc39bf64a465f8cf3b43
5
5
  SHA512:
6
- metadata.gz: bc92be11473ad0aa9aae359359fb726981335f3f60ecb8537a8a756d1659336752a3394b9ada51326896e1a149653460619cb9da4a254f8b342ca7f180376f83
7
- data.tar.gz: dfdc532498dd3f52e2ff34e880aa9f5c0bef46ffb85081f62e085625d74c5359c860fcae06adaa970d6b003a6cc5825a8d815b580f5d575f9d8d012dcdecff2c
6
+ metadata.gz: 54a58e321f94a6c8e3c61dd0216f1e6afd214972dbd71cc4326a5ec294714b4f0ce5b1695ab951bd5526e1cd9a1550c5102333395e3fdda4cac3a87d0c4d075b
7
+ data.tar.gz: ad35e2794090e2d403ffa218fd3c9414052c00092b0a1b34ab11d9a7563be3ac06b0e3b5923982f1f46e9b0a2b13e578c7c3da0b12b4cc4ee6eaff0bb5581f5b
data/cddl.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'cddl'
3
- s.version = '0.12.8'
3
+ s.version = '0.12.9'
4
4
  s.summary = "CDDL generator and validator."
5
5
  s.description = %{A parser, generator, and validator for CDDL}
6
6
  s.add_dependency('cbor-diag')
data/lib/cddl.rb CHANGED
@@ -40,6 +40,7 @@ module CDDL
40
40
  [{}, {}]
41
41
  end
42
42
 
43
+ CDDL_UNUSED_OK = ENV["CDDL_UNUSED_OK"]
43
44
 
44
45
  class BackTrack < Exception; end
45
46
 
@@ -248,7 +249,7 @@ module CDDL
248
249
  r_process("used_in_cddl_prelude", @rules["used_in_cddl_prelude"])
249
250
  @rules.each do |n, r|
250
251
  # r_process(n, r) # debug only loop
251
- warn "*** Unused rule #{n}" unless @stage1[n]
252
+ warn "*** Unused rule #{n}" unless @stage1[n] || CDDL_UNUSED_OK
252
253
  end
253
254
  if result[0] == :grpent
254
255
  warn "Group at top -- first rule must be a type!"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cddl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.8
4
+ version: 0.12.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-26 00:00:00.000000000 Z
11
+ date: 2024-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cbor-diag