summaryrefslogtreecommitdiffstats
path: root/vendor/plasmaconduit
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/plasmaconduit')
-rw-r--r--vendor/plasmaconduit/path/.gitignore3
-rw-r--r--vendor/plasmaconduit/path/.travis.yml15
-rw-r--r--vendor/plasmaconduit/path/README.md22
-rw-r--r--vendor/plasmaconduit/path/composer.json16
-rw-r--r--vendor/plasmaconduit/path/composer.lock291
-rw-r--r--vendor/plasmaconduit/path/spec/PlasmaConduit/Path.php47
-rw-r--r--vendor/plasmaconduit/path/src/PlasmaConduit/Path.php65
7 files changed, 0 insertions, 459 deletions
diff --git a/vendor/plasmaconduit/path/.gitignore b/vendor/plasmaconduit/path/.gitignore
deleted file mode 100644
index a5d906ee0..000000000
--- a/vendor/plasmaconduit/path/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-bin
-vendor
-composer.phar
diff --git a/vendor/plasmaconduit/path/.travis.yml b/vendor/plasmaconduit/path/.travis.yml
deleted file mode 100644
index 8928b4105..000000000
--- a/vendor/plasmaconduit/path/.travis.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-language: php
-
-php:
- - 5.3
- - 5.4
-
-branches:
- only:
- - master
-
-before_script:
- - curl http://getcomposer.org/installer | php
- - php composer.phar --dev install
-
-script: bin/phpspec run -n
diff --git a/vendor/plasmaconduit/path/README.md b/vendor/plasmaconduit/path/README.md
deleted file mode 100644
index cc04b5aa7..000000000
--- a/vendor/plasmaconduit/path/README.md
+++ /dev/null
@@ -1,22 +0,0 @@
-Path
-====
-
-[![Build Status](https://travis-ci.org/JosephMoniz/php-path.png?branch=master)](undefined)
-
-Simple and care free file path concatenation and simplification.
-
-```php
-<?php
-use PlasmaConduit\Path;
-
-Path::join("wat", "lol"); // -> wat/lol
-Path::join("/a", "///b"); // -> /a/b
-Path::join("/a", "b", "c", "..", "d"); // -> /a/b/d
-
-Path::normalize("/a/b/c/../d"); // -> /a/b/d
-Path::normalize("/a/b/c/../../d"); // -> /a/d
-Path::normalize("/b/wat//"); // -> /b/wat/
-Path::normalize("/b///wat/"); // -> /b/wat/
-Path::normalize(""); // -> .
-Path::normalize("/"); // -> /
-``` \ No newline at end of file
diff --git a/vendor/plasmaconduit/path/composer.json b/vendor/plasmaconduit/path/composer.json
deleted file mode 100644
index 2cfdb2a37..000000000
--- a/vendor/plasmaconduit/path/composer.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "name": "plasmaconduit/path",
- "version": "0.1.1",
- "require-dev": {
- "phpspec/phpspec2": "*"
- },
- "config": {
- "bin-dir": "bin"
- },
- "autoload": {
- "psr-0": {
- "": "src"
- }
- },
- "minimum-stability": "dev"
-}
diff --git a/vendor/plasmaconduit/path/composer.lock b/vendor/plasmaconduit/path/composer.lock
deleted file mode 100644
index a361416fb..000000000
--- a/vendor/plasmaconduit/path/composer.lock
+++ /dev/null
@@ -1,291 +0,0 @@
-{
- "hash": "c03937476cc66c7ae1a9a8c9fc9d6c8a",
- "packages": [
-
- ],
- "packages-dev": [
- {
- "name": "mockery/mockery",
- "version": "0.7.2",
- "source": {
- "type": "git",
- "url": "git://github.com/padraic/mockery.git",
- "reference": "0.7.2"
- },
- "dist": {
- "type": "zip",
- "url": "https://github.com/padraic/mockery/zipball/0.7.2",
- "reference": "0.7.2",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.2"
- },
- "suggest": {
- "Hamcrest": "1.0.0"
- },
- "time": "2012-01-24 12:22:39",
- "type": "library",
- "autoload": {
- "psr-0": {
- "Mockery": "library/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "New BSD"
- ],
- "authors": [
- {
- "name": "Pádraic Brady",
- "email": "padraic.brady@gmail.com",
- "homepage": "http://blog.astrumfutura.com"
- }
- ],
- "description": "Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.",
- "homepage": "http://github.com/padraic/mockery",
- "keywords": [
- "testing",
- "library",
- "BDD",
- "TDD",
- "test",
- "mockery",
- "mock",
- "stub",
- "test double",
- "mock objects"
- ]
- },
- {
- "name": "phpspec/php-diff",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/php-diff.git",
- "reference": "8d82ac415225fac373a4073ba14b1fe286aa2312"
- },
- "dist": {
- "type": "zip",
- "url": "https://github.com/phpspec/php-diff/archive/8d82ac415225fac373a4073ba14b1fe286aa2312.zip",
- "reference": "8d82ac415225fac373a4073ba14b1fe286aa2312",
- "shasum": ""
- },
- "time": "2012-11-08 08:55:45",
- "type": "library",
- "autoload": {
- "psr-0": {
- "Diff": "lib/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD-3-Clause"
- ],
- "authors": [
- {
- "name": "Chris Boulton",
- "homepage": "http://github.com/chrisboulton"
- }
- ],
- "description": "A comprehensive library for generating differences between two hashable objects (strings or arrays)."
- },
- {
- "name": "phpspec/phpspec2",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/phpspec/phpspec2.git",
- "reference": "4eb75390b81363664d9e7519631cdb87c79fe23b"
- },
- "dist": {
- "type": "zip",
- "url": "https://github.com/phpspec/phpspec2/archive/4eb75390b81363664d9e7519631cdb87c79fe23b.zip",
- "reference": "4eb75390b81363664d9e7519631cdb87c79fe23b",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.1",
- "mockery/mockery": "0.7.*",
- "symfony/console": ">=2.1.0,<2.2.0",
- "symfony/event-dispatcher": ">=2.1.0,<2.2.0",
- "symfony/finder": ">=2.1.0,<2.2.0",
- "phpspec/php-diff": "*@dev"
- },
- "time": "2012-10-31 15:46:10",
- "bin": [
- "bin/phpspec"
- ],
- "type": "library",
- "autoload": {
- "psr-0": {
- "PHPSpec2": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Konstantin Kudryashov",
- "email": "ever.zet@gmail.com",
- "homepage": "http://everzet.com"
- },
- {
- "name": "Marcello Duarte",
- "homepage": "http://marcelloduarte.net/"
- }
- ],
- "description": "Specification-oriented BDD framework for PHP 5.4",
- "homepage": "http://phpspec.net/",
- "keywords": [
- "BDD",
- "TDD",
- "spec",
- "SpecBDD",
- "specification"
- ]
- },
- {
- "name": "symfony/console",
- "version": "2.1.x-dev",
- "target-dir": "Symfony/Component/Console",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Console",
- "reference": "v2.1.7"
- },
- "dist": {
- "type": "zip",
- "url": "https://github.com/symfony/Console/archive/v2.1.7.zip",
- "reference": "v2.1.7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "time": "2013-01-17 15:20:05",
- "type": "library",
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Console": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "http://symfony.com"
- },
- {
- "name": "symfony/event-dispatcher",
- "version": "2.1.x-dev",
- "target-dir": "Symfony/Component/EventDispatcher",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/EventDispatcher",
- "reference": "v2.1.7"
- },
- "dist": {
- "type": "zip",
- "url": "https://github.com/symfony/EventDispatcher/archive/v2.1.7.zip",
- "reference": "v2.1.7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "require-dev": {
- "symfony/dependency-injection": "2.1.*"
- },
- "suggest": {
- "symfony/dependency-injection": "2.1.*",
- "symfony/http-kernel": "2.1.*"
- },
- "time": "2013-01-11 00:31:43",
- "type": "library",
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\EventDispatcher": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony EventDispatcher Component",
- "homepage": "http://symfony.com"
- },
- {
- "name": "symfony/finder",
- "version": "2.1.x-dev",
- "target-dir": "Symfony/Component/Finder",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/Finder",
- "reference": "v2.1.7"
- },
- "dist": {
- "type": "zip",
- "url": "https://github.com/symfony/Finder/archive/v2.1.7.zip",
- "reference": "v2.1.7",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.3"
- },
- "time": "2013-01-09 08:51:07",
- "type": "library",
- "autoload": {
- "psr-0": {
- "Symfony\\Component\\Finder": ""
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "http://symfony.com/contributors"
- }
- ],
- "description": "Symfony Finder Component",
- "homepage": "http://symfony.com"
- }
- ],
- "aliases": [
-
- ],
- "minimum-stability": "dev",
- "stability-flags": [
-
- ]
-}
diff --git a/vendor/plasmaconduit/path/spec/PlasmaConduit/Path.php b/vendor/plasmaconduit/path/spec/PlasmaConduit/Path.php
deleted file mode 100644
index 56236f222..000000000
--- a/vendor/plasmaconduit/path/spec/PlasmaConduit/Path.php
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-namespace spec\PlasmaConduit;
-use PHPSpec2\ObjectBehavior;
-
-class Path extends ObjectBehavior {
-
- public function it_should_concat_two_peices_for_join() {
- Path::join("wat", "lol")->shouldReturn("wat/lol");
- }
-
- public function it_should_drop_excess_slashes_for_join() {
- Path::join("/a", "///b")->shouldReturn("/a/b");
- }
-
- public function it_should_correctly_traverse_for_join() {
- Path::join("/a", "b", "c", "..", "d")->shouldReturn("/a/b/d");
- }
-
- public function it_should_filter_empty_peices_for_join() {
- Path::join("", "lonely")->shouldReturn("lonely");
- }
-
- public function it_should_correctly_traverse_for_normalize() {
- Path::normalize("/a/b/c/../d")->shouldReturn("/a/b/d");
- }
-
- public function it_should_do_multiple_traversals_for_normalize() {
- Path::normalize("/a/b/c/../../d")->shouldReturn("/a/d");
- }
-
- public function it_should_drop_trailing_extra_slashes_for_normalize() {
- Path::normalize("/b/wat//")->shouldReturn("/b/wat/");
- }
-
- public function it_should_drop_extra_slashes_for_normalize() {
- Path::normalize("/b///wat/")->shouldReturn("/b/wat/");
- }
-
- public function it_should_resolve_empty_as_dot() {
- Path::normalize("")->shouldReturn(".");
- }
-
- public function it_should_return_slash_for_slash() {
- Path::normalize("/")->shouldReturn("/");
- }
-
-}
diff --git a/vendor/plasmaconduit/path/src/PlasmaConduit/Path.php b/vendor/plasmaconduit/path/src/PlasmaConduit/Path.php
deleted file mode 100644
index 0db583d7e..000000000
--- a/vendor/plasmaconduit/path/src/PlasmaConduit/Path.php
+++ /dev/null
@@ -1,65 +0,0 @@
-<?php
-namespace PlasmaConduit;
-
-class Path {
-
- /**
- * This function takes a variable amount of strings and joins
- * them together so that they form a valid file path.
- *
- * @param {String ...} $peice - The peices of the file path
- * @returns {String} - The final file path
- */
- static public function join() {
- $peices = array_filter(func_get_args(), function($value) {
- return $value;
- });
- return self::normalize(implode("/", $peices));
- }
-
- /**
- * This function takes a valid file path and nomalizes it into
- * the simplest form possible.
- *
- * @param {String} $path - The path to normalize
- * @returns {String} - The normailized path
- */
- static public function normalize($path) {
- if (!strlen($path)) {
- return ".";
- }
-
- $isAbsolute = $path[0];
- $trailingSlash = $path[strlen($path) - 1];
-
- $up = 0;
- $peices = array_values(array_filter(explode("/", $path), function($n) {
- return !!$n;
- }));
- for ($i = count($peices) - 1; $i >= 0; $i--) {
- $last = $peices[$i];
- if ($last == ".") {
- array_splice($peices, $i, 1);
- } else if ($last == "..") {
- array_splice($peices, $i, 1);
- $up++;
- } else if ($up) {
- array_splice($peices, $i, 1);
- $up--;
- }
- }
-
- $path = implode("/", $peices);
-
- if (!$path && !$isAbsolute) {
- $path = ".";
- }
-
- if ($path && $trailingSlash == "/") {
- $path .= "/";
- }
-
- return ($isAbsolute == "/" ? "/" : "") . $path;
- }
-
-} \ No newline at end of file