-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commits: Update assets files for WP Plugins Directory Deploy: Make naked version even more naked Rename author to "Redbit s.r.o." (slug redbitcz) Add product icon for Rename plugin as "SimpleShop.cz" (slug simpleshop-cz) Add readme.txt Literally mark MIT license as compatible with GNU General Public License Refactoring Fix Code style Refactor classes
- Loading branch information
Showing
35 changed files
with
2,018 additions
and
1,835 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 +3,7 @@ | |
*.idea* | ||
*.idea* | ||
*nbproject* | ||
*assets* | ||
*dist* | ||
composer.json | ||
composer.lock | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* @author Redbit s.r.o. <[email protected]> | ||
*/ | ||
|
||
$deploy = new DeployScript( 'simple-shop-connector' ); | ||
$deploy = new DeployScript( 'simpleshop-cz' ); | ||
$deploy->distDir = __DIR__ . '/dist'; | ||
|
||
try { | ||
|
@@ -92,7 +92,7 @@ private function buildPackage() { | |
__DIR__ . '/' . $this->productName . '.php', | ||
array( | ||
'Version: dev-master' => sprintf( 'Version: %s', $this->getNakedVersion() ), | ||
'define(\'SSC_PLUGIN_VERSION\',\'dev-master\');' => sprintf( 'define(\'SSC_PLUGIN_VERSION\',\'%s\');', | ||
'define( \'SIMPLESHOP_PLUGIN_VERSION\', \'dev-master\' );' => sprintf( 'define( \'SIMPLESHOP_PLUGIN_VERSION\', \'%s\' );', | ||
$this->version ), | ||
), | ||
$this->distDir | ||
|
@@ -191,12 +191,12 @@ private function zip( $fileOrPath, $zip, $baseDir = __DIR__ ) { | |
} | ||
|
||
/** | ||
* Strips "v" from versions (v1.2.3 -> 1.2.3) | ||
* Strips "v" from versions (v1.2.3-beta -> 1.2.3) | ||
* | ||
* @return bool|string | ||
*/ | ||
private function getNakedVersion() { | ||
return substr( $this->version, 1 ); | ||
return preg_replace('/^v(\d+\.\d+\.\d+)(?:-.*)+$/D', '$1', $this->version); | ||
} | ||
|
||
/** | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.