Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Major refactor which uses Email::Sender instead of Email::Stuff
Email::Stuff is built on Email::Send which is deprecated in favor of Email::Sender. This is a major refactor which basically re-implements the entire module on top of Email::Sender. This is a breaking change. I tried my best to keep the interface the same (email { ... }), but the configuration has changed drastically.
- Loading branch information
Showing
3 changed files
with
202 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
use strict; | ||
use warnings; | ||
|
||
|
||
|
||
use ExtUtils::MakeMaker 6.30; | ||
|
||
|
||
|
||
my %WriteMakefileArgs = ( | ||
"ABSTRACT" => "Simple email sending for Dancer applications", | ||
"AUTHOR" => "Al Newkirk <awncorp\@cpan.org>, Naveed Massjouni <naveedm9\@gmail.com>", | ||
"BUILD_REQUIRES" => {}, | ||
"CONFIGURE_REQUIRES" => { | ||
"ExtUtils::MakeMaker" => "6.30" | ||
}, | ||
"DISTNAME" => "Dancer-Plugin-Email", | ||
"EXE_FILES" => [], | ||
"LICENSE" => "perl", | ||
"NAME" => "Dancer::Plugin::Email", | ||
"PREREQ_PM" => { | ||
"Dancer" => 0, | ||
"Dancer::Plugin" => 0, | ||
"Email::Sender::Simple" => 0, | ||
"Email::Simple" => 0, | ||
"Module::Load" => 0, | ||
"Scalar::Util" => 0, | ||
"Try::Tiny" => 0 | ||
}, | ||
"VERSION" => "0.1300_01", | ||
"test" => { | ||
"TESTS" => "" | ||
} | ||
); | ||
|
||
|
||
unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) { | ||
my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; | ||
my $pp = $WriteMakefileArgs{PREREQ_PM}; | ||
for my $mod ( keys %$br ) { | ||
if ( exists $pp->{$mod} ) { | ||
$pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod}; | ||
} | ||
else { | ||
$pp->{$mod} = $br->{$mod}; | ||
} | ||
} | ||
} | ||
|
||
delete $WriteMakefileArgs{CONFIGURE_REQUIRES} | ||
unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; | ||
|
||
WriteMakefile(%WriteMakefileArgs); | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.