Commit Graph

23 Commits

Author SHA1 Message Date
Ryan Buckley 1fa42722ed Add spec for testing exception logging 2016-09-16 12:14:19 -07:00
Ryan Buckley 6c2559c8ec Revert change that separates param parsing strategy depending on presence of Rails 2016-04-01 09:23:25 -07:00
Ryan Buckley fd5c616aab Reorganize usage of Rails specific parameters 2016-03-31 23:46:54 -07:00
Ryan Buckley 41eeaaaeab [#4] Fix missing JSON parameters for POST requests
- Call the formatter middleware manaully to parse env['rack.input'] and set the grape request body early
- Overload the formatter's #before method so we don't parse the input twice
- Wouldn't be an issue if Grape::Endpoint would #use custom middleware after using formatter
2016-03-31 22:27:24 -07:00
Ryan Buckley 7969c9daca Refactor logger conditional to use coercion and parallel assignment 2015-12-14 18:10:26 -08:00
Ryan Buckley ea4503558d update railtie load order 2015-12-12 01:02:05 -08:00
Ryan Buckley b7bf4b0acb cleanup test suites 2015-12-12 00:20:04 -08:00
Ryan Buckley 65423e2157 update readme 2015-12-12 00:10:01 -08:00
Ryan Buckley b2491299ed use railtie 2015-12-12 00:05:32 -08:00
Ryan Buckley 9a0326ff09 Stop logging the namespace 2015-12-11 23:13:18 -08:00
Ryan Buckley 5959a06cce add and reorganize specs with factory girl 2015-12-11 19:55:05 -08:00
Ryan Buckley 2253c1be19 improve default logger 2015-12-11 16:34:20 -08:00
Ryan Buckley ddd39f2408 Add start time to first log message 2015-12-11 15:44:45 -08:00
Ryan Buckley 39ba3f2d8f Refactor #logger into initialize 2015-12-08 16:54:45 -08:00
tinexw 04c90ed0a2 Change test to test reported error case 2015-11-18 14:15:09 +01:00
sirnicolaz dba50a8bb6 more consistent spec phrasing 2015-11-18 12:29:46 +01:00
sirnicolaz a4daa56c53 add tests for array response behaviour 2015-11-18 11:56:52 +01:00
Marcelo Boeira 8ad399102f improve tests by creating a specific context and moving Rails mock to the context 2015-10-23 09:01:11 -02:00
Marcelo Boeira 37e95b2fca refactor class definition on ParamFilter 2015-10-23 08:57:49 -02:00
Marcelo Boeira df7266f144 use Rails logger by default when is set, instead of default logger 2015-10-22 15:38:51 -02:00
Ryan Buckley 166dd7ee9a update to work with Grape 0.12.0 and log exceptions 2015-07-11 12:41:22 -07:00
Ryan Buckley 4cac0e0ac0 use +before+ because it works on Grape master 2015-05-05 22:42:17 -07:00
Ryan Buckley d65714ffd8 Specs and update to handle broken state of Grape Globals 2015-05-05 22:22:35 -07:00