r39803 - in /branches/upstream/libhtml-formfu-model-dbic-perl/current: ./ lib/HTML/FormFu/Model/ t/lib/HTMLFormFu/ t/options_from_model/

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sun Jul 12 23:33:35 UTC 2009


Author: gregoa
Date: Sun Jul 12 23:33:30 2009
New Revision: 39803

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=39803
Log:
[svn-upgrade] Integrating new upstream version, libhtml-formfu-model-dbic-perl (0.05002)

Added:
    branches/upstream/libhtml-formfu-model-dbic-perl/current/t/lib/HTMLFormFu/MockContext.pm
Modified:
    branches/upstream/libhtml-formfu-model-dbic-perl/current/Changes
    branches/upstream/libhtml-formfu-model-dbic-perl/current/MANIFEST
    branches/upstream/libhtml-formfu-model-dbic-perl/current/META.yml
    branches/upstream/libhtml-formfu-model-dbic-perl/current/Makefile.PL
    branches/upstream/libhtml-formfu-model-dbic-perl/current/lib/HTML/FormFu/Model/DBIC.pm
    branches/upstream/libhtml-formfu-model-dbic-perl/current/t/options_from_model/has_many_repeatable_select.t
    branches/upstream/libhtml-formfu-model-dbic-perl/current/t/options_from_model/many_to_many_select.t

Modified: branches/upstream/libhtml-formfu-model-dbic-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhtml-formfu-model-dbic-perl/current/Changes?rev=39803&op=diff
==============================================================================
--- branches/upstream/libhtml-formfu-model-dbic-perl/current/Changes (original)
+++ branches/upstream/libhtml-formfu-model-dbic-perl/current/Changes Sun Jul 12 23:33:30 2009
@@ -1,3 +1,8 @@
+0.05002 2009-07-06
+
+    - Remove prerequisite Test::MockObject - it uses UNIVERSAL::isa which
+      was causing test failures.
+
 0.05001 2009-07-03
 
     - Fix delete_if_true to work inside a surrounding block.
@@ -7,9 +12,6 @@
     - Bump DBIx::Class prerequisite to 0.08106, when it switched from using
       DateTime::Format::MySQL to DateTime::Format::SQLite.
     
-    - Remove prerequisite Test::MockObject - it uses UNIVERSAL::isa which
-      was causing test failures.
-
 0.05000 2009-05-26
 
     - Fix update() "primary key and the foreign key may not be the same column"

Modified: branches/upstream/libhtml-formfu-model-dbic-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhtml-formfu-model-dbic-perl/current/MANIFEST?rev=39803&op=diff
==============================================================================
--- branches/upstream/libhtml-formfu-model-dbic-perl/current/MANIFEST (original)
+++ branches/upstream/libhtml-formfu-model-dbic-perl/current/MANIFEST Sun Jul 12 23:33:30 2009
@@ -158,6 +158,7 @@
 t/lib/DBICTestLib.pm
 t/lib/HTMLFormFu/I18N.pm
 t/lib/HTMLFormFu/I18N/en.pm
+t/lib/HTMLFormFu/MockContext.pm
 t/lib/MySchema.pm
 t/lib/MySchema/Address.pm
 t/lib/MySchema/Band.pm

Modified: branches/upstream/libhtml-formfu-model-dbic-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhtml-formfu-model-dbic-perl/current/META.yml?rev=39803&op=diff
==============================================================================
--- branches/upstream/libhtml-formfu-model-dbic-perl/current/META.yml (original)
+++ branches/upstream/libhtml-formfu-model-dbic-perl/current/META.yml Sun Jul 12 23:33:30 2009
@@ -5,7 +5,6 @@
 build_requires:
   DateTime::Format::SQLite: 0
   ExtUtils::MakeMaker: 6.42
-  Test::MockObject: 0
 configure_requires:
   ExtUtils::MakeMaker: 6.42
 distribution_type: module
@@ -28,4 +27,4 @@
   perl: 5.8.1
 resources:
   license: http://dev.perl.org/licenses/
-version: 0.05001
+version: 0.05002

Modified: branches/upstream/libhtml-formfu-model-dbic-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhtml-formfu-model-dbic-perl/current/Makefile.PL?rev=39803&op=diff
==============================================================================
--- branches/upstream/libhtml-formfu-model-dbic-perl/current/Makefile.PL (original)
+++ branches/upstream/libhtml-formfu-model-dbic-perl/current/Makefile.PL Sun Jul 12 23:33:30 2009
@@ -15,7 +15,6 @@
 requires 'Task::Weaken'; # to ensure Scalar::Util was built with weaken()
 
 test_requires 'DateTime::Format::SQLite';
-test_requires 'Test::MockObject';
 
 tests_recursive;
 

Modified: branches/upstream/libhtml-formfu-model-dbic-perl/current/lib/HTML/FormFu/Model/DBIC.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhtml-formfu-model-dbic-perl/current/lib/HTML/FormFu/Model/DBIC.pm?rev=39803&op=diff
==============================================================================
--- branches/upstream/libhtml-formfu-model-dbic-perl/current/lib/HTML/FormFu/Model/DBIC.pm (original)
+++ branches/upstream/libhtml-formfu-model-dbic-perl/current/lib/HTML/FormFu/Model/DBIC.pm Sun Jul 12 23:33:30 2009
@@ -9,7 +9,7 @@
 use Storable qw( dclone );
 use Carp qw( croak );
 
-our $VERSION = '0.05001';
+our $VERSION = '0.05002';
 $VERSION = eval $VERSION;
 
 # sub _compatible_config() is only required as long as we support deprecated

Added: branches/upstream/libhtml-formfu-model-dbic-perl/current/t/lib/HTMLFormFu/MockContext.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhtml-formfu-model-dbic-perl/current/t/lib/HTMLFormFu/MockContext.pm?rev=39803&op=file
==============================================================================
--- branches/upstream/libhtml-formfu-model-dbic-perl/current/t/lib/HTMLFormFu/MockContext.pm (added)
+++ branches/upstream/libhtml-formfu-model-dbic-perl/current/t/lib/HTMLFormFu/MockContext.pm Sun Jul 12 23:33:30 2009
@@ -1,0 +1,18 @@
+package HTMLFormFu::MockContext;
+use strict;
+use warnings;
+
+sub new {
+    my ( $class, $args ) = @_;
+    
+    return bless $args, $class;
+}
+
+sub model {
+    my ( $self ) = @_;
+    
+    return $self->{model}
+}
+
+1;
+

Modified: branches/upstream/libhtml-formfu-model-dbic-perl/current/t/options_from_model/has_many_repeatable_select.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhtml-formfu-model-dbic-perl/current/t/options_from_model/has_many_repeatable_select.t?rev=39803&op=diff
==============================================================================
--- branches/upstream/libhtml-formfu-model-dbic-perl/current/t/options_from_model/has_many_repeatable_select.t (original)
+++ branches/upstream/libhtml-formfu-model-dbic-perl/current/t/options_from_model/has_many_repeatable_select.t Sun Jul 12 23:33:30 2009
@@ -6,8 +6,7 @@
 use lib 't/lib';
 use DBICTestLib 'new_db';
 use MySchema;
-use Test::MockObject;
-my $context = Test::MockObject->new();
+
 new_db();
 
 my $form = HTML::FormFu->new;

Modified: branches/upstream/libhtml-formfu-model-dbic-perl/current/t/options_from_model/many_to_many_select.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libhtml-formfu-model-dbic-perl/current/t/options_from_model/many_to_many_select.t?rev=39803&op=diff
==============================================================================
--- branches/upstream/libhtml-formfu-model-dbic-perl/current/t/options_from_model/many_to_many_select.t (original)
+++ branches/upstream/libhtml-formfu-model-dbic-perl/current/t/options_from_model/many_to_many_select.t Sun Jul 12 23:33:30 2009
@@ -5,9 +5,9 @@
 use HTML::FormFu;
 use lib 't/lib';
 use DBICTestLib 'new_db';
+use HTMLFormFu::MockContext;
 use MySchema;
-use Test::MockObject;
-my $context = Test::MockObject->new();
+
 new_db();
 
 my $form = HTML::FormFu->new;
@@ -15,7 +15,11 @@
 $form->load_config_file('t/options_from_model/many_to_many_select.yml');
 
 my $schema = MySchema->connect('dbi:SQLite:dbname=t/test.db');
-$context->mock( model => sub { $schema->resultset('Band') } );
+
+my $context = HTMLFormFu::MockContext->new( {
+    model => $schema->resultset('Band'),
+} );
+
 $form->stash( { context => $context } );
 
 my $master = $schema->resultset('Master')->create({ id => 1 });




More information about the Pkg-perl-cvs-commits mailing list