Skip to content
Browse files

imported from version 0.03, see Changes file.

  • Loading branch information...
1 parent 4ced061 commit ccd246405ac4f7114afc7d3e3aeda6f2d9bbac17 @barbie committed
Showing with 21 additions and 121 deletions.
  1. +3 −0 Changes
  2. +10 −47 META.yml
  3. +2 −4 Makefile.PL
  4. +0 −1 README
  5. +1 −1 lib/Data/Phrasebook/Loader/Ini.pm
  6. +2 −34 t/02shorts.t
  7. +2 −33 t/03sql.t
  8. +1 −1 t/BookDB.pm
View
3 Changes
@@ -1,5 +1,8 @@
# Changes log for Data::Phrasebook::Loader::Ini
+0.03 02 Mar 2005
+ - Removed Test::MockObject from tests. No longer needed.
+
0.02 23 Feb 2005
- revamped and renamed as part of the Data::Phrasebook framework
View
57 META.yml
@@ -1,50 +1,13 @@
---- #YAML:1.0
# http://module-build.sourceforge.net/META-spec.html
-distribution_type: module
-name: Phrasebook
-date: 3 Aug 2003
-author: SPOON
-version: 0.16
-license: perl
-
-conflicts: {}
-
-build_requires:
- DBD::SQLite: 0.28
- DBI: 1.38
- Test::More: 0.47
-recommends:
- File::Find::Rule: 0.20
+#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
+name: Data-Phrasebook-Loader-Ini
+version: 0.03
+version_from: lib/Data/Phrasebook/Loader/Ini.pm
+installdirs: site
requires:
- Class::MethodMaker: 1.11
- YAML: 0.35
+ Config::IniFiles: 0
+ Data::Phrasebook: 0.18
+ Test::More: 0.47
-private:
- directory:
- - t
-
-provides:
- Phrasebook:
- file: lib/Phrasebook.pm
- version: 0.16
- Phrasebook::generic:
- file: lib/Phrasebook/generic.pm
- version: 0.16
- Phrasebook::Loader:
- file: lib/Phrasebook/Loader.pm
- version: 0.16
- Phrasebook::Loader::YAML:
- file: lib/Phrasebook/Loader/YAML.pm
- version: 0.16
- Phrasebook::Plain:
- file: lib/Phrasebook/Plain.pm
- version: 0.16
- Phrasebook::SQL:
- file: lib/Phrasebook/SQL.pm
- version: 0.16
- Phrasebook::SQL::Query:
- file: lib/Phrasebook/SQL/Query.pm
- version: 0.16
-
-dynamic_config: 0
-generated_by: docmaker version 1.01
+distribution_type: module
+generated_by: ExtUtils::MakeMaker version 6.23
View
6 Makefile.PL
@@ -1,7 +1,7 @@
use ExtUtils::MakeMaker;
WriteMakefile(
- NAME => 'Data::Phrasebook::Loader::Ini',
- VERSION_FROM => 'lib/Data/Phrasebook/Loader/Ini.pm',
+ NAME => 'Data::Phrasebook::Loader::Ini',
+ VERSION_FROM => 'lib/Data/Phrasebook/Loader/Ini.pm',
PREREQ_PM => {
'Data::Phrasebook' => '0.18',
'Config::IniFiles' => '0',
@@ -10,6 +10,4 @@ WriteMakefile(
($] >= 5.005 ?
(ABSTRACT_FROM => 'lib/Data/Phrasebook/Loader/Ini.pm',
AUTHOR => 'Barbie <barbie@cpan.org>') : ()),
- (eval($ExtUtils::MakeMaker::VERSION) >= 6.10 ?
- ( NO_META => 1, ) : ()),
);
View
1 README
@@ -22,7 +22,6 @@ For testing purposes, the following modules are required:
For testing purposes, the following modules are desireable, but not essential:
- Test::MockObject
Test::Pod >= 1.00
Test::Pod::Coverage >= 0.08
Pod::Coverage
View
2 lib/Data/Phrasebook/Loader/Ini.pm
@@ -5,7 +5,7 @@ use Carp qw( croak );
use base qw( Data::Phrasebook::Loader::Base Data::Phrasebook::Debug );
use Config::IniFiles;
-our $VERSION = '0.02';
+our $VERSION = '0.03';
=head1 NAME
View
36 t/02shorts.t
@@ -8,40 +8,8 @@ use Test::More tests => 5;
# ------------------------------------------------------------------------
-my ($mock1);
-
-BEGIN {
- $class = 'Data::Phrasebook';
- use_ok $class;
-
- eval "use Test::MockObject";
- plan skip_all => "Test::MockObject required for testing" if $@;
-
-
- $mock1 = Test::MockObject->new();
- $mock1->fake_module( 'DBI::db',
- 'prepare' =>\&BookDB::prepare,
- 'prepare_cached' =>\&BookDB::prepare_cached,
- 'rebind' =>\&BookDB::rebind,
- 'bind_param' =>\&BookDB::bind_param,
- 'execute' =>\&BookDB::execute,
- 'fetchrow_hashref' =>\&BookDB::fetchrow_hashref,
- 'fetchall_arrayref' =>\&BookDB::fetchall_arrayref,
- 'fetchrow_array' =>\&BookDB::fetchrow_array,
- 'finish' =>\&BookDB::finish);
- $mock1->fake_new( 'DBI::db' );
- $mock1->mock( 'prepare', \&BookDB::prepare );
- $mock1->mock( 'prepare_cached', \&BookDB::prepare_cached );
- $mock1->mock( 'rebind', \&BookDB::rebind );
- $mock1->mock( 'bind_param', \&BookDB::bind_param );
- $mock1->mock( 'execute', \&BookDB::execute );
- $mock1->mock( 'fetchrow_hashref', \&BookDB::fetchrow_hashref );
- $mock1->mock( 'fetchall_arrayref', \&BookDB::fetchall_arrayref );
- $mock1->mock( 'fetchrow_array', \&BookDB::fetchrow_array );
- $mock1->mock( 'finish', \&BookDB::finish );
-}
-
-use DBI::db;
+$class = 'Data::Phrasebook';
+use_ok $class;
my $file = 't/02phrases.ini';
View
35 t/03sql.t
@@ -8,39 +8,8 @@ use Test::More tests => 7;
# ------------------------------------------------------------------------
-my ($mock1);
-
-BEGIN {
- $class = 'Data::Phrasebook';
- use_ok $class;
-
- eval "use Test::MockObject";
- plan skip_all => "Test::MockObject required for testing" if $@;
-
- $mock1 = Test::MockObject->new();
- $mock1->fake_module( 'DBI::db',
- 'prepare' =>\&BookDB::prepare,
- 'prepare_cached' =>\&BookDB::prepare_cached,
- 'rebind' =>\&BookDB::rebind,
- 'bind_param' =>\&BookDB::bind_param,
- 'execute' =>\&BookDB::execute,
- 'fetchrow_hashref' =>\&BookDB::fetchrow_hashref,
- 'fetchall_arrayref' =>\&BookDB::fetchall_arrayref,
- 'fetchrow_array' =>\&BookDB::fetchrow_array,
- 'finish' =>\&BookDB::finish);
- $mock1->fake_new( 'DBI::db' );
- $mock1->mock( 'prepare', \&BookDB::prepare );
- $mock1->mock( 'prepare_cached', \&BookDB::prepare_cached );
- $mock1->mock( 'rebind', \&BookDB::rebind );
- $mock1->mock( 'bind_param', \&BookDB::bind_param );
- $mock1->mock( 'execute', \&BookDB::execute );
- $mock1->mock( 'fetchrow_hashref', \&BookDB::fetchrow_hashref );
- $mock1->mock( 'fetchall_arrayref', \&BookDB::fetchall_arrayref );
- $mock1->mock( 'fetchrow_array', \&BookDB::fetchrow_array );
- $mock1->mock( 'finish', \&BookDB::finish );
-}
-
-use DBI::db;
+$class = 'Data::Phrasebook';
+use_ok $class;
my $file = 't/03phrases.ini';
View
2 t/BookDB.pm
@@ -15,7 +15,7 @@ sub new
};
# create the object
- bless $atts, 'DBI::db';
+ bless $atts, $self;
$dbh = $atts;
return $atts;
}

0 comments on commit ccd2464

Please sign in to comment.
Something went wrong with that request. Please try again.