Skip to content

Commit

Permalink
Overridden N:T:new broke derived classes
Browse files Browse the repository at this point in the history
  • Loading branch information
semifor committed May 22, 2009
1 parent 065b198 commit e4b84c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
13 changes: 2 additions & 11 deletions lib/Net/Twitter/Identica.pm
@@ -1,15 +1,6 @@
package Net::Twitter::Identica;
use Moose;
extends 'Net::Twitter';
use Net::Twitter;

use namespace::autoclean;

with 'Net::Twitter::API::REST';

has '+apiurl' => ( default => 'http://identi.ca/api' );
has '+apihost' => ( default => 'identi.ca:80' );
has '+apirealm' => ( default => 'Laconica API' );

__PACKAGE__->meta->make_immutable;
sub new { shift; Net::Twitter->new(identica => 1, @_) }

1;
6 changes: 2 additions & 4 deletions lib/Net/Twitter/Search.pm
@@ -1,10 +1,8 @@
package Net::Twitter::Search;
use Moose;
extends 'Net::Twitter';
use Net::Twitter;

use namespace::autoclean;
sub new { shift; Net::Twitter->new(@_) }

__PACKAGE__->meta->make_immutable;
# Net::Twitter::Search was really just an alias for legacy Net::Twitter
# Deprecated.
#
Expand Down

0 comments on commit e4b84c3

Please sign in to comment.