From: Jason Mills Date: Fri, 28 Feb 2014 02:16:16 +0000 (-0800) Subject: comment VERSION number in favor of Dist::Zilla management X-Git-Tag: v0.04~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-InflateColumn-Object-Enum.git;a=commitdiff_plain;h=d73b8011d5c2be8da749f24e004326c879ec6c55 comment VERSION number in favor of Dist::Zilla management --- diff --git a/README b/README deleted file mode 100644 index c84a10b..0000000 --- a/README +++ /dev/null @@ -1,128 +0,0 @@ -NAME - DBIx::Class::InflateColumn::Object::Enum - Allows a DBIx::Class user to - define a Object::Enum column - -VERSION - Version 0.03 - -SYNOPSIS - Load this module via load_components and utilize is_enum and values - property to define Enumuration columns via Object::Enum - - package TableClass; - - use strict; - use warnings; - use base 'DBIx::Class'; - - __PACKAGE__->load_components(qw/InflateColumn::Object::Enum Core/); - __PACKAGE__->table('testtable'); - __PACKAGE__->add_columns( - color => { - data_type => 'varchar', - is_enum => 1, - extra => { - list => [qw/red green blue/] - } - } - color_native => { # works inline with native enum type - data_type => 'enum', - is_enum => 1, - extra => { - list => [qw/red green blue/] - } - } - ); - - 1; - - Now you may treat the column as an Object::Enum object. - - my $table_rs = $db->resultset('TableClass')->create({ - color => undef - }); - - $table_rs->color->set_red; # sets color to red - $table_rs->color->is_red; # would return true - $table_rs->color->is_green; # would return false - print $table_rs->color->value; # would print 'red' - $table_rs->color->unset; # set the value to 'undef' or 'null' - $table_rs->color->is_red; # returns false now - -METHODS - register_column - Internal chained method with "register_column" in DBIx::Class::Row. - Users do not call this directly! - -AUTHOR - Jason M. Mills, "" - -BUGS - Please report any bugs or feature requests to - "bug-dbix-class-inflatecolumn-object-enum at rt.cpan.org", or through - the web interface at - . I will be notified, and then you'll automatically be - notified of progress on your bug as I make changes. - -SUPPORT - You can find documentation for this module with the perldoc command. - - perldoc DBIx::Class::InflateColumn::Object::Enum - - You can also look for information at: - - * RT: CPAN's request tracker - - - * AnnoCPAN: Annotated CPAN documentation - - - * CPAN Ratings - - - * Search CPAN - - -SEE ALSO - Object::Enum, DBIx::Class, DBIx::Class::InflateColumn::URI - -INSTALLATION - -To install this module, run the following commands: - - perl Makefile.PL - make - make test - make install - -SUPPORT AND DOCUMENTATION - -After installing, you can find documentation for this module with the -perldoc command. - - perldoc Foo - -You can also look for information at: - - RT, CPAN's request tracker - http://rt.cpan.org/NoAuth/Bugs.html?Dist=Foo - - AnnoCPAN, Annotated CPAN documentation - http://annocpan.org/dist/Foo - - CPAN Ratings - http://cpanratings.perl.org/d/Foo - - Search CPAN - http://search.cpan.org/dist/Foo - - -COPYRIGHT AND LICENCE - -Copyright (C) 2009 Jason M. Mills - -This program is free software; you can redistribute it and/or modify it -under the same terms as Perl itself. - diff --git a/dist.ini b/dist.ini index b6709b5..07f99fa 100644 --- a/dist.ini +++ b/dist.ini @@ -14,5 +14,5 @@ DBIx::Class::Schema = 0 Object::Enum = 0 [Prereqs / TestRequires] -Test::More -DBICx::TestDatabase +Test::More = 0 +DBICx::TestDatabase = 0 diff --git a/lib/DBIx/Class/InflateColumn/Object/Enum.pm b/lib/DBIx/Class/InflateColumn/Object/Enum.pm index e92dd7b..a39c58d 100644 --- a/lib/DBIx/Class/InflateColumn/Object/Enum.pm +++ b/lib/DBIx/Class/InflateColumn/Object/Enum.pm @@ -15,7 +15,8 @@ Version 0.03 =cut -our $VERSION = '0.04'; +# Dist::Zill should handle this now +#our $VERSION = '0.04'; =head1 SYNOPSIS diff --git a/t/pod-coverage.t b/t/pod-coverage.t deleted file mode 100644 index fc40a57..0000000 --- a/t/pod-coverage.t +++ /dev/null @@ -1,18 +0,0 @@ -use strict; -use warnings; -use Test::More; - -# Ensure a recent version of Test::Pod::Coverage -my $min_tpc = 1.08; -eval "use Test::Pod::Coverage $min_tpc"; -plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage" - if $@; - -# Test::Pod::Coverage doesn't require a minimum Pod::Coverage version, -# but older versions don't recognize some common documentation styles -my $min_pc = 0.18; -eval "use Pod::Coverage $min_pc"; -plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage" - if $@; - -all_pod_coverage_ok(); diff --git a/t/pod.t b/t/pod.t deleted file mode 100644 index ee8b18a..0000000 --- a/t/pod.t +++ /dev/null @@ -1,12 +0,0 @@ -#!perl -T - -use strict; -use warnings; -use Test::More; - -# Ensure a recent version of Test::Pod -my $min_tp = 1.22; -eval "use Test::Pod $min_tp"; -plan skip_all => "Test::Pod $min_tp required for testing POD" if $@; - -all_pod_files_ok();