--- trunk/lib/Frey.pm 2008/07/05 15:08:51 52 +++ trunk/lib/Frey.pm 2008/10/31 16:24:59 209 @@ -1,10 +1,12 @@ package Frey; use Moose; +our $VERSION = "0.16"; + has 'debug' => ( is => 'rw', isa => 'Bool', - default => 1, + default => 0, ); =head1 NAME @@ -18,34 +20,19 @@ The Norse god who dispenses peace, good weather, prosperity, and bountiful crops; the brother of Freya. -=cut +Basically you write L classes which become deirectly callable from +the web using REST API -use Data::Dump qw/dump/; -use File::Find; +=head1 INTROSPECTION -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!/!,$_); - if ( $#a != 2 ) { - warn "SKIP $_ [$#a]" if $self->debug; - return; - } - warn ">> $_ ",dump( @a ) if $self->debug; - my $package = "$a[1]::$a[2]"; - warn "## $package\n"; - push @$classes, { $package => "$_.pm" }; - } }, 'lib'); - warn "## classes = ",dump( $classes ) if $self->debug; - $classes; - }, - lazy => 1, -); +Secondary goal is to have introspection. + +=head2 Database + +For database objects we support L and when your objects are created +C<< with 'Frey::Collection' >> they will have basic CRUD functionality +implemented by L. + +=cut 1;