[Jifty-commit] r5224 - in Net-Jifty: . inc/Module inc/Module/Install

Jifty commits jifty-commit at lists.jifty.org
Mon Mar 17 13:21:05 EDT 2008


Author: sartak
Date: Mon Mar 17 13:21:05 2008
New Revision: 5224

Modified:
   Net-Jifty/   (props changed)
   Net-Jifty/Changes
   Net-Jifty/README
   Net-Jifty/inc/Module/Install.pm
   Net-Jifty/inc/Module/Install/AutoInstall.pm
   Net-Jifty/inc/Module/Install/Base.pm
   Net-Jifty/inc/Module/Install/Can.pm
   Net-Jifty/inc/Module/Install/Fetch.pm
   Net-Jifty/inc/Module/Install/Include.pm
   Net-Jifty/inc/Module/Install/Makefile.pm
   Net-Jifty/inc/Module/Install/Metadata.pm
   Net-Jifty/inc/Module/Install/Win32.pm
   Net-Jifty/inc/Module/Install/WriteAll.pm
   Net-Jifty/lib/Net/Jifty.pm

Log:
 r52735 at onn:  sartak | 2008-03-17 13:20:48 -0400
 0.06 release


Modified: Net-Jifty/Changes
==============================================================================
--- Net-Jifty/Changes	(original)
+++ Net-Jifty/Changes	Mon Mar 17 13:21:05 2008
@@ -1,6 +1,6 @@
 Revision history for Net-Jifty
 
-0.06
+0.06    Mon Mar 17 13:15:09
         Add directory filters for use by applications and subclasses
             Basically, each directory in your path can have a .jifty file
             with config in it. Each file is Hash::Merge'd. This lets your

Modified: Net-Jifty/README
==============================================================================
--- Net-Jifty/README	(original)
+++ Net-Jifty/README	Mon Mar 17 13:21:05 2008
@@ -2,18 +2,26 @@
     Net::Jifty - interface to online Jifty applications
 
 VERSION
-    Version 0.05 released 21 Dec 08
+    Version 0.06 released 17 Mar 07
 
 SYNOPSIS
         use Net::Jifty;
-        my $j = Net::Jifty->new(site => 'http://mushroom.mu/', cookie_name => 'MUSHROOM_KINGDOM_SID', appname => 'MushroomKingdom', email => 'god at mushroom.mu', password => 'melange');
+        my $j = Net::Jifty->new(
+            site        => 'http://mushroom.mu/',
+            cookie_name => 'MUSHROOM_KINGDOM_SID',
+            email       => 'god at mushroom.mu',
+            password    => 'melange',
+        );
 
         # the story begins
         $j->create(Hero => name => 'Mario', job => 'Plumber');
 
-        # find the hero whose job is Plumber and change his name to Luigi and color
-        # to green
-        $j->update(Hero => job => 'Plumber', name => 'Luigi', color => 'Green');
+        # find the hero whose job is Plumber and change his name to Luigi
+        # and color to green
+        $j->update(Hero => job => 'Plumber',
+            name  => 'Luigi',
+            color => 'Green',
+        );
 
         # win!
         $j->delete(Enemy => name => 'Bowser');
@@ -103,6 +111,17 @@
     optional "OUTCOLUMN" defines the output column, in case you don't want
     the entire records.
 
+  validate_action_args action => args
+    Validates the given action, to check to make sure that all mandatory
+    arguments are given and that no unknown arguments are given.
+
+    You may give action as a string, which will be interpreted as the action
+    name; or as an array reference for CRUD - the first element will be the
+    action (create, update, or delete) and the second element will be the
+    model name.
+
+    This will throw an error or if validation succeeds, will return 1.
+
   get_sid
     Retrieves the sid from the LWP::UserAgent object.
 
@@ -155,6 +174,16 @@
     This will ask the user for her email and password. It may do so
     repeatedly until login is successful.
 
+  filter_config [DIRECTORY] -> HASH
+    Looks at the (given or) current directory, and all parent directories,
+    for files named "$self->filter_file". Each file is YAML. The contents of
+    the files will be merged (such that child settings override parent
+    settings), and the merged hash will be returned.
+
+    What this is used for is up to the application or subclasses. Net::Jifty
+    doesn't look at this at all, but it may in the future (such as for email
+    and password).
+
   email_of ID
     Retrieve user "ID"'s email address.
 

Modified: Net-Jifty/inc/Module/Install.pm
==============================================================================
--- Net-Jifty/inc/Module/Install.pm	(original)
+++ Net-Jifty/inc/Module/Install.pm	Mon Mar 17 13:21:05 2008
@@ -28,7 +28,7 @@
     # This is not enforced yet, but will be some time in the next few
     # releases once we can make sure it won't clash with custom
     # Module::Install extensions.
-    $VERSION = '0.67';
+    $VERSION = '0.68';
 }
 
 # Whether or not inc::Module::Install is actually loaded, the

Modified: Net-Jifty/inc/Module/Install/AutoInstall.pm
==============================================================================
--- Net-Jifty/inc/Module/Install/AutoInstall.pm	(original)
+++ Net-Jifty/inc/Module/Install/AutoInstall.pm	Mon Mar 17 13:21:05 2008
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION $ISCORE @ISA};
 BEGIN {
-	$VERSION = '0.67';
+	$VERSION = '0.68';
 	$ISCORE  = 1;
 	@ISA     = qw{Module::Install::Base};
 }

Modified: Net-Jifty/inc/Module/Install/Base.pm
==============================================================================
--- Net-Jifty/inc/Module/Install/Base.pm	(original)
+++ Net-Jifty/inc/Module/Install/Base.pm	Mon Mar 17 13:21:05 2008
@@ -1,7 +1,7 @@
 #line 1
 package Module::Install::Base;
 
-$VERSION = '0.67';
+$VERSION = '0.68';
 
 # Suspend handler for "redefined" warnings
 BEGIN {

Modified: Net-Jifty/inc/Module/Install/Can.pm
==============================================================================
--- Net-Jifty/inc/Module/Install/Can.pm	(original)
+++ Net-Jifty/inc/Module/Install/Can.pm	Mon Mar 17 13:21:05 2008
@@ -11,7 +11,7 @@
 
 use vars qw{$VERSION $ISCORE @ISA};
 BEGIN {
-	$VERSION = '0.67';
+	$VERSION = '0.68';
 	$ISCORE  = 1;
 	@ISA     = qw{Module::Install::Base};
 }

Modified: Net-Jifty/inc/Module/Install/Fetch.pm
==============================================================================
--- Net-Jifty/inc/Module/Install/Fetch.pm	(original)
+++ Net-Jifty/inc/Module/Install/Fetch.pm	Mon Mar 17 13:21:05 2008
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION $ISCORE @ISA};
 BEGIN {
-	$VERSION = '0.67';
+	$VERSION = '0.68';
 	$ISCORE  = 1;
 	@ISA     = qw{Module::Install::Base};
 }

Modified: Net-Jifty/inc/Module/Install/Include.pm
==============================================================================
--- Net-Jifty/inc/Module/Install/Include.pm	(original)
+++ Net-Jifty/inc/Module/Install/Include.pm	Mon Mar 17 13:21:05 2008
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION $ISCORE @ISA};
 BEGIN {
-	$VERSION = '0.67';
+	$VERSION = '0.68';
 	$ISCORE  = 1;
 	@ISA     = qw{Module::Install::Base};
 }

Modified: Net-Jifty/inc/Module/Install/Makefile.pm
==============================================================================
--- Net-Jifty/inc/Module/Install/Makefile.pm	(original)
+++ Net-Jifty/inc/Module/Install/Makefile.pm	Mon Mar 17 13:21:05 2008
@@ -7,7 +7,7 @@
 
 use vars qw{$VERSION $ISCORE @ISA};
 BEGIN {
-	$VERSION = '0.67';
+	$VERSION = '0.68';
 	$ISCORE  = 1;
 	@ISA     = qw{Module::Install::Base};
 }

Modified: Net-Jifty/inc/Module/Install/Metadata.pm
==============================================================================
--- Net-Jifty/inc/Module/Install/Metadata.pm	(original)
+++ Net-Jifty/inc/Module/Install/Metadata.pm	Mon Mar 17 13:21:05 2008
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION $ISCORE @ISA};
 BEGIN {
-	$VERSION = '0.67';
+	$VERSION = '0.68';
 	$ISCORE  = 1;
 	@ISA     = qw{Module::Install::Base};
 }

Modified: Net-Jifty/inc/Module/Install/Win32.pm
==============================================================================
--- Net-Jifty/inc/Module/Install/Win32.pm	(original)
+++ Net-Jifty/inc/Module/Install/Win32.pm	Mon Mar 17 13:21:05 2008
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION $ISCORE @ISA};
 BEGIN {
-	$VERSION = '0.67';
+	$VERSION = '0.68';
 	$ISCORE  = 1;
 	@ISA     = qw{Module::Install::Base};
 }

Modified: Net-Jifty/inc/Module/Install/WriteAll.pm
==============================================================================
--- Net-Jifty/inc/Module/Install/WriteAll.pm	(original)
+++ Net-Jifty/inc/Module/Install/WriteAll.pm	Mon Mar 17 13:21:05 2008
@@ -6,7 +6,7 @@
 
 use vars qw{$VERSION $ISCORE @ISA};
 BEGIN {
-	$VERSION = '0.67';
+	$VERSION = '0.68';
 	$ISCORE  = 1;
 	@ISA     = qw{Module::Install::Base};
 }

Modified: Net-Jifty/lib/Net/Jifty.pm
==============================================================================
--- Net-Jifty/lib/Net/Jifty.pm	(original)
+++ Net-Jifty/lib/Net/Jifty.pm	Mon Mar 17 13:21:05 2008
@@ -24,7 +24,7 @@
 
 =head1 VERSION
 
-Version 0.06 released ???
+Version 0.06 released 17 Mar 07
 
 =cut
 


More information about the Jifty-commit mailing list