[Bps-public-commit] r15312 - in sd/trunk: . lib/App/SD/Replica/Hiveminder lib/App/SD/Replica/RT lib/App/SD/Replica/hm

jesse at bestpractical.com jesse at bestpractical.com
Wed Aug 20 23:27:10 EDT 2008


Author: jesse
Date: Wed Aug 20 23:27:00 2008
New Revision: 15312

Added:
   sd/trunk/lib/App/SD/Replica/hm/
      - copied from r15090, /sd/trunk/lib/App/SD/Replica/Hiveminder/
   sd/trunk/lib/App/SD/Replica/hm.pm
      - copied, changed from r15066, /sd/trunk/lib/App/SD/Replica/Hiveminder.pm
Removed:
   sd/trunk/lib/App/SD/Replica/Hiveminder/
   sd/trunk/lib/App/SD/Replica/Hiveminder.pm
Modified:
   sd/trunk/   (props changed)
   sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm
   sd/trunk/lib/App/SD/Replica/RT/PushEncoder.pm
   sd/trunk/lib/App/SD/Replica/hm/PullEncoder.pm
   sd/trunk/lib/App/SD/Replica/hm/PushEncoder.pm

Log:
 r43745 at jesse-vincents-macbook-air:  jesse | 2008-08-20 09:57:44 -0400
 * snapshot


Modified: sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/RT/PullEncoder.pm	Wed Aug 20 23:27:00 2008
@@ -1,11 +1,11 @@
-package App::SD::Replica::RT::PullEncoder;
+package App::SD::Replica::rt::PullEncoder;
 use Moose;
 
 use Params::Validate qw(:all);
 use Memoize;
 
 has sync_source => 
-    ( isa => 'App::SD::Replica::RT',
+    ( isa => 'App::SD::Replica::rt',
       is => 'rw');
 
 sub run {

Modified: sd/trunk/lib/App/SD/Replica/RT/PushEncoder.pm
==============================================================================
--- sd/trunk/lib/App/SD/Replica/RT/PushEncoder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/RT/PushEncoder.pm	Wed Aug 20 23:27:00 2008
@@ -1,9 +1,9 @@
-package App::SD::Replica::RT::PushEncoder;
+package App::SD::Replica::rt::PushEncoder;
 use Moose; 
 use Params::Validate;
 use Path::Class;
 has sync_source => 
-    ( isa => 'App::SD::Replica::RT',
+    ( isa => 'App::SD::Replica::rt',
       is => 'rw');
 
 
@@ -112,7 +112,7 @@
 } 
 
 sub integrate_attachment {
-    my ($self, $change, $changeset ) = validate_pos( @_, { isa => 'App::SD::Replica::RT::PushEncoder'}, { isa => 'Prophet::Change' }, { isa => 'Prophet::ChangeSet' });
+    my ($self, $change, $changeset ) = validate_pos( @_, { isa => 'App::SD::Replica::rt::PushEncoder'}, { isa => 'Prophet::Change' }, { isa => 'Prophet::ChangeSet' });
 
 
     my %props = map { $_->name => $_->new_value } $change->prop_changes;

Copied: sd/trunk/lib/App/SD/Replica/hm.pm (from r15066, /sd/trunk/lib/App/SD/Replica/Hiveminder.pm)
==============================================================================
--- /sd/trunk/lib/App/SD/Replica/Hiveminder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/hm.pm	Wed Aug 20 23:27:00 2008
@@ -1,4 +1,4 @@
-package App::SD::Replica::Hiveminder;
+package App::SD::Replica::hm;
 use Moose;
 extends 'Prophet::ForeignReplica';
 use Params::Validate qw(:all);
@@ -76,8 +76,8 @@
 
     my $first_rev = ( $args{'after'} + 1 ) || 1;
 
-    require App::SD::Replica::Hiveminder::PullEncoder;
-    my $recoder = App::SD::Replica::Hiveminder::PullEncoder->new( { sync_source => $self } );
+    require App::SD::Replica::hm::PullEncoder;
+    my $recoder = App::SD::Replica::hm::PullEncoder->new( { sync_source => $self } );
     for my $task ( @{ $self->find_matching_tasks } ) {
         $args{callback}->($_)
             for @{
@@ -150,8 +150,8 @@
         { isa => 'Prophet::ChangeSet' }
     );
 
-    require App::SD::Replica::Hiveminder::PushEncoder;
-    my $recoder = App::SD::Replica::Hiveminder::PushEncoder->new( { sync_source => $self } );
+    require App::SD::Replica::hm::PushEncoder;
+    my $recoder = App::SD::Replica::hm::PushEncoder->new( { sync_source => $self } );
     $recoder->integrate_change($change,$changeset);
 }
 

Modified: sd/trunk/lib/App/SD/Replica/hm/PullEncoder.pm
==============================================================================
--- /sd/trunk/lib/App/SD/Replica/Hiveminder/PullEncoder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/hm/PullEncoder.pm	Wed Aug 20 23:27:00 2008
@@ -1,10 +1,10 @@
-package App::SD::Replica::Hiveminder::PullEncoder;
+package App::SD::Replica::hm::PullEncoder;
 use Moose;
 use Params::Validate qw(:all);
 use Memoize;
 
 has sync_source => (
-    isa => 'App::SD::Replica::Hiveminder',
+    isa => 'App::SD::Replica::hm',
     is => 'rw',
 );
 

Modified: sd/trunk/lib/App/SD/Replica/hm/PushEncoder.pm
==============================================================================
--- /sd/trunk/lib/App/SD/Replica/Hiveminder/PushEncoder.pm	(original)
+++ sd/trunk/lib/App/SD/Replica/hm/PushEncoder.pm	Wed Aug 20 23:27:00 2008
@@ -1,9 +1,9 @@
-package App::SD::Replica::Hiveminder::PushEncoder;
+package App::SD::Replica::hm::PushEncoder;
 use Moose; 
 use Params::Validate;
 use Path::Class;
 has sync_source => 
-    ( isa => 'App::SD::Replica::Hiveminder',
+    ( isa => 'App::SD::Replica::hm',
       is => 'rw');
 
 



More information about the Bps-public-commit mailing list