Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dist-Zilla-Plugin-ShareDir-Tarball CPAN distribution.

Report information
The Basics
Id: 83773
Status: resolved
Priority: 0/
Queue: Dist-Zilla-Plugin-ShareDir-Tarball

People
Owner: Nobody in particular
Requestors: NGLENN [...] cpan.org
Cc: garfieldnate [...] gmail.com
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.2.1
Fixed in: (no value)



CC: garfieldnate [...] gmail.com
Subject: Allow specification of directory
It would be nice to be able to specify which directory is supposed to be tarballed and shared, like Dist::Zilla::Plugin::File::ShareDir does. I haven't built a plugin before, but it looks like it may be as easy as adding the following: has dir => ( is => 'ro', isa => 'Str', default => 'share', ); and changing line 26 to the following: my @shared = grep { $_->name =~ m#$dir/# } @{ $self->zilla->files }
Show quoted text
> but it looks like it may be as easy as adding the following: > > has dir => ( > is => 'ro', > isa => 'Str', > default => 'share', > ); > > and changing line 26 to the following: > > my @shared = grep { $_->name =~ m#$dir/# } @{ $self->zilla->files }
Yup, it's that easy. :-) v0.3.0 on its way to CPAN. Enjoy!
Thanks! Man, you're fast. On Tue Mar 05 15:42:06 2013, YANICK wrote: Show quoted text
> > but it looks like it may be as easy as adding the following: > > > > has dir => ( > > is => 'ro', > > isa => 'Str', > > default => 'share', > > ); > > > > and changing line 26 to the following: > > > > my @shared = grep { $_->name =~ m#$dir/# } @{ $self->zilla->files }
> > Yup, it's that easy. :-) > > v0.3.0 on its way to CPAN. Enjoy! >
Subject: Re: [rt.cpan.org #83773] Allow specification of directory
Date: Tue, 05 Mar 2013 18:03:21 -0500
To: bug-Dist-Zilla-Plugin-ShareDir-Tarball [...] rt.cpan.org
From: Yanick Champoux <yanick [...] babyl.dyndns.org>
On 13-03-05 05:59 PM, Nathan Gary Glenn via RT wrote: Show quoted text
> Thanks! Man, you're fast.
Well, it wasn't the biggest change ever. And you provided me with 80% of the solution. :-) Enjoy! `/anick