summaryrefslogtreecommitdiff
path: root/lib/tapicero
AgeCommit message (Collapse)Author
2013-12-19add design docs on db creation, use PathnameAzul
Pathname makes dealing with files easier than String. Tapicero will look for design documents in design directory in the tapicero path for now.
2013-12-19Version 0.2.0: use CouchRest::ChangesAzul
This also changes the format of the config file. Please make sure to adjust it.
2013-11-28rescue from 404 when destroying dbAzul
Also logging per user db creation and destruction if they happen.
2013-11-28make sequence accept all kinds of jsonAzul
bigcouch uses arrays for sequence: http://mail-archives.apache.org/mod_mbox/couchdb-user/201301.mbox/%3CCABvT1DEGDCJyvEuFsNJZbXi_NJwJna8NHDnQvpr2h532s0V18g@mail.gmail.com%3E So we should not expect them to be integers. Still have to catch the empty file situation in a meaningful way though.
2013-11-27ignore design document changes - do not trigger callbacks thenAzul
tapicero should create per user databases when a user is created and destroy them when that user is destroyed. However it should not attempt the same if design docs are created or destroyed.
2013-11-18use our logger - not just putsAzul
2013-11-18delete user db's on user deletion.Azul
2013-11-18fix issues with storing and retrieving the sequenceAzul
.to_i makes retrieving the sequence more robust - in particular if the file content was not meaningful. store_seq should also be called if it was a destroy action.
2013-11-18add a hook for reacting on user deletion.Azul
2013-09-25log to file or syslog instead of STDOUTAzul
2013-09-16refactor - separate reading the last sequence from initializeAzul
2013-09-12use CouchRest::Database#changes, store and retrieve seqAzul
This commit bundles a few different changes: * we now use the CouchRest::Database#changes stream instead of our own * we store and read the last sequence number so on a restart we can start where we left * we now have a UserDatabase class rather than the CouchDatabaseCreator. It also knows about it's name and we create an instance of it per database we want to create. It's also more flexible when the databases already exist.
2013-09-11use password and username from the config fileAzul
2013-09-11write _security to fresh couchAzul
2013-09-11create couch dbs as users are createdAzul
2013-09-10use our own JsonStream and a created callback in CouchChangesAzul
2013-09-10bringing over couch_changes from leap_ca including testsAzul
2013-09-10copying over skeleton from leap_ca which worked similarlyAzul