Skip to content
Commits on Jan 4, 2013
  1. remove pool configuration

    committed Jan 4, 2013
Commits on Dec 30, 2012
  1. Make db connection a singleton

    committed Dec 30, 2012
  2. Export withSqlite

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

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

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

    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

    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

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

    committed Dec 23, 2012
Commits on Dec 11, 2012
  1. Update README.md

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

    committed Dec 10, 2012
  2. Bump bytestring version

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

    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

    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

    committed Nov 29, 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

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

    committed Nov 27, 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

    committed Nov 27, 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
    directory.
Commits on Nov 25, 2012
  1. Fix build break w.r.t Snap's new password reset

    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

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

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

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

    committed Oct 4, 2012
Something went wrong with that request. Please try again.