Skip to content

Commit

Permalink
rebuild package; version bump; composer support; failsafe iron_core l…
Browse files Browse the repository at this point in the history
…oading
  • Loading branch information
thousandsofthem committed Oct 23, 2012
1 parent 6bb66c9 commit d96cc36
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
4 changes: 2 additions & 2 deletions IronCache.class.php
Expand Up @@ -5,7 +5,7 @@
* @link https://github.com/iron-io/iron_cache_php
* @link http://www.iron.io/products/cache
* @link http://dev.iron.io/
* @version 0.0.1
* @version 0.0.2
* @package IronCache
* @copyright Feel free to copy, steal, take credit for, or whatever you feel like doing with this code. ;)
*/
Expand Down Expand Up @@ -106,7 +106,7 @@ public function asArray() {
}

class IronCache extends IronCore{
protected $client_version = '0.0.1';
protected $client_version = '0.0.2';
protected $client_name = 'iron_cache_php';
protected $product_name = 'iron_cache';
protected $default_values = array(
Expand Down
4 changes: 3 additions & 1 deletion build.php
Expand Up @@ -14,7 +14,9 @@
# Loader
$phar->setStub('<?php
Phar::mapPhar("iron_cache.phar");
require "phar://iron_cache.phar/IronCore.class.php";
if (!class_exists("IronCore")){
require "phar://iron_cache.phar/IronCore.class.php";
}
require "phar://iron_cache.phar/IronCache.class.php";
__HALT_COMPILER(); ?>');

Expand Down
28 changes: 28 additions & 0 deletions composer.json
@@ -0,0 +1,28 @@
{
"name": "iron-io/iron_cache",
"type": "library",
"description": "Client binding for IronCache (A key/value store in the cloud)",
"keywords": ["cache","iron_cache","iron","store"],
"homepage": "http://github.com/iron-io/iron_cache_php",
"license": "MIT",
"authors": [
{
"name": "Alexander S",
"email": "alexander@iron.io",
"homepage": "http://iron.io",
"role": "Developer"
}
],
"require": {
"php": ">=5.2.0"
},
"autoload": {
"files": ["iron_cache.phar"]
},
"repositories":[
{
"type":"git",
"url":"http://github.com/iron-io/iron_cache_php"
}
]
}
Binary file modified iron_cache.phar
Binary file not shown.

0 comments on commit d96cc36

Please sign in to comment.