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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/cbor-diag.gemspec +1 -1
  3. data/lib/cbor-pure.rb +4 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fdfc3085979e4c2d926c53c84fe0b81cf0e5924
4
- data.tar.gz: d82d6a49b9f90ec1a1a5131cc4ee3807b2c9ce53
3
+ metadata.gz: 10976372c461c25a70671e224b8136d5c3d949d5
4
+ data.tar.gz: d0bf29799ded2f7abb0bb544c7902ce58eac4978
5
5
  SHA512:
6
- metadata.gz: 54fef64e6caa556b4d6937c3039581d7e55f39e6404cc500bdad13c23a080883e19d883c4dd9ab66082279157bb99075ff881e0eeb6b5f94e45e719f5091c521
7
- data.tar.gz: d8a81ed66e1906c740788c406d734ec54eb7b461ef676e5f1b58c63595a3e3cbf8e1bc8e726dd60490727cac7227d270579b12dddbe45a4d3430c32de9d2c835
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.5"
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 27; Simple.new(27) # Ruby does not have Undefined
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.5
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: 2016-11-12 00:00:00.000000000 Z
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.7
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