--- trunk/lib/Frey.pm 2008/07/08 12:18:33 58 +++ trunk/lib/Frey.pm 2008/08/31 18:02:50 180 @@ -1,6 +1,8 @@ package Frey; use Moose; +our $VERSION = "0.15"; + has 'debug' => ( is => 'rw', isa => 'Bool', @@ -18,30 +20,9 @@ The Norse god who dispenses peace, good weather, prosperity, and bountiful crops; the brother of Freya. -=cut - -use Data::Dump qw/dump/; -use File::Find; +Basically you write L classes which become deirectly callable from +the web using REST API -has 'classes' => ( - is => 'ro', -# isa => 'HashRef[Str]', - default => sub { - my $self = shift; - # FIXME there must be better way to do this in Moose style - my $classes; - finddepth({ no_chdir => 1, wanted => sub { - return unless s/\.pm$//; - my @a = split(m!/!,$_); - warn ">> $_ ",dump( @a ) if $self->debug; - my $package = join('::', @a[ 1 .. $#a ]); - warn "## $package\n"; - push @$classes, { $package => "$_.pm" }; - } }, 'lib'); - warn "## classes = ",dump( $classes ) if $self->debug; - $classes; - }, - lazy => 1, -); +=cut 1;