diff --git a/composer.json b/composer.json index 97bf9be..6d5dff0 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,10 @@ } ], "require": { - "noccylabs/sansi": "dev-master" + }, + "require-dev": { + "noccylabs/sansi": "dev-master", + "noccylabs/crap": "dev-master" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 4d8d571..8e42691 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,37 @@ "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "6ede4cbc5ab4ef05b58811c306b5376f", + "hash": "f8730bf5cb8eaf8085a06df386769d3a", "packages": [ + + ], + "packages-dev": [ + { + "name": "noccylabs/crap", + "version": "dev-master", + "source": { + "type": "git", + "url": "http://satis.noccylabs.info/packages/php-crap.git", + "reference": "846708ec6f1b6c53dd95871d19590557675ed026" + }, + "type": "library", + "autoload": { + "psr-4": { + "NoccyLabs\\Crap\\": "lib/" + } + }, + "license": [ + "GPL-3.0" + ], + "authors": [ + { + "name": "Christopher Vagnetoft", + "email": "cvagnetoft@gmail.com" + } + ], + "description": "Crap is an exception/error/assertion handling library", + "time": "2014-06-13 22:18:38" + }, { "name": "noccylabs/sansi", "version": "dev-master", @@ -32,16 +61,14 @@ "description": "Simple ANSI User Interface", "time": "2014-06-05 12:10:14" } - ], - "packages-dev": [ - ], "aliases": [ ], "minimum-stability": "stable", "stability-flags": { - "noccylabs/sansi": 20 + "noccylabs/sansi": 20, + "noccylabs/crap": 20 }, "platform": [ diff --git a/examples/GLOBALS.php b/examples/GLOBALS.php index b4ddf64..b61455f 100644 --- a/examples/GLOBALS.php +++ b/examples/GLOBALS.php @@ -5,3 +5,7 @@ define("LED_A", 0); define("LED_B", 1); define("BTN_A", 2); + +// Pretty exceptions + +NoccyLabs\Crap\Crap::activate(); diff --git a/examples/bitmap.php b/examples/bitmap.php index 23ff0f2..3ed3544 100644 --- a/examples/bitmap.php +++ b/examples/bitmap.php @@ -1,6 +1,7 @@