Skip to content

Commit

Permalink
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
ironcamel committed Jul 16, 2012
1 parent e1d6fe5 commit 160d760
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 279 deletions.
57 changes: 57 additions & 0 deletions Makefile.PL
@@ -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);



20 changes: 9 additions & 11 deletions dist.ini
@@ -1,7 +1,7 @@
name = Dancer-Plugin-Email
author = Al Newkirk <awncorp@cpan.org>
author = Naveed Massjouni <ironcamel@cpan.org>
version = 0.1300
author = Naveed Massjouni <naveedm9@gmail.com>
version = 0.1300_01
license = Perl_5
copyright_holder = awncorp
copyright_year = 2010
Expand All @@ -16,7 +16,9 @@ repository.type = git
[@Filter]
-bundle = @Basic
-remove = Readme
-remove = GatherDir

[AutoPrereqs]
[PkgVersion]
[PodWeaver]
[ReadmeFromPod]
Expand All @@ -27,12 +29,8 @@ tag_regexp = ^v[\d\.]+$
file_name = CHANGES
wrap_column = 74

[Prereqs]
Dancer = 0
Hash::Merge = 0.12
Email::Stuff = 2.102
Net::SMTP::SSL = 0
Net::SMTP::TLS = 0
Net::SSLeay = 0
IO::Socket::SSL = 0
Authen::SASL = 0
[CopyFilesFromBuild]
copy = Makefile.PL

[GatherDir]
exclude_filename = Makefile.PL

0 comments on commit 160d760

Please sign in to comment.