Changeset 70 in bookmarks for trunk


Ignore:
Timestamp:
02/13/14 15:19:43 (11 years ago)
Author:
peter
Message:
  • moved the *.pm files into the lib directory
  • changed BookmarksList to Bookmarks::List
  • changed BookmarkController to Bookmarks::Controller
  • the start script sets PERL5LIB before running starman
Location:
trunk
Files:
2 added
2 edited
4 moved

Legend:

Unmodified
Added
Removed
  • trunk/app.psgi

    r65 r70  
    77use Router::Resource; 
    88 
    9 use BookmarkController; 
     9use Bookmarks::Controller; 
    1010 
    1111#TODO: allow individual options to be set via environment vars, too 
     
    1919    my $req = Plack::Request->new($env); 
    2020 
    21     return BookmarkController->new({ 
     21    return Bookmarks::Controller->new({ 
    2222        request => $req, 
    2323        dbname  => $config->{dbname}, 
  • trunk/lib/Bookmarks.pm

    r68 r70  
    55use URI; 
    66use Bookmark; 
    7 use BookmarksList; 
     7use Bookmarks::List; 
    88 
    99has dbh      => ( is => 'rw' ); 
     
    117117        }); 
    118118    } 
    119     return BookmarksList->new({ 
     119    return Bookmarks::List->new({ 
    120120        bookmarks => $self, 
    121121        tags      => $tags, 
  • trunk/lib/Bookmarks/Controller.pm

    r68 r70  
    1 package BookmarkController; 
     1package Bookmarks::Controller; 
     2 
    23use Moose; 
    34 
    45use Encode; 
    5 use HTTP::Date qw{time2isoz time2iso time2str str2time}; 
     6use HTTP::Date qw{time2str str2time}; 
    67use JSON; 
    78use Bookmarks; 
  • trunk/lib/Bookmarks/List.pm

    r69 r70  
    1 package BookmarksList; 
     1package Bookmarks::List; 
    22 
    33use Moose; 
  • trunk/start

    r65 r70  
    11#!/bin/sh 
    22 
     3export PERL5LIB=./lib 
    34export CONFIG_FILE=${1:-"conf.yml"} 
    45 
Note: See TracChangeset for help on using the changeset viewer.