Commit graph

966 commits

Author SHA1 Message Date
Josh Sherman
5ce36537a6 Renamed bootstrap file 2014-10-02 21:11:23 -04:00
Josh Sherman
b1304a44d0 Merge branch 'master' of github.com:joshtronic/pickles 2014-10-02 21:05:20 -04:00
Josh Sherman
510b5d8edc Added new branches to test 2014-10-02 20:59:27 -04:00
Josh Sherman
d884f5a3df Finished up tests 2014-10-02 20:54:12 -04:00
Josh Sherman
4167d99623 Fixed deleting a file
Not sure when this became an issue, but attempting to delete a file that ends
with / will result in an error on OS X
2014-10-02 18:15:48 -04:00
Josh Sherman
90c4c53294 Fixed up the config again 2014-10-02 17:54:59 -04:00
Josh Sherman
c9ffe4c8bf Fixed config in tests 2014-10-02 17:44:00 -04:00
Josh Sherman
b48b73d064 Dropped SITE_PATH 2014-10-02 17:41:06 -04:00
Josh Sherman
a41ee7c2d2 Fixed config loading 2014-10-02 17:34:25 -04:00
Josh Sherman
df98b99440 Dropped uopz from travis config 2014-10-02 07:28:58 -04:00
Josh Sherman
c8d97aac26 Reworking database tests 2014-10-02 07:28:12 -04:00
Josh Sherman
07ed22c58f Fixed up resource class' tests 2014-10-02 07:02:29 -04:00
Josh Sherman
173136ddce Finished up Profiler and test coverage 2014-10-02 06:42:16 -04:00
Josh Sherman
9e65b2cfc2 Spruced up profiler, need to finish up tests 2014-10-01 22:08:11 -04:00
Josh Sherman
ee8bd63a08 Working on that new profiler
Gotta figure out what's going on with the database portion, it's going all
crazy on me.
2014-10-01 07:41:01 -04:00
Josh Sherman
506ff1fd45 Unit tests for the Object class 2014-09-30 22:24:10 -04:00
Josh Sherman
d4551d72a6 Evidently updated some dependencies 2014-09-30 18:07:49 -04:00
Josh Sherman
88a4375dd5 Wrapped up unit tests on Config class 2014-09-30 15:58:16 -04:00
Josh Sherman
2acd1b976e Updated dependencies 2014-09-30 15:06:53 -04:00
Josh Sherman
394c86d6ab Updated dependencies a bit 2014-09-30 09:49:08 -04:00
Josh Sherman
725d952192 Reworked config class, working on unit tests 2014-09-30 07:21:52 -04:00
Josh Sherman
52c8a730f3 Dropped pickles.ph made some assumptions
Wanted to be 100% reliant on the autoloader so I dropped the manual include of
pickles.php. Also moved some of the PHP ini logic out of here and baked in
some assumptions about environments and settings. Basically anything other than
"production" will set display errors to true, production is false.
2014-09-29 22:07:18 -04:00
Josh Sherman
1c974fc9ad Reworked config to be an arrayobject
Death to the mix of object variable and array. Also cleaned up the profiler
sanity checks as the variable will always be present now. Profiler is now an
all or nothing action.
2014-09-29 21:32:08 -04:00
Josh Sherman
f2d2f79a50 Update README.md 2014-09-29 17:58:38 -04:00
Josh Sherman
f2f1cbc166 Dropped validate test
All tests were moved to the RouterTest class
2014-09-28 21:51:06 -04:00
Josh Sherman
f62d12f35b Dropped dupe test 2014-09-28 21:50:28 -04:00
Josh Sherman
aea1bae3bf Working on tests for Resource 2014-09-28 21:49:49 -04:00
Josh Sherman
6c173cdc89 Working on tests for the Resource class.
Got a bunch more validation rules to port over.
2014-09-28 09:47:54 -04:00
Josh Sherman
3b8eddc7b5 Dropped status code method
The function `http_response_code` was added in PHP 5.4 which deprecated the
code I had written. Dropped functionality and tests and updated code to use the
new function.
2014-09-28 08:36:14 -04:00
Josh Sherman
da379d0849 Knocked out unit tests for the new Router 2014-09-28 08:24:02 -04:00
Josh Sherman
273af98883 Renamed bootstrap
Made it caps to go along with all of the existing test names
2014-09-28 07:43:28 -04:00
Josh Sherman
0cfc2c7979 Moved tests and updated to use namespaces 2014-09-28 07:31:02 -04:00
Josh Sherman
302f400dcb Removed some leftover debug code 2014-09-28 06:51:35 -04:00
Josh Sherman
372ba2812b Feeling frisky, added PHP 5.3 back to the tests
Curious if I'd be able to get back to PHP 5.3 compatibility to an extent.
2014-09-27 23:04:51 -04:00
Josh Sherman
59817fa5c4 That abridged README
Cut all the bullshit out so I could write out a better README once the system
is back to being stable and tested.
2014-09-27 22:55:12 -04:00
Josh Sherman
4af10e0fb6 Cleaning up a bit
The plan is to drop this file entirely and move the logic off to the config
class itself which will be instantiated by the router.
2014-09-27 22:36:03 -04:00
Josh Sherman
79f8da8c45 Namespaced the fuck out of Pickles 2014-09-27 22:28:15 -04:00
Josh Sherman
48c5289060 Moved files and added namespaces 2014-09-27 17:57:07 -04:00
Josh Sherman
8a1ac4fb47 Worked through basic authentication 2014-09-27 16:40:41 -04:00
Josh Sherman
718f8d64bb Working on basic auth and dropped log class
I personally haven't used it in years so I'm just getting to the mindset that
it's not a very useful piece of functionality. Nginx can easily log all of your
requests and any time I need to troubleshoot SQL (not all that often) I do it
directly without using the class.
2014-09-27 15:37:41 -04:00
Josh Sherman
bdb4ca8ff0 Renamed secure flag to https 2014-09-27 14:02:52 -04:00
Josh Sherman
53d8ab1137 Added powered by pickles header 2014-09-27 14:01:04 -04:00
Josh Sherman
20aff31b94 Moved validate logic into resource
I couldn't find a single scenario where I was using the Validate class in my
site level code. Dropped the overhead of calling a static class method multiple
times on a page by moving the logic in the Resource class. Also changed the
response to always return the errors as parameter => array. This allows a
developer to choose if they want to display one error or all of the errors.
2014-09-27 12:06:33 -04:00
Josh Sherman
50ea072929 Added password_hash filter
Defaulting to PASSWORD_DEFAULT, will expand to other options if the need arises.
2014-09-27 11:47:29 -04:00
Josh Sherman
3861bfc571 Dropped the filter class
Will revisit if there's ever a need to have access to it directly. Until then
it will find it in the Resource class.
2014-09-27 11:33:53 -04:00
Josh Sherman
141ac693cb Dropped response class
Seems pointless to have class that had a single method that basically contained
all of the shit that the resource already had and knew. Moved respond() method
to the response class and moved all of the response validation logic and errors
from the router to the response class.
2014-09-27 11:25:45 -04:00
Josh Sherman
a749c80d93 Added variable filtering and validation
Validation logic was existing but it was reworked to abstract out checking for
required fields initially and then sanity checks after the fact. Filters are
applied before validation but after checking existence. No support for _PUT and
_DELETE at the moment as those do not exist as super globals natively in PHP.
2014-09-27 08:13:05 -04:00
Josh Sherman
0ad0754726 Module -> Resource 2014-09-27 05:28:14 -04:00
Josh Sherman
824faffcc6 Stubbing out some new classes 2014-09-26 07:36:50 -04:00
Josh Sherman
7108c2c440 Dropped security groups 2014-09-26 07:34:11 -04:00