Commit graph

72 commits

Author SHA1 Message Date
Joshua Sherman
293f618bef Worked through some bugs, updated dependencies
The vendor directory is now just composer stuff. Planning to rearrange some
files soon but wanted to commit these changes. AYAH is now installed via
composer from a package I am maintaining and I dropped the test helpers as it
is a dev-only requirement (and that's assuming you even want to test).
2014-01-20 22:06:59 -05:00
Joshua Sherman
c9f39e2e18 Updated email address 2014-01-20 15:19:38 -05:00
Joshua Sherman
db6e169f7b 95% coverage, getting close. 2014-01-19 22:36:30 -05:00
Joshua Sherman
200988eecf Swapped all array() for the shorthand []
Also finished up coverage on the Cache class.
2014-01-15 14:09:54 -05:00
Joshua Sherman
aecdd0981f Finished tests for Config class 2014-01-15 13:46:17 -05:00
Joshua Sherman
46b77fa1b1 Added sanity check to resolve missing variable
Unsure why but as of this morning (perhaps because of upgrading to PHP 5.5.8
PHPUnit started barking about _SERVER['HTTP_HOST'] not being set.
2014-01-14 11:34:51 -05:00
Joshua Sherman
8db383601e More tests and 100% coverage achievements!
Also fixed a few minor bugs and reworked Browser class to not use the constant
UNIT_TESTING so I could get the class to 100% coverage. Adds a dependency of
testing_helpers which I believe is available on Travis CI by default. Up to 75%
coverage, w00t w00t!
2014-01-12 16:09:48 -05:00
Joshua Sherman
8fc726b983 Updated copyright date.
It's a new year, figured it would be nice to get this done before summer time
like most years.
2014-01-05 13:44:25 -05:00
Joshua Sherman
54471c361b So much refactoring... 2013-12-30 00:38:13 -05:00
Josh Sherman
07a95a7508 Built out new Display class with tests
Not hooked up to the Controller yet, wanted to get Travis setup.
2013-12-28 01:13:02 -05:00
Josh Sherman
d96181c60f Q4 2013, seemed like a good time to update the copyright notices 2013-11-04 17:36:04 -05:00
Josh Sherman
6f114361bd Updated copyright, website and contact email 2012-09-30 12:40:29 -04:00
Josh Sherman
ee175f4923 Added fuzzy environment match (via @geoffoliver) 2012-04-08 16:39:26 -04:00
Josh Sherman
d312d92033 Minification is now a configuration option, off by default 2012-02-24 23:22:27 -05:00
Josh Sherman
237cb22990 Added Cache class and made adjustments to Config to default the variables to false. 2011-10-30 17:14:56 -04:00
Josh Sherman
dbcf6fdb80 Changed environment checking to use HTTP_HOST instead of SERVER_NAME to resolve an issue with nginx server_name variable. Updated jarring to skip any files prefixed with '.' so that I could edit core files and not generate munged jar files because of vi .swp files. 2011-08-06 12:57:59 -04:00
Josh Sherman
3a89586eb1 Added configuration variable to disable logging. Currently it is a boolean value, but eventually it will probably be broken out into an array with key/value pairs to correspond with the different logging options within the PICKLES core. 2011-06-15 21:13:28 -04:00
Josh Sherman
996241debb Updated headers to have 2011 in the copyright date. Also updated copyright to my name as the LLC is currently defunct. 2011-05-09 22:14:55 -04:00
Josh Sherman
4e6098bc86 Added logic to traverse the filesystem in an attempt to locate the configuration. Errors if it gets to /. Comes into play when using command line scripts that may live in sub-directories of the ./scripts directory. 2011-05-03 23:14:37 -04:00
Josh Sherman
aa3427a25c Added CLI exception display and moved $is_cli to a constant. 2011-05-03 22:34:11 -04:00
Josh Sherman
89e2c3db19 Cleaned up stray whitespace. 2010-12-09 20:12:05 -05:00
josh
53ee689793 Changed the variable being checked to determine if code was being ran from the command line. 2010-12-06 20:49:15 -05:00
Josh Sherman
fba44a0be9 Updated class to support command line usage. 2010-12-04 14:29:15 -05:00
Josh Sherman
03567d86d4 Convert defined security levels into defined constants prefixed with SECURITY_LEVEL_*. Also documented the flatten method. 2010-11-21 21:44:46 -05:00
Josh Sherman
9a4fe84b9b Added timer capabilities to the profiler, refactored a bunch of the sanity checks associated with the profiler. 2010-10-22 22:26:45 -04:00
Josh Sherman
92e4b0391a Added profiler options. 2010-10-22 00:31:26 -04:00
Josh Sherman
2761352332 Added support for multiple host names in the config. 2010-10-18 23:35:15 -04:00
Josh Sherman
1cd61dda42 Updated licensing to use the [better suited] MIT License. 2010-10-14 20:12:40 -04:00
Josh Sherman
630a1276aa Gutted config system to use a PHP array instead of 1980's INI files. Broke down the database layer to support multiple types of interfaces and started laying out the Mongo interface class. 2010-10-12 01:44:10 -04:00
Josh Sherman
9fe5ce72d4 Building in security capabilities. 2010-10-06 00:01:49 -04:00
Josh Sherman
a38d58dfc1 Added support for multiple environments and config INIs. 2010-10-03 19:06:18 -04:00
Josh Sherman
d2966c7345 Created a Singleton parent class and implemented some common Object method. 2010-10-02 16:36:54 -04:00
Josh Sherman
7da7784ad7 Removed a @todo as it seemed irrelevant. 2010-08-15 21:44:29 -04:00
Josh Sherman
a48706da4b Removed whitespace. 2010-05-15 22:51:17 -04:00
Josh Sherman
ea6930bc23 Moved fatalError() from Controller to Error class.
* Renamed the method to fatal().

 * Added Error class, but I may be factoring it out and replacing it with strong dependency of PHP built-in Exceptions.

 * Cleaned up some other stuff too.
2010-03-30 22:28:20 -04:00
Josh Sherman
1eff5c3db7 Made INI the new PICKLES config standard
* SimpleXML was becoming a pain to maintain as there was differences between versions of PHP 5.x that prohibited me from being truely 5.0.0+ compliant.

 * The move to INI is because it's still good enough for PHP to use php.ini as a standard, and the support in PHP is built in and hasn't changed in a while

 * XML was also a bit bloated, and the point behind PICKLES is to kick the bloat.

 * May add support for a config file in pure PHP and/or JSON.

 * Added logic to prohibit the overriding of config variables.
2010-03-14 15:51:25 -04:00
Josh Sherman
7814b5dacb Updated @package name from pickles to PICKLES. 2010-03-12 23:42:21 -05:00
Josh Sherman
4e8691507d Added module() method.
* Pulls the value of site->module.

 * Also fixed some variable typos in the disabled() method.
2010-03-11 22:19:37 -05:00
Josh Sherman
b304e0c89b Added disabled() method. 2010-03-11 21:24:39 -05:00
Josh Sherman
04501f2a39 Updated Config class
* Removed extends information as the Config class is an orphaned singleton.
2010-03-11 21:00:33 -05:00
Josh Sherman
68ac2196a3 Refactored Config class.
* Config is now a Singleton.

 * Getter methods were removed, use $config->value instead.
2010-03-11 20:58:28 -05:00
Josh Sherman
24cdc5bdd9 Fixed file permissions 2010-03-09 19:47:20 -05:00
Josh Sherman
d267b214ea Lotsa updates.
git-svn-id: http://svn.cleancode.org/svn/pickles@139 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-07-09 03:58:47 +00:00
Josh Sherman
466c35a6bb Massive update that broke backwards compatibility with older versions of PICKLES.
git-svn-id: http://svn.cleancode.org/svn/pickles@109 4d10bc64-7434-11dc-a737-d2d0f8310089
2009-03-19 05:07:20 +00:00
Josh Sherman
54fea0d023 Updates to make shared modules work, code refactoring and such.
git-svn-id: http://svn.cleancode.org/svn/pickles@83 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-22 21:15:29 +00:00
Josh Sherman
42e316fc05 Shit ton of updates.
git-svn-id: http://svn.cleancode.org/svn/pickles@81 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-20 01:03:00 +00:00
Josh Sherman
b53f52ac1e Changes.
git-svn-id: http://svn.cleancode.org/svn/pickles@79 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-18 13:42:10 +00:00
Josh Sherman
47b3271bde Updates.
git-svn-id: http://svn.cleancode.org/svn/pickles@76 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-15 12:51:26 +00:00
Josh Sherman
d2d6c47682 Changed the core Object to not require any params in the constructor, and now we rely on polymorphism in the classes themselves to override that.
git-svn-id: http://svn.cleancode.org/svn/pickles@74 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-14 13:27:26 +00:00
Josh Sherman
9bdd0b3045 Cleaned up white space, also updated the RSS viewer to not use Config::getInstance()
git-svn-id: http://svn.cleancode.org/svn/pickles@71 4d10bc64-7434-11dc-a737-d2d0f8310089
2008-10-11 21:59:42 +00:00