Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return to Moo, since CHI is on Moo now #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ directory = lib/CHI/Driver/Memcached/Test
[PruneCruft]

[Prereqs / RuntimeRequires]
CHI = 0.33
Moose = 0.66
CHI = 0.58
Moo = 1.003

[Prereqs / TestRequires]
Test::Class = 0
Expand Down
4 changes: 1 addition & 3 deletions lib/CHI/Driver/Memcached.pm
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package CHI::Driver::Memcached;

use Moose;
use Moo;
use strict;
use warnings;

extends 'CHI::Driver::Memcached::Base';

has '+memd_class' => ( default => 'Cache::Memcached' );

__PACKAGE__->meta->make_immutable();

1;

__END__
Expand Down
4 changes: 1 addition & 3 deletions lib/CHI/Driver/Memcached/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package CHI::Driver::Memcached::Base;
use CHI;
use Carp;
use Class::Load;
use Moose;
use Moo;
use strict;
use warnings;

Expand All @@ -18,8 +18,6 @@ extends 'CHI::Driver::Base::CacheContainer';
__PACKAGE__->declare_unsupported_methods(
qw(dump_as_hash get_keys get_namespaces is_empty clear purge));

__PACKAGE__->meta->make_immutable();

sub BUILD {
my ( $self, $params ) = @_;

Expand Down
4 changes: 1 addition & 3 deletions lib/CHI/Driver/Memcached/Fast.pm
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package CHI::Driver::Memcached::Fast;

use Moose;
use Moo;
use strict;
use warnings;

extends 'CHI::Driver::Memcached::Base';

has '+memd_class' => ( default => 'Cache::Memcached::Fast' );

__PACKAGE__->meta->make_immutable();

1;

__END__
Expand Down
4 changes: 1 addition & 3 deletions lib/CHI/Driver/Memcached/Test/Driver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ package CHI::Driver::Memcached::Test::Driver;

use strict;
use warnings;
use Moose;
use Moo;
use CHI::t::Driver;
use CHI::Driver::Memcached::t::CHIDriverTests;
use base qw(CHI::Driver::Memcached);

__PACKAGE__->meta->make_immutable;

# Reverse declare_unsupported_methods
#
foreach my $method (qw(dump_as_hash is_empty purge)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/CHI/Driver/Memcached/Test/Driver/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package CHI::Driver::Memcached::Test::Driver::Base;

use strict;
use warnings;
use Moose::Role;
use Moo::Role;
use CHI::t::Driver;
use CHI::Driver::Memcached::t::CHIDriverTests::Base;

Expand Down
3 changes: 1 addition & 2 deletions lib/CHI/Driver/Memcached/Test/Driver/Fast.pm
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package CHI::Driver::Memcached::Test::Driver::Fast;

use Moose;
use Moo;
use strict;
use warnings;

extends 'CHI::Driver::Memcached::Fast';
with 'CHI::Driver::Memcached::Test::Driver::Base';

__PACKAGE__->meta->make_immutable();

1;
4 changes: 1 addition & 3 deletions lib/CHI/Driver/Memcached/Test/Driver/Memcached.pm
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package CHI::Driver::Memcached::Test::Driver::Memcached;

use Moose;
use Moo;
use strict;
use warnings;

extends 'CHI::Driver::Memcached';
with 'CHI::Driver::Memcached::Test::Driver::Base';

__PACKAGE__->meta->make_immutable();

1;
3 changes: 1 addition & 2 deletions lib/CHI/Driver/Memcached/Test/Driver/libmemcached.pm
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package CHI::Driver::Memcached::Test::Driver::libmemcached;

use Moose;
use Moo;
use strict;
use warnings;

extends 'CHI::Driver::Memcached::libmemcached';
with 'CHI::Driver::Memcached::Test::Driver::Base';

__PACKAGE__->meta->make_immutable();

1;
4 changes: 1 addition & 3 deletions lib/CHI/Driver/Memcached/libmemcached.pm
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package CHI::Driver::Memcached::libmemcached;

use Moose;
use Moo;
use strict;
use warnings;

extends 'CHI::Driver::Memcached::Base';

has '+memd_class' => ( default => 'Cache::Memcached::libmemcached' );

__PACKAGE__->meta->make_immutable();

1;

__END__
Expand Down