adding in version and authority checks
[gitmo/MooseX-Storage.git] / lib / MooseX / Storage / Basic.pm
index 38622ff..a0745b2 100644 (file)
@@ -4,6 +4,8 @@ use Moose::Role;
 
 use MooseX::Storage::Engine;
 
+our $VERSION = '0.01';
+
 sub pack {
     my $self = shift;
     my $e = MooseX::Storage::Engine->new( object => $self );
@@ -32,6 +34,8 @@ MooseX::Storage::Basic - The simplest level of serialization
   use Moose;
   use MooseX::Storage;
   
+  our $VERSION = '0.01';
+  
   with Storage;
   
   has 'x' => (is => 'rw', isa => 'Int');
@@ -45,10 +49,10 @@ MooseX::Storage::Basic - The simplest level of serialization
   ## object in perl data structures
   
   # pack the class into a hash
-  $p->pack(); # { __CLASS__ => 'Point', x => 10, y => 10 }
+  $p->pack(); # { __CLASS__ => 'Point-0.01', x => 10, y => 10 }
   
   # unpack the hash into a class
-  my $p2 = Point->unpack({ __CLASS__ => 'Point', x => 10, y => 10 });
+  my $p2 = Point->unpack({ __CLASS__ => 'Point-0.01', x => 10, y => 10 });
 
 =head1 DESCRIPTION