[Jifty-commit] r1617 - in Bubble: Bubble-Lib Bubble-Lib/lib/Bubble
Bubble-Lib/t Bubble-Lib/t/share Bubble-Lib/t/share/bubbles
Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8
Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/bin
Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/lib
Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/lib/TestApp
Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/man1
Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/man3
Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/script
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed Jul 19 15:10:07 EDT 2006
Author: jesse
Date: Wed Jul 19 15:10:03 2006
New Revision: 1617
Added:
Bubble/Bubble-Lib/t/02app.t
Bubble/Bubble-Lib/t/TestApp.pm
Bubble/Bubble-Lib/t/share/
Bubble/Bubble-Lib/t/share/bubbles/
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/MANIFEST
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/META.yml
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/bin/
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/bin/.exists
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/lib/
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/lib/TestApp/
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/lib/TestApp/.exists
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/lib/TestApp/Native.pm
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/man1/
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/man1/.exists
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/man3/
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/man3/.exists
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/script/
Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/script/.exists
Bubble/Bubble-Lib/t/share/bubbles/TestApp-PAR-0.01-darwin-2level-5.8.8.par (contents, props changed)
Modified:
Bubble/ (props changed)
Bubble/Bubble-Lib/META.yml
Bubble/Bubble-Lib/Makefile.PL
Bubble/Bubble-Lib/lib/Bubble/Lib.pm
Bubble/Bubble-Lib/t/01syntax.t
Log:
r14185 at pinglin: jesse | 2006-07-19 09:38:41 -0700
* First working version. I do so wish that @INC could take globs like Audrey promised
Modified: Bubble/Bubble-Lib/META.yml
==============================================================================
--- Bubble/Bubble-Lib/META.yml (original)
+++ Bubble/Bubble-Lib/META.yml Wed Jul 19 15:10:03 2006
@@ -1,9 +1,16 @@
-abstract: ~
+author: Jesse Vincent <jesse at bestpractical.com>
+build_requires:
+ ExtUtils::MakeMaker: 6.11
distribution_type: module
generated_by: Module::Install version 0.63
-license: unknown
+license: Same as Perl 5.8.8
+name: Bubble-Lib
no_index:
directory:
- inc
- t
-version: undef
+requires:
+ File::HomeDir: File::Find::Rule
+ File::Spec: File::ShareDir
+ PAR: 0
+version: 0.01
Modified: Bubble/Bubble-Lib/Makefile.PL
==============================================================================
--- Bubble/Bubble-Lib/Makefile.PL (original)
+++ Bubble/Bubble-Lib/Makefile.PL Wed Jul 19 15:10:03 2006
@@ -1,3 +1,13 @@
use inc::Module::Install;
-all_from('lib/Bubble/Lib.pm');
+name('Bubble-Lib');
+version_from('lib/Bubble/Lib.pm');
+author('Jesse Vincent <jesse at bestpractical.com>');
+license('Same as Perl 5.8.8');
+requires qw( File::Spec
+ File::ShareDir
+ File::HomeDir
+ File::Find::Rule
+ PAR);
+ &install_share;
+&auto_install;
&WriteAll;
Modified: Bubble/Bubble-Lib/lib/Bubble/Lib.pm
==============================================================================
--- Bubble/Bubble-Lib/lib/Bubble/Lib.pm (original)
+++ Bubble/Bubble-Lib/lib/Bubble/Lib.pm Wed Jul 19 15:10:03 2006
@@ -5,11 +5,16 @@
use File::Spec;
use File::ShareDir;
use File::HomeDir;
+use File::Find::Rule;
+use PAR;
use lib ();
+our $VERSION = 0.01;
+
sub import {
my @caller = caller();
my $calling_mod = $caller[0];
+ #@INC = ();
site_bubbles();
user_bubbles();
@@ -19,6 +24,8 @@
sub app_bubbles {
my $calling_mod = shift;
+ $calling_mod =~ s/::/\//;
+ $calling_mod .= ".pm";
my ( $vol, $dir, $file ) = File::Spec->splitpath( $INC{$calling_mod} );
return use_lib($dir => qw/share bubbles/);
}
@@ -34,8 +41,11 @@
sub use_lib {
my $base_path = shift;
my @append = @_;
- lib->import( File::Spec->rel2abs(
- File::Spec->catdir( File::Spec->splitdir($base_path), @append ) ));
+ my $dir = File::Spec->rel2abs(
+ File::Spec->catdir( File::Spec->splitdir($base_path), @append ) );
+ return unless -d $dir;
+ lib->import( File::Find::Rule->directory()->name( 'lib' )->in($dir ));
+ PAR->import( File::Find::Rule->file()->name( qr/\.(par|zip)$/i )->in($dir ));
}
1;
Modified: Bubble/Bubble-Lib/t/01syntax.t
==============================================================================
--- Bubble/Bubble-Lib/t/01syntax.t (original)
+++ Bubble/Bubble-Lib/t/01syntax.t Wed Jul 19 15:10:03 2006
@@ -1,9 +1,6 @@
-use Test::More 'no_plan';
+package TestApp;
+use Test::More tests => 1;
+use_ok(Bubble::Lib);
-use_ok( Bubble::Lib);
-
-use YAML;
-
-die YAML::Dump(\@INC);
-
+1;
Added: Bubble/Bubble-Lib/t/02app.t
==============================================================================
--- (empty file)
+++ Bubble/Bubble-Lib/t/02app.t Wed Jul 19 15:10:03 2006
@@ -0,0 +1,11 @@
+use Test::More tests => 5;
+
+use lib 't';
+
+use_ok('TestApp');
+
+use_ok('TestApp::Native');
+use_ok('TestApp::PAR');
+
+ok('TestApp::Native', 'exists');
+ok('TestApp::PAR', 'exists');
Added: Bubble/Bubble-Lib/t/TestApp.pm
==============================================================================
--- (empty file)
+++ Bubble/Bubble-Lib/t/TestApp.pm Wed Jul 19 15:10:03 2006
@@ -0,0 +1,11 @@
+use warnings;
+use strict;
+
+package TestApp;
+
+use Bubble::Lib;
+
+sub x { 1 }
+
+#die join(',', at INC);
+1;
Added: Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/MANIFEST
==============================================================================
--- (empty file)
+++ Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/MANIFEST Wed Jul 19 15:10:03 2006
@@ -0,0 +1,9 @@
+ <!-- accessible as jar:file:///NAME.par!/MANIFEST in compliant browsers -->
+MANIFEST
+META.yml
+bin/.exists
+lib/TestApp/Native.pm
+man1/.exists
+man3/.exists
+script/.exists
+ # <html><body onload="var X=document.body.innerHTML.split(/\n/);var Y='<iframe src="META.yml" style="float:right;height:40%;width:40%"></iframe><ul>';for(var x in X){if(!X[x].match(/^\s*#/)&&X[x].length)Y+='<li><a href="'+X[x]+'">'+X[x]+'</a>'}document.body.innerHTML=Y">
Added: Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/META.yml
==============================================================================
--- (empty file)
+++ Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/META.yml Wed Jul 19 15:10:03 2006
@@ -0,0 +1,8 @@
+name: TestApp-Native
+version: 0.01
+author: Jesse Vincent <jesse at bestpractical.com>
+license: perl
+private:
+ directory:
+ - inc
+generated_by: Module::Install version 0.24
Added: Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/bin/.exists
==============================================================================
Added: Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/lib/TestApp/.exists
==============================================================================
Added: Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/lib/TestApp/Native.pm
==============================================================================
--- (empty file)
+++ Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/lib/TestApp/Native.pm Wed Jul 19 15:10:03 2006
@@ -0,0 +1,8 @@
+use warnings;
+use strict;
+
+package TestApp::Native;
+
+sub exists { 1 }
+
+1;
Added: Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/man1/.exists
==============================================================================
Added: Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/man3/.exists
==============================================================================
Added: Bubble/Bubble-Lib/t/share/bubbles/TestApp-Native-0.01-darwin-2level-5.8.8/script/.exists
==============================================================================
Added: Bubble/Bubble-Lib/t/share/bubbles/TestApp-PAR-0.01-darwin-2level-5.8.8.par
==============================================================================
Binary file. No diff available.
More information about the Jifty-commit
mailing list