-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move SCS fully under the Pyrus namespace
- Loading branch information
Showing
22 changed files
with
73 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
- Using \Pyrus instead of \PEAR2\Pyrus namespace as per the latest Pyrus | ||
- Using \Pyrus instead of \PEAR2\Pyrus namespace as per the latest Pyrus | ||
- Move the channel server itself to the Pyrus namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,20 +27,18 @@ More information here: http://pear.php.net/manual/en/channels.scs.php | |
<email>[email protected]</email> | ||
<active>yes</active> | ||
</lead> | ||
<date>2011-05-11</date> | ||
<time>18:21:17</time> | ||
<date>2011-07-11</date> | ||
<time>19:04:51</time> | ||
<version> | ||
<release>0.2.0</release> | ||
<release>0.3.0</release> | ||
<api>0.1.0</api> | ||
</version> | ||
<stability> | ||
<release>alpha</release> | ||
<api>alpha</api> | ||
</stability> | ||
<license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> | ||
<notes>Fixes: | ||
|
||
- Add support for channels using https [saltybeagle]</notes> | ||
<notes/> | ||
<contents> | ||
<dir name="/"> | ||
<dir name="customcommand" baseinstalldir="/"> | ||
|
@@ -88,6 +86,7 @@ More information here: http://pear.php.net/manual/en/channels.scs.php | |
<package> | ||
<name>PEAR2_Pyrus</name> | ||
<channel>pear2.php.net</channel> | ||
<min>0.5.0</min> | ||
</package> | ||
<package> | ||
<name>PEAR2_MultiErrors</name> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,20 +27,18 @@ More information here: http://pear.php.net/manual/en/channels.scs.php | |
<email>[email protected]</email> | ||
<active>yes</active> | ||
</lead> | ||
<date>2011-05-11</date> | ||
<time>18:21:17</time> | ||
<date>2011-07-11</date> | ||
<time>19:04:51</time> | ||
<version> | ||
<release>0.2.0</release> | ||
<release>0.3.0</release> | ||
<api>0.1.0</api> | ||
</version> | ||
<stability> | ||
<release>alpha</release> | ||
<api>alpha</api> | ||
</stability> | ||
<license uri="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> | ||
<notes>Fixes: | ||
|
||
- Add support for channels using https [saltybeagle]</notes> | ||
<notes/> | ||
<contents> | ||
<dir name="/"> | ||
<file role="script" name="script/pearscs"/> | ||
|
@@ -72,6 +70,7 @@ More information here: http://pear.php.net/manual/en/channels.scs.php | |
<package> | ||
<name>PEAR2_Pyrus</name> | ||
<channel>pear2.php.net</channel> | ||
<min>0.5.0</min> | ||
</package> | ||
<package> | ||
<name>PEAR2_MultiErrors</name> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?php | ||
$package->dependencies['required']->php = '5.3.0'; | ||
$package->dependencies['required']->package['pear2.php.net/PEAR2_Pyrus']->save(); | ||
$package->dependencies['required']->package['pear2.php.net/PEAR2_Pyrus']->min('0.5.0'); | ||
$package->dependencies['required']->package['pear2.php.net/PEAR2_MultiErrors']->save(); | ||
|
||
$compatible->dependencies['required']->php = '5.3.0'; | ||
$compatible->dependencies['required']->package['pear2.php.net/PEAR2_Pyrus']->save(); | ||
$compatible->dependencies['required']->package['pear2.php.net/PEAR2_Pyrus']->min('0.5.0'); | ||
$compatible->dependencies['required']->package['pear2.php.net/PEAR2_MultiErrors']->save(); | ||
?> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,17 +13,17 @@ | |
* create('Name4', 'Description 4'); | ||
* file_put_contents('/path/to/serialize/categories.inf', serialize($cat)); | ||
* } | ||
* $categories = PEAR2\SimpleChannelServer\Categories::getCategories(); | ||
* $categories = Pyrus\SimpleChannelServer\Categories::getCategories(); | ||
* $categories->link('SimpleChannelServer', 'Developer'); | ||
* </code> | ||
* | ||
* @category Developer | ||
* @package PEAR2_SimpleChannelServer | ||
* @package Pyrus_SimpleChannelServer | ||
* @author Greg Beaver <[email protected]> | ||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | ||
* @link http://svn.php.net/viewvc/pear2/sandbox/SimpleChannelServer/ | ||
* @link https://github.com/pyrus/Pyrus_SimpleChannelServer | ||
*/ | ||
namespace PEAR2\SimpleChannelServer; | ||
namespace Pyrus\SimpleChannelServer; | ||
class Categories | ||
{ | ||
/** | ||
|
@@ -83,7 +83,7 @@ public function exists($category) | |
* @param string $description Description of the category | ||
* @param string $alias Alias of the category | ||
* | ||
* @return PEAR2\SimpleChannelServer\Categories | ||
* @return Pyrus\SimpleChannelServer\Categories | ||
*/ | ||
public function create($name, $description, $alias = null) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<?php | ||
namespace PEAR2\SimpleChannelServer\Categories; | ||
namespace Pyrus\SimpleChannelServer\Categories; | ||
class Exception extends \Exception {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,12 @@ | |
* Channel writer for simple channel server. | ||
* | ||
* @category Developer | ||
* @package PEAR2_SimpleChannelServer | ||
* @package Pyrus_SimpleChannelServer | ||
* @author Brett Bieber <[email protected]> | ||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | ||
* @link http://svn.php.net/viewvc/pear2/sandbox/SimpleChannelServer/ | ||
* @link https://github.com/pyrus/Pyrus_SimpleChannelServer | ||
*/ | ||
namespace PEAR2\SimpleChannelServer; | ||
namespace Pyrus\SimpleChannelServer; | ||
class Channel extends \Pyrus\ChannelFile | ||
{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<?php | ||
namespace PEAR2\SimpleChannelServer; | ||
namespace Pyrus\SimpleChannelServer; | ||
class Exception extends \Exception {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
namespace PEAR2\SimpleChannelServer; | ||
namespace Pyrus\SimpleChannelServer; | ||
class Get | ||
{ | ||
protected $get; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,12 @@ | |
* Class for a filesystem only PEAR compatible channel server. | ||
* | ||
* @category Developer | ||
* @package PEAR2_SimpleChannelServer | ||
* @package Pyrus_SimpleChannelServer | ||
* @author Greg Beaver <[email protected]> | ||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | ||
* @link http://svn.php.net/viewvc/pear2/sandbox/SimpleChannelServer/ | ||
* @link https://github.com/pyrus/Pyrus_SimpleChannelServer | ||
*/ | ||
namespace PEAR2\SimpleChannelServer; | ||
namespace Pyrus\SimpleChannelServer; | ||
class Main | ||
{ | ||
/** | ||
|
@@ -19,7 +19,7 @@ class Main | |
* @var string | ||
*/ | ||
protected $webpath; | ||
|
||
/** | ||
* Path to rest files | ||
* @var string | ||
|
@@ -32,21 +32,21 @@ class Main | |
/** | ||
* REST manager | ||
* | ||
* @var PEAR2\SimpleChannelServer\REST\Manager | ||
* @var Pyrus\SimpleChannelServer\REST\Manager | ||
*/ | ||
protected $rest; | ||
|
||
/** | ||
* GET manager | ||
* | ||
* @var PEAR2\SimpleChannelServer\Get | ||
* @var Pyrus\SimpleChannelServer\Get | ||
*/ | ||
protected $get; | ||
|
||
/** | ||
* Construct simple channel server | ||
* | ||
* @param PEAR2\SimpleChannelServer\Channel $channel channel object | ||
* @param Pyrus\SimpleChannelServer\Channel $channel channel object | ||
* @param string $webpath full path to web files eg: /var/www/pear/ | ||
* @param string $pyruspath Path to the pyrus controlled PEAR installation | ||
*/ | ||
|
@@ -86,7 +86,7 @@ function __construct($channel, $webpath, $pyruspath = null) | |
$e); | ||
} | ||
} | ||
|
||
function categorize($package, $category) | ||
{ | ||
$categories = new Categories($this->channel); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ | |
* Class for managing category information for the PEAR channel. | ||
* | ||
* @category Developer | ||
* @package PEAR2_SimpleChannelServer | ||
* @package Pyrus_SimpleChannelServer | ||
* @author Greg Beaver <[email protected]> | ||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | ||
* @link http://svn.php.net/viewvc/pear2/sandbox/SimpleChannelServer/ | ||
* @link https://github.com/pyrus/Pyrus_SimpleChannelServer | ||
*/ | ||
namespace PEAR2\SimpleChannelServer\REST; | ||
use PEAR2\SimpleChannelServer\Categories; | ||
namespace Pyrus\SimpleChannelServer\REST; | ||
use Pyrus\SimpleChannelServer\Categories; | ||
class Category extends Manager | ||
{ | ||
protected $_categories; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ | |
* Class for managing Maintainer files within the SimpleChannelServer. | ||
* | ||
* @category Developer | ||
* @package PEAR2_SimpleChannelServer | ||
* @package Pyrus_SimpleChannelServer | ||
* @author Greg Beaver <[email protected]> | ||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | ||
* @link http://svn.php.net/viewvc/pear2/sandbox/SimpleChannelServer/ | ||
* @link https://github.com/pyrus/Pyrus_SimpleChannelServer | ||
*/ | ||
namespace PEAR2\SimpleChannelServer\REST; | ||
use PEAR2\SimpleChannelServer\Exception; | ||
namespace Pyrus\SimpleChannelServer\REST; | ||
use Pyrus\SimpleChannelServer\Exception; | ||
class Maintainer extends Manager | ||
{ | ||
function save(\Pyrus\Package $new) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ | |
* Base class for managing a REST based PEAR compatible channel server. | ||
* | ||
* @category Developer | ||
* @package PEAR2_SimpleChannelServer | ||
* @package Pyrus_SimpleChannelServer | ||
* @author Greg Beaver <[email protected]> | ||
* @license http://www.opensource.org/licenses/bsd-license.php New BSD License | ||
* @link http://svn.php.net/viewvc/pear2/sandbox/SimpleChannelServer/ | ||
* @link https://github.com/pyrus/Pyrus_SimpleChannelServer | ||
*/ | ||
namespace PEAR2\SimpleChannelServer\REST; | ||
use PEAR2\SimpleChannelServer\Exception; | ||
namespace Pyrus\SimpleChannelServer\REST; | ||
use Pyrus\SimpleChannelServer\Exception; | ||
class Manager | ||
{ | ||
/** | ||
|
@@ -64,7 +64,7 @@ function saveRelease(\Pyrus\Package $new, $releaser) | |
$this->chan . ' channel, and package is in ' . | ||
$new->channel . ' channel'); | ||
} | ||
$categories = new \PEAR2\SimpleChannelServer\Categories($this->channel); | ||
$categories = new \Pyrus\SimpleChannelServer\Categories($this->channel); | ||
$category = new Category($this->rest, $this->channel, | ||
$this->uri, $categories); | ||
$package = new Package($this->rest, $this->channel, | ||
|
Oops, something went wrong.