From c4cae36a126f91afaf4685342866f246d9a24fab Mon Sep 17 00:00:00 2001 From: Giuseppe Di Terlizzi Date: Tue, 26 Jul 2022 15:48:57 +0200 Subject: [PATCH] Small fixes --- Changes | 3 +++ README.md | 6 +++--- lib/URI/PackageURL.pm | 8 ++++---- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Changes b/Changes index fb93fe7..14e5874 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,7 @@ Revision history for Perl extension URI::PackageURL. +1.01 2022-07-26 + - Fix documentation and test prerequisite (JSON::PP) + 1.00 2022-07-25 - First release of URI::PackageURL diff --git a/README.md b/README.md index c9dfe94..2e6f6d1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![Release](https://img.shields.io/github/release/giterlizzi/perl-URI-PackageURL.svg)](https://github.com/giterlizzi/perl-URI-PackageURL/releases) [![Actions Status](https://github.com/giterlizzi/perl-URI-PackageURL/workflows/linux/badge.svg)](https://github.com/giterlizzi/perl-URI-PackageURL/actions) [![Actions Status](https://github.com/giterlizzi/perl-URI-PackageURL/workflows/macos/badge.svg)](https://github.com/giterlizzi/perl-URI-PackageURL/actions) [![License](https://img.shields.io/github/license/giterlizzi/perl-URI-PackageURL.svg)](https://github.com/giterlizzi/perl-URI-PackageURL) [![Starts](https://img.shields.io/github/stars/giterlizzi/perl-URI-PackageURL.svg)](https://github.com/giterlizzi/perl-URI-PackageURL) [![Forks](https://img.shields.io/github/forks/giterlizzi/perl-URI-PackageURL.svg)](https://github.com/giterlizzi/perl-URI-PackageURL) [![Issues](https://img.shields.io/github/issues/giterlizzi/perl-URI-PackageURL.svg)](https://github.com/giterlizzi/perl-URI-PackageURL/issues) [![Coverage Status](https://coveralls.io/repos/github/giterlizzi/perl-URI-PackageURL/badge.svg)](https://coveralls.io/github/giterlizzi/perl-URI-PackageURL) -# URI::PackageURL - Perl for Package URL (aka "purl") +# URI::PackageURL - Perl extension for Package URL (aka "purl") ## Synopsis @@ -12,7 +12,7 @@ use URI::PackageURL; # Encode components in PackageURL string $purl = URI::PackageURL->new(type => cpan, namespace => 'URI', name => 'PackageURL', version => 1.00'); -say $purl // pkg:cpan/URI/PackageURL@0.0.1 +say $purl; # pkg:cpan/URI/PackageURL@0.0.1 # Parse PackageURL string $purl = URI::PackageURL->from_string('pkg:cpan/URI/PackageURL@0.0.1'); @@ -20,7 +20,7 @@ $purl = URI::PackageURL->from_string('pkg:cpan/URI/PackageURL@0.0.1'); # exported funtions $purl = decode_purl('pkg:cpan/URI/PackageURL@0.0.1'); -say $purl->type; // cpan +say $purl->type; # cpan $purl_string = encode_purl(type => cpan, namespace => 'URI', name => 'PackageURL', version => 1.00'); ``` diff --git a/lib/URI/PackageURL.pm b/lib/URI/PackageURL.pm index a551c28..4e4588c 100644 --- a/lib/URI/PackageURL.pm +++ b/lib/URI/PackageURL.pm @@ -12,7 +12,7 @@ use constant DEBUG => $ENV{PURL_DEBUG}; use overload '""' => 'to_string', fallback => 1; -our $VERSION = '1.00'; +our $VERSION = '1.01'; our @EXPORT = qw(encode_purl decode_purl); @@ -317,7 +317,7 @@ URI::PackageURL - Perl extension for Package URL (aka "purl") # Encode components in PackageURL string $purl = URI::PackageURL->new(type => cpan, namespace => 'URI', name => 'PackageURL', version => 1.00'); - say $purl // pkg:cpan/URI/PackageURL@0.0.1 + say $purl; # pkg:cpan/URI/PackageURL@0.0.1 # Parse PackageURL string $purl = URI::PackageURL->from_string('pkg:cpan/URI/PackageURL@0.0.1'); @@ -325,7 +325,7 @@ URI::PackageURL - Perl extension for Package URL (aka "purl") # exported funtions $purl = decode_purl('pkg:cpan/URI/PackageURL@0.0.1'); - say $purl->type; // cpan + say $purl->type; # cpan $purl_string = encode_purl(type => cpan, namespace => 'URI', name => 'PackageURL', version => 1.00'); @@ -439,7 +439,7 @@ Helper method for JSON modules (L, L, L, L use Mojo::JSON qw(encode_json); - say encode_json($purl); // {"name":"PackageURL","namespace":"URI","qualifiers":null,"subpath":null,"type":"cpan","version":"0.0.1"} + say encode_json($purl); # {"name":"PackageURL","namespace":"URI","qualifiers":null,"subpath":null,"type":"cpan","version":"0.0.1"} =back