App-Dochazka-CLI
view release on metacpan or search on metacpan
],
configure_requires => {
'Module::Build' => 0.37,
'Software::License' => 0,
},
build_requires => {
'App::CELL' => 0.209,
'App::Dochazka::Common' => 0.199,
'Date::Calc' => 0,
'Test::Deep' => 0,
'Test::Fatal' => 0,
'Test::Warnings' => 0,
'Params::Validate' => 1.06,
'Web::MREST::CLI' => 0.280,
},
requires => {
'perl' => 5.012,
'App::CELL' => 0.209,
'App::Dochazka::Common' => 0.199,
'Date::Calc' => 0,
'File::HomeDir' => 0,
},
"name" : "App-Dochazka-CLI",
"prereqs" : {
"build" : {
"requires" : {
"App::CELL" : "0.209",
"App::Dochazka::Common" : "0.199",
"Date::Calc" : "0",
"Params::Validate" : "1.06",
"Test::Deep" : "0",
"Test::Fatal" : "0",
"Test::Warnings" : "0",
"Web::MREST::CLI" : "0.28"
}
},
"configure" : {
"requires" : {
"Module::Build" : "0.37",
"Software::License" : "0"
}
},
---
abstract: 'Dochazka ATT system command line client'
author:
- 'Smithfarm <presnypreklad@gmail.com>'
build_requires:
App::CELL: 0.209
App::Dochazka::Common: 0.199
Date::Calc: 0
Params::Validate: 1.06
Test::Deep: 0
Test::Fatal: 0
Test::Warnings: 0
Web::MREST::CLI: 0.28
configure_requires:
Module::Build: 0.37
Software::License: 0
dynamic_config: 1
generated_by: 'Module::Build version 0.4003, CPAN::Meta::Converter version 2.120921'
license: bsd
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
Makefile.PL view on Meta::CPAN
'App::Dochazka' => '0.189',
'Date::Calc' => 0,
'File::ShareDir' => '1.00',
'Getopt::Long' => '2.32',
'HTTP::Cookies' => 0,
'HTTP::Request' => 0,
'JSON' => 0,
'LWP::UserAgent' => 0,
'Params::Validate' => '1.06',
'Term::ReadLine::Gnu' => 0,
'Test::Fatal' => 0,
'Text::Table' => 0,
'Web::MREST::CLI::UserAgent' => 0
},
'INSTALLDIRS' => 'site',
'EXE_FILES' => [
'bin/dochazka-cli'
],
'PL_FILES' => {},
'test' => {
'TESTS' => 't/*.t t/util/*.t t/parser/*.t t/cmd_inactive/*.t t/cmd_passerby/*.t t/cmd_active/*.t t/cmd_admin/*.t'
t/util/datelist.t view on Meta::CPAN
#!perl
use 5.012;
use strict;
use warnings;
#use App::CELL::Test::LogToFile;
use App::CELL qw( $log );
use App::Dochazka::CLI qw( $prompt_year $prompt_month );
use App::Dochazka::CLI::Util qw( datelist_from_token month_alpha_to_numeric );
use Data::Dumper;
use Test::Fatal;
use Test::More;
use Test::Warnings;
note( 'initialize logger' );
$log->init( ident => "dochazka-cli", debug_mode => 1 );
note( 'month_alpha_to_numeric()' );
my %test_months = (
'prd' => undef,
'Jan' => 1,
t/util/determine_employee.t view on Meta::CPAN
use App::CELL qw( $CELL $log $meta $site );
use App::Dochazka::CLI::Test qw( init_unit );
use App::Dochazka::CLI::Util qw(
authenticate_to_server
determine_employee
lookup_employee
);
use Data::Dumper;
use Test::More;
use Test::Warnings;
use Test::Fatal;
my ( $status, $rv, $rv_type );
note( 'init_unit' );
$rv = init_unit();
diag( Dumper $rv ) unless $rv->ok;
note( 'authenticate to server' );
$rv = authenticate_to_server( user => 'root', password => 'immutable', quiet => 1 );
$rv_type = ref( $rv );
t/util/truncate.t view on Meta::CPAN
# + truncate_to
#
#!perl
use 5.012;
use strict;
use warnings;
use App::Dochazka::CLI::Util qw( truncate_to );
use Data::Dumper;
use Test::Fatal;
use Test::More;
use Test::Warnings;
note( 'truncate_to with undef' );
is( truncate_to( undef ), undef, 'truncate_to undef returns undef 1' );
is( truncate_to( undef, 0 ), undef, 'truncate_to undef returns undef 2' );
note( 'truncate_to with empty string' );
is( truncate_to( '' ), '', 'truncate_to empty string returns empty string 1' );
is( truncate_to( '', 0 ), '', 'truncate_to empty string returns empty string 2' );
( run in 1.295 second using v1.01-cache-2.11-cpan-54e63673c56 )