Beam-Minion
view release on metacpan or search on metacpan
"CPAN::Meta" : "2.120900"
},
"requires" : {
"ExtUtils::MakeMaker" : "0",
"File::Spec" : "0",
"IO::Handle" : "0",
"IPC::Open3" : "0",
"Minion::Backend::SQLite" : "3.001",
"Mock::MonkeyPatch" : "0",
"Mojo::SQLite" : "2.002",
"Test::Fatal" : "0",
"Test::Lib" : "0",
"Test::More" : "1.001005"
}
}
},
"provides" : {
"Beam::Minion" : {
"file" : "lib/Beam/Minion.pm",
"version" : "0.019"
},
author:
- 'Doug Bell <preaction@cpan.org>'
build_requires:
ExtUtils::MakeMaker: '0'
File::Spec: '0'
IO::Handle: '0'
IPC::Open3: '0'
Minion::Backend::SQLite: '3.001'
Mock::MonkeyPatch: '0'
Mojo::SQLite: '2.002'
Test::Fatal: '0'
Test::Lib: '0'
Test::More: '1.001005'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.036, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
Makefile.PL view on Meta::CPAN
"YAML::PP" => 0
},
"TEST_REQUIRES" => {
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"IO::Handle" => 0,
"IPC::Open3" => 0,
"Minion::Backend::SQLite" => "3.001",
"Mock::MonkeyPatch" => 0,
"Mojo::SQLite" => "2.002",
"Test::Fatal" => 0,
"Test::Lib" => 0,
"Test::More" => "1.001005"
},
"VERSION" => "0.019",
"test" => {
"TESTS" => "t/*.t t/command/*.t"
}
);
Makefile.PL view on Meta::CPAN
"Getopt::Long" => "2.36",
"IO::Handle" => 0,
"IPC::Open3" => 0,
"Log::Any" => "1.050",
"Minion" => 9,
"Minion::Backend::SQLite" => "3.001",
"Mock::MonkeyPatch" => 0,
"Module::Runtime" => 0,
"Mojo::SQLite" => "2.002",
"Mojolicious" => 7,
"Test::Fatal" => 0,
"Test::Lib" => 0,
"Test::More" => "1.001005",
"YAML::PP" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
requires "perl" => "5.010";
on 'test' => sub {
requires "ExtUtils::MakeMaker" => "0";
requires "File::Spec" => "0";
requires "IO::Handle" => "0";
requires "IPC::Open3" => "0";
requires "Minion::Backend::SQLite" => "3.001";
requires "Mock::MonkeyPatch" => "0";
requires "Mojo::SQLite" => "2.002";
requires "Test::Fatal" => "0";
requires "Test::Lib" => "0";
requires "Test::More" => "1.001005";
};
on 'test' => sub {
recommends "CPAN::Meta" => "2.120900";
};
on 'configure' => sub {
requires "ExtUtils::MakeMaker" => "0";
;Import::Base = 0.012 ; Fixed using subs in imports
[Prereqs / TestRequires]
Test::More = 1.001005 ; First version that allows args to subtests
Minion::Backend::SQLite = 3.001
Mojo::SQLite = 2.002 ; Fixed use of deprecated Mojo::Util slurp
Test::Lib = 0
Mock::MonkeyPatch = 0
;Test::Deep = 0
;Test::Differences = 0
Test::Fatal = 0
t/00-report-prereqs.dd view on Meta::CPAN
'CPAN::Meta' => '2.120900'
},
'requires' => {
'ExtUtils::MakeMaker' => '0',
'File::Spec' => '0',
'IO::Handle' => '0',
'IPC::Open3' => '0',
'Minion::Backend::SQLite' => '3.001',
'Mock::MonkeyPatch' => '0',
'Mojo::SQLite' => '2.002',
'Test::Fatal' => '0',
'Test::Lib' => '0',
'Test::More' => '1.001005'
}
}
};
$x;
}
t/command.t view on Meta::CPAN
=head1 SEE ALSO
L<Beam::Runner::Command::minion>, L<Beam::Runner::Command>
=cut
use strict;
use warnings;
use Test::More;
use Test::Lib;
use Test::Fatal;
use Beam::Runner::Command;
subtest 'delegates to correct module' => sub {
local @Beam::Minion::Command::test::ARGS;
ok !exception { Beam::Runner::Command->run( 'minion', 'test', 1, 2, 3 ) },
'command is run successfully'
or diag $@;
my $obj = shift @Beam::Minion::Command::test::ARGS;
isa_ok $obj, 'Beam::Minion::Command::test', 'object is created';
is_deeply \@Beam::Minion::Command::test::ARGS,
t/command/job.t view on Meta::CPAN
=head1 SEE ALSO
L<Beam::Minion::Command::job>
=cut
use strict;
use warnings;
use Test::More;
use Test::Lib;
use Test::Fatal;
use Beam::Runner::Command::minion;
use Beam::Minion::Command::job;
use File::Temp;
use FindBin ();
use File::Spec::Functions qw( catdir );
use Mock::MonkeyPatch;
my $tmp = File::Temp->new( EXLOCK => 0 );
my $mock = Mock::MonkeyPatch->patch(
'Minion::Command::minion::job::run',
t/command/run.t view on Meta::CPAN
=head1 SEE ALSO
L<Beam::Minion::Command::run>
=cut
use strict;
use warnings;
use Test::More;
use Test::Fatal;
use Beam::Minion::Command::run;
use File::Temp;
my $tmp = File::Temp->new( EXLOCK => 0 );
subtest 'BEAM_MINION must be set' => sub {
local $ENV{BEAM_MINION} = '';
like
exception {
Beam::Minion::Command::run->run( container => 'ping', 'foo' );
},
t/command/worker.t view on Meta::CPAN
=head1 SEE ALSO
L<Beam::Minion::Command::worker>
=cut
use strict;
use warnings;
use Test::More;
use Test::Lib;
use Test::Fatal;
use Beam::Minion::Command::worker;
use File::Temp;
use FindBin ();
use File::Spec::Functions qw( catdir );
use Mock::MonkeyPatch;
my $tmp = File::Temp->new( EXLOCK => 0 );
my $mock = Mock::MonkeyPatch->patch(
'Minion::Command::minion::worker::run',
sub { },
L<Minion> object using any of the supported Minion backends:
L<Minion::Backend::Pg>, L<Minion::Backend::mysql>, L<Minion::Backend::SQLite>,
L<Minion::Backend::MongoDB>
=cut
use strict;
use warnings;
use Test::More;
use Test::Fatal;
use Mojo::File qw( curfile );
use Beam::Minion::Util qw( minion minion_init_args );
my %backend = (
mysql => {
'mysql://user@127.0.0.1/minion'
=> [qw( mysql mysql://user@127.0.0.1/minion )],
'mysql+dsn+dbi:mysql:mysql_read_default_file=~/.my.cnf'
=> [qw( mysql dsn dbi:mysql:mysql_read_default_file=~/.my.cnf )],
},
( run in 2.228 seconds using v1.01-cache-2.11-cpan-54e63673c56 )