From 1cbabfc2813880df9b1872939d836ab6f3baf7c0 Mon Sep 17 00:00:00 2001 From: Dave Cross Date: Mon, 18 Nov 2024 12:48:13 +0000 Subject: [PATCH] Version 0.0.9 --- ChangeLog.md | 8 +++++++- lib/App/LastStats.pm | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 7aa0b56..de5738c 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -5,11 +5,17 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.0.9] - 2024-11-18 + +### Added + +- Produce JSON output in "pretty" format + ## [0.0.8] - 2024-08-29 ### Added -- 'package' statement to work around MetaCPAN not understand the 'class' keyword +- 'package' statement to work around MetaCPAN not understandinh the 'class' keyword ## [0.0.7] - 2024-08-18 diff --git a/lib/App/LastStats.pm b/lib/App/LastStats.pm index 2097f04..bf834fb 100644 --- a/lib/App/LastStats.pm +++ b/lib/App/LastStats.pm @@ -14,7 +14,7 @@ class App::LastStats { use Getopt::Long; use JSON; - our $VERSION = '0.0.8'; + our $VERSION = '0.0.9'; field $username :param = 'davorg'; field $period :param = '7day'; @@ -77,7 +77,7 @@ class App::LastStats { name => $_->{name}, count => $_->{playcount}, } } @artists; - say JSON->new->canonical(1)->encode(\@data); + say JSON->new->canonical(1)->pretty(1)->encode(\@data); } method render_html {