Skip to content

Commit

Permalink
Merge pull request #41 from joomla-extensions/develop
Browse files Browse the repository at this point in the history
Merging Develop Branch
  • Loading branch information
Jaz Parkyn authored Apr 2, 2017
2 parents c447d3d + de689c4 commit 0cffa5b
Show file tree
Hide file tree
Showing 49 changed files with 205 additions and 262 deletions.
16 changes: 0 additions & 16 deletions .tx/config

This file was deleted.

32 changes: 1 addition & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,11 @@
JEDchecker
JED Checker
==========

This extension is able to check your components, modules or plugins for common errors that will prevent you
from publishing your extension on the JED (Joomla! Extensions Directory).

Installing this extension
ZIP packages with the latest stable version of the extension can be found here:
https://compojoom.com/downloads/official-releases-stable/jedchecker

If you are developer and want to contribute to this extension you can fork this repo.

## Building the zip package from this repository
In order to build the installation packages of this library you need to have
the following tools:

- A command line environment. Bash under Linux / Mac OS X . On Windows
you will need to run most tools using an elevated privileges (administrator)
command prompt.
- The PHP CLI binary in your path

- Command line Subversion and Git binaries(*)

- PEAR and Phing installed, with the Net_FTP and VersionControl_SVN PEAR
packages installed

You will also need the following path structure on your system

- com_jedchecker - This repository
- buildtools - Compojoom build tools (https://github.com/compojoom/buildtools)

To execute the build, copy `com_jedchecker/builds/build.properties.txt` renaming it without the `.txt` suffix.

Then in your command line navigate to the `builds` directory and run `phing`

cd com_jedchecker/builds/
phing

## Uploading your package
After installing this extension in your Joomla! backend, you can use it by uploading a Joomla! extension-package using
the upload-button. Once uploaded, the contents of the package (your files) will be checked against JED-rules.
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions administrator/components/com_jedchecker/access.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<access component="com_jedchecker">
<section name="component">
<action name="core.admin" title="JACTION_ADMIN" description="JACTION_ADMIN_COMPONENT_DESC" />
<action name="core.manage" title="JACTION_MANAGE" description="JACTION_MANAGE_COMPONENT_DESC" />
</section>
</access>
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<?php
/**
* @author Daniel Dimitrov - compojoom.com
* @date : 02.06.12
*
* @copyright Copyright (C) 2008 - 2012 compojoom.com . All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/

defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.controllerlegacy');

if (!JFactory::getUser()->authorise('core.manage', 'com_jedchecker'))
{
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'));
}

// We'll need jfile and JFolder all through the compoenent so let us load them here
jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');

$input = JFactory::getApplication()->input;
$view = $input->getCmd('view', '');

if ($view == '' && $input->getCmd('task', '') == '')
{
$input->set('view', 'uploads');
}

$controller = JControllerLegacy::getInstance('jedchecker');
$controller->execute($input->getCmd('task', ''));
$controller->redirect();
<?php
/**
* @author Daniel Dimitrov - compojoom.com
* @date : 02.06.12
*
* @copyright Copyright (C) 2008 - 2012 compojoom.com . All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/

defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.controllerlegacy');

if (!JFactory::getUser()->authorise('core.manage', 'com_jedchecker'))
{
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'));
}

// We'll need jfile and JFolder all through the compoenent so let us load them here
jimport('joomla.filesystem.folder');
jimport('joomla.filesystem.file');

$input = JFactory::getApplication()->input;
$view = $input->getCmd('view', '');

if ($view == '' && $input->getCmd('task', '') == '')
{
$input->set('view', 'uploads');
}

$controller = JControllerLegacy::getInstance('jedchecker');
$controller->execute($input->getCmd('task', ''));
$controller->redirect();
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions builds/build.properties.txt

This file was deleted.

172 changes: 0 additions & 172 deletions builds/build.xml

This file was deleted.

19 changes: 19 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<config>
<fieldset
name="permissions"
label="JCONFIG_PERMISSIONS_LABEL"
description="JCONFIG_PERMISSIONS_DESC"
>
<field
name="rules"
type="rules"
label="JCONFIG_PERMISSIONS_LABEL"
class="inputbox"
validate="rules"
filter="rules"
component="com_jedchecker"
section="component"
/>
</fieldset>
</config>
37 changes: 37 additions & 0 deletions jedchecker.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<extension method="upgrade" type="component" version="2.5.0">
<name>COM_JEDCHECKER</name>
<author>Joomla! Extensions Directory</author>
<creationDate>2017-02-14</creationDate>
<copyright>Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.</copyright>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://github.com/joomla-extensions/jedchecker</authorUrl>
<version>1.7</version>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<description><![CDATA[JED Checker will check your extension files and will let you know in advance if there are any possible problems with your extension for submitting to the JED]]>
</description>
<scriptfile>script.php</scriptfile>
<administration>
<menu>COM_JEDCHECKER</menu>
<files folder="administrator/components/com_jedchecker">
<file>access.xml</file>
<file>config.xml</file>
<file>controller.php</file>
<folder>controllers</folder>
<file>jedchecker.php</file>
<file>jedchecker.xml</file>
<folder>language</folder>
<folder>libraries</folder>
<folder>models</folder>
<file>script.php</file>
<folder>views</folder>
</files>
</administration>
<media destination="com_jedchecker" folder="media/com_jedchecker">
<folder>css</folder>
<folder>js</folder>
</media>
<updateservers>
<server type="extension" priority="1" name="JEDChecker Updates"><![CDATA[https://compojoom.com/index.php?option=com_ars&view=update&task=stream&format=xml&id=12&dummy=extension.xml]]></server>
</updateservers>
</extension>
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 0cffa5b

Please sign in to comment.