Commits on Jan 4, 2013
  1. remove pool configuration

    nurpax committed Jan 4, 2013
Commits on Dec 30, 2012
  1. Export withSqlite

    nurpax committed Dec 30, 2012
Commits on Dec 26, 2012
  1. Add example project to CI

    nurpax committed Dec 26, 2012
  2. Add example project to CI

    nurpax committed Dec 26, 2012
  3. Move tests into the main snaplet cabal file

    nurpax committed Dec 26, 2012
    This will enable travis to automatically build & run tests on pushing
    to github.
Commits on Dec 23, 2012
  1. Use the errors package & either transformer

    nurpax committed Dec 23, 2012
    More complicated error handling cases will benefit from doing this.
    This may not pay off in a small example like withLoggedInUser though.
  2. Version bump

    nurpax committed Dec 23, 2012
  3. Bump direct-sqlite version

    nurpax committed Dec 23, 2012
Commits on Dec 11, 2012
  1. Update

    nurpax committed Dec 11, 2012
Commits on Dec 10, 2012
  1. Fix library dependencies

    nurpax committed Dec 10, 2012
  2. Bump bytestring version

    nurpax committed Dec 10, 2012
Commits on Dec 8, 2012
  1. Merge branch 'snap-0.10'

    nurpax committed Dec 8, 2012
    Preparing to get rid of the snap-0.10 branch
Commits on Nov 29, 2012
  1. Add schema versioning & upgrade framework

    nurpax committed Nov 29, 2012
    Add logic to figure out at what schema version the auth database is.
    If no auth tables have been created, create it and run it through
    schema migrations.
    This moves away from the old code of creating the snap_auth_user table
    based on the AuthTable.  This old approach wasn't very schema
    versioning friendly, so switch to explicit SQL instead.
    Add support for the new snap-0.10 password reset fields in the schema.
Commits on Nov 28, 2012
  1. Add some basic db init tests

    nurpax committed Nov 28, 2012
    This is all being done in preparation for later support for migrating
    the snap_auth_user from the initial version to later schema versions.
Commits on Nov 27, 2012
  1. Remove unnecessary imports

    nurpax committed Nov 27, 2012
Commits on Nov 26, 2012
  1. Don't start a server for testing snaplet-sqlite-simple handlers

    nurpax committed Nov 26, 2012
    No need to start a web server just to test simple db init / query
    functions.  So delete server init & start up code.
  2. Fix current working dir bug in snaplet initialization

    nurpax committed Nov 26, 2012
    The snap server thread was started correctly in its own sandbox temp
    directory.  However, tests were not running in sandbox dir but in
    where ever the test suite was started from.  This is a problem because
    tests also call into appInit like
        assertGoodUser = do
          let hdl = with auth $ createUser "foo" "foo"
          res <- evalHandler (ST.get "" M.empty) hdl appInit
          either (assertFailure . show) (assertBool failMsg . isRight) res
    which means tests get their snaplets initialized in the wrong
Commits on Nov 25, 2012
  1. Fix build break w.r.t Snap's new password reset

    nurpax committed Nov 25, 2012
    Only fix enough to compile.  Reset password functionality will not
    work with this commit.  Will be fixed in later commits, as soon as I
    have some unit tests ready for this code.
Commits on Nov 20, 2012
  1. lens package version bump

    nurpax committed Nov 20, 2012
    Align versions with snap-0.10
Commits on Nov 19, 2012
  1. Switch to new lens

    nurpax committed Nov 19, 2012
Commits on Nov 12, 2012
Commits on Oct 4, 2012
  1. Clean up code, comments and templates

    nurpax committed Oct 4, 2012
    + Apply some hlint fixes while at it
  2. Update docs

    nurpax committed Oct 4, 2012