Commit graph

999 commits

Author SHA1 Message Date
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
Josh Sherman
7f297b06f5 Put in a note about 404s 2014-09-26 07:33:32 -04:00
Josh Sherman
6097e29aef Cleaning up tests 2014-09-26 07:31:04 -04:00
Josh Sherman
bdb16009c1 Simplified the travis config a bit 2014-09-26 05:52:40 -04:00
Josh Sherman
2445f2f339 Added phpunit.xml
Was still typing in the full command to run phpunit from time to time. Can
now just run unit tests by running phpunit without any config flags
2014-09-26 05:49:49 -04:00
Josh Sherman
d7ad1d148e Dropped deprecated tests 2014-09-25 23:29:05 -04:00
Josh Sherman
39d5b8d40b Cleaned up unit tests
Wanted to get back to the point that the tests were running and not erroring.
2014-09-25 23:11:29 -04:00
Josh Sherman
ebc5584660 Merge branch '2.0' 2014-09-25 21:50:26 -04:00
Josh Sherman
26e913a3d9 Dropped Dynamic Class
Pretty sure we don't need it anymore. Could come back up in the future when an
API is returning URIs for static assets and they are being cached and it's not
being flushed correctly.
2014-09-25 21:48:13 -04:00
Josh Sherman
d5a2753c20 Reworked error handling. 2014-09-25 21:33:43 -04:00
Josh Sherman
69b14085b4 Module -> Resource
Dropping those dated naming conventions
2014-09-25 20:57:05 -04:00
Josh Sherman
94f46fc583 Controller -> Router, Display -> Response
Just gutting the brains of this thing.
2014-09-25 20:55:11 -04:00
Josh Sherman
17d19728e3 Update README.md
Tweaked buttons
2014-09-25 10:06:11 -04:00
Josh Sherman
98f03c2a76 Merge pull request #49 from waffle-iron/master
waffle.io Badge
2014-09-25 10:03:04 -04:00
Josh Sherman
b67269a202 Dropped that dirty dirty XML support. 2014-09-25 09:27:59 -04:00
Josh Sherman
2fa2b6ad03 Started gutting logic from the Controller and Display classes. 2014-09-24 23:57:39 -04:00
Josh Sherman
1381fd82a0 Dropped other classes we don't need any longer 2014-09-24 23:33:03 -04:00
Josh Sherman
e299d268c8 Setting headers and shit 2014-09-24 23:26:00 -04:00