[Bast-commits] r9273 - trunk/DBIx-Class-DigestColumns

frew at dev.catalyst.perl.org frew at dev.catalyst.perl.org
Thu Apr 29 03:01:11 GMT 2010


Author: frew
Date: 2010-04-29 04:01:11 +0100 (Thu, 29 Apr 2010)
New Revision: 9273

Removed:
   trunk/DBIx-Class-DigestColumns/Build.PL
   trunk/DBIx-Class-DigestColumns/MANIFEST
   trunk/DBIx-Class-DigestColumns/META.yml
   trunk/DBIx-Class-DigestColumns/README
Modified:
   trunk/DBIx-Class-DigestColumns/Makefile.PL
Log:
convert to Module::Install and fix deps so we should not get any more test fails

Deleted: trunk/DBIx-Class-DigestColumns/Build.PL
===================================================================
--- trunk/DBIx-Class-DigestColumns/Build.PL	2010-04-29 03:00:23 UTC (rev 9272)
+++ trunk/DBIx-Class-DigestColumns/Build.PL	2010-04-29 03:01:11 UTC (rev 9273)
@@ -1,32 +0,0 @@
-use strict;
-use Module::Build;
-
-my %arguments = (
-    create_makefile_pl => 'passthrough',
-    license            => 'perl',
-    module_name        => 'DBIx::Class::DigestColumns',
-    requires           => {
-        'DBIx::Class'               => 0.06002,
-        'Digest::MD5'               => 0,
-        'Digest'                    => 1.11,
-        'Digest::SHA'               => 0,
-    },
-    build_requires      => {
-        'DBD::SQLite'               => 1.11,
-    },
-    recommends          => {
-        'Digest::MD2'               => 0,
-        'Digest::MD4'               => 0,
-        'Digest::HMAC_MD5'          => 0,
-        'Digest::HMAC_SHA1'         => 0,
-        'Digest::CRC'               => 0,
-        'Digest::Adler32'           => 0,
-        'Digest::Whirlpool'         => 0,
-        'Digest::Haval256'          => 0,
-    },
-    create_makefile_pl => 'passthrough',
-    create_readme      => 1,
-    test_files         => [ glob('t/*.t')]
-);
-
-Module::Build->new(%arguments)->create_build_script;

Deleted: trunk/DBIx-Class-DigestColumns/MANIFEST
===================================================================
--- trunk/DBIx-Class-DigestColumns/MANIFEST	2010-04-29 03:00:23 UTC (rev 9272)
+++ trunk/DBIx-Class-DigestColumns/MANIFEST	2010-04-29 03:01:11 UTC (rev 9273)
@@ -1,26 +0,0 @@
-Build.PL
-Changes
-lib/DBIx/Class/DigestColumns.pm
-Makefile.PL
-MANIFEST			This list of files
-META.yml
-README
-t/02pod.t
-t/03podcoverage.t.disabled
-t/04basic.t
-t/05digest.t
-t/05md5.t
-t/06md4.t
-t/07md2.t
-t/08sha.t
-t/09hmacmd5.t
-t/10hmacsha1.t
-t/11crc.t
-t/12whirlpool.t
-t/13alder32.t
-t/14havel256.t.disabled
-t/15dirty.t
-t/lib/DigestTest.pm
-t/lib/DigestTest/Schema.pm
-t/lib/DigestTest/Schema/Test.pm
-t/lib/DigestTest/Schema/Test2.pm

Deleted: trunk/DBIx-Class-DigestColumns/META.yml
===================================================================
--- trunk/DBIx-Class-DigestColumns/META.yml	2010-04-29 03:00:23 UTC (rev 9272)
+++ trunk/DBIx-Class-DigestColumns/META.yml	2010-04-29 03:01:11 UTC (rev 9273)
@@ -1,37 +0,0 @@
----
-name: DBIx-Class-DigestColumns
-version: 0.05000
-author:
-  - 'Tom Kirkpatrick (tkp) <tkp at cpan.org>'
-  - |-
-    With contributions from
-    Guillermo Roditi (groditi) <groditi at cpan.org>
-    and Marc Mims <marc at questright.com>
-abstract: Automatic digest columns
-license: perl
-resources:
-  license: http://dev.perl.org/licenses/
-requires:
-  DBIx::Class: 0.06002
-  Digest: 1.11
-  Digest::MD5: 0
-build_requires:
-  DBD::SQLite: 1.11
-recommends:
-  Digest::Adler32: 0
-  Digest::CRC: 0
-  Digest::HMAC_MD5: 0
-  Digest::HMAC_SHA1: 0
-  Digest::Haval256: 0
-  Digest::MD2: 0
-  Digest::MD4: 0
-  Digest::SHA: 0
-  Digest::Whirlpool: 0
-provides:
-  DBIx::Class::DigestColumns:
-    file: lib/DBIx/Class/DigestColumns.pm
-    version: 0.05000
-generated_by: Module::Build version 0.2805
-meta-spec:
-  url: http://module-build.sourceforge.net/META-spec-v1.2.html
-  version: 1.2

Modified: trunk/DBIx-Class-DigestColumns/Makefile.PL
===================================================================
--- trunk/DBIx-Class-DigestColumns/Makefile.PL	2010-04-29 03:00:23 UTC (rev 9272)
+++ trunk/DBIx-Class-DigestColumns/Makefile.PL	2010-04-29 03:01:11 UTC (rev 9273)
@@ -1,31 +1,36 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.03
-    
-    unless (eval "use Module::Build::Compat 0.02; 1" ) {
-      print "This module requires Module::Build to install itself.\n";
-      
-      require ExtUtils::MakeMaker;
-      my $yn = ExtUtils::MakeMaker::prompt
-	('  Install Module::Build now from CPAN?', 'y');
-      
-      unless ($yn =~ /^y/i) {
-	die " *** Cannot install without Module::Build.  Exiting ...\n";
-      }
-      
-      require Cwd;
-      require File::Spec;
-      require CPAN;
-      
-      # Save this 'cause CPAN will chdir all over the place.
-      my $cwd = Cwd::cwd();
-      
-      CPAN::Shell->install('Module::Build::Compat');
-      CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
-	or die "Couldn't install Module::Build, giving up.\n";
-      
-      chdir $cwd or die "Cannot chdir() back to $cwd: $!";
-    }
-    eval "use Module::Build::Compat 0.02; 1" or die $@;
-    
-    Module::Build::Compat->run_build_pl(args => \@ARGV);
-    require Module::Build;
-    Module::Build::Compat->write_makefile(build_class => 'Module::Build');
+use inc::Module::Install 0.93;
+use strict;
+use warnings;
+use POSIX ();
+
+use 5.008001;
+
+name     'DBIx-Class-DigestColumns';
+perl_version '5.008001';
+all_from 'lib/DBIx/Class/DigestColumns.pm';
+readme_from 'lib/DBIx/Class/DigestColumns.pm';
+
+build_requires 'DBD::SQLite' => 1.25;
+
+
+requires 'DBIx::Class' => 0.08121;
+requires 'Digest::MD5' => 0;
+requires 'Digest'      => 1.11;
+requires 'Digest::SHA' => 0;
+
+configure_requires 'DBIx::Class' => '0.08121';
+
+require DBIx::Class::Optional::Dependencies;
+my $deploy_deps = DBIx::Class::Optional::Dependencies->req_list_for ('deploy');
+test_requires $_ => $deploy_deps->{$_}
+   for keys %$deploy_deps;
+
+auto_install();
+
+tests_recursive('t');
+
+resources 'IRC'         => 'irc://irc.perl.org/#dbix-class';
+resources 'license'     => 'http://dev.perl.org/licenses/';
+resources 'repository'  => 'http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class-DigestColumns/';
+
+WriteAll();

Deleted: trunk/DBIx-Class-DigestColumns/README
===================================================================
--- trunk/DBIx-Class-DigestColumns/README	2010-04-29 03:00:23 UTC (rev 9272)
+++ trunk/DBIx-Class-DigestColumns/README	2010-04-29 03:01:11 UTC (rev 9273)
@@ -1,174 +0,0 @@
-NAME
-    DBIx::Class::DigestColumns - Automatic digest columns
-
-SYNOPSIS
-    In your DBIx::Class table class:
-
-      __PACKAGE__->load_components(qw/DigestColumns ... Core/);
-
-      #automatically generate a method "check_password" in result class
-      __PACKAGE__->add_columns(
-        'password' => {
-          data_type => 'char',
-          size      => 32,
-          digest_check_method => 'check_password',
-      }
-      __PACKAGE__->digestcolumns(
-          columns   => [qw/ password /],
-          algorithm => 'MD5',
-          encoding  => 'base64',
-          dirty     => 1,
-          auto      => 1,
-      );
-
-    Note: The component needs to be loaded *before* Core.
-
-    Alternatively you could call each method individually
-
-      __PACKAGE__->digest_columns(qw/ password /);
-      __PACKAGE__->digest_algorithm('MD5');
-      __PACKAGE__->digest_encoding('base64');
-      __PACKAGE__->digest_dirty(1);
-      __PACKAGE__->digest_auto(1);
-
-DESCRIPTION
-    This DBIx::Class component can be used to automatically insert a message
-    digest of selected columns. By default DigestColumns will use
-    Digest::MD5 to insert a 128-bit hexadecimal message digest of the column
-    value.
-
-    The length of the inserted string will be 32 and it will only contain
-    characters from this set: '0'..'9' and 'a'..'f'.
-
-    If you would like to use a specific digest module to create your message
-    digest, you can set "digest_algorithm":
-
-      __PACKAGE__->digest_algorithm('SHA-1');
-
-Options added to add_column
-  digest_check_method => $method_name
-    By using the digest_check_method attribute when you declare a column you
-    can create a check method for that column. The check method accepts a
-    plain text string, performs the correct digest on it and returns a
-    boolean value indicating whether this method matches the
-    currently_stored value.
-
-      $row->password('new_password');
-      $row->check_password('new_password'); #returns true
-      $row->check_password('new_password'); #returns false
-
-METHODS
-  digestcolumns
-      __PACKAGE__->digestcolumns(
-          columns   => [qw/ password /],
-          algorithm => $algorithm',
-          encoding  => $encoding,
-          dirty     => 1,
-          auto      => 1,
-      );
-
-    Calls "digest_columns", "digest_algorithm", and "digest_encoding" and
-    "digest_auto" if the corresponding argument is defined.
-
-  register_column
-    Override the original register_column to handle the creation of check
-    methods.
-
-  digest_columns
-    Takes a list of columns to be convert to a message digest during insert.
-
-      __PACKAGE__->digest_columns(qw/ password /);
-
-  digest_algorithm
-    Takes the name of a digest algorithm to be used to calculate the message
-    digest.
-
-      __PACKAGE__->digest_algorithm('SHA-1');
-
-    If a suitible digest module could not be loaded an exception will be
-    thrown.
-
-    Supported digest algorithms are:
-
-      MD5
-      MD4
-      MD2
-      SHA-1
-      SHA-256
-      SHA-384
-      SHA-512
-      CRC-16
-      CRC-32
-      CRC-CCITT
-      HMAC-SHA-1
-      HMAC-MD5
-      Whirlpool
-      Adler-32
-
-    digest_algorithm defaults to "MD5".
-
-  digest_encoding
-    Selects the encoding to use for the message digest.
-
-      __PACKAGE__->digest_encoding('base64');
-
-    Possilbe encoding schemes are:
-
-      binary
-      hex
-      base64
-
-    digest_encoding defaults to "hex".
-
-  _get_digest_string $value
-    Handles the actual encoding of column values into digests. When given a
-    $value it will return the digest string for that value. This is the
-    method used by "_digest_column_values" So you can use it to create an
-    identical digest if you need one for comparison (e.g. password
-    authentication).
-
-  _digest_column_values
-    Go through the columns and digest the values that need it.
-
-    This method is called by insert and update when automatic digests are
-    turned on. If dirty is enabled it will only digest the values of dirtied
-    columns.
-
-  digest_auto
-      __PACKAGE__->digest_auto(1);
-
-    Turns on and off automatic digest columns. When on, this feature makes
-    all UPDATEs and INSERTs automatically insert a message digest of
-    selected columns.
-
-    The default is for digest_auto is to be on.
-
-  digest_dirty
-      __PACKAGE__->digest_dirty(1);
-
-    Turns on and off the limiting of automatic digests to only dirty
-    columns. When on, only columns that have been dirtied will have their
-    values digested during UPDATEs and INSERTs. If auto is set to off this
-    option does nothing.
-
-    The default is for digest_dirty is to be off to mantain compatibility
-    with older versions of this module.
-
-EXTENDED METHODS
-    The following DBIx::Class::Row methods are extended by this module:-
-
-    insert
-    update
-
-SEE ALSO
-    DBIx::Class, Digest
-
-AUTHOR
-    Tom Kirkpatrick (tkp) <tkp at cpan.org>
-
-    With contributions from Guillermo Roditi (groditi) <groditi at cpan.org>
-    and Marc Mims <marc at questright.com>
-
-LICENSE
-    You may distribute this code under the same terms as Perl itself.
-




More information about the Bast-commits mailing list