Email-Assets
view release on metacpan or search on metacpan
Revision history for Email-Assets
0.10 22/01/2015
- strip trailing whitespace & all newlines from output
- additional pod fixes
0.09 22/01/2015
- add attachments method
- add missing test requirement for Test::Differences
- set mime part content disposition as attachment, and allow option to specify
- more pod
0.08 20/01/2015
- fix handling base64 added assets
0.07 19/01/2015
-fix missing pre-req on Data::UUID
0.06 15/01/2015
"t",
"inc"
]
},
"prereqs" : {
"build" : {
"requires" : {
"File::Compare" : "0",
"File::Slurp" : "0",
"File::Temp" : "0",
"Test::Differences" : "0",
"Test::Exception" : "0",
"Test::More" : "0"
}
},
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
---
abstract: 'Manage assets for Email'
author:
- 'Aaron J Trevena <teejay@cpan.org>'
build_requires:
File::Compare: '0'
File::Slurp: '0'
File::Temp: '0'
Test::Differences: '0'
Test::Exception: '0'
Test::More: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 6.66, CPAN::Meta::Converter version 2.142060'
license: unknown
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
Makefile.PL view on Meta::CPAN
ABSTRACT_FROM => 'lib/Email/Assets.pm',
LICENSE => 'Artistic_2_0',
PL_FILES => {},
MIN_PERL_VERSION => 5.006,
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 0,
},
BUILD_REQUIRES => {
'Test::More' => 0,
'Test::Exception' => 0,
'Test::Differences' => 0,
'File::Temp' => 0,
'File::Compare' => 0,
'File::Slurp' => 0,
},
PREREQ_PM => {
'Moose' => 0,
'MIME::Types' => 0,
'MIME::Base64' => 0,
'File::Type' => 0.22,
'MIME::Lite' => 0,
use FindBin;
use File::Compare;
use File::Temp;
use File::Slurp;
use MIME::Base64 qw(encode_base64 decode_base64 encode_base64url decode_base64url);
use Data::Dumper;
use lib qw(lib/);
use Test::Differences;
use Email::Assets;
my @test_paths = map { $FindBin::Bin . '/'. $_ } qw(aa bb cc);
my $raw_image = read_file('t/aa/codeworks.jpg');
my $base_64_url_image = encode_base64url($raw_image);
my $assets = Email::Assets->new( base => [ @test_paths ] );
my $base64_url_asset = $assets->include_base64($base_64_url_image, 'codeworks.jpg', { url_encoding => 1 } );
( run in 1.800 second using v1.01-cache-2.11-cpan-39a47a84364 )