This is a Ruby implementation of the CBOR encoding, based on the (polished) high-performance msgpack-ruby code.