Skip to content

Commit

Permalink
docs, etc, prep release
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Mar 10, 2009
1 parent 6b2863a commit 3f5f6b3
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Revision history for Email-MIME-Kit-KitReader-SWAK

1.000 2009-03-09
first revision; have fun!
17 changes: 17 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name = Email-MIME-Kit-KitReader-SWAK
version = 1.000
author = Ricardo SIGNES <rjbs@cpan.org>
license = Perl_5
copyright_holder = Ricardo SIGNES

[Prereq]
Email::MIME::Kit = 2.002 ; ability to swap kitreader after reading manfiest
Path::Resolver = 2.000 ; AnyDist

[@Filter]
bundle = @Classic
remove = PodVersion
remove = BumpVersion

[PodPurler]

28 changes: 28 additions & 0 deletions lib/Email/MIME/Kit/KitReader/SWAK.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,34 @@ package Email::MIME::Kit::KitReader::SWAK;
use Moose;
with 'Email::MIME::Kit::Role::KitReader';

=head1 DESCRIPTION
This replaces and extends the standard (Dir) kit reader for Email::MIME::Kit,
letting your kit refer to resources in locations other than the kit itself.
In your manifest (assuming it's YAML, for readability):
---
kit_reader: SWAK
attachments:
- type: text/html
path: template.html
- type: text/plain
path: /dist/Your-App/config.conf
- type: text/plain
path: /fs/etc/motd
This will find the first file in the kit (the absolute path prefix F</kit>
could also be used), the second file in the L<File::ShareDir|File::ShareDir>
shared dist space for the Your-App, and the third file on the root filesystem.
SWAK may be given a C<fs_root> option to start the contents of F</fs> somewhere
other than root.
=cut

use Path::Resolver::Resolver::Mux::Prefix;
use Path::Resolver::Resolver::FileSystem;
use Path::Resolver::Resolver::AnyDist;
Expand Down

0 comments on commit 3f5f6b3

Please sign in to comment.