Skip to content

Commit

Permalink
Revert "Revert "Update to lunar""
Browse files Browse the repository at this point in the history
This reverts commit 87d5129.
  • Loading branch information
alecritson committed Sep 13, 2022
1 parent 87d5129 commit 3c83a70
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "getcandy/licensing",
"description": "GetCandy Licensing Package",
"name": "lunarphp/licensing",
"description": "Lunar Licensing Package",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"GetCandy\\Licensing\\": "src"
"Lunar\\Licensing\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"GetCandy\\Licensing\\Tests\\": "tests"
"Lunar\\Licensing\\Tests\\": "tests"
}
},
"extra": {
"laravel": {
"providers": [
"GetCandy\\Licensing\\LicensingServiceProvider"
"Lunar\\Licensing\\LicensingServiceProvider"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/License.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace GetCandy\Licensing;
namespace Lunar\Licensing;

use Illuminate\Support\Str;

Expand Down
10 changes: 5 additions & 5 deletions src/LicenseManager.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace GetCandy\Licensing;
namespace Lunar\Licensing;

use Illuminate\Support\Facades\Http;

class LicenseManager
{
protected static $host = 'https://getcandy.io';
protected static $host = 'https://lunarphp.io';

public static function fetch($package)
{
Expand All @@ -15,8 +15,8 @@ public static function fetch($package)
'id' => '123456',
'licensed' => (bool) ($package['license'] ?? false),
'verified' => true,
'url' => 'https://getcandy.io/getcandy/foo-bar',
'seller' => 'GetCandy',
'url' => 'https://lunarphp.io/getcandy/foo-bar',
'seller' => 'Lunar',
'latestVersion' => '1.2.0',
'domain' => 'http://myaddon.com',
], 200),
Expand All @@ -40,7 +40,7 @@ public static function fetchFail($package)
'licensed' => false,
'verified' => true,
'slug' => 'foo-bar',
'seller' => 'GetCandy',
'seller' => 'Lunar',
'current_version' => '1.0.0',
'latest_version' => '1.2.0',
'domain' => 'http://myaddon.com',
Expand Down
2 changes: 1 addition & 1 deletion src/LicensingServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace GetCandy\Licensing;
namespace Lunar\Licensing;

use Illuminate\Support\ServiceProvider;

Expand Down
2 changes: 1 addition & 1 deletion src/Utils.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace GetCandy\Licensing;
namespace Lunar\Licensing;

class Utils
{
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace GetCandy\Licensing\Tests;
namespace Lunar\Licensing\Tests;

use GetCandy\Licensing\LicensingServiceProvider;
use Lunar\Licensing\LicensingServiceProvider;

class TestCase extends \Orchestra\Testbench\TestCase
{
Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/LicenseManagerTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace GetCandy\Licensing\Tests\Unit;
namespace Lunar\Licensing\Tests\Unit;

use GetCandy\Licensing\License;
use GetCandy\Licensing\LicenseManager;
use GetCandy\Licensing\Tests\TestCase;
use Lunar\Licensing\License;
use Lunar\Licensing\LicenseManager;
use Lunar\Licensing\Tests\TestCase;
use Illuminate\Support\Facades\Http;

/**
Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/LicenseTest.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace GetCandy\Licensing\Tests\Unit;
namespace Lunar\Licensing\Tests\Unit;

use GetCandy\Licensing\License;
use GetCandy\Licensing\LicenseManager;
use GetCandy\Licensing\Tests\TestCase;
use Lunar\Licensing\License;
use Lunar\Licensing\LicenseManager;
use Lunar\Licensing\Tests\TestCase;
use Illuminate\Support\Facades\Http;

/**
Expand Down

0 comments on commit 3c83a70

Please sign in to comment.