cddl 0.12.7 → 0.12.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cddl.gemspec +2 -1
- data/lib/cddl.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c98730c57c25c57066cc2c35d0912b14df39e1d3f3ff3815950217435513d30
|
4
|
+
data.tar.gz: 1da65aafd52644087e1fa33d5e158ae4c85d58b11658fc39bf64a465f8cf3b43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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')
|
@@ -20,6 +20,7 @@ spec = Gem::Specification.new do |s|
|
|
20
20
|
s.required_ruby_version = '>= 2.3'
|
21
21
|
s.author = "Carsten Bormann"
|
22
22
|
s.email = "cabo@tzi.org"
|
23
|
+
s.homepage = "https://www.rfc-editor.org/rfc/rfc8610#appendix-F"
|
23
24
|
s.license = 'MIT'
|
24
25
|
end
|
25
26
|
|
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.
|
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
|
+
date: 2024-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cbor-diag
|
@@ -272,7 +272,7 @@ files:
|
|
272
272
|
- test-data/yangid.cddl
|
273
273
|
- test-data/yaron1.cddl
|
274
274
|
- test/test-cddl.rb
|
275
|
-
homepage:
|
275
|
+
homepage: https://www.rfc-editor.org/rfc/rfc8610#appendix-F
|
276
276
|
licenses:
|
277
277
|
- MIT
|
278
278
|
metadata: {}
|