move drivers to better namespace
Matt S Trout [Sun, 8 Feb 2009 16:21:35 +0000 (11:21 -0500)]
lib/LolCatalyst/Lite/Translator.pm
lib/LolCatalyst/Lite/Translator/Driver/LOLCAT.pm [moved from lib/LolCatalyst/Lite/Translator/LOLCAT.pm with 78% similarity]
lib/LolCatalyst/Lite/Translator/Driver/Scramble.pm [moved from lib/LolCatalyst/Lite/Translator/Scramble.pm with 93% similarity]

index aada7fc..2bf220a 100644 (file)
@@ -15,7 +15,7 @@ has '_translators' => (
 
 sub _build__translators {
   my ($self) = @_;
-  my $base = __PACKAGE__;
+  my $base = __PACKAGE__.'::Driver';
   my $mp = Module::Pluggable::Object->new(
     search_path => [ $base ]
   );
similarity index 78%
rename from lib/LolCatalyst/Lite/Translator/LOLCAT.pm
rename to lib/LolCatalyst/Lite/Translator/Driver/LOLCAT.pm
index 0533e0c..c0f79b1 100644 (file)
@@ -1,4 +1,4 @@
-package LolCatalyst::Lite::Translator::LOLCAT;
+package LolCatalyst::Lite::Translator::Driver::LOLCAT;
 
 use Moose;
 use Acme::LOLCAT ();
@@ -1,4 +1,4 @@
-package LolCatalyst::Lite::Translator::Scramble;
+package LolCatalyst::Lite::Translator::Driver::Scramble;
 
 use Moose;