Skip to content

Commit

Permalink
Make DateTime::Tiny an optional test dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
xdg committed Feb 27, 2016
1 parent cb09c54 commit eb43468
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Revision history for Meerkat

- Adds support for 'immortal' to cursors

[PREREQS]

- Made DateTime::Tiny optional

0.012 2015-11-03 06:31:33-05:00 America/New_York

[FIXED]
Expand Down
2 changes: 0 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ my %WriteMakefileArgs = (
},
"TEST_REQUIRES" => {
"Data::Faker" => 0,
"DateTime::Tiny" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"MooX::Types::MooseLike::Base" => 0,
Expand All @@ -68,7 +67,6 @@ my %FallbackPrereqs = (
"Carp" => 0,
"Data::Faker" => 0,
"DateTime" => 0,
"DateTime::Tiny" => 0,
"ExtUtils::MakeMaker" => 0,
"File::Spec" => 0,
"Module::Runtime" => 0,
Expand Down
3 changes: 3 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ stopwords = datetime
stopwords = datetimes
stopwords = meerkat
stopwords = ness

[RemovePrereqs]
remove = DateTime::Tiny
3 changes: 2 additions & 1 deletion t/datetime.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use Test::Requires qw/MongoDB/;

use Time::HiRes;
use DateTime;
use DateTime::Tiny;
use Meerkat::DateTime;

my $conn = eval { MongoDB::MongoClient->new; };
Expand Down Expand Up @@ -38,6 +37,8 @@ test 'set DateTime' => sub {
};

test 'set DateTime::Tiny' => sub {
plan skip_all => 'requires DateTime::Tiny'
unless eval { require DateTime::Tiny; 1 };
my $self = shift;
my $obj = $self->create_person;
my $birthday =
Expand Down

0 comments on commit eb43468

Please sign in to comment.