mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-01-23 07:08:33 +00:00
Tag 3.0.0 alpha
Signed-off-by: Michael Babker <mbabker@flbab.com>
This commit is contained in:
parent
928d314451
commit
91fb43e7b9
@ -11,7 +11,7 @@ namespace PatchTester\GitHub\Exception;
|
||||
/**
|
||||
* Exception representing an unexpected response
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
class UnexpectedResponse extends \DomainException
|
||||
{
|
||||
@ -19,7 +19,7 @@ class UnexpectedResponse extends \DomainException
|
||||
* The Response object.
|
||||
*
|
||||
* @var \JHttpResponse
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
private $response;
|
||||
|
||||
@ -31,7 +31,7 @@ class UnexpectedResponse extends \DomainException
|
||||
* @param integer $code The Exception code.
|
||||
* @param \Exception $previous The previous exception used for the exception chaining.
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function __construct(\JHttpResponse $response, $message = '', $code = 0, \Exception $previous = null)
|
||||
{
|
||||
@ -45,7 +45,7 @@ class UnexpectedResponse extends \DomainException
|
||||
*
|
||||
* @return \JHttpResponse
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function getResponse()
|
||||
{
|
||||
|
@ -13,7 +13,7 @@ use Joomla\Registry\Registry;
|
||||
/**
|
||||
* Helper class for interacting with the GitHub API.
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
class GitHub
|
||||
{
|
||||
@ -21,7 +21,7 @@ class GitHub
|
||||
* Options for the connector.
|
||||
*
|
||||
* @var Registry
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
protected $options;
|
||||
|
||||
@ -29,7 +29,7 @@ class GitHub
|
||||
* The HTTP client object to use in sending HTTP requests.
|
||||
*
|
||||
* @var \JHttp
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
protected $client;
|
||||
|
||||
@ -39,7 +39,7 @@ class GitHub
|
||||
* @param Registry $options Connector options.
|
||||
* @param \JHttp $client The HTTP client object.
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function __construct(Registry $options = null, \JHttp $client = null)
|
||||
{
|
||||
@ -59,7 +59,7 @@ class GitHub
|
||||
*
|
||||
* @return string The request URL.
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
protected function fetchUrl($path, $page = 0, $limit = 0)
|
||||
{
|
||||
@ -105,7 +105,7 @@ class GitHub
|
||||
*
|
||||
* @return \JHttp
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function getClient()
|
||||
{
|
||||
@ -121,7 +121,7 @@ class GitHub
|
||||
*
|
||||
* @return \JHttpResponse
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function getDiffForPullRequest($user, $repo, $pullId)
|
||||
{
|
||||
@ -146,7 +146,7 @@ class GitHub
|
||||
*
|
||||
* @return \JHttpResponse
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function getFileContents($user, $repo, $path, $ref = null)
|
||||
{
|
||||
@ -174,7 +174,7 @@ class GitHub
|
||||
*
|
||||
* @return \JHttpResponse
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function getFilesForPullRequest($user, $repo, $pullId)
|
||||
{
|
||||
@ -196,7 +196,7 @@ class GitHub
|
||||
*
|
||||
* @return \JHttpResponse
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function getOpenIssues($user, $repo, $page = 0, $limit = 0)
|
||||
{
|
||||
@ -213,7 +213,7 @@ class GitHub
|
||||
*
|
||||
* @return mixed The option value.
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function getOption($key, $default = null)
|
||||
{
|
||||
@ -229,7 +229,7 @@ class GitHub
|
||||
*
|
||||
* @return \JHttpResponse
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function getPullRequest($user, $repo, $pullId)
|
||||
{
|
||||
@ -246,7 +246,7 @@ class GitHub
|
||||
*
|
||||
* @return \JHttpResponse
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function getRateLimit()
|
||||
{
|
||||
@ -263,7 +263,7 @@ class GitHub
|
||||
*
|
||||
* @return \JHttpResponse
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
* @throws Exception\UnexpectedResponse
|
||||
*/
|
||||
protected function processResponse(\JHttpResponse $response, $expectedCode = 200)
|
||||
@ -293,7 +293,7 @@ class GitHub
|
||||
*
|
||||
* @return array Associative array containing the prepared URL and request headers
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
protected function prepareRequest($path, $page = 0, $limit = 0, array $headers = array())
|
||||
{
|
||||
@ -315,7 +315,7 @@ class GitHub
|
||||
*
|
||||
* @return $this
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function setOption($key, $value)
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ class PullModel extends \JModelDatabase
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
protected function parseFileList($files)
|
||||
{
|
||||
@ -356,7 +356,7 @@ class PullModel extends \JModelDatabase
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
private function removeTest($testRecord)
|
||||
{
|
||||
|
@ -2,12 +2,12 @@
|
||||
<extension type="component" version="3.6" method="upgrade">
|
||||
<name>com_patchtester</name>
|
||||
<author>Joomla! Project</author>
|
||||
<creationDate>11-May-2016</creationDate>
|
||||
<creationDate>25-June-2016</creationDate>
|
||||
<copyright>(C) 2011 - 2012 Ian MacLennan, (C) 2013 - 2016 Open Source Matters, Inc. All rights reserved.</copyright>
|
||||
<license>GNU General Public License version 2 or later</license>
|
||||
<authorEmail>admin@joomla.org</authorEmail>
|
||||
<authorUrl>https://www.joomla.org</authorUrl>
|
||||
<version>3.0.0-dev</version>
|
||||
<version>3.0.0-alpha</version>
|
||||
<description>COM_PATCHTESTER_XML_DESCRIPTION</description>
|
||||
<scriptfile>script.php</scriptfile>
|
||||
<install>
|
||||
|
@ -24,7 +24,7 @@ class Com_PatchtesterInstallerScript extends JInstallerScript
|
||||
/**
|
||||
* Extension script constructor.
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
@ -113,7 +113,7 @@ class Com_PatchtesterInstallerScript extends JInstallerScript
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since __DEPLOY_VERSION__
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function postflight($type, $parent)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user