r70263 - in /branches/upstream/libdbix-class-candy-perl/current: Changes LICENSE META.json Makefile.PL README dist.ini lib/DBIx/Class/Candy.pm lib/DBIx/Class/Candy/Exports.pm t/lib/A/Schema/Result/Album.pm t/lib/A/Schema/Result/Artist.pm

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Thu Mar 3 02:42:17 UTC 2011


Author: jawnsy-guest
Date: Thu Mar  3 02:42:10 2011
New Revision: 70263

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=70263
Log:
[svn-upgrade] new version libdbix-class-candy-perl (0.001006)

Modified:
    branches/upstream/libdbix-class-candy-perl/current/Changes
    branches/upstream/libdbix-class-candy-perl/current/LICENSE
    branches/upstream/libdbix-class-candy-perl/current/META.json
    branches/upstream/libdbix-class-candy-perl/current/Makefile.PL
    branches/upstream/libdbix-class-candy-perl/current/README
    branches/upstream/libdbix-class-candy-perl/current/dist.ini
    branches/upstream/libdbix-class-candy-perl/current/lib/DBIx/Class/Candy.pm
    branches/upstream/libdbix-class-candy-perl/current/lib/DBIx/Class/Candy/Exports.pm
    branches/upstream/libdbix-class-candy-perl/current/t/lib/A/Schema/Result/Album.pm
    branches/upstream/libdbix-class-candy-perl/current/t/lib/A/Schema/Result/Artist.pm

Modified: branches/upstream/libdbix-class-candy-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-candy-perl/current/Changes?rev=70263&op=diff
==============================================================================
--- branches/upstream/libdbix-class-candy-perl/current/Changes (original)
+++ branches/upstream/libdbix-class-candy-perl/current/Changes Thu Mar  3 02:42:10 2011
@@ -1,4 +1,8 @@
 Revision history for DBIx-Class-Candy
+
+0.001006  2011-03-01 22:44:45 CST6CDT
+  - Add primary_column sugar
+  - Fix incorrectly named export (inflate_colum .= n)
 
 0.001005  2010-12-25 10:06:15 CST6CDT
   - Initial sketches of "Moosey" API

Modified: branches/upstream/libdbix-class-candy-perl/current/LICENSE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-candy-perl/current/LICENSE?rev=70263&op=diff
==============================================================================
--- branches/upstream/libdbix-class-candy-perl/current/LICENSE (original)
+++ branches/upstream/libdbix-class-candy-perl/current/LICENSE Thu Mar  3 02:42:10 2011
@@ -1,4 +1,4 @@
-This software is copyright (c) 2010 by Arthur Axel "fREW" Schmidt.
+This software is copyright (c) 2011 by Arthur Axel "fREW" Schmidt.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
 
 --- The GNU General Public License, Version 1, February 1989 ---
 
-This software is Copyright (c) 2010 by Arthur Axel "fREW" Schmidt.
+This software is Copyright (c) 2011 by Arthur Axel "fREW" Schmidt.
 
 This is free software, licensed under:
 
@@ -270,7 +270,7 @@
 
 --- The Artistic License 1.0 ---
 
-This software is Copyright (c) 2010 by Arthur Axel "fREW" Schmidt.
+This software is Copyright (c) 2011 by Arthur Axel "fREW" Schmidt.
 
 This is free software, licensed under:
 

Modified: branches/upstream/libdbix-class-candy-perl/current/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-candy-perl/current/META.json?rev=70263&op=diff
==============================================================================
--- branches/upstream/libdbix-class-candy-perl/current/META.json (original)
+++ branches/upstream/libdbix-class-candy-perl/current/META.json Thu Mar  3 02:42:10 2011
@@ -4,7 +4,7 @@
       "Arthur Axel \"fREW\" Schmidt <frioux+cpan at gmail.com>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 4.200000, CPAN::Meta::Converter version 2.102400",
+   "generated_by" : "Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110580",
    "license" : [
       "perl_5"
    ],
@@ -37,6 +37,6 @@
          "web" : "http://github.com/frioux/DBIx-Class-Candy"
       }
    },
-   "version" : "0.001005"
+   "version" : "0.001006"
 }
 

Modified: branches/upstream/libdbix-class-candy-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-candy-perl/current/Makefile.PL?rev=70263&op=diff
==============================================================================
--- branches/upstream/libdbix-class-candy-perl/current/Makefile.PL (original)
+++ branches/upstream/libdbix-class-candy-perl/current/Makefile.PL Thu Mar  3 02:42:10 2011
@@ -26,7 +26,7 @@
     'Test::More' => '0.94',
     'namespace::clean' => '0.18'
   },
-  'VERSION' => '0.001005',
+  'VERSION' => '0.001006',
   'test' => {
     'TESTS' => 't/*.t'
   }

Modified: branches/upstream/libdbix-class-candy-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-candy-perl/current/README?rev=70263&op=diff
==============================================================================
--- branches/upstream/libdbix-class-candy-perl/current/README (original)
+++ branches/upstream/libdbix-class-candy-perl/current/README Thu Mar  3 02:42:10 2011
@@ -2,7 +2,7 @@
     DBIx::Class::Candy - Sugar for your favorite ORM, DBIx::Class
 
 VERSION
-    version 0.001005
+    version 0.001006
 
 SYNOPSIS
      package MyApp::Schema::Result::Artist;
@@ -88,7 +88,7 @@
      belongs_to
      has_many
      has_one
-     inflate_colum
+     inflate_column
      many_to_many
      might_have
      remove_column
@@ -131,7 +131,7 @@
     Arthur Axel "fREW" Schmidt <frioux+cpan at gmail.com>
 
 COPYRIGHT AND LICENSE
-    This software is copyright (c) 2010 by Arthur Axel "fREW" Schmidt.
+    This software is copyright (c) 2011 by Arthur Axel "fREW" Schmidt.
 
     This is free software; you can redistribute it and/or modify it under
     the same terms as the Perl 5 programming language system itself.

Modified: branches/upstream/libdbix-class-candy-perl/current/dist.ini
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-candy-perl/current/dist.ini?rev=70263&op=diff
==============================================================================
--- branches/upstream/libdbix-class-candy-perl/current/dist.ini (original)
+++ branches/upstream/libdbix-class-candy-perl/current/dist.ini Thu Mar  3 02:42:10 2011
@@ -2,7 +2,7 @@
 author           = Arthur Axel "fREW" Schmidt <frioux+cpan at gmail.com>
 license          = Perl_5
 copyright_holder = Arthur Axel "fREW" Schmidt
-version          = 0.001005
+version          = 0.001006
 
 [NextRelease]
 [@Git]

Modified: branches/upstream/libdbix-class-candy-perl/current/lib/DBIx/Class/Candy.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-candy-perl/current/lib/DBIx/Class/Candy.pm?rev=70263&op=diff
==============================================================================
--- branches/upstream/libdbix-class-candy-perl/current/lib/DBIx/Class/Candy.pm (original)
+++ branches/upstream/libdbix-class-candy-perl/current/lib/DBIx/Class/Candy.pm Thu Mar  3 02:42:10 2011
@@ -1,6 +1,6 @@
 package DBIx::Class::Candy;
 BEGIN {
-  $DBIx::Class::Candy::VERSION = '0.001005';
+  $DBIx::Class::Candy::VERSION = '0.001006';
 }
 
 use strict;
@@ -27,7 +27,7 @@
    table
    source_name
 
-   inflate_colum
+   inflate_column
 
    belongs_to
    has_many
@@ -104,6 +104,15 @@
             sub {
                my $column = shift;
                $i->add_columns($column => { @_ })
+            }
+         },
+         primary_column => sub {
+            my $i = $inheritor;
+            sub {
+               my $column = shift;
+               my $info   = shift;
+               $i->add_columns($column => $info);
+               $i->set_primary_key($column);
             }
          },
          (map { $_ => sub {
@@ -120,7 +129,7 @@
       ],
       groups  => {
          default => [
-            'has_column', @methods, @custom_methods, keys %aliases, keys %custom_aliases
+            'has_column', 'primary_column', @methods, @custom_methods, keys %aliases, keys %custom_aliases
          ],
       },
       installer  => sub {
@@ -164,7 +173,7 @@
 
 =head1 VERSION
 
-version 0.001005
+version 0.001006
 
 =head1 SYNOPSIS
 
@@ -269,7 +278,7 @@
  belongs_to
  has_many
  has_one
- inflate_colum
+ inflate_column
  many_to_many
  might_have
  remove_column
@@ -315,7 +324,7 @@
 
 =head1 COPYRIGHT AND LICENSE
 
-This software is copyright (c) 2010 by Arthur Axel "fREW" Schmidt.
+This software is copyright (c) 2011 by Arthur Axel "fREW" Schmidt.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.

Modified: branches/upstream/libdbix-class-candy-perl/current/lib/DBIx/Class/Candy/Exports.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-candy-perl/current/lib/DBIx/Class/Candy/Exports.pm?rev=70263&op=diff
==============================================================================
--- branches/upstream/libdbix-class-candy-perl/current/lib/DBIx/Class/Candy/Exports.pm (original)
+++ branches/upstream/libdbix-class-candy-perl/current/lib/DBIx/Class/Candy/Exports.pm Thu Mar  3 02:42:10 2011
@@ -1,6 +1,6 @@
 package DBIx::Class::Candy::Exports;
 BEGIN {
-  $DBIx::Class::Candy::Exports::VERSION = '0.001005';
+  $DBIx::Class::Candy::Exports::VERSION = '0.001006';
 }
 
 # ABSTRACT: Create sugar for your favorite ORM, DBIx::Class
@@ -31,7 +31,7 @@
 
 =head1 VERSION
 
-version 0.001005
+version 0.001006
 
 =head1 SYNOPSIS
 
@@ -86,7 +86,7 @@
 
 =head1 COPYRIGHT AND LICENSE
 
-This software is copyright (c) 2010 by Arthur Axel "fREW" Schmidt.
+This software is copyright (c) 2011 by Arthur Axel "fREW" Schmidt.
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.

Modified: branches/upstream/libdbix-class-candy-perl/current/t/lib/A/Schema/Result/Album.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-candy-perl/current/t/lib/A/Schema/Result/Album.pm?rev=70263&op=diff
==============================================================================
--- branches/upstream/libdbix-class-candy-perl/current/t/lib/A/Schema/Result/Album.pm (original)
+++ branches/upstream/libdbix-class-candy-perl/current/t/lib/A/Schema/Result/Album.pm Thu Mar  3 02:42:10 2011
@@ -4,7 +4,7 @@
 
 table 'albums';
 
-column id => {
+primary_column id => {
    data_type => 'int',
    is_auto_increment => 1,
    is_numeric => 1,
@@ -21,14 +21,12 @@
    is_nullable => 0,
 };
 
-primary_key 'id';
-
 has_many songs => 'A::Schema::Result::Song', 'album_id';
 
 sub test_strict {
-	require Test::More;
-	eval '$foo = 1';
-	Test::More::ok($@, 'strict mode is on');
+   require Test::More;
+   eval '$foo = 1';
+   Test::More::ok($@, 'strict mode is on');
 }
 
 1;

Modified: branches/upstream/libdbix-class-candy-perl/current/t/lib/A/Schema/Result/Artist.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdbix-class-candy-perl/current/t/lib/A/Schema/Result/Artist.pm?rev=70263&op=diff
==============================================================================
--- branches/upstream/libdbix-class-candy-perl/current/t/lib/A/Schema/Result/Artist.pm (original)
+++ branches/upstream/libdbix-class-candy-perl/current/t/lib/A/Schema/Result/Artist.pm Thu Mar  3 02:42:10 2011
@@ -4,7 +4,7 @@
 
 table 'artists';
 
-column id => {
+primary_column id => {
    data_type => 'int',
    is_auto_increment => 1,
 };
@@ -15,8 +15,6 @@
    is_nullable => 1,
 );
 
-primary_key 'id';
-
 has_many albums => 'A::Schema::Result::Album', 'artist_id';
 
 1;




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