[Jifty-commit] r5805 - in JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk: lib/JiftyX

Jifty commits jifty-commit at lists.jifty.org
Mon Sep 8 09:33:03 EDT 2008


Author: gugod
Date: Mon Sep  8 09:33:02 2008
New Revision: 5805

Added:
   JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/Changes
   JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/Makefile.PL
   JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/README
Modified:
   JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/   (props changed)
   JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/lib/JiftyX/ModelHelpers.pm

Log:
 r23689 at yra:  gugod | 2008-09-05 10:52:38 +0800
 Preparing the release.


Added: JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/Changes
==============================================================================

Added: JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/Makefile.PL
==============================================================================
--- (empty file)
+++ JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/Makefile.PL	Mon Sep  8 09:33:02 2008
@@ -0,0 +1,11 @@
+use inc::Module::Install;
+
+name            'JiftyX-ModelHelpers';
+license         'mit';
+author          'Kang-min Liu <gugod at gugod.org>';
+all_from        'lib/JiftyX/ModelHelpers.pm';
+
+build_requires  'Test::More';
+build_requires  'Test::Warn';
+
+WriteAll;

Added: JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/README
==============================================================================

Modified: JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/lib/JiftyX/ModelHelpers.pm
==============================================================================
--- JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/lib/JiftyX/ModelHelpers.pm	(original)
+++ JiftyX-ModelHelpers/branches/JiftyX-ModelHelpers-trunk/lib/JiftyX/ModelHelpers.pm	Mon Sep  8 09:33:02 2008
@@ -45,4 +45,60 @@
     }
 }
 
-1;
+"true, true.";
+
+=head1 NAME
+
+JiftyX::ModelHelpers - Use Jifty model easily.
+
+=head1 VERSION
+
+Version 0.01
+
+=head1 SYNOPSIS
+
+Suppose you have a "Book" model in your app:
+
+    use JiftyX::ModelHelper;
+
+    # Load the record of book with id = $id
+    $book = Book($id);
+
+    # Load by other criteria
+    $book = Book(isbn => "xxx-xxxx-xxxxxxx");
+
+    # Load a colllection of books
+    $books = BookCollection(author => "Jesse");
+
+=head1 FUNCTIONS
+
+=head1 AUTHORS
+
+Kang-min Liu C< <gugod at gugod.org> >
+
+=head1 COPYRIGHT & LICENSE
+
+The MIT License
+
+Copyright (c) 2008 Kang-min Liu
+
+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
+


More information about the Jifty-commit mailing list