Skip to content

Commit

Permalink
Change package directorygs
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Oct 12, 2017
1 parent b833eb4 commit 3788403
Show file tree
Hide file tree
Showing 76 changed files with 111 additions and 175 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
- Config for PHPStorm editor
- Config for Sublime Text 3 editor
- Config for Visual Studio Code editor
- Option to disable project on Dashboard
### Changed
- Allow better configuration of editor's binary
- Moved Laravel related classes out from Vendor\Laravel
- Completely restructure package directory
### Fixed
- Abending when tester used in suite does not exists
- Piper script not being
Expand Down
26 changes: 13 additions & 13 deletions LICENSE → LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Copyright (c) 2014, Antonio Carlos Ribeiro
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright (c) 2014, Antonio Carlos Ribeiro

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@

"autoload": {
"psr-4": {
"PragmaRX\\TestsWatcher\\": "src/",
"PragmaRX\\TestsWatcher\\Package\\": "src/package",
"PragmaRX\\TestsWatcher\\Tests\\": "tests/"
},
"psr-0": {
"JasonLewis\\ResourceWatcher": "src/Support/jasonlewis/resource-watcher/src"
"JasonLewis\\ResourceWatcher": "src/package/Support/jasonlewis/resource-watcher/src"
}
},

"extra": {
"component": "package",
"laravel": {
"providers": [
"PragmaRX\\TestsWatcher\\ServiceProvider"
"PragmaRX\\TestsWatcher\\Package\\ServiceProvider"
]
}
}
Expand Down
37 changes: 0 additions & 37 deletions src/Facade.php

This file was deleted.

29 changes: 0 additions & 29 deletions src/Service.php

This file was deleted.

8 changes: 4 additions & 4 deletions src/config/ci.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
],

'users' => [
'model' => PragmaRX\TestsWatcher\Entities\User::class, // App\User::class,
'model' => PragmaRX\TestsWatcher\Package\Entities\User::class, // App\User::class,

'emails' => [
'[email protected]',
Expand All @@ -106,16 +106,16 @@
'channels' => [
'mail' => [
'enabled' => false,
'sender' => PragmaRX\TestsWatcher\Notifications\Channels\Mail::class,
'sender' => PragmaRX\TestsWatcher\Package\Notifications\Channels\Mail::class,
],

'slack' => [
'enabled' => true,
'sender' => PragmaRX\TestsWatcher\Notifications\Channels\Slack::class,
'sender' => PragmaRX\TestsWatcher\Package\Notifications\Channels\Slack::class,
],
],

'notifier' => 'PragmaRX\TestsWatcher\Notifications',
'notifier' => 'PragmaRX\TestsWatcher\Package\Notifications',
],

/*
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Console\Commands;
namespace PragmaRX\TestsWatcher\Package\Console\Commands;

use Illuminate\Console\Command;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Console\Commands;
namespace PragmaRX\TestsWatcher\Package\Console\Commands;

class ClearCommand extends BaseCommand
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Console\Commands;
namespace PragmaRX\TestsWatcher\Package\Console\Commands;

class TestCommand extends BaseCommand
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Console\Commands;
namespace PragmaRX\TestsWatcher\Package\Console\Commands;

class WatchCommand extends BaseCommand
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php

namespace PragmaRX\TestsWatcher\Data\Repositories;
namespace PragmaRX\TestsWatcher\Package\Data\Repositories;

use Carbon\Carbon;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB as Database;
use PragmaRX\TestsWatcher\Entities\Project;
use PragmaRX\TestsWatcher\Entities\Queue;
use PragmaRX\TestsWatcher\Entities\Run;
use PragmaRX\TestsWatcher\Entities\Suite;
use PragmaRX\TestsWatcher\Entities\Test;
use PragmaRX\TestsWatcher\Entities\Tester;
use PragmaRX\TestsWatcher\Support\Notifier;
use PragmaRX\TestsWatcher\Package\Entities\Project;
use PragmaRX\TestsWatcher\Package\Entities\Queue;
use PragmaRX\TestsWatcher\Package\Entities\Run;
use PragmaRX\TestsWatcher\Package\Entities\Suite;
use PragmaRX\TestsWatcher\Package\Entities\Test;
use PragmaRX\TestsWatcher\Package\Entities\Tester;
use PragmaRX\TestsWatcher\Package\Support\Notifier;
use SensioLabs\AnsiConverter\AnsiToHtmlConverter;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
Expand Down Expand Up @@ -354,7 +354,7 @@ public function getSuites()
/**
* Find project by id.
*
* @return \PragmaRX\TestsWatcher\Entities\Project|null
* @return \PragmaRX\TestsWatcher\Package\Entities\Project|null
*/
public function findProjectById($id)
{
Expand All @@ -364,7 +364,7 @@ public function findProjectById($id)
/**
* Find suite by id.
*
* @return \PragmaRX\TestsWatcher\Entities\Suite|null
* @return \PragmaRX\TestsWatcher\Package\Entities\Suite|null
*/
public function findSuiteById($id)
{
Expand All @@ -375,7 +375,7 @@ public function findSuiteById($id)
* Create or update a test.
*
* @param \Symfony\Component\Finder\SplFileInfo $file
* @param \PragmaRX\TestsWatcher\Entities\Suite $suite
* @param \PragmaRX\TestsWatcher\Package\Entities\Suite $suite
*/
public function createOrUpdateTest($file, $suite)
{
Expand Down Expand Up @@ -699,7 +699,7 @@ public function addTestToQueue($test, $force = false)
/**
* Get a test from the queue.
*
* @return \PragmaRX\TestsWatcher\Entities\Test|null
* @return \PragmaRX\TestsWatcher\Package\Entities\Test|null
*/
public function getNextTestFromQueue()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/Model.php → src/package/Entities/Model.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Entities;
namespace PragmaRX\TestsWatcher\Package\Entities;

use Illuminate\Database\Eloquent\Model as Eloquent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Entities;
namespace PragmaRX\TestsWatcher\Package\Entities;

class Project extends Model
{
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/Queue.php → src/package/Entities/Queue.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Entities;
namespace PragmaRX\TestsWatcher\Package\Entities;

class Queue extends Model
{
Expand All @@ -17,6 +17,6 @@ class Queue extends Model
*/
public function test()
{
return $this->belongsTo('PragmaRX\TestsWatcher\Entities\Test');
return $this->belongsTo('PragmaRX\TestsWatcher\Package\Entities\Test');
}
}
2 changes: 1 addition & 1 deletion src/Entities/Run.php → src/package/Entities/Run.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Entities;
namespace PragmaRX\TestsWatcher\Package\Entities;

class Run extends Model
{
Expand Down
8 changes: 4 additions & 4 deletions src/Entities/Suite.php → src/package/Entities/Suite.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Entities;
namespace PragmaRX\TestsWatcher\Package\Entities;

class Suite extends Model
{
Expand Down Expand Up @@ -42,7 +42,7 @@ public function getTestsFullPathAttribute($value)
*/
public function project()
{
return $this->belongsTo('PragmaRX\TestsWatcher\Entities\Project');
return $this->belongsTo('PragmaRX\TestsWatcher\Package\Entities\Project');
}

/**
Expand All @@ -52,7 +52,7 @@ public function project()
*/
public function tester()
{
return $this->belongsTo('PragmaRX\TestsWatcher\Entities\Tester');
return $this->belongsTo('PragmaRX\TestsWatcher\Package\Entities\Tester');
}

/**
Expand All @@ -62,7 +62,7 @@ public function tester()
*/
public function tests()
{
return $this->hasMany('PragmaRX\TestsWatcher\Entities\Test');
return $this->hasMany('PragmaRX\TestsWatcher\Package\Entities\Test');
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Entities/Test.php → src/package/Entities/Test.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Entities;
namespace PragmaRX\TestsWatcher\Package\Entities;

class Test extends Model
{
Expand Down Expand Up @@ -33,7 +33,7 @@ public function getFullPathAttribute($value)
*/
public function suite()
{
return $this->belongsTo('PragmaRX\TestsWatcher\Entities\Suite');
return $this->belongsTo('PragmaRX\TestsWatcher\Package\Entities\Suite');
}

/**
Expand All @@ -57,7 +57,7 @@ public function getTestCommandAttribute($value)
*/
public function runs()
{
return $this->hasMany('PragmaRX\TestsWatcher\Entities\Run');
return $this->hasMany('PragmaRX\TestsWatcher\Package\Entities\Run');
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Entities;
namespace PragmaRX\TestsWatcher\Package\Entities;

class Tester extends Model
{
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/User.php → src/package/Entities/User.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Entities;
namespace PragmaRX\TestsWatcher\Package\Entities;

class User extends Model
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Events;
namespace PragmaRX\TestsWatcher\Package\Events;

use Illuminate\Contracts\Queue\ShouldQueue;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace PragmaRX\TestsWatcher\Events;
namespace PragmaRX\TestsWatcher\Package\Events;

use Illuminate\Contracts\Queue\ShouldQueue;

Expand Down
Loading

0 comments on commit 3788403

Please sign in to comment.