Commit Graph

157 Commits

Author SHA1 Message Date
Tyler Renelle 79fd3f0689 New REST API for scoring tasks 2012-10-12 11:54:00 -04:00
Tyler Renelle 2e2d09a7d1 better routes delegation in /:uid? 2012-10-12 11:53:58 -04:00
Tyler Renelle b672a07632 ssl round 4 2012-10-12 08:48:32 -04:00
Tyler Renelle 8e265a1e6c ugh. no ssl 2012-10-12 08:48:31 -04:00
Tyler Renelle c596e897ff round 3 2012-10-12 08:48:30 -04:00
Tyler Renelle f11943349a force-ssl round 2 2012-10-12 08:48:29 -04:00
Tyler Renelle 31086df654 bug fix 2012-10-12 08:48:28 -04:00
Tyler Renelle a37fba5524 try force-ssl again 2012-10-12 08:48:26 -04:00
Tyler Renelle 9d844a7104 remove forced-ssl for now 2012-10-12 08:48:16 -04:00
Tyler Renelle 6a42b681e3 a bunch of small fixes 2012-10-12 07:11:06 -04:00
Tyler Renelle 17914586f4 Force ssl (just a redirect, depends on x-forwarded-proto via heroku's ngnix 2012-10-11 16:22:19 -04:00
Tyler Renelle cb42e88f13 cleaner date format in graphs 2012-10-11 12:52:40 -04:00
Tyler Renelle eb9e385eb1 cleaning up the modificationsLookup function 2012-10-11 12:41:31 -04:00
Tyler Renelle 476fb63a0d tests passing for basic scoring 2012-10-11 11:41:47 -04:00
Tyler Renelle bad2f6f5b3 Revert "Just pass in task object to taskClasses view helper", this was
breaking deleting tasks - revisit later

This reverts commit d04140977f.
2012-10-11 11:15:39 -04:00
Tyler Renelle d04140977f Just pass in task object to taskClasses view helper 2012-09-29 18:03:47 -04:00
Tyler Renelle 38e1a95140 some fixes to test/user.mocha based on scoring lookup function 2012-09-26 21:36:28 -04:00
Tyler Renelle 18d8e93e55 remove rerollsRemaining, export delta function 2012-09-26 00:19:19 -04:00
Tyler Renelle 80ac213fda export some scoring functions for use in testing 2012-09-25 23:51:15 -04:00
Tyler Renelle 2e08217799 aha! my first bug caught by mocha 2012-09-25 23:02:54 -04:00
Tyler Renelle 27c617741e scoring modifiers based on lvl-1, not lvl (lvl 1 should not modify score) 2012-09-25 22:20:12 -04:00
Tyler Renelle 6ec80c945c use lodash.clone instead of node.extend 2012-09-24 23:51:56 -04:00
Tyler Renelle b63ac10657 shared helpers.dayMapping 2012-09-24 23:12:13 -04:00
Tyler Renelle f78cd64218 bug fix on missing task 2012-09-24 21:29:53 -04:00
Tyler Renelle 9d165a0ff7 async + user aggregate hp loss 2012-09-24 21:23:29 -04:00
Tyler Renelle ce901f7b93 back to syncronous calls on the client 2012-09-24 20:10:49 -04:00
Tyler Renelle 893b0bd383 try running cron on the server instead 2012-09-24 19:40:18 -04:00
Tyler Renelle 1087f4abc4 some cleanup 2012-09-24 18:47:08 -04:00
Tyler Renelle 7a894ceefd back to syncronous _.each on cron - slower, but async doesn't seem to save items to database 2012-09-24 17:46:46 -04:00
Tyler Renelle 0f9b70daf2 fix moment() bugs (word from the wise, moment() functions modify the
original object)
2012-09-24 17:26:25 -04:00
Tyler Renelle 33f8c43e93 more bug-fixing on async cron, using lodash instead of underscore 2012-09-24 16:45:37 -04:00
Tyler Renelle 13a7019413 setup for async cron 2012-09-24 16:19:27 -04:00
Tyler Renelle baf689a8d1 scoring function refactoring & testing 2012-09-24 14:23:11 -04:00
Tyler Renelle 6b4ad78ec5 misplaced bracket 2012-09-24 11:26:44 -04:00
Tyler Renelle 63a9eac2d0 only run notitifications in the browser 2012-09-24 09:56:42 -04:00
Tyler Renelle f21a365a13 use moment().diff instead of custom days between function 2012-09-24 09:56:38 -04:00
Tyler Renelle d929905c48 use model events to handle stats notifications. not perfect, need to
fix handling of "undo exp/gp" operation
2012-09-24 09:56:34 -04:00
Tyler Renelle 0ba7ccd370 move scoring functions around
Conflicts:

	lib/app/index.js
	src/app/index.coffee
2012-09-24 09:56:25 -04:00
Tyler Renelle 1c0d8726c3 setup modifier using constant 2012-09-24 09:52:52 -04:00
Tyler Renelle 1a68f00fb2 moving some schema stuff around 2012-09-24 09:52:48 -04:00
Tyler Renelle cffc3aef75 minor tweaks
Conflicts:

	lib/app/index.js
2012-09-24 09:52:22 -04:00
Tyler Renelle 8480ef3564 some bugs which are a result of user not being tested as already dead.
using scoring.setUser() so we don't have to pass user all over the
place, there's probably a better approach -- revisit
2012-09-20 10:57:32 -04:00
Tyler Renelle 5f771ef830 rename quarters to tokens 2012-09-19 09:50:39 -04:00
Tyler Renelle be9d419313 Quarters system, generalized modal dialogs, bug fixes 2012-09-18 21:37:49 -04:00
Tyler Renelle 9811117acd Fix bug of incomplete TODOs not gaining value on cron 2012-09-18 01:23:10 -04:00
Tyler Renelle 393033b1c2 bug fix: needed to kill user before checking their exp - tnl() >= 0
when lvl == 0

Conflicts:

	test/test.coffee
2012-09-18 01:23:03 -04:00
Tyler Renelle 38ebce3b56 remove some unecessary files 2012-09-18 01:22:35 -04:00
Tyler Renelle bde52a01a9 Pull in changes from private branch, including many bug fixes and -
drumrole - functioning facebook auth!!
2012-09-15 15:06:51 -04:00
Tyler Renelle 10c5fecb75 Merge branch 'master' of https://github.com/lefnire/habitrpg 2012-09-07 19:35:24 -04:00
Tyler Renelle a0611297fa necessary changes to get everyauth working (since can't run
model.fetch() on the server). revisit, this might not be the case
2012-09-07 19:34:40 -04:00