[Jifty-commit] r5977 - in JiftyX-ModelHelpers/trunk: lib/JiftyX t/Simapp/t

Jifty commits jifty-commit at lists.jifty.org
Sun Nov 2 05:42:46 EST 2008


Author: gugod
Date: Sun Nov  2 05:42:44 2008
New Revision: 5977

Added:
   JiftyX-ModelHelpers/trunk/dist.ini
Removed:
   JiftyX-ModelHelpers/trunk/MANIFEST
   JiftyX-ModelHelpers/trunk/META.yml
   JiftyX-ModelHelpers/trunk/Makefile.PL
   JiftyX-ModelHelpers/trunk/README
Modified:
   JiftyX-ModelHelpers/trunk/   (props changed)
   JiftyX-ModelHelpers/trunk/Changes
   JiftyX-ModelHelpers/trunk/lib/JiftyX/ModelHelpers.pm
   JiftyX-ModelHelpers/trunk/t/Simapp/t/helpers.t
   JiftyX-ModelHelpers/trunk/t/Simapp/t/m-helper.t

Log:
 r24705 at yra:  gugod | 2008-11-02 18:29:17 +0800
 Re-arrange this dist with Dist::Zila,
 
 raaaaaaaaaaaaar!
 
 r24706 at yra:  gugod | 2008-11-02 18:38:36 +0800
 Decide to still export auto-created helpers.
 


Modified: JiftyX-ModelHelpers/trunk/Changes
==============================================================================
--- JiftyX-ModelHelpers/trunk/Changes	(original)
+++ JiftyX-ModelHelpers/trunk/Changes	Sun Nov  2 05:42:44 2008
@@ -1,8 +1,6 @@
 
 0.20
-- Breaks backwoard compatbility :)
 - Add M() function exported by default
-- All auto-created functions are now NOT exported by default.
 
 2008-09-08T21:13:46+0800
 0.01 - Initial release

Added: JiftyX-ModelHelpers/trunk/dist.ini
==============================================================================
--- (empty file)
+++ JiftyX-ModelHelpers/trunk/dist.ini	Sun Nov  2 05:42:44 2008
@@ -0,0 +1,15 @@
+name    = JiftyX-ModelHelpers
+version = 0.20
+author  = Kang-min Liu <gugod at gugod.org>
+license = MIT
+copyright_holder = Kang-min Liu
+
+[@Classic]
+
+
+[Prereq]
+Jifty    = 0.80408
+Exporter = 0
+
+[PodWeaver]
+

Modified: JiftyX-ModelHelpers/trunk/lib/JiftyX/ModelHelpers.pm
==============================================================================
--- JiftyX-ModelHelpers/trunk/lib/JiftyX/ModelHelpers.pm	(original)
+++ JiftyX-ModelHelpers/trunk/lib/JiftyX/ModelHelpers.pm	Sun Nov  2 05:42:44 2008
@@ -1,10 +1,11 @@
 package JiftyX::ModelHelpers;
+# ABSTRACT: Make it simpler to fetch records in Jifty.
+
 use strict;
 use Exporter;
 
 our @ISA = qw(Exporter);
 our @EXPORT = qw(M);
-our $VERSION = "0.20";
 
 sub M {
     my ($model, @params) = @_;;
@@ -25,11 +26,7 @@
 
 sub import {
     my ($self, @tags) = @_;
-
-    if ($tags[0] eq ":auto") {
-        build_model_helpers();
-        pop @tags;
-    }
+    build_model_helpers();
 
     # Let the Exporter.pm do the heavy-liftingjobs
     local $Exporter::ExportLevel = $Exporter::ExportLevel + 1;
@@ -73,14 +70,6 @@
 
 1;
 
-=head1 NAME
-
-JiftyX::ModelHelpers - Use Jifty model more easily.
-
-=head1 VERSION
-
-Version 0.20
-
 =head1 SYNOPSIS
 
 Suppose you have a "Book" model in your app:
@@ -105,7 +94,7 @@
     $book  = Book(isbn => " 978-0099410676");
     $books = BookCollection(author => "Jesse");
 
-=head1 Description
+=head1 DESCRIPTION
 
 Jifty programmers may find them self very tired of typing in their
 View or Dispatcher when it comes to retrieve records or collection of
@@ -248,7 +237,7 @@
 For people who works daily in Jifty world, this should make your code
 more readible for most of the time.
 
-=head1 Namespace clobbering
+=head2 Namespace clobbering
 
 One major issue for using this module is that it automaically defines
 many functions in its caller, and that might cause naming collision.
@@ -259,7 +248,7 @@
     # Don't want BookCollection function
     use JiftyX::ModelHelpers qw(Book);
 
-=head1 Development
+=head2 Development
 
 The code repository for this project is hosted on
 
@@ -274,33 +263,5 @@
 
 To join the list, send mail to C<jifty-devel-subscribe at lists.jifty.org>
 
-=head1 AUTHORS
-
-Kang-min Liu C<gugod at gugod.org>
-
-=head1 COPYRIGHT & LICENSE
-
-The MIT License
-
-Copyright (c) 2008 Kang-min Liu C<gugod at gugod.org>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
 =cut
 

Modified: JiftyX-ModelHelpers/trunk/t/Simapp/t/helpers.t
==============================================================================
--- JiftyX-ModelHelpers/trunk/t/Simapp/t/helpers.t	(original)
+++ JiftyX-ModelHelpers/trunk/t/Simapp/t/helpers.t	Sun Nov  2 05:42:44 2008
@@ -3,7 +3,7 @@
 use strict;
 
 use Jifty::Test::Dist tests => 3;
-use JiftyX::ModelHelpers ':auto';
+use JiftyX::ModelHelpers;
 
 {
     use Simapp::Model::Book;

Modified: JiftyX-ModelHelpers/trunk/t/Simapp/t/m-helper.t
==============================================================================
--- JiftyX-ModelHelpers/trunk/t/Simapp/t/m-helper.t	(original)
+++ JiftyX-ModelHelpers/trunk/t/Simapp/t/m-helper.t	Sun Nov  2 05:42:44 2008
@@ -3,7 +3,7 @@
 use strict;
 
 use Jifty::Test::Dist tests => 3;
-use JiftyX::ModelHelpers;
+use JiftyX::ModelHelpers qw(M);
 
 {
     use Simapp::Model::Book;


More information about the Jifty-commit mailing list