r70265 - in /trunk/libdbix-class-candy-perl: ./ debian/ lib/DBIx/Class/ lib/DBIx/Class/Candy/ t/lib/A/Schema/Result/

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Thu Mar 3 03:10:46 UTC 2011


Author: jawnsy-guest
Date: Thu Mar  3 03:10:00 2011
New Revision: 70265

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=70265
Log:
* New upstream release
* Rewrite control description
* Add myself to Uploaders and Copyright
* Refresh copyright information
* Bump to debhelper compat 8

Modified:
    trunk/libdbix-class-candy-perl/Changes
    trunk/libdbix-class-candy-perl/LICENSE
    trunk/libdbix-class-candy-perl/META.json
    trunk/libdbix-class-candy-perl/Makefile.PL
    trunk/libdbix-class-candy-perl/README
    trunk/libdbix-class-candy-perl/debian/changelog
    trunk/libdbix-class-candy-perl/debian/compat
    trunk/libdbix-class-candy-perl/debian/control
    trunk/libdbix-class-candy-perl/debian/copyright
    trunk/libdbix-class-candy-perl/dist.ini
    trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy.pm
    trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy/Exports.pm
    trunk/libdbix-class-candy-perl/t/lib/A/Schema/Result/Album.pm
    trunk/libdbix-class-candy-perl/t/lib/A/Schema/Result/Artist.pm

Modified: trunk/libdbix-class-candy-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/Changes?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/Changes (original)
+++ trunk/libdbix-class-candy-perl/Changes Thu Mar  3 03:10:00 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: trunk/libdbix-class-candy-perl/LICENSE
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/LICENSE?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/LICENSE (original)
+++ trunk/libdbix-class-candy-perl/LICENSE Thu Mar  3 03:10:00 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: trunk/libdbix-class-candy-perl/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/META.json?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/META.json (original)
+++ trunk/libdbix-class-candy-perl/META.json Thu Mar  3 03:10:00 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: trunk/libdbix-class-candy-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/Makefile.PL?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/Makefile.PL (original)
+++ trunk/libdbix-class-candy-perl/Makefile.PL Thu Mar  3 03:10:00 2011
@@ -26,7 +26,7 @@
     'Test::More' => '0.94',
     'namespace::clean' => '0.18'
   },
-  'VERSION' => '0.001005',
+  'VERSION' => '0.001006',
   'test' => {
     'TESTS' => 't/*.t'
   }

Modified: trunk/libdbix-class-candy-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/README?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/README (original)
+++ trunk/libdbix-class-candy-perl/README Thu Mar  3 03:10:00 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: trunk/libdbix-class-candy-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/debian/changelog?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/debian/changelog (original)
+++ trunk/libdbix-class-candy-perl/debian/changelog Thu Mar  3 03:10:00 2011
@@ -1,3 +1,13 @@
+libdbix-class-candy-perl (0.001006-1) UNRELEASED; urgency=low
+
+  * New upstream release
+  * Rewrite control description
+  * Add myself to Uploaders and Copyright
+  * Refresh copyright information
+  * Bump to debhelper compat 8
+
+ -- Jonathan Yu <jawnsy at cpan.org>  Wed, 02 Mar 2011 22:33:47 -0500
+
 libdbix-class-candy-perl (0.001005-1) unstable; urgency=low
 
   * Initial release. (Closes: #608030: ITP: libdbix-class-candy-perl --

Modified: trunk/libdbix-class-candy-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/debian/compat?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/debian/compat (original)
+++ trunk/libdbix-class-candy-perl/debian/compat Thu Mar  3 03:10:00 2011
@@ -1,1 +1,1 @@
-7
+8

Modified: trunk/libdbix-class-candy-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/debian/control?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/debian/control (original)
+++ trunk/libdbix-class-candy-perl/debian/control Thu Mar  3 03:10:00 2011
@@ -1,12 +1,16 @@
 Source: libdbix-class-candy-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7)
-Build-Depends-Indep: libdbix-class-perl (>= 0.08123),
- libmro-compat-perl (>= 0.11), libnamespace-clean-perl (>= 0.18),
- libsub-exporter-perl (>= 0.982), libtest-simple-perl (>= 0.94), perl
+Build-Depends: debhelper (>= 8)
+Build-Depends-Indep: perl,
+ libdbix-class-perl (>= 0.08123),
+ libmro-compat-perl (>= 0.11),
+ libnamespace-clean-perl (>= 0.18),
+ libsub-exporter-perl (>= 0.982),
+ libtest-simple-perl (>= 0.94) | perl (>= 5.11.1)
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: Rafael Kitover <rkitover at cpan.org>
+Uploaders: Rafael Kitover <rkitover at cpan.org>,
+ Jonathan Yu <jawnsy at cpan.org>
 Standards-Version: 3.9.1
 Homepage: http://search.cpan.org/dist/DBIx-Class-Candy/
 Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libdbix-class-candy-perl/
@@ -14,20 +18,13 @@
 
 Package: libdbix-class-candy-perl
 Architecture: all
-Depends: ${misc:Depends}, ${perl:Depends}, libdbix-class-perl (>= 0.08123),
- libmro-compat-perl (>= 0.11), libnamespace-clean-perl (>= 0.18),
+Depends: ${misc:Depends}, ${perl:Depends},
+ libdbix-class-perl (>= 0.08123),
+ libmro-compat-perl (>= 0.11),
+ libnamespace-clean-perl (>= 0.18),
  libsub-exporter-perl (>= 0.982)
-Description: module that provides syntactic sugar for result classes for the DBIx::Class ORM
- DBIx::Class::Candy is a simple sugar layer for definition of DBIx::Class
- results. Note that it may later be expanded to add sugar for more DBIx::Class
- related things. By default DBIx::Class::Candy:
- .
-    * turns on strict and warnings
-    * sets your parent class
-    * exports a bunch of the package methods that you normally use to define
-      your DBIx::Class results
-    * makes a few aliases to make some of the original method names a shorter
-      or more clear
- .
- It assumes a DBIx::Class::Core-like API, but you can tailor it to suit your
- needs.
+Description: module providing syntax sugar for DBIx::Class
+ DBIx::Class::Candy is a Perl module that provides syntactic sugar for result
+ definitions for DBIx::Class (see libdbix-class-perl). It reduces repetitive
+ boilerplate and provides more concise aliases for methods, simplifying the
+ definition and maintenance of your schema.

Modified: trunk/libdbix-class-candy-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/debian/copyright?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/debian/copyright (original)
+++ trunk/libdbix-class-candy-perl/debian/copyright Thu Mar  3 03:10:00 2011
@@ -1,14 +1,15 @@
 Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
-Maintainer: Arthur Axel "fREW" Schmidt <frioux+cpan at gmail.com>
+Maintainer: Arthur Axel Schmidt <frioux+cpan at gmail.com>
 Source: http://search.cpan.org/dist/DBIx-Class-Candy/
 Name: DBIx-Class-Candy
 
 Files: *
-Copyright: 2010, Arthur Axel "fREW" Schmidt <frioux+cpan at gmail.com>
+Copyright: 2011, Arthur Axel Schmidt <frioux+cpan at gmail.com>
 License: Artistic or GPL-1+
 
 Files: debian/*
 Copyright: 2010, Rafael Kitover <rkitover at cpan.org>
+ 2011, Jonathan Yu <jawnsy at cpan.org>
 License: Artistic or GPL-1+
 
 License: Artistic

Modified: trunk/libdbix-class-candy-perl/dist.ini
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/dist.ini?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/dist.ini (original)
+++ trunk/libdbix-class-candy-perl/dist.ini Thu Mar  3 03:10:00 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: trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy.pm?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy.pm (original)
+++ trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy.pm Thu Mar  3 03:10:00 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: trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy/Exports.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy/Exports.pm?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy/Exports.pm (original)
+++ trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy/Exports.pm Thu Mar  3 03:10:00 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: trunk/libdbix-class-candy-perl/t/lib/A/Schema/Result/Album.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/t/lib/A/Schema/Result/Album.pm?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/t/lib/A/Schema/Result/Album.pm (original)
+++ trunk/libdbix-class-candy-perl/t/lib/A/Schema/Result/Album.pm Thu Mar  3 03:10:00 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: trunk/libdbix-class-candy-perl/t/lib/A/Schema/Result/Artist.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/t/lib/A/Schema/Result/Artist.pm?rev=70265&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/t/lib/A/Schema/Result/Artist.pm (original)
+++ trunk/libdbix-class-candy-perl/t/lib/A/Schema/Result/Artist.pm Thu Mar  3 03:10:00 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