[Bps-public-commit] r12472 - in Prophet/branches/moose: .
sartak at bestpractical.com
sartak at bestpractical.com
Sat May 17 07:24:10 EDT 2008
Author: sartak
Date: Sat May 17 07:24:00 2008
New Revision: 12472
Modified:
Prophet/branches/moose/ (props changed)
Prophet/branches/moose/lib/Prophet/Resolver/AlwaysSource.pm
Prophet/branches/moose/lib/Prophet/Resolver/AlwaysTarget.pm
Prophet/branches/moose/lib/Prophet/Resolver/Failed.pm
Prophet/branches/moose/lib/Prophet/Resolver/FromResolutionDB.pm
Prophet/branches/moose/lib/Prophet/Resolver/IdenticalChanges.pm
Prophet/branches/moose/lib/Prophet/Resolver/Prompt.pm
Log:
r56212 at onn: sartak | 2008-05-17 07:23:53 -0400
Moosify the Prophet::Resolver subclasses
Modified: Prophet/branches/moose/lib/Prophet/Resolver/AlwaysSource.pm
==============================================================================
--- Prophet/branches/moose/lib/Prophet/Resolver/AlwaysSource.pm (original)
+++ Prophet/branches/moose/lib/Prophet/Resolver/AlwaysSource.pm Sat May 17 07:24:00 2008
@@ -1,9 +1,7 @@
-use warnings;
-use strict;
-
package Prophet::Resolver::AlwaysSource;
-use base qw/Prophet::Resolver/;
+use Moose;
use Prophet::Change;
+extends 'Prophet::Resolver';
sub run {
my $self = shift;
@@ -14,4 +12,7 @@
return $resolution;
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
Modified: Prophet/branches/moose/lib/Prophet/Resolver/AlwaysTarget.pm
==============================================================================
--- Prophet/branches/moose/lib/Prophet/Resolver/AlwaysTarget.pm (original)
+++ Prophet/branches/moose/lib/Prophet/Resolver/AlwaysTarget.pm Sat May 17 07:24:00 2008
@@ -1,9 +1,7 @@
-use warnings;
-use strict;
-
package Prophet::Resolver::AlwaysTarget;
-use base qw/Prophet::Resolver/;
+use Moose;
use Data::Dumper;
+extends 'Prophet::Resolver';
sub run {
my $self = shift;
@@ -30,5 +28,8 @@
return $resolution;
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
Modified: Prophet/branches/moose/lib/Prophet/Resolver/Failed.pm
==============================================================================
--- Prophet/branches/moose/lib/Prophet/Resolver/Failed.pm (original)
+++ Prophet/branches/moose/lib/Prophet/Resolver/Failed.pm Sat May 17 07:24:00 2008
@@ -1,10 +1,7 @@
-use warnings;
-use strict;
-
package Prophet::Resolver::Failed;
-use base qw/Prophet::Resolver/;
-
+use Moose;
use Data::Dumper;
+extends 'Prophet::Resolver';
sub run {
my $self = shift;
@@ -17,4 +14,7 @@
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
Modified: Prophet/branches/moose/lib/Prophet/Resolver/FromResolutionDB.pm
==============================================================================
--- Prophet/branches/moose/lib/Prophet/Resolver/FromResolutionDB.pm (original)
+++ Prophet/branches/moose/lib/Prophet/Resolver/FromResolutionDB.pm Sat May 17 07:24:00 2008
@@ -1,11 +1,9 @@
-use warnings;
-use strict;
-
package Prophet::Resolver::FromResolutionDB;
-use base qw/Prophet::Resolver/;
+use Moose;
use Prophet::Change;
use JSON;
use Digest::SHA1 'sha1_hex';
+extends 'Prophet::Resolver';
sub run {
my $self = shift;
@@ -42,7 +40,9 @@
);
}
return $resolution;
-
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
Modified: Prophet/branches/moose/lib/Prophet/Resolver/IdenticalChanges.pm
==============================================================================
--- Prophet/branches/moose/lib/Prophet/Resolver/IdenticalChanges.pm (original)
+++ Prophet/branches/moose/lib/Prophet/Resolver/IdenticalChanges.pm Sat May 17 07:24:00 2008
@@ -1,10 +1,8 @@
-use warnings;
-use strict;
-
package Prophet::Resolver::IdenticalChanges;
-use base qw/Prophet::Resolver/;
+use Moose;
use Params::Validate qw(:all);
use Prophet::Change;
+extends 'Prophet::Resolver';
=head2 attempt_automatic_conflict_resolution
@@ -56,4 +54,7 @@
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
Modified: Prophet/branches/moose/lib/Prophet/Resolver/Prompt.pm
==============================================================================
--- Prophet/branches/moose/lib/Prophet/Resolver/Prompt.pm (original)
+++ Prophet/branches/moose/lib/Prophet/Resolver/Prompt.pm Sat May 17 07:24:00 2008
@@ -1,8 +1,6 @@
-use warnings;
-use strict;
-
package Prophet::Resolver::Prompt;
-use base qw/Prophet::Resolver/;
+use Moose;
+extends 'Prophet::Resolver';
sub run {
my $self = shift;
@@ -50,5 +48,8 @@
return $resolution;
}
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
More information about the Bps-public-commit
mailing list