cbor-diag 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cbor-diag.gemspec +1 -1
- data/lib/cbor-pure.rb +4 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10976372c461c25a70671e224b8136d5c3d949d5
|
4
|
+
data.tar.gz: d0bf29799ded2f7abb0bb544c7902ce58eac4978
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 413152c4d8cb22cd01bc287060063bdbd5fa5d22ce5644aa7b6278a93a4db2cf881c850227855d0ea1aa7169fdef1bff7ae87bf20e6562619982e8c2d2a5b81f
|
7
|
+
data.tar.gz: 17d2a17a00fcc1e5c76ed31928ddf003c0222c99a6a65ab41e204198654530823aadae6708e8cfe955db8fd2c729d4aaa8ff5e491c42464f88cee96e5dbd759d
|
data/cbor-diag.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cbor-diag"
|
3
|
-
s.version = "0.2.
|
3
|
+
s.version = "0.2.6"
|
4
4
|
s.summary = "CBOR (Concise Binary Object Representation) diagnostic notation"
|
5
5
|
s.description = %q{cbor-diag implements diagnostic notation for CBOR, RFC 7049}
|
6
6
|
s.author = "Carsten Bormann"
|
data/lib/cbor-pure.rb
CHANGED
@@ -246,7 +246,10 @@ class CBOR
|
|
246
246
|
when 20; false
|
247
247
|
when 21; true
|
248
248
|
when 22; nil
|
249
|
-
# when
|
249
|
+
# when 23; Simple.new(23) # Ruby does not have Undefined
|
250
|
+
when 24;
|
251
|
+
raise "two-byte simple is #{val} but must be between 32 and 255" unless val >= 32;
|
252
|
+
Simple.new(val)
|
250
253
|
when 25; Half.decode(val)
|
251
254
|
when 26; s.unpack("g").first # cannot go directly from val
|
252
255
|
when 27; s.unpack("G").first # in Ruby
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cbor-diag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carsten Bormann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.6.
|
107
|
+
rubygems_version: 2.6.11
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: CBOR (Concise Binary Object Representation) diagnostic notation
|