Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 41012
Status: resolved
Priority: 0/
Queue: Dist-Zilla

Owner: Nobody in particular
Requestors: rt.cpan [...]

Bug Information
Severity: (no value)
Broken in: 1.003
Fixed in: (no value)

Subject: dzil release throws a undef->method error
Download (untitled) / with headers
text/plain 528b
Hi Mars, I've got a dist now that works fine under dzil build and dzil test. When I use dzil release, I get this error: Can't call method "flatten" on an undefined value at /opt/local/lib/ perl5/site_perl/5.8.8/Dist/Zilla/ line 35, <DATA> line 1. The line in question is: for my $plugin ($self->config->{plugins}->flatten) { I've attached my .pm file and dist.ini. Please advise. Thanks, Shawn P.S. In the meantime I've just uploaded the dist with cpan-upload. Log::Dispatch::Twitter is my first dzil module. Woo.
Show quoted text
> I've attached my .pm file and dist.ini.
This, but without the blatant lie. Shawn
text/x-perl 1.5k
#!/usr/bin/env perl package Log::Dispatch::Twitter; use strict; use warnings; use base 'Log::Dispatch::Output'; sub new { my $class = shift; my $self = bless {}, $class; $self->_basic_init(@_); $self->_init(@_); return $self; } sub _init { my $self = shift; my %args = @_; $self->{username} = $args{username}; $self->{password} = $args{password}; } sub log_message { my $self = shift; my %args = @_; my $message = $args{message}; # we could truncate here, but better to let Net::Twitter, or even Twitter # itself, do it. we don't want to have to release a new version to support # 145 character log messages. :) $self->_post_message($message); } sub _post_message { my $self = shift; my $message = shift; my $twitter = Net::Twitter->new( username => $self->{username}, password => $self->{password}, ); $twitter->update($message); } 1; __END__ =head1 NAME Log::Dispatch::Twitter - Log messages via Twitter =head1 SYNOPSIS use Log::Dispatch; use Log::Dispatch::Twitter; my $logger = Log::Dispatch->new; $logger->add(Log::Dispatch::Twitter->new( username => "foo", password => "bar", min_level => "debug", name => "twitter", )); $logger->log( level => 'error', message => 'We applied the cortical electrodes but were unable to get a neural reaction from either patient.', ); =head1 DESCRIPTION Twitter is a presence tracking site. Why not track your program's presence? =cut
Download dist.ini
application/octet-stream 212b

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 199b
Seems to be resolved in trunk actually, though it blows up later with user not required (because I have no ~/.dzil). That's a separate issue though, so I'll close this ticket. Splendid work! Shawn

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to