rename Reader implementation all over [0.02]
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 6 Aug 2010 18:25:40 +0000 (20:25 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 6 Aug 2010 18:25:40 +0000 (20:25 +0200)
README
lib/RFID/Biblio.pm
lib/RFID/Biblio/Reader/3M810.pm
lib/RFID/Biblio/Reader/CPRM02.pm
lib/RFID/Biblio/Reader/librfid.pm
lib/RFID/Biblio/Readers.pm
t/10-3M-810.t
t/20-CPR-M02.t
t/30-librfid.t

diff --git a/README b/README
index ac9bcc2..3e9e5ed 100644 (file)
--- a/README
+++ b/README
@@ -15,9 +15,9 @@ form-fill functionality.
 
 Currently supported readers:
 
- * 3M 810  - RFID::Biblio::3M810
- * CPR-M02 - RFID::Biblio::CPRM02
- * OpenPCD, The Omnikey CardMan 5121 and 5321 - RFID::Biblio::librfid
+ * 3M 810  - RFID::Biblio::Reader::3M810
+ * CPR-M02 - RFID::Biblio::Reader::CPRM02
+ * OpenPCD, The Omnikey CardMan 5121 and 5321 - RFID::Biblio::Reader::librfid
 
 For status of each implementation see pod documentation inside them.
 
index f8c7b35..458b2c6 100644 (file)
@@ -15,7 +15,7 @@ RFID::Biblio - easy to use API for writing RFID enabled appliaction
 
 =cut
 
-our $VERSION = '0.01';
+our $VERSION = '0.02';
 
 my $debug = 0;
 
@@ -132,7 +132,7 @@ All blocks are under key which is tag UID with array of blocks returned from rea
 
   $hash = { 'E000000123456789' => [ 'blk1', 'blk2', ... ] };
 
-L<RFID::Biblio::3M810> sends tag UID with data payload, so we might expect
+L<RFID::Biblio::Reader::3M810> sends tag UID with data payload, so we might expect
 to receive response from other tags from protocol specification, 
 
 =head2 write_blocks
@@ -205,15 +205,15 @@ Support for different RFID readers is implemented in subclasses:
 
 =head2 3M 810
 
-L<RFID::Biblio::3M810>
+L<RFID::Biblio::Reader::3M810>
 
 =head2 CPR-M02
 
-L<RFID::Biblio::CPRM02>
+L<RFID::Biblio::Reader::CPRM02>
 
 =head2 librfid
 
-L<RFID::Biblio::librfid>
+L<RFID::Biblio::Reader::librfid>
 
 =head1 AUTHOR
 
index 1b37a46..f26e9ab 100644 (file)
@@ -1,8 +1,8 @@
-package RFID::Biblio::3M810;
+package RFID::Biblio::Reader::3M810;
 
 =head1 NAME
 
-RFID::Biblio::3M810 - support for 3M 810 RFID reader
+RFID::Biblio::Reader::3M810 - support for 3M 810 RFID reader
 
 =head1 DESCRIPTION
 
index c8abcf7..3fe3a70 100644 (file)
@@ -1,8 +1,8 @@
-package RFID::Biblio::CPRM02;
+package RFID::Biblio::Reader::CPRM02;
 
 =head1 NAME
 
-RFID::Biblio::CPRM02 - support for CPR-M02 RFID reader
+RFID::Biblio::Reader::CPRM02 - support for CPR-M02 RFID reader
 
 =head1 DESCRIPTION
 
index 0c35e33..d592c6f 100644 (file)
@@ -1,4 +1,4 @@
-package RFID::Biblio::librfid;
+package RFID::Biblio::Reader::librfid;
 
 use warnings;
 use strict;
@@ -10,7 +10,7 @@ use Data::Dump qw(dump);
 
 =head1 NAME
 
-RFID::Biblio::librfid - execute librfid-tool
+RFID::Biblio::Reader::librfid - execute librfid-tool
 
 =head2 DESCRIPTION
 
index 6abbfa0..f81fafc 100644 (file)
@@ -153,9 +153,9 @@ __END__
 
 =head2 RFID reader implementations
 
-L<RFID::Biblio::3M810>
+L<RFID::Biblio::Reader::3M810>
 
-L<RFID::Biblio::CPRM02>
+L<RFID::Biblio::Reader::CPRM02>
 
-L<RFID::Biblio::librfid>
+L<RFID::Biblio::Reader::librfid>
 
index c4d2101..1099a21 100755 (executable)
@@ -6,10 +6,10 @@ use Data::Dump qw(dump);
 use lib 'lib';
 
 BEGIN {
-       use_ok( 'RFID::Biblio::3M810' );
+       use_ok( 'RFID::Biblio::Reader::3M810' );
 }
 
-ok( my $o = RFID::Biblio::3M810->new( device => '/dev/ttyUSB0' ), 'new' );
+ok( my $o = RFID::Biblio::Reader::3M810->new( device => '/dev/ttyUSB0' ), 'new' );
 
 ok( my @tags = $o->inventory, 'inventory' );
 diag dump @tags;
index 4e2278c..7ba476d 100755 (executable)
@@ -6,10 +6,10 @@ use Data::Dump qw(dump);
 use lib 'lib';
 
 BEGIN {
-       use_ok( 'RFID::Biblio::CPRM02' );
+       use_ok( 'RFID::Biblio::Reader::CPRM02' );
 }
 
-ok( my $o = RFID::Biblio::CPRM02->new( device => '/dev/ttyUSB0' ), 'new' );
+ok( my $o = RFID::Biblio::Reader::CPRM02->new( device => '/dev/ttyUSB0' ), 'new' );
 
 ok( my @tags = $o->inventory, 'inventory' );
 
index 59d8eb9..5211c1f 100755 (executable)
@@ -6,10 +6,10 @@ use Data::Dump qw(dump);
 use lib 'lib';
 
 BEGIN {
-       use_ok( 'RFID::Biblio::librfid' );
+       use_ok( 'RFID::Biblio::Reader::librfid' );
 }
 
-ok( my $o = RFID::Biblio::librfid->new( tool => '/rest/cvs/librfid/utils/librfid-tool' ), 'new' );
+ok( my $o = RFID::Biblio::Reader::librfid->new( tool => '/rest/cvs/librfid/utils/librfid-tool' ), 'new' );
 
 ok( my @tags = $o->inventory, 'inventory' );
 diag dump @tags;