[Cbor] cbor-diag 0.5.14: Support for sequences in diag2x

Carsten Bormann <cabo@tzi.org> Wed, 24 February 2021 14:45 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 137083A168A for <cbor@ietfa.amsl.com>; Wed, 24 Feb 2021 06:45:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.886
X-Spam-Level:
X-Spam-Status: No, score=-1.886 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FCe0VPFqPGi3 for <cbor@ietfa.amsl.com>; Wed, 24 Feb 2021 06:45:11 -0800 (PST)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E609D3A168C for <cbor@ietf.org>; Wed, 24 Feb 2021 06:44:30 -0800 (PST)
Received: from [192.168.217.123] (p5089a828.dip0.t-ipconnect.de [80.137.168.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4DlzG51yqmz107d; Wed, 24 Feb 2021 15:44:29 +0100 (CET)
From: Carsten Bormann <cabo@tzi.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mao-Original-Outgoing-Id: 635870665.29781-1dc6075e8d06546c8d7cca8ea79821eb
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
Date: Wed, 24 Feb 2021 15:44:28 +0100
Message-Id: <398EEF0D-7E28-402B-9A78-714048309300@tzi.org>
To: cbor@ietf.org
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/lsGtKmArymorC6xMFI-qFl-_npw>
Subject: [Cbor] cbor-diag 0.5.14: Support for sequences in diag2x
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Feb 2021 14:45:16 -0000

We already could do:

$ echo 01CBOR | cborseq2diag.rb -t
-17, -18, 'BOR', 10

(Note how the newline turns into 10 :-)

With 0.5.14, we now also can do:

$ echo "-17, -18, 'BOR', 10" | diag2pretty.rb
# CBOR sequence with 4 elements
30 # negative(16)
31 # negative(17)
43        # bytes(3)
   424f52 # "BOR"
0a # unsigned(10)

(The lines with the hash marks are the output.)

As always, upgrade with 

	gem update
or
	gem update cbor-diag

cbor.me is next…

Grüße, Carsten