From 661b30e1693328acbd3aa6730777a0568738b55b Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Thu, 13 Jun 2019 02:56:21 -0600 Subject: [PATCH] Version 0.003 --- Changes | 3 +++ META.json | 16 ++++++++-------- META.yml | 16 ++++++++-------- Makefile.PL | 2 +- README | 2 +- bin/homebank2ledger | 4 ++-- lib/App/HomeBank2Ledger.pm | 12 ++++++------ lib/App/HomeBank2Ledger/Formatter.pm | 4 ++-- lib/App/HomeBank2Ledger/Formatter/Beancount.pm | 4 ++-- lib/App/HomeBank2Ledger/Formatter/Ledger.pm | 4 ++-- lib/App/HomeBank2Ledger/Ledger.pm | 4 ++-- lib/App/HomeBank2Ledger/Util.pm | 4 ++-- lib/File/HomeBank.pm | 4 ++-- 13 files changed, 41 insertions(+), 38 deletions(-) diff --git a/Changes b/Changes index b46ff94..86e0700 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for App-HomeBank2Ledger. +0.003 2019-06-13 02:55:59-06:00 MST7MDT + * Fix bug that makes the --version and --help flags broken + 0.002 2019-06-12 23:39:32-06:00 MST7MDT * Rename dist * Provide better README in dist diff --git a/META.json b/META.json index abb57ba..6d75c9b 100644 --- a/META.json +++ b/META.json @@ -84,31 +84,31 @@ "provides" : { "App::HomeBank2Ledger" : { "file" : "lib/App/HomeBank2Ledger.pm", - "version" : "0.002" + "version" : "0.003" }, "App::HomeBank2Ledger::Formatter" : { "file" : "lib/App/HomeBank2Ledger/Formatter.pm", - "version" : "0.002" + "version" : "0.003" }, "App::HomeBank2Ledger::Formatter::Beancount" : { "file" : "lib/App/HomeBank2Ledger/Formatter/Beancount.pm", - "version" : "0.002" + "version" : "0.003" }, "App::HomeBank2Ledger::Formatter::Ledger" : { "file" : "lib/App/HomeBank2Ledger/Formatter/Ledger.pm", - "version" : "0.002" + "version" : "0.003" }, "App::HomeBank2Ledger::Ledger" : { "file" : "lib/App/HomeBank2Ledger/Ledger.pm", - "version" : "0.002" + "version" : "0.003" }, "App::HomeBank2Ledger::Util" : { "file" : "lib/App/HomeBank2Ledger/Util.pm", - "version" : "0.002" + "version" : "0.003" }, "File::HomeBank" : { "file" : "lib/File/HomeBank.pm", - "version" : "0.002" + "version" : "0.003" } }, "release_status" : "stable", @@ -123,7 +123,7 @@ "web" : "https://github.com/chazmcgarvey/homebank2ledger" } }, - "version" : "0.002", + "version" : "0.003", "x_authority" : "cpan:CCM", "x_generated_by_perl" : "v5.28.0", "x_serialization_backend" : "Cpanel::JSON::XS version 4.08" diff --git a/META.yml b/META.yml index e66966a..5dd56d2 100644 --- a/META.yml +++ b/META.yml @@ -28,25 +28,25 @@ no_index: provides: App::HomeBank2Ledger: file: lib/App/HomeBank2Ledger.pm - version: '0.002' + version: '0.003' App::HomeBank2Ledger::Formatter: file: lib/App/HomeBank2Ledger/Formatter.pm - version: '0.002' + version: '0.003' App::HomeBank2Ledger::Formatter::Beancount: file: lib/App/HomeBank2Ledger/Formatter/Beancount.pm - version: '0.002' + version: '0.003' App::HomeBank2Ledger::Formatter::Ledger: file: lib/App/HomeBank2Ledger/Formatter/Ledger.pm - version: '0.002' + version: '0.003' App::HomeBank2Ledger::Ledger: file: lib/App/HomeBank2Ledger/Ledger.pm - version: '0.002' + version: '0.003' App::HomeBank2Ledger::Util: file: lib/App/HomeBank2Ledger/Util.pm - version: '0.002' + version: '0.003' File::HomeBank: file: lib/File/HomeBank.pm - version: '0.002' + version: '0.003' requires: Carp: '0' Exporter: '0' @@ -65,7 +65,7 @@ resources: bugtracker: https://github.com/chazmcgarvey/homebank2ledger/issues homepage: https://github.com/chazmcgarvey/homebank2ledger repository: https://github.com/chazmcgarvey/homebank2ledger.git -version: '0.002' +version: '0.003' x_authority: cpan:CCM x_generated_by_perl: v5.28.0 x_serialization_backend: 'YAML::Tiny version 1.73' diff --git a/Makefile.PL b/Makefile.PL index 29683a7..694d8d6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -41,7 +41,7 @@ my %WriteMakefileArgs = ( "IPC::Open3" => 0, "Test::More" => 0 }, - "VERSION" => "0.002", + "VERSION" => "0.003", "test" => { "TESTS" => "t/*.t" } diff --git a/README b/README index 8bb567f..df13783 100644 --- a/README +++ b/README @@ -4,7 +4,7 @@ NAME VERSION - version 0.002 + version 0.003 SYNOPSIS diff --git a/bin/homebank2ledger b/bin/homebank2ledger index 84ce034..53a3d6f 100644 --- a/bin/homebank2ledger +++ b/bin/homebank2ledger @@ -8,7 +8,7 @@ use strict; use App::HomeBank2Ledger; -our $VERSION = '0.002'; # VERSION +our $VERSION = '0.003'; # VERSION App::HomeBank2Ledger->main(@ARGV); @@ -24,7 +24,7 @@ homebank2ledger - A tool to convert HomeBank files to Ledger format =head1 VERSION -version 0.002 +version 0.003 =head1 SYNOPSIS diff --git a/lib/App/HomeBank2Ledger.pm b/lib/App/HomeBank2Ledger.pm index 64cb030..655ba9b 100644 --- a/lib/App/HomeBank2Ledger.pm +++ b/lib/App/HomeBank2Ledger.pm @@ -11,7 +11,7 @@ use File::HomeBank; use Getopt::Long 2.38 qw(GetOptionsFromArray); use Pod::Usage; -our $VERSION = '0.002'; # VERSION +our $VERSION = '0.003'; # VERSION my %ACCOUNT_TYPES = ( # map HomeBank account types to Ledger accounts bank => 'Assets:Bank', @@ -50,6 +50,10 @@ sub main { if ($opts->{manual}) { pod2usage(-exitval => 0, -verbose => 2); } + if (!$opts->{input}) { + print STDERR "Input file is required.\n"; + exit(1); + } my $homebank = File::HomeBank->new(file => $opts->{input}); @@ -355,10 +359,6 @@ sub parse_args { ) or pod2usage(-exitval => 1, -verbose => 99, -sections => [qw(SYNOPSIS OPTIONS)]); $opts{input} = shift @args if !$opts{input}; - if (!$opts{input}) { - print STDERR "Input file is required.\n"; - exit(1); - } return \%opts; } @@ -382,7 +382,7 @@ App::HomeBank2Ledger - A tool to convert HomeBank files to Ledger format =head1 VERSION -version 0.002 +version 0.003 =head1 SYNOPSIS diff --git a/lib/App/HomeBank2Ledger/Formatter.pm b/lib/App/HomeBank2Ledger/Formatter.pm index 8889577..97c320b 100644 --- a/lib/App/HomeBank2Ledger/Formatter.pm +++ b/lib/App/HomeBank2Ledger/Formatter.pm @@ -9,7 +9,7 @@ use Module::Load; use Module::Pluggable search_path => [__PACKAGE__], sub_name => 'available_formatters'; -our $VERSION = '0.002'; # VERSION +our $VERSION = '0.003'; # VERSION sub _croak { require Carp; Carp::croak(@_) } @@ -59,7 +59,7 @@ App::HomeBank2Ledger::Formatter - Abstract class for formatting a ledger =head1 VERSION -version 0.002 +version 0.003 =head1 SYNOPSIS diff --git a/lib/App/HomeBank2Ledger/Formatter/Beancount.pm b/lib/App/HomeBank2Ledger/Formatter/Beancount.pm index f6da017..a91cb6a 100644 --- a/lib/App/HomeBank2Ledger/Formatter/Beancount.pm +++ b/lib/App/HomeBank2Ledger/Formatter/Beancount.pm @@ -9,7 +9,7 @@ use App::HomeBank2Ledger::Util qw(commify rtrim); use parent 'App::HomeBank2Ledger::Formatter'; -our $VERSION = '0.002'; # VERSION +our $VERSION = '0.003'; # VERSION my %STATUS_SYMBOLS = ( cleared => '*', @@ -257,7 +257,7 @@ App::HomeBank2Ledger::Formatter::Beancount - Beancount formatter =head1 VERSION -version 0.002 +version 0.003 =head1 DESCRIPTION diff --git a/lib/App/HomeBank2Ledger/Formatter/Ledger.pm b/lib/App/HomeBank2Ledger/Formatter/Ledger.pm index e318140..f9abb48 100644 --- a/lib/App/HomeBank2Ledger/Formatter/Ledger.pm +++ b/lib/App/HomeBank2Ledger/Formatter/Ledger.pm @@ -9,7 +9,7 @@ use App::HomeBank2Ledger::Util qw(commify rtrim); use parent 'App::HomeBank2Ledger::Formatter'; -our $VERSION = '0.002'; # VERSION +our $VERSION = '0.003'; # VERSION my %STATUS_SYMBOLS = ( cleared => '*', @@ -215,7 +215,7 @@ App::HomeBank2Ledger::Formatter::Ledger - Ledger formatter =head1 VERSION -version 0.002 +version 0.003 =head1 DESCRIPTION diff --git a/lib/App/HomeBank2Ledger/Ledger.pm b/lib/App/HomeBank2Ledger/Ledger.pm index 258571c..b17a38b 100644 --- a/lib/App/HomeBank2Ledger/Ledger.pm +++ b/lib/App/HomeBank2Ledger/Ledger.pm @@ -5,7 +5,7 @@ package App::HomeBank2Ledger::Ledger; use warnings; use strict; -our $VERSION = '0.002'; # VERSION +our $VERSION = '0.003'; # VERSION sub new { @@ -63,7 +63,7 @@ App::HomeBank2Ledger::Ledger - Ledger data representation =head1 VERSION -version 0.002 +version 0.003 =head1 SYNOPSIS diff --git a/lib/App/HomeBank2Ledger/Util.pm b/lib/App/HomeBank2Ledger/Util.pm index 64c0cb2..c3939d6 100644 --- a/lib/App/HomeBank2Ledger/Util.pm +++ b/lib/App/HomeBank2Ledger/Util.pm @@ -6,7 +6,7 @@ use strict; use Exporter qw(import); -our $VERSION = '0.002'; # VERSION +our $VERSION = '0.003'; # VERSION our @EXPORT_OK = qw(commify rtrim); @@ -42,7 +42,7 @@ App::HomeBank2Ledger::Util - Miscellaneous utility functions =head1 VERSION -version 0.002 +version 0.003 =head1 FUNCTIONS diff --git a/lib/File/HomeBank.pm b/lib/File/HomeBank.pm index b517110..4718448 100644 --- a/lib/File/HomeBank.pm +++ b/lib/File/HomeBank.pm @@ -12,7 +12,7 @@ use Time::Piece; use XML::Entities; use XML::Parser::Lite; -our $VERSION = '0.002'; # VERSION +our $VERSION = '0.003'; # VERSION our @EXPORT_OK = qw(parse_string parse_file); @@ -487,7 +487,7 @@ File::HomeBank - Parse HomeBank files =head1 VERSION -version 0.002 +version 0.003 =head1 SYNOPSIS -- 2.43.0