Skip to content

Commit

Permalink
v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
seb86 committed Jan 21, 2022
1 parent b7e4331 commit 5fbdfc4
Show file tree
Hide file tree
Showing 10 changed files with 867 additions and 608 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog for CoCart Beta Tester

## v2.1.0 - 21st January, 2022

* Corrected plugin icon displayed on update page when an update is available.
* Added link to changelog per release when viewing the version picker page.
* Improved the updater to allow beta releases of other CoCart plugins to be supported in the future.

## v2.0.0 - 20th October, 2021

* Enhancement - Channel selection; choose to receive RC or beta versions.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/version-picker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cocart-beta-tester.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Easily update to prerelease versions of CoCart Lite for testing and development purposes.
* Author: CoCart
* Author URI: https://cocart.xyz
* Version: 2.0.0
* Version: 2.1.0
* Text Domain: cocart-beta-tester
* Domain Path: /languages/
* Requires at least: 5.5
Expand All @@ -22,7 +22,7 @@
}

if ( ! defined( 'COCART_BETA_TESTER_VERSION' ) ) {
define( 'COCART_BETA_TESTER_VERSION', '2.0.0' );
define( 'COCART_BETA_TESTER_VERSION', '2.1.0' );
}

/**
Expand Down
57 changes: 57 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "co-cart/cocart-beta-tester",
"description": "Easily update to prerelease versions of CoCart Lite for testing and development purposes.",
"homepage": "https://cocart.xyz",
"type": "wordpress-plugin",
"keywords": [
"wordpress",
"wordpress-development",
"plugin",
"woocommerce",
"e-commerce"
],
"license": "GPL-3.0-or-later",
"prefer-stable": true,
"minimum-stability": "stable",
"authors": [
{
"name": "Sébastien Dumont",
"email": "mailme@sebastiendumont.com",
"homepage": "https://sebastiendumont.com",
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/co-cart/cocart-beta-tester/issues"
},
"autoload": {
"classmap": [
"includes/"
]
},
"require": {
"composer/installers": "1.11.0",
"co-cart/cocart-sniffs": "0.0.2"
},
"require-dev": {
"wp-cli/i18n-command": "2.2.9",
"squizlabs/php_codesniffer": "3.6.0"
},
"scripts": {
"phpcs": [
"phpcs -s -p"
],
"phpcs-pre-commit": [
"phpcs -s -p -n"
],
"phpcbf": [
"phpcbf . -p"
]
},
"extra": {
"scripts-description": {
"phpcs": "Analyze code against the WordPress coding standards with PHP_CodeSniffer",
"phpcbf": "Fix coding standards warnings/errors automatically with PHP Code Beautifier"
}
}
}
31 changes: 31 additions & 0 deletions includes/class-cocart-beta-tester-core.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
/**
* CoCart Beta Tester.
*
* Checks for any beta updates available for the core of CoCart.
*
* @package CoCart_Beta_Tester
*/

defined( 'ABSPATH' ) || exit;

/**
* CoCart_Beta_Tester_Core Class.
*/
class CoCart_Beta_Tester_Core extends CoCart_Beta_Tester_Plugin_Update {

/**
* Constructor.
*
* @access public
*/
public function __construct() {
$this->plugin_file = 'cart-rest-api-for-woocommerce/cart-rest-api-for-woocommerce.php';
$this->plugin_slug = 'cart-rest-api-for-woocommerce';

parent::__construct( $this->plugin_file, $this->plugin_slug );
} // END__construct()

} // END class

return new CoCart_Beta_Tester_Core();
Loading

0 comments on commit 5fbdfc4

Please sign in to comment.