Hello community, here is the log from the commit of package perl-App-Dochazka-CLI for openSUSE:Factory checked in at 2016-10-10 16:20:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-App-Dochazka-CLI (Old) and /work/SRC/openSUSE:Factory/.perl-App-Dochazka-CLI.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "perl-App-Dochazka-CLI" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-App-Dochazka-CLI/perl-App-Dochazka-CLI.changes 2016-09-17 14:39:52.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-App-Dochazka-CLI.new/perl-App-Dochazka-CLI.changes 2016-10-10 16:20:13.000000000 +0200 @@ -1,0 +2,27 @@ +Thu Sep 15 11:35:40 UTC 2016 - ncutler@suse.com + +- updated to 0.238 + see /usr/share/doc/packages/perl-App-Dochazka-CLI/Changes + +------------------------------------------------------------------- +Thu Sep 15 06:07:03 UTC 2016 - tampakrap@opensuse.org + +- add example and empty config files + +------------------------------------------------------------------- +Thu Sep 8 10:51:13 UTC 2016 - tampakrap@opensuse.org + +- regenerate via cpanspec, remove _service file + +------------------------------------------------------------------- +Sun Sep 4 20:42:04 UTC 2016 - ncutler@suse.com + +- update %doc list in spec file + +------------------------------------------------------------------- +Sun Sep 4 18:14:08 UTC 2016 - ncutler@suse.com + +- updated to 0.237 + see /usr/share/doc/packages/perl-App-Dochazka-CLI/Changes + +------------------------------------------------------------------- Old: ---- App-Dochazka-CLI-0.236.tar.gz _service New: ---- App-Dochazka-CLI-0.238.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-App-Dochazka-CLI.spec ++++++ --- /var/tmp/diff_new_pack.UrT4sD/_old 2016-10-10 16:20:14.000000000 +0200 +++ /var/tmp/diff_new_pack.UrT4sD/_new 2016-10-10 16:20:14.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-App-Dochazka-CLI # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,44 +17,45 @@ Name: perl-App-Dochazka-CLI -Version: 0.236 +Version: 0.238 Release: 0 %define cpan_name App-Dochazka-CLI Summary: Dochazka command line client License: BSD-3-Clause Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/App-Dochazka-CLI/ -Source: App-Dochazka-CLI-%{version}.tar.gz +Source0: App-Dochazka-CLI-0.238.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(App::CELL) >= 0.209 -BuildRequires: perl(App::Dochazka::Common) >= 0.192 +BuildRequires: perl(App::Dochazka::Common) >= 0.199 BuildRequires: perl(Date::Calc) +BuildRequires: perl(File::HomeDir) BuildRequires: perl(File::ShareDir) >= 1.00 BuildRequires: perl(File::Slurp) -BuildRequires: perl(File::Temp) BuildRequires: perl(HTTP::Cookies) BuildRequires: perl(HTTP::Request) BuildRequires: perl(JSON) BuildRequires: perl(LWP::UserAgent) -BuildRequires: perl(Module::Build) >= 0.37 +BuildRequires: perl(Module::Build) >= 0.370000 BuildRequires: perl(Params::Validate) >= 1.06 BuildRequires: perl(Software::License) BuildRequires: perl(Term::ReadKey) BuildRequires: perl(Term::ReadLine::Gnu) +BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::Warnings) BuildRequires: perl(Text::Table) -BuildRequires: perl(Web::MREST::CLI) >= 0.275 +BuildRequires: perl(Web::MREST::CLI) >= 0.28 Requires: perl(App::CELL) >= 0.209 -Requires: perl(App::Dochazka::Common) >= 0.192 +Requires: perl(App::Dochazka::Common) >= 0.199 Requires: perl(Date::Calc) Requires: perl(File::HomeDir) Requires: perl(File::ShareDir) >= 1.00 Requires: perl(File::Slurp) -Requires: perl(File::Temp) Requires: perl(HTTP::Cookies) Requires: perl(HTTP::Request) Requires: perl(JSON) @@ -63,21 +64,22 @@ Requires: perl(Term::ReadKey) Requires: perl(Term::ReadLine::Gnu) Requires: perl(Text::Table) -Requires: perl(Web::MREST::CLI) >= 0.275 -Requires: xdg-utils +Requires: perl(Web::MREST::CLI) >= 0.281 %{perl_requires} +# MANUAL BEGIN +Requires: xdg-utils +# MANUAL END %description -the App::Dochazka::CLI manpage is the Command Line Interface (CLI) -component of the Dochazka Attendance & Time Tracking system. +App::Dochazka::CLI is the Command Line Interface (CLI) component of the +Dochazka Attendance & Time Tracking system. -In order to work, the CLI must be pointed at a running the -App::Dochazka::REST manpage (i.e., Dochazka REST server) instance by -setting the 'MREST_CLI_URI_BASE' site configuration parameter. +In order to work, the CLI must be pointed at a running App::Dochazka::REST +(i.e., Dochazka REST server) instance by setting the 'MREST_CLI_URI_BASE' +meta configuration parameter. Detailed documentation covering configuration, deployment, and the commands -that can be used with the CLI can be found in the App::Dochazka::CLI::Guide -manpage. +that can be used with the CLI can be found in App::Dochazka::CLI::Guide. This module is used to store some "global" package variables that are used throughout the CLI code base. @@ -94,10 +96,19 @@ %install ./Build install destdir=%{buildroot} create_packlist=0 +# MANUAL BEGIN +install -dm0755 %{buildroot}%{_sysconfdir}/dochazka-cli +install -m0640 ext/CLI_SiteConfig.pm.example %{buildroot}%{_sysconfdir}/dochazka-cli/CLI_SiteConfig.pm +install -m0644 ext/CLI_SiteConfig.pm.example %{buildroot}%{_sysconfdir}/dochazka-cli/CLI_SiteConfig.pm.example + +echo "%dir %{_sysconfdir}/dochazka-cli" >> %{name}.files +echo "%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/dochazka-cli/CLI_SiteConfig.pm" >> %{name}.files +echo "%config %{_sysconfdir}/dochazka-cli/CLI_SiteConfig.pm.example" >> %{name}.files +# MANUAL END %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes config ignore.txt README +%doc Changes config ext LICENSE README.rst %changelog ++++++ App-Dochazka-CLI-0.236.tar.gz -> App-Dochazka-CLI-0.238.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/Build.PL new/App-Dochazka-CLI-0.238/Build.PL --- old/App-Dochazka-CLI-0.236/Build.PL 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/Build.PL 2016-09-15 13:35:28.000000000 +0200 @@ -49,7 +49,7 @@ 'Term::ReadKey' => 0, 'Term::ReadLine::Gnu' => 0, 'Text::Table' => 0, - 'Web::MREST::CLI' => 0.280, + 'Web::MREST::CLI' => 0.281, }, meta_merge => { resources => { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/Changes new/App-Dochazka-CLI-0.238/Changes --- old/App-Dochazka-CLI-0.236/Changes 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/Changes 2016-09-15 13:35:28.000000000 +0200 @@ -1136,3 +1136,14 @@ - Util.pm->normalize_date(): check sanity of resulting date - Commands/Interval.pm: remove confusing partial interval message +0.237 2016-09-04 20:12 CEST +- Parser.pm: provide better parser state dumps in debug mode +- RestTest: implement GET configinfo +- Util.pm: report logfile location to user at startup +- Saner sitedir handling +- Travis CI + +0.238 2016-09-15 13:33 CEST +- cleanup: drop ignore.txt +- build/ops: new file CLI_SiteConfig.pm.example + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/MANIFEST new/App-Dochazka-CLI-0.238/MANIFEST --- old/App-Dochazka-CLI-0.236/MANIFEST 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/MANIFEST 2016-09-15 13:35:28.000000000 +0200 @@ -4,7 +4,7 @@ config/CLI_Config.pm config/CLI_Message_en.conf config/CLI_MetaConfig.pm -ignore.txt +ext/CLI_SiteConfig.pm.example lib/App/Dochazka/CLI.pm lib/App/Dochazka/CLI/CommandMap.pm lib/App/Dochazka/CLI/Commands/Activity.pm @@ -35,8 +35,7 @@ MANIFEST This list of files META.json META.yml -README -README.md +README.rst t/001-init.t t/cmd_active/activity.t t/cmd_active/employee.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/META.json new/App-Dochazka-CLI-0.238/META.json --- old/App-Dochazka-CLI-0.236/META.json 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/META.json 2016-09-15 13:35:28.000000000 +0200 @@ -50,7 +50,7 @@ "Term::ReadKey" : "0", "Term::ReadLine::Gnu" : "0", "Text::Table" : "0", - "Web::MREST::CLI" : "0.28", + "Web::MREST::CLI" : "0.281", "perl" : "5.012" } } @@ -58,7 +58,7 @@ "provides" : { "App::Dochazka::CLI" : { "file" : "lib/App/Dochazka/CLI.pm", - "version" : "0.236" + "version" : "0.238" }, "App::Dochazka::CLI::CommandMap" : { "file" : "lib/App/Dochazka/CLI/CommandMap.pm" @@ -92,7 +92,7 @@ }, "App::Dochazka::CLI::Guide" : { "file" : "lib/App/Dochazka/CLI/Guide.pm", - "version" : "0.236" + "version" : "0.238" }, "App::Dochazka::CLI::Parser" : { "file" : "lib/App/Dochazka/CLI/Parser.pm" @@ -125,6 +125,6 @@ "url" : "https://github.com/smithfarm/dochazka-cli" } }, - "version" : "0.236", + "version" : "0.238", "x_serialization_backend" : "JSON::PP version 2.27203" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/META.yml new/App-Dochazka-CLI-0.238/META.yml --- old/App-Dochazka-CLI-0.236/META.yml 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/META.yml 2016-09-15 13:35:28.000000000 +0200 @@ -24,7 +24,7 @@ provides: App::Dochazka::CLI: file: lib/App/Dochazka/CLI.pm - version: '0.236' + version: '0.238' App::Dochazka::CLI::CommandMap: file: lib/App/Dochazka/CLI/CommandMap.pm App::Dochazka::CLI::Commands::Activity: @@ -47,7 +47,7 @@ file: lib/App/Dochazka/CLI/Completion.pm App::Dochazka::CLI::Guide: file: lib/App/Dochazka/CLI/Guide.pm - version: '0.236' + version: '0.238' App::Dochazka::CLI::Parser: file: lib/App/Dochazka/CLI/Parser.pm App::Dochazka::CLI::Shared: @@ -77,11 +77,11 @@ Term::ReadKey: '0' Term::ReadLine::Gnu: '0' Text::Table: '0' - Web::MREST::CLI: '0.28' + Web::MREST::CLI: '0.281' perl: '5.012' resources: bugtracker: https://github.com/smithfarm/dochazka-cli/issues license: http://opensource.org/licenses/bsd-license.php repository: https://github.com/smithfarm/dochazka-cli -version: '0.236' +version: '0.238' x_serialization_backend: 'CPAN::Meta::YAML version 0.012' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/README.md new/App-Dochazka-CLI-0.238/README.md --- old/App-Dochazka-CLI-0.236/README.md 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/README.md 1970-01-01 01:00:00.000000000 +0100 @@ -1,4 +0,0 @@ -# dochazka-cli -Dochazka CLI client - -See http://metacpan.org/pod/App::Dochazka::CLI diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/README.rst new/App-Dochazka-CLI-0.238/README.rst --- old/App-Dochazka-CLI-0.236/README.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/README.rst 2016-09-15 13:35:28.000000000 +0200 @@ -0,0 +1,17 @@ +================== +App::Dochazka::CLI +================== + +.. image:: https://travis-ci.org/smithfarm/dochazka-cli.svg?branch=master + :target: https://travis-ci.org/smithfarm/dochazka-cli + +.. image:: https://badge.fury.io/pl/App-Dochazka-CLI.svg + :target: https://badge.fury.io/pl/App-Dochazka-CLI + + +Dochazka CLI client + +Documentation +============= + +See http://metacpan.org/pod/App::Dochazka::CLI diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/bin/dochazka-cli new/App-Dochazka-CLI-0.238/bin/dochazka-cli --- old/App-Dochazka-CLI-0.236/bin/dochazka-cli 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/bin/dochazka-cli 2016-09-15 13:35:28.000000000 +0200 @@ -144,16 +144,18 @@ pod2usage(1) if $help; +print "Debug mode: parser state dumps will be generated\n" if $debug_mode; + printversion() if $versionparam; -# determine sitedir -if ( $sitedir ) { - # if --sitedir or -s specified on command line, do nothing -} else { - if ( -d "$home/.dochazka-cli" ) { - $sitedir = "$home/.dochazka-cli"; - } elsif ( -d '/etc/dochazka-cli' ) { - $sitedir = '/etc/dochazka-cli'; +# assemble array of sitedirs +if ( $sitedir and not -d $sitedir ) { + die "sitedir value must be a valid directory"; +} +my @sitedirs; +foreach my $target ( '/etc/dochazka-cli', "$home/.dochazka-cli", $sitedir ) { + if ( defined( $target ) and -d $target ) { + push @sitedirs, $target; } } @@ -163,7 +165,7 @@ # initialize CLI client my $status = init_cli_client( distro => 'App-Dochazka-CLI', - sitedir => $sitedir, + sitedir => [ @sitedirs ], early_debug => $early_debug, ); if ( $status->not_ok ) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/ext/CLI_SiteConfig.pm.example new/App-Dochazka-CLI-0.238/ext/CLI_SiteConfig.pm.example --- old/App-Dochazka-CLI-0.236/ext/CLI_SiteConfig.pm.example 1970-01-01 01:00:00.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/ext/CLI_SiteConfig.pm.example 2016-09-15 13:35:28.000000000 +0200 @@ -0,0 +1,51 @@ +# +# CLI_SiteConfig.pm +# +# App::Dochazka::CLI configuration parameters that employees (users) +# might need to change the default values of. +# +# The first argument to "set()" is the name of the configuration parameter, and +# the second argument is its value. The values shown below are the defaults. +# +# To keep the default value, do nothing. +# +# To override a default, uncomment the "set" call and change the value. +# + +# DOCHAZKA_REST_LOGIN_NICK +# nick to use when we authenticate ourselves to the App::Dochazka::REST server +# when this is set to '' or undef, App::Dochazka::CLI will prompt for it +#set( 'DOCHAZKA_REST_LOGIN_NICK', undef ); + +# DOCHAZKA_REST_LOGIN_NICK +# password to use when we authenticate ourselves to the App::Dochazka::REST server +# when this is set to '' or undef, App::Dochazka::CLI will prompt for a password +# WARNING: PUTTING YOUR PASSWORD HERE MAY BE CONVENIENT, BUT IS PROBABLY UNSAFE +#set( 'DOCHAZKA_REST_LOGIN_PASSWORD', undef ); + +# MREST_CLI_COOKIE_JAR +# default location of the cookie jar +#set( 'MREST_CLI_COOKIE_JAR', "$ENV{HOME}/.cookies.txt" ); + +# DOCHAZKA_CLI_LOG_FILE +# default location of the log file +#set( 'DOCHAZKA_CLI_LOG_FILE', "$ENV{HOME}/.dochazka-cli.log" ); + +# MREST_CLI_SUPPRESSED_HEADERS +# list of headers to be suppressed in the output +#set ('MREST_CLI_SUPPRESSED_HEADERS', [ qw( +# accept content-type content-length cache-control pragma expires +# server Client-Response-Num Client-Peer Client-Date Set-Cookie Date +# Vary Client-SSL-Cert-Subject Client-SSL-Cipher +# Client-SSL-Socket-Class Client-SSL-Cert-Issuer Connection +# Strict-Transport-Security +#) ] ); + + +# ----------------------------------- +# DO NOT EDIT ANYTHING BELOW THIS LINE +# ----------------------------------- +use strict; +use warnings; + +1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/ignore.txt new/App-Dochazka-CLI-0.238/ignore.txt --- old/App-Dochazka-CLI-0.236/ignore.txt 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/ignore.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,18 +0,0 @@ -Makefile -Makefile.old -Build -Build.bat -META.* -MYMETA.* -.build/ -_build/ -cover_db/ -blib/ -inc/ -.lwpcookies -.last_cover_stats -nytprof.out -pod2htm*.tmp -pm_to_blib -App-Dochazka-CLI-* -App-Dochazka-CLI-*.tar.gz diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/CommandMap.pm new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/CommandMap.pm --- old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/CommandMap.pm 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/CommandMap.pm 2016-09-15 13:35:28.000000000 +0200 @@ -135,6 +135,10 @@ "PUT BUGREPORT" => \&_method_bugreport, "POST BUGREPORT" => \&_method_bugreport, "DELETE BUGREPORT" => \&_method_bugreport, + "GET CONFIGINFO" => \&_method_configinfo, + "PUT CONFIGINFO" => \&_method_configinfo, + "POST CONFIGINFO" => \&_method_configinfo, + "DELETE CONFIGINFO" => \&_method_configinfo, "GET COOKIEJAR" => \&_method_cookiejar, "PUT COOKIEJAR" => \&_method_cookiejar, "POST COOKIEJAR" => \&_method_cookiejar, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/Commands/RestTest/Top.pm new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/Commands/RestTest/Top.pm --- old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/Commands/RestTest/Top.pm 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/Commands/RestTest/Top.pm 2016-09-15 13:35:28.000000000 +0200 @@ -63,15 +63,23 @@ sub _method_bugreport { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'bugreport', $th->{_REST} ]; } +# $METHOD CONFIGINFO +sub _method_configinfo { + my ( $ts, $th ) = @_; + my $method = $ts->[0]; + + return [ $method, 'configinfo', $th->{_REST} ]; +} + # $METHOD COOKIEJAR sub _method_cookiejar { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + my $cookie_jar = Web::MREST::CLI::cookie_jar() || "No cookies in jar"; return $CELL->status_ok( 'COOKIE_JAR', payload => $cookie_jar ); @@ -81,7 +89,7 @@ sub _method_dbstatus { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'dbstatus', $th->{_REST} ]; } @@ -89,7 +97,7 @@ sub _method_docu { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'docu', $th->{_REST} ]; } @@ -97,7 +105,7 @@ sub _method_docu_pod { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'docu/pod', $th->{_REST} ]; } @@ -105,7 +113,7 @@ sub _method_docu_pod_docu { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'docu/pod', $th->{_DOCU} ]; } @@ -113,7 +121,7 @@ sub _method_docu_html { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'docu/html', $th->{_REST} ]; } @@ -121,7 +129,7 @@ sub _method_docu_html_docu { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'docu/html', $th->{_DOCU} ]; } @@ -129,7 +137,7 @@ sub _method_docu_text { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'docu/text', $th->{_REST} ]; } @@ -137,7 +145,7 @@ sub _method_docu_text_docu { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'docu/text', $th->{_DOCU} ]; } @@ -145,7 +153,7 @@ sub _method_echo { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'echo', $th->{_REST} ]; } @@ -153,7 +161,7 @@ sub _method_forbidden { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'forbidden', $th->{_REST} ]; } @@ -162,7 +170,7 @@ my ( $ts, $th ) = @_; my $method = $ts->[0]; my $tsrange = $th->{_TSRANGE}; - + return [ $method, "holiday/$tsrange", $th->{_REST} ]; } @@ -170,7 +178,7 @@ sub _method_noop { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'noop', $th->{_REST} ]; } @@ -178,7 +186,7 @@ sub _method_param { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'param', $th->{_REST} ]; } @@ -186,7 +194,7 @@ sub _method_param_core { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, "param/core", $th->{_REST} ]; } @@ -195,7 +203,7 @@ my ( $ts, $th ) = @_; my $method = $ts->[0]; my $term = $th->{_TERM}; - + return [ $method, "param/meta", $th->{_REST} ]; } @@ -204,7 +212,7 @@ my ( $ts, $th ) = @_; my $method = $ts->[0]; my $term = $th->{_TERM}; - + return [ $method, "param/site", $th->{_REST} ]; } @@ -213,7 +221,7 @@ my ( $ts, $th ) = @_; my $method = $ts->[0]; my $term = $th->{_TERM}; - + return [ $method, "param/core/$term", $th->{_REST} ]; } @@ -222,7 +230,7 @@ my ( $ts, $th ) = @_; my $method = $ts->[0]; my $term = $th->{_TERM}; - + return [ $method, "param/meta/$term", $th->{_REST} ]; } @@ -231,7 +239,7 @@ my ( $ts, $th ) = @_; my $method = $ts->[0]; my $term = $th->{_TERM}; - + return [ $method, "param/site/$term", $th->{_REST} ]; } @@ -239,7 +247,7 @@ sub _method_session { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'session', $th->{_REST} ]; } @@ -247,7 +255,7 @@ sub _method_version { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'version', $th->{_REST} ]; } @@ -255,7 +263,7 @@ sub _method_whoami { my ( $ts, $th ) = @_; my $method = $ts->[0]; - + return [ $method, 'whoami', $th->{_REST} ]; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/Guide.pm new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/Guide.pm --- old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/Guide.pm 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/Guide.pm 2016-09-15 13:35:28.000000000 +0200 @@ -42,11 +42,11 @@ =head1 VERSION -Version 0.236 +Version 0.238 =cut -our $VERSION = '0.236'; +our $VERSION = '0.238'; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/Parser.pm new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/Parser.pm --- old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/Parser.pm 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/Parser.pm 2016-09-15 13:35:28.000000000 +0200 @@ -346,10 +346,14 @@ my ( $cmd ) = @_; my $r = parse( $cmd ); # parse the command string + # if debug mode, dump parser state + if ( $debug_mode ) { + print "Recognized command: " . $r->{nc} . "\n"; + print "Token hash: " . Dumper( $r->{th} ) . "\n"; + } if ( not @{ $r->{ts} } ) { return $CELL->status_err( 'DOCHAZKA_CLI_PARSE_ERROR' ); } - print "Recognized command " . $r->{nc} . "\n" if $debug_mode; my $cmdspec = look_up_command( $r->{nc} ); # get the handler coderef if ( ref( $cmdspec ) eq 'CODE' ) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/TokenMap.pm new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/TokenMap.pm --- old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/TokenMap.pm 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/TokenMap.pm 2016-09-15 13:35:28.000000000 +0200 @@ -86,6 +86,7 @@ CODE => '(cod\S*)', COMMIT => '(comm\S*)', COMPONENT => '(comp\S*)', + CONFIGINFO => '(conf\S*)', COOKIEJAR => '(coo\S*)', CORE => '(cor\S*)', COUNT => '(cou\S*)', @@ -211,6 +212,7 @@ code => 'CODE', commit => 'COMMIT', component => 'COMPONENT', + configinfo => 'CONFIGINFO', cookiejar => 'COOKIEJAR', core => 'CORE', count => 'COUNT', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/Util.pm new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/Util.pm --- old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI/Util.pm 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI/Util.pm 2016-09-15 13:35:28.000000000 +0200 @@ -322,6 +322,7 @@ sub init_logger { my $log_file = normalize_filespec( $site->DOCHAZKA_CLI_LOG_FILE ); unlink $log_file if $site->DOCHAZKA_CLI_LOG_FILE_RESET; + print "Logging to $log_file\n"; Log::Any::Adapter->set('File', $log_file ); $log->init( ident => 'dochazka-cli', debug_mode => 1 ); $log->debug( 'Logger initialized' ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI.pm new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI.pm --- old/App-Dochazka-CLI-0.236/lib/App/Dochazka/CLI.pm 2016-02-04 11:18:16.000000000 +0100 +++ new/App-Dochazka-CLI-0.238/lib/App/Dochazka/CLI.pm 2016-09-15 13:35:28.000000000 +0200 @@ -53,11 +53,11 @@ =head1 VERSION -Version 0.236 +Version 0.238 =cut -our $VERSION = '0.236'; +our $VERSION = '0.238'; ++++++ cpanspec.yml ++++++ --- preamble: |- Requires: xdg-utils post_install: |- install -dm0755 %{buildroot}%{_sysconfdir}/dochazka-cli install -m0640 ext/CLI_SiteConfig.pm.example %{buildroot}%{_sysconfdir}/dochazka-cli/CLI_SiteConfig.pm install -m0644 ext/CLI_SiteConfig.pm.example %{buildroot}%{_sysconfdir}/dochazka-cli/CLI_SiteConfig.pm.example echo "%dir %{_sysconfdir}/dochazka-cli" >> %{name}.files echo "%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/dochazka-cli/CLI_SiteConfig.pm" >> %{name}.files echo "%config %{_sysconfdir}/dochazka-cli/CLI_SiteConfig.pm.example" >> %{name}.files