From 75a8809d9f67c952c0db9c3941ec615cace3c716 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 6 Aug 2010 20:25:40 +0200 Subject: [PATCH] rename Reader implementation all over [0.02] --- README | 6 +++--- lib/RFID/Biblio.pm | 10 +++++----- lib/RFID/Biblio/Reader/3M810.pm | 4 ++-- lib/RFID/Biblio/Reader/CPRM02.pm | 4 ++-- lib/RFID/Biblio/Reader/librfid.pm | 4 ++-- lib/RFID/Biblio/Readers.pm | 6 +++--- t/10-3M-810.t | 4 ++-- t/20-CPR-M02.t | 4 ++-- t/30-librfid.t | 4 ++-- 9 files changed, 23 insertions(+), 23 deletions(-) diff --git a/README b/README index ac9bcc2..3e9e5ed 100644 --- 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. diff --git a/lib/RFID/Biblio.pm b/lib/RFID/Biblio.pm index f8c7b35..458b2c6 100644 --- a/lib/RFID/Biblio.pm +++ b/lib/RFID/Biblio.pm @@ -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 sends tag UID with data payload, so we might expect +L 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 +L =head2 CPR-M02 -L +L =head2 librfid -L +L =head1 AUTHOR diff --git a/lib/RFID/Biblio/Reader/3M810.pm b/lib/RFID/Biblio/Reader/3M810.pm index 1b37a46..f26e9ab 100644 --- a/lib/RFID/Biblio/Reader/3M810.pm +++ b/lib/RFID/Biblio/Reader/3M810.pm @@ -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 diff --git a/lib/RFID/Biblio/Reader/CPRM02.pm b/lib/RFID/Biblio/Reader/CPRM02.pm index c8abcf7..3fe3a70 100644 --- a/lib/RFID/Biblio/Reader/CPRM02.pm +++ b/lib/RFID/Biblio/Reader/CPRM02.pm @@ -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 diff --git a/lib/RFID/Biblio/Reader/librfid.pm b/lib/RFID/Biblio/Reader/librfid.pm index 0c35e33..d592c6f 100644 --- a/lib/RFID/Biblio/Reader/librfid.pm +++ b/lib/RFID/Biblio/Reader/librfid.pm @@ -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 diff --git a/lib/RFID/Biblio/Readers.pm b/lib/RFID/Biblio/Readers.pm index 6abbfa0..f81fafc 100644 --- a/lib/RFID/Biblio/Readers.pm +++ b/lib/RFID/Biblio/Readers.pm @@ -153,9 +153,9 @@ __END__ =head2 RFID reader implementations -L +L -L +L -L +L diff --git a/t/10-3M-810.t b/t/10-3M-810.t index c4d2101..1099a21 100755 --- a/t/10-3M-810.t +++ b/t/10-3M-810.t @@ -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; diff --git a/t/20-CPR-M02.t b/t/20-CPR-M02.t index 4e2278c..7ba476d 100755 --- a/t/20-CPR-M02.t +++ b/t/20-CPR-M02.t @@ -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' ); diff --git a/t/30-librfid.t b/t/30-librfid.t index 59d8eb9..5211c1f 100755 --- a/t/30-librfid.t +++ b/t/30-librfid.t @@ -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; -- 2.20.1