cbor-dcbor 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2359721ed54d5f9a6c9b53d8680cf34c219c824d255673cca80c7b61b5b98d0
4
- data.tar.gz: 601670e9fafd93107819446a0802e5ba38eba633f8a0fe8cdbd0e04cabddf9ef
3
+ metadata.gz: d528326aea2cd21dde7091d75c18bd1dfdf106485d556b353cdaec7778c5d94e
4
+ data.tar.gz: 62a6fa5fc20d1a6e3c9f91382aa68b2167c996fb47e93b4570d791d310706af0
5
5
  SHA512:
6
- metadata.gz: d0c1cb8472c3bea21dd32f036f4155e85793b09c1d775601db22b3d17b8b5739e0d33d85052908f149cd955684629b8011713671aeded763df1c791c66852108
7
- data.tar.gz: cb4e704864c513c790eabb92acfe0f30fe7b749d1dc0347d4f9d382bf48cd4abb500f806df45b63b3a4452b4d7dfbaeb1bcd931f1556b641516b5d487f1c3d7c
6
+ metadata.gz: 659dcaf464132729ca8969582794f22c5e146265580f7718448711145c704f7443601db6a5581d220e1686e2f1f37d1c7b8c25ed93cdc52101f566cfb421d93d
7
+ data.tar.gz: fe8a1b43b95ea3c51de2be67c1d25232441c42d021177a3b873207c9c805c123d365dd727c387a8130d71113417264e14486249fa6be2313a4e710863c5ddba6
data/cbor-dcbor.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cbor-dcbor"
3
- s.version = "0.0.1"
3
+ s.version = "0.0.2"
4
4
  s.summary = "CBOR (Concise Binary Object Representation) \"dCBOR\" encoding"
5
5
  s.description = %q{cbor-dcbor implements "dCBOR" encoding for CBOR, RFC 8949}
6
6
  s.author = "Carsten Bormann"
data/lib/cbor-dcbor.rb CHANGED
@@ -35,8 +35,8 @@ module CBOR
35
35
  module Float_Dcbor_CBOR
36
36
  def cbor_prepare_dcbor
37
37
  int = self.to_i
38
- if int == self && int.to_cbor.size < self.to_cbor.size
39
- int
38
+ if int == self && int.to_dcbor.size <= self.to_cbor.size
39
+ int.cbor_prepare_dcbor
40
40
  else
41
41
  self
42
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbor-dcbor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann