r66427 - in /trunk/libdbix-class-candy-perl: Changes META.json Makefile.PL README debian/changelog debian/copyright 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

caelum-guest at users.alioth.debian.org caelum-guest at users.alioth.debian.org
Sun Dec 26 01:45:56 UTC 2010


Author: caelum-guest
Date: Sun Dec 26 01:45:49 2010
New Revision: 66427

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=66427
Log:
* update debian/copyright
* dch -r

Modified:
    trunk/libdbix-class-candy-perl/Changes
    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/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=66427&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/Changes (original)
+++ trunk/libdbix-class-candy-perl/Changes Sun Dec 26 01:45:49 2010
@@ -1,19 +1,23 @@
 Revision history for DBIx-Class-Candy
 
+0.001005  2010-12-25 10:06:15 CST6CDT
+  - Initial sketches of "Moosey" API
+  - Merry Christmas!!!
+
 0.001004  2010-07-31 01:46:04 CST6CDT
-       - Fix a bug that only appears in perl 5.8
+  - Fix a bug that only appears in perl 5.8
 
 0.001003  2010-07-29 20:20:14 CST6CDT
-       - Fix more bugs, this time the are from inheriting from other
-         other results
-       - Make ::Exports actually work
+  - Fix more bugs, this time the are from inheriting from other
+    other results
+  - Make ::Exports actually work
 
 0.001002  2010-07-24 01:21:49 CST6CDT
-       - Fix bug uncovered by doing belongs_to twice in a class
+  - Fix bug uncovered by doing belongs_to twice in a class
 
 0.001001  2010-07-21 17:48:14 CST6CDT
-       - Don't require parent for tests
+  - Don't require parent for tests
 
 0.001000  2010-07-21 00:18:10 CST6CDT
-       - Initial Release
+  - Initial Release
 

Modified: trunk/libdbix-class-candy-perl/META.json
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/META.json?rev=66427&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/META.json (original)
+++ trunk/libdbix-class-candy-perl/META.json Sun Dec 26 01:45:49 2010
@@ -4,7 +4,7 @@
       "Arthur Axel \"fREW\" Schmidt <frioux+cpan at gmail.com>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 4.101900, CPAN::Meta::Converter version 2.101670",
+   "generated_by" : "Dist::Zilla version 4.200000, CPAN::Meta::Converter version 2.102400",
    "license" : [
       "perl_5"
    ],
@@ -32,9 +32,11 @@
    "release_status" : "stable",
    "resources" : {
       "repository" : {
-         "url" : "http://github.com/frioux/DBIx-Class-Candy"
+         "type" : "git",
+         "url" : "git://github.com/frioux/DBIx-Class-Candy.git",
+         "web" : "http://github.com/frioux/DBIx-Class-Candy"
       }
    },
-   "version" : "0.001004"
+   "version" : "0.001005"
 }
 

Modified: trunk/libdbix-class-candy-perl/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/Makefile.PL?rev=66427&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/Makefile.PL (original)
+++ trunk/libdbix-class-candy-perl/Makefile.PL Sun Dec 26 01:45:49 2010
@@ -26,7 +26,7 @@
     'Test::More' => '0.94',
     'namespace::clean' => '0.18'
   },
-  'VERSION' => '0.001004',
+  'VERSION' => '0.001005',
   '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=66427&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/README (original)
+++ trunk/libdbix-class-candy-perl/README Sun Dec 26 01:45:49 2010
@@ -2,7 +2,7 @@
     DBIx::Class::Candy - Sugar for your favorite ORM, DBIx::Class
 
 VERSION
-    version 0.001004
+    version 0.001005
 
 SYNOPSIS
      package MyApp::Schema::Result::Artist;
@@ -42,6 +42,9 @@
 
     *   makes a few aliases to make some of the original method names a
         shorter or more clear
+
+    *   defines very few new subroutines that transform the arguments passed
+        to them
 
     It assumes a DBIx::Class::Core-like API, but you can tailor it to suit
     your needs.
@@ -111,6 +114,19 @@
      unique_constraint => 'add_unique_constraint',
      relationship      => 'add_relationship',
 
+SECONDARY API
+    Lastly, there is currently a single "transformer" for "add_columns", so
+    that people used to the Moose api will feel more at home. Note that this
+    may go into a "Candy Component" at some point.
+
+    Example usage:
+
+     has_column foo => (
+       data_type => 'varchar',
+       size => 25,
+       is_nullable => 1,
+     );
+
 AUTHOR
     Arthur Axel "fREW" Schmidt <frioux+cpan at gmail.com>
 

Modified: trunk/libdbix-class-candy-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/debian/changelog?rev=66427&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/debian/changelog (original)
+++ trunk/libdbix-class-candy-perl/debian/changelog Sun Dec 26 01:45:49 2010
@@ -1,4 +1,10 @@
-libdbix-class-candy-perl (0.001004-1) UNRELEASED; urgency=low
+libdbix-class-candy-perl (0.001005-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Rafael Kitover <rkitover at cpan.org>  Sat, 25 Dec 2010 20:36:05 -0500
+
+libdbix-class-candy-perl (0.001004-1) unstable; urgency=low
 
   * Initial Release.
 

Modified: trunk/libdbix-class-candy-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/debian/copyright?rev=66427&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/debian/copyright (original)
+++ trunk/libdbix-class-candy-perl/debian/copyright Sun Dec 26 01:45:49 2010
@@ -2,15 +2,6 @@
 Maintainer: Arthur Axel "fREW" Schmidt <frioux+cpan at gmail.com>
 Source: http://search.cpan.org/dist/DBIx-Class-Candy/
 Name: DBIx-Class-Candy
-DISCLAIMER: This copyright info was automatically extracted 
- from the perl module. It may not be accurate, so you better 
- check the module sources in order to ensure the module for its 
- inclusion in Debian or for general legal information. Please, 
- if licensing information is incorrectly generated, file a bug 
- on dh-make-perl.
- NOTE: Don't forget to remove this disclaimer once you are happy
- with this file.
-
 Files: *
 Copyright: Arthur Axel "fREW" Schmidt <frioux+cpan at gmail.com>
 License: Artistic or GPL-1+

Modified: trunk/libdbix-class-candy-perl/dist.ini
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbix-class-candy-perl/dist.ini?rev=66427&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/dist.ini (original)
+++ trunk/libdbix-class-candy-perl/dist.ini Sun Dec 26 01:45:49 2010
@@ -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.001004
+version          = 0.001005
 
 [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=66427&op=diff
==============================================================================
--- trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy.pm (original)
+++ trunk/libdbix-class-candy-perl/lib/DBIx/Class/Candy.pm Sun Dec 26 01:45:49 2010
@@ -1,6 +1,6 @@
 package DBIx::Class::Candy;
 BEGIN {
-  $DBIx::Class::Candy::VERSION = '0.001004';
+  $DBIx::Class::Candy::VERSION = '0.001005';
 }
 
 use strict;
@@ -99,6 +99,13 @@
    @_ = ($self, @rest);
    my $import = build_exporter({
       exports => [
+         has_column => sub {
+            my $i = $inheritor;
+            sub {
+               my $column = shift;
+               $i->add_columns($column => { @_ })
+            }
+         },
          (map { $_ => sub {
             my ($class, $name) = @_;
             my $i = $inheritor;
@@ -113,7 +120,7 @@
       ],
       groups  => {
          default => [
-            @methods, @custom_methods, keys %aliases, keys %custom_aliases
+            'has_column', @methods, @custom_methods, keys %aliases, keys %custom_aliases
          ],
       },
       installer  => sub {
@@ -157,7 +164,7 @@
 
 =head1 VERSION
 
-version 0.001004
+version 0.001005
 
 =head1 SYNOPSIS
 
@@ -209,6 +216,10 @@
 
 makes a few aliases to make some of the original method names a shorter or
 more clear
+
+=item *
+
+defines very few new subroutines that transform the arguments passed to them
 
 =back
 
@@ -284,6 +295,20 @@
  unique_constraint => 'add_unique_constraint',
  relationship      => 'add_relationship',
 
+=head1 SECONDARY API
+
+Lastly, there is currently a single "transformer" for C<add_columns>, so that
+people used to the L<Moose> api will feel more at home.  Note that this B<may>
+go into a "Candy Component" at some point.
+
+Example usage:
+
+ has_column foo => (
+   data_type => 'varchar',
+   size => 25,
+   is_nullable => 1,
+ );
+
 =head1 AUTHOR
 
 Arthur Axel "fREW" Schmidt <frioux+cpan at gmail.com>

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=66427&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 Sun Dec 26 01:45:49 2010
@@ -1,6 +1,6 @@
 package DBIx::Class::Candy::Exports;
 BEGIN {
-  $DBIx::Class::Candy::Exports::VERSION = '0.001004';
+  $DBIx::Class::Candy::Exports::VERSION = '0.001005';
 }
 
 # ABSTRACT: Create sugar for your favorite ORM, DBIx::Class
@@ -31,7 +31,7 @@
 
 =head1 VERSION
 
-version 0.001004
+version 0.001005
 
 =head1 SYNOPSIS
 

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=66427&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 Sun Dec 26 01:45:49 2010
@@ -10,11 +10,11 @@
    is_numeric => 1,
 };
 
-column name => {
+has_column name => (
    data_type => 'varchar',
    size => 25,
    is_nullable => 1,
-};
+);
 
 column artist_id => {
    data_type => 'int',

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=66427&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 Sun Dec 26 01:45:49 2010
@@ -9,11 +9,11 @@
    is_auto_increment => 1,
 };
 
-column name => {
+has_column name => (
    data_type => 'varchar',
    size => 25,
    is_nullable => 1,
-};
+);
 
 primary_key 'id';
 




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