cbor-ruby icon indicating copy to clipboard operation
cbor-ruby copied to clipboard

CBOR (RFC 7049) extension for Ruby

Results 9 cbor-ruby issues
Sort by recently updated
recently updated
newest added

Hi, https://datatracker.ietf.org/doc/rfc8949/ was released this month, updating RFC7049. Is there a summary of the work required to update this code to match the new RFC?

I am trying to cross compile cbor-ruby as a custom package inside buildroot - but that is another painful story - it keeps selecting the native compiler instead of the...

`CBOR.decode` can raise several error types when fed with invalid cbor input. ```ruby require "cbor" require 'securerandom' errors = {} 1_000_000.times do |i| begin CBOR.decode(SecureRandom.random_bytes(64)) rescue => ex errors[ex.class.name] =...

The gem fails to build with JRuby as it uses obsolete and deprecated Config: ``` $ JRUBY_OPTS=-Xcext.enabled=true jgem install cbor Building native extensions. This could take a while... ERROR: Error...

Any plans to extend cbor library with support for string references as described here: http://pod.tst.eu/http://cvs.schmorp.de/CBOR-XS/doc/stringref.pod ? This would be tremendously useful when serialising large arrays of hashes.

I used Kotlin's `KotlinxSerializationCbor` to generate following CBOR, encoding it in base64 urlsafe format: ``` v2dzdWNjZXNz9G5taXNzaW5nRmFjdG9yc5-fn2h3ZWJhdXRobr____-fn2d5dWJpb3Rwv_______ ``` I can decode it using `cbor2pretty.rb` tool with the following command: ```shell echo...

Identical branches fix

Identical branches in https://github.com/cabo/cbor-ruby/blob/4e8b2ec982f41cfcd6568a429add205c8259f470/ext/cbor/buffer_class.c#L76-L80 https://github.com/cabo/cbor-ruby/blob/4e8b2ec982f41cfcd6568a429add205c8259f470/ext/cbor/buffer_class.c#L87-L90 We can replace 'else if', this improves performance slightly

In the [cose](https://github.com/cedarcode/cose-ruby) gem, they depended on `cbor ~> 0.5.9` which doesn't seem to resolve correctly to `0.5.9.8` since `~>` is a semantic version comparator, and this project isn't using...