Skip to content

Commit b87f712

Browse files
committed
Big refactor, v2.0.0, PR #8
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
2 parents 6bee451 + 475d4ea commit b87f712

35 files changed

+2018
-1835
lines changed

LICENSE

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.
22+
23+
License IS COMPATIBLE with GNU General Public License.

assets/banner-772x250.png

11.1 KB
Loading

assets/icon-128x128.png

1.05 KB
Loading

assets/icon-256x256.png

2.19 KB
Loading

assets/screenshot-1.png

186 KB
Loading

assets/screenshot-2.png

177 KB
Loading

assets/screenshot-3.png

111 KB
Loading

deploy-exclude.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
*.idea*
44
*.idea*
55
*nbproject*
6+
*assets*
67
*dist*
78
composer.json
89
composer.lock

deploy.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @author Redbit s.r.o. <info@redbit.cz>
77
*/
88

9-
$deploy = new DeployScript( 'simple-shop-connector' );
9+
$deploy = new DeployScript( 'simpleshop-cz' );
1010
$deploy->distDir = __DIR__ . '/dist';
1111

1212
try {
@@ -92,7 +92,7 @@ private function buildPackage() {
9292
__DIR__ . '/' . $this->productName . '.php',
9393
array(
9494
'Version: dev-master' => sprintf( 'Version: %s', $this->getNakedVersion() ),
95-
'define(\'SSC_PLUGIN_VERSION\',\'dev-master\');' => sprintf( 'define(\'SSC_PLUGIN_VERSION\',\'%s\');',
95+
'define( \'SIMPLESHOP_PLUGIN_VERSION\', \'dev-master\' );' => sprintf( 'define( \'SIMPLESHOP_PLUGIN_VERSION\', \'%s\' );',
9696
$this->version ),
9797
),
9898
$this->distDir
@@ -191,12 +191,12 @@ private function zip( $fileOrPath, $zip, $baseDir = __DIR__ ) {
191191
}
192192

193193
/**
194-
* Strips "v" from versions (v1.2.3 -> 1.2.3)
194+
* Strips "v" from versions (v1.2.3-beta -> 1.2.3)
195195
*
196196
* @return bool|string
197197
*/
198198
private function getNakedVersion() {
199-
return substr( $this->version, 1 );
199+
return preg_replace('/^v(\d+\.\d+\.\d+)(?:-.*)+$/D', '$1', $this->version);
200200
}
201201

202202
/**

img/icon.png

3.36 KB
Loading

includes/class.ssc_access.php

Lines changed: 0 additions & 249 deletions
This file was deleted.

0 commit comments

Comments
 (0)