cddl 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cddl.gemspec +1 -1
- data/lib/cddl.rb +6 -0
- data/test-data/dotplus1.cddl +3 -0
- data/test-data/dotplus2.cddl +3 -0
- data/test-data/dotplus3.cddl +3 -0
- data/test-data/dotplus4.cddl +3 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73391c15e100fe86614bce5277a63cf8d7032754e7a7e05f8eb4cc1ce074beae
|
4
|
+
data.tar.gz: 26734d7b7677595eb88b9f970b5d4986991cc1afc9841bc9c3c1f3bc5237c4a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 151f3e6374672a6b1c4211363ac90a7fb46814639f45d65a7fc85722c9b48cbc73d4e1919a8a3ddba574e4957f1b74b9d8105fdb0bb697f351a9069af222d742
|
7
|
+
data.tar.gz: 5d33838dfc0ff62d14f736d14108936100e638f5a1b73c5af9119a81a1ab7264369ce8059c95223347c756d4e73e7d38cd975ac8ae3387ed259e65edeee75610
|
data/cddl.gemspec
CHANGED
data/lib/cddl.rb
CHANGED
@@ -1048,6 +1048,12 @@ module CDDL
|
|
1048
1048
|
end
|
1049
1049
|
# warn ["ANNO", ok1, v1, vt1, ok2, v2, vt2, d].inspect
|
1050
1050
|
[] if d == v1 + v2 # XXX Focus ArgumentError
|
1051
|
+
elsif conop == :plus && Integer === d
|
1052
|
+
if ok1 && vt1 == Integer
|
1053
|
+
validate1a(d - Integer(v1), control)
|
1054
|
+
elsif ok2 && vt2 == Integer
|
1055
|
+
validate1a(d - Integer(v2), target)
|
1056
|
+
end
|
1051
1057
|
end
|
1052
1058
|
elsif ann = validate1a(d, target)
|
1053
1059
|
case conop
|
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.11.
|
4
|
+
version: 0.11.2
|
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-03-
|
11
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cbor-diag
|
@@ -185,6 +185,10 @@ files:
|
|
185
185
|
- test-data/decimal.cddl
|
186
186
|
- test-data/decimal2.cddl
|
187
187
|
- test-data/det1.cddl
|
188
|
+
- test-data/dotplus1.cddl
|
189
|
+
- test-data/dotplus2.cddl
|
190
|
+
- test-data/dotplus3.cddl
|
191
|
+
- test-data/dotplus4.cddl
|
188
192
|
- test-data/dotsize.cddl
|
189
193
|
- test-data/extractor-demo.cddl
|
190
194
|
- test-data/feat1.cddl
|