Commit Graph

2422 Commits

Author SHA1 Message Date
Anatoliy Chakkaev 2f048e79c0 Return instance of object when create 2013-03-30 21:06:09 +04:00
Anatoliy Chakkaev 13ac3cf088 Merge pull request #246 from anatoliychakkaev/master
Test amends for redis-hq
2013-03-29 01:55:10 -07:00
Anatoliy Chakkaev c1e3e78976 Turn off ignoring tests 2013-03-29 12:54:04 +04:00
Anatoliy Chakkaev 839791de2f Upd tests
- skipping
- hook up redis-hq
- some stuff should be moved to advanced-querying tests
2013-03-29 11:43:04 +04:00
Anatoliy Chakkaev e16219eb61 Merge pull request #245 from anatoliychakkaev/master
Hooks, validations, lifecycle
2013-03-28 04:30:58 -07:00
Anatoliy Chakkaev 5540750626 Validation amends
- rename event
- pass data to hooks
- always call hooks (even when no validations set up)
2013-03-28 15:29:11 +04:00
Anatoliy Chakkaev 7707b236ff Test hooks and object lifecycle as per #242 2013-03-28 15:27:50 +04:00
Anatoliy Chakkaev 589887715c Tests for data manipulation 2013-03-28 15:27:27 +04:00
Anatoliy Chakkaev 1f29064b3d Rewrite save and create for correct hooks order
Validation should be called first, and then all other actions
to allow modify data after validation (for example hash
password after validating length.

Issue #242
2013-03-28 15:26:51 +04:00
Anatoliy Chakkaev 48d78b71f6 Rename validation hooks
Name should be "beforeValidate" and "afterValidate"
to be consistent with other hook hames. This change doesnt break
backward compatibility
2013-03-28 15:23:31 +04:00
Anatoliy Chakkaev e441f38c4f Merge pull request #243 from mansuleman/master
Mostly Syntax errors for hooks
2013-03-27 15:55:56 -07:00
Mansur S bc18e435ae Update hooks.md
mostly syntax stuff
2013-03-28 02:46:37 +04:00
Mansur S 2cfa6f6c4f Merge pull request #1 from 1602/master
беру себе
2013-03-27 15:12:09 -07:00
Anatoliy Chakkaev b4813360c3 Upd node version for travis 2013-03-27 22:06:41 +04:00
Anatoliy Chakkaev e5f541c0b8 Uncomment tests 2013-03-27 22:00:50 +04:00
Anatoliy Chakkaev 2d6cc9aaee Mongodb tolerance 2013-03-27 21:53:07 +04:00
Anatoliy Chakkaev 928a366860 Enable growl 2013-03-27 21:12:29 +04:00
Anatoliy Chakkaev 6a9a1468fb Merge branch 'master' of github1602:1602/jugglingdb 2013-03-27 19:28:19 +04:00
Anatoliy Chakkaev df8cafce77 0.2.0-25 2013-03-27 18:57:20 +04:00
Anatoliy Chakkaev b04a250b63 Update attribute additional test 2013-03-27 18:53:46 +04:00
Anatoliy Chakkaev e75029ebbf Fix memory adapter and test 2013-03-27 17:10:13 +04:00
Anatoliy Chakkaev 121b13511d Merge pull request #240 from anatoliychakkaev/master
Docs and all pieces matters
2013-03-26 17:54:07 -07:00
Anatoliy Chakkaev b6fb04ffe1 Removed include test from common 2013-03-27 04:51:31 +04:00
Anatoliy Chakkaev cfe31d41ec Test destroy 2013-03-27 04:51:00 +04:00
Anatoliy Chakkaev ffdfac30e1 Migration-friendly tests 2013-03-27 04:50:34 +04:00
Anatoliy Chakkaev 2749a1f7e0 Fixes in belongsTo relation definition syntax 2013-03-27 04:48:26 +04:00
Anatoliy Chakkaev d3752eab4c Docs: hooks, footer fix 2013-03-27 04:47:34 +04:00
Anatoliy Chakkaev 7772c32c80 Include test 2013-03-27 04:46:59 +04:00
Anatoliy Chakkaev fa0029f6ee Merge pull request #239 from mansuleman/master
Syntax + contribution
2013-03-26 17:22:08 -07:00
Mansur S ac4c027515 Update jugglingdb.md
- syntax edits
- contribution added
2013-03-27 04:18:49 +04:00
Anatoliy Chakkaev cba87ce339 Query testing: findOne 2013-03-27 00:50:13 +04:00
Anatoliy Chakkaev 0d5f4a9aad Added test case for #238: password hashing before save 2013-03-27 00:49:02 +04:00
Anatoliy Chakkaev de28603460 Added short syntax for belongsTo 2013-03-27 00:48:14 +04:00
Anatoliy Chakkaev 895c2d6bf7 Docs for hooks and model 2013-03-26 23:34:20 +04:00
Anatoliy Chakkaev 5e24bd960f Beautify things 2013-03-26 23:34:01 +04:00
Anatoliy Chakkaev 58e2349575 Fix memory adapter to support lowercase desc order 2013-03-26 23:33:40 +04:00
Anatoliy Chakkaev 49be07545a Rewriting tests 2013-03-26 23:33:11 +04:00
Anatoliy Chakkaev d5d07d8806 Make tests importable 2013-03-26 04:41:00 +04:00
Anatoliy Chakkaev 6981824d28 Docs amends 2013-03-26 04:40:16 +04:00
Anatoliy Chakkaev f76b56d2fe Another way to define belongsTo 2013-03-26 04:39:47 +04:00
Anatoliy Chakkaev ea9e6561af 0.2.0-24 2013-03-25 15:42:46 +04:00
Anatoliy Chakkaev a613537aed Added man pages to package 2013-03-25 15:42:39 +04:00
Anatoliy Chakkaev 8d53ed5e82 Docs for models 2013-03-25 15:04:07 +04:00
Anatoliy Chakkaev ef11311e42 Added footer 2013-03-25 15:03:50 +04:00
Anatoliy Chakkaev f35160d5e5 Upd readme and changelog 2013-03-25 02:50:57 +04:00
Anatoliy Chakkaev 567de88a10 Fix test 2013-03-25 02:29:13 +04:00
Anatoliy Chakkaev e91b0d6c49 Switch to mocha testing in travis 2013-03-25 02:25:43 +04:00
Anatoliy Chakkaev 716318bedd Rewrite validations in mocha 2013-03-25 02:21:18 +04:00
Anatoliy Chakkaev 6a9f460b18 Merge branch 'master' of github1602:1602/jugglingdb 2013-03-25 01:35:31 +04:00
Anatoliy Chakkaev 16c826bd4f Rename files 2013-03-25 01:35:08 +04:00