Skip to content

Commit

Permalink
Bumped version and updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
seb86 committed Aug 4, 2024
1 parent f1bb451 commit 7ac0a57
Show file tree
Hide file tree
Showing 6 changed files with 274 additions and 1,017 deletions.
34 changes: 9 additions & 25 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,6 @@ module.exports = function(grunt) {
{
pkg: grunt.file.readJSON( 'package.json' ),

// Update developer dependencies
devUpdate: {
packages: {
options: {
packageJson: null,
packages: {
devDependencies: true,
dependencies: false
},
reportOnlyPkgs: [],
reportUpdated: false,
semver: true,
updateType: 'force'
}
}
},

// Minify JavaScript
uglify: {
options: {
Expand Down Expand Up @@ -62,13 +45,13 @@ module.exports = function(grunt) {
'vendor'
],
mainFile: '<%= pkg.name %>.php', // Main project file.
potComments: 'Copyright (c) {year} Sébastien Dumont\nThis file is distributed under the same license as the CoCart package.', // The copyright at the beginning of the POT file.
potComments: 'Copyright (c) {year} CoCart Headless, LLC\nThis file is distributed under the same license as the CoCart package.', // The copyright at the beginning of the POT file.
potFilename: '<%= pkg.name %>.pot', // Name of the POT file.
potHeaders: {
'poedit': true, // Includes common Poedit headers.
'x-poedit-keywordslist': true, // Include a list of all possible gettext functions.
'Report-Msgid-Bugs-To': 'https://github.com/co-cart/cocart-beta-tester/issues',
'language-team': 'Sébastien Dumont <mailme@sebastiendumont.com>',
'Report-Msgid-Bugs-To': 'support@cocartapi.com',
'language-team': 'CoCart Headless, LLC <support@cocartapi.com>',
'language': 'en_US'
},
processPot: function( pot ) {
Expand Down Expand Up @@ -166,6 +149,10 @@ module.exports = function(grunt) {
from: /Requires PHP:.*$/m,
to: "Requires PHP: <%= pkg.requires_php %>"
},
{
from: /Tested up to:.*$/m,
to: 'Tested up to: <%= pkg.tested_up_to %>'
},
{
from: /Version:.*$/m,
to: "Version: <%= pkg.version %>"
Expand Down Expand Up @@ -215,7 +202,7 @@ module.exports = function(grunt) {
],
dest: 'build/',
dot: true
}
}
]
}
},
Expand All @@ -233,7 +220,7 @@ module.exports = function(grunt) {
cwd: './build/',
src: '**',
dest: '<%= pkg.name %>'
}
}
]
}
},
Expand All @@ -248,9 +235,6 @@ module.exports = function(grunt) {
// Set the default grunt command to run test cases.
grunt.registerTask( 'default', [ 'test' ] );

// Checks for developer dependencies updates.
grunt.registerTask( 'check', [ 'devUpdate' ] );

// Checks for errors.
grunt.registerTask( 'test', [ 'checktextdomain' ] );

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.

17 changes: 11 additions & 6 deletions cocart-beta-tester.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
<?php
/**
* Plugin Name: CoCart - Beta Tester
* Plugin URI: https://github.com/co-cart/cocart-beta-tester
* Plugin URI: https://github.com/cocart-headless/cocart-beta-tester
* Description: Easily update to prerelease versions of CoCart for testing and development purposes.
* Author: CoCart
* Author URI: https://cocart.xyz
* Version: 2.2.0
* Author URI: https://cocartapi.com
* Version: 2.3.0
* Text Domain: cocart-beta-tester
* Domain Path: /languages/
* Requires at least: 5.5
* Requires at least: 5.6
* Requires PHP: 7.4
* GitHub Plugin URI: https://github.com/co-cart/cocart-beta-tester
*
* Copyright: CoCart Headless, LLC
* License: GNU General Public License v3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*
* GitHub Plugin URI: https://github.com/cocart-headless/cocart-beta-tester
*
* @package CoCart_Beta_Tester
*/
Expand All @@ -22,7 +27,7 @@
}

if ( ! defined( 'COCART_BETA_TESTER_VERSION' ) ) {
define( 'COCART_BETA_TESTER_VERSION', '2.2.0' );
define( 'COCART_BETA_TESTER_VERSION', '2.3.0' );
}

/**
Expand Down
51 changes: 26 additions & 25 deletions languages/cocart-beta-tester.pot
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Copyright (c) 2023 Sébastien Dumont
# Copyright (c) 2024 CoCart Headless, LLC
# This file is distributed under the same license as the CoCart package.
msgid ""
msgstr ""
"Project-Id-Version: CoCart - Beta Tester 2.2.0\n"
"Report-Msgid-Bugs-To: https://github.com/co-cart/cocart-beta-tester/issues\n"
"POT-Creation-Date: 2023-01-25 20:04:03+00:00\n"
"Project-Id-Version: CoCart - Beta Tester 2.3.0\n"
"Report-Msgid-Bugs-To: support@cocartapi.com\n"
"POT-Creation-Date: 2024-08-04 22:45:45+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2023-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2024-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Sébastien Dumont <mailme@sebastiendumont.com>\n"
"Language-Team: CoCart Headless, LLC <support@cocartapi.com>\n"
"Language: en_US\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Country: United States\n"
Expand All @@ -34,7 +34,7 @@ msgid "CoCart Beta Tester"
msgstr ""

#: includes/class-cocart-beta-tester-admin-menus.php:54
#: includes/class-cocart-beta-tester-plugin-update.php:246
#: includes/class-cocart-beta-tester-plugin-update.php:253
msgid "Nightly Build"
msgstr ""

Expand Down Expand Up @@ -159,15 +159,15 @@ msgstr ""
msgid "Settings Saved"
msgstr ""

#: includes/class-cocart-beta-tester-plugin-update.php:232
#: includes/class-cocart-beta-tester-plugin-update.php:239
msgid "<h1><span>&#9888;</span>This is a nightly build<span>&#9888;</span></h1>"
msgstr ""

#: includes/class-cocart-beta-tester-plugin-update.php:236
#: includes/class-cocart-beta-tester-plugin-update.php:243
msgid "<h1><span>&#9888;</span>This is a beta release<span>&#9888;</span></h1>"
msgstr ""

#: includes/class-cocart-beta-tester-plugin-update.php:240
#: includes/class-cocart-beta-tester-plugin-update.php:247
msgid ""
"<h1><span>&#9888;</span>This is a pre-release "
"version<span>&#9888;</span></h1>"
Expand Down Expand Up @@ -204,42 +204,43 @@ msgstr ""
msgid "&nbsp;Installed Version"
msgstr ""

#: includes/class-cocart-beta-tester-version-picker.php:186
#: includes/class-cocart-beta-tester-version-picker.php:187
#: includes/class-cocart-beta-tester-version-picker.php:192
msgid "Changelog"
msgstr ""

#: includes/class-cocart-beta-tester-version-picker.php:196
#: includes/class-cocart-beta-tester-version-picker.php:203
msgid ""
"You are currently only able to install nightly builds of CoCart which does "
"not have any version specified."
msgstr ""

#: includes/class-cocart-beta-tester-version-picker.php:222
#: includes/class-cocart-beta-tester-version-picker.php:229
msgid "Available CoCart Releases"
msgstr ""

#: includes/class-cocart-beta-tester-version-picker.php:231
#: includes/class-cocart-beta-tester-version-picker.php:274
#: includes/class-cocart-beta-tester-version-picker.php:238
#: includes/class-cocart-beta-tester-version-picker.php:281
msgid "Switch version"
msgstr ""

#: includes/class-cocart-beta-tester-version-picker.php:245
#: includes/class-cocart-beta-tester-version-picker.php:252
msgid "Are you sure you want to switch the version of CoCart plugin?"
msgstr ""

#: includes/class-cocart-beta-tester-version-picker.php:249
#: includes/class-cocart-beta-tester-version-picker.php:256
msgid "Close modal panel"
msgstr ""

#: includes/class-cocart-beta-tester-version-picker.php:258
#: includes/class-cocart-beta-tester-version-picker.php:265
msgid "Installed Version:"
msgstr ""

#: includes/class-cocart-beta-tester-version-picker.php:264
#: includes/class-cocart-beta-tester-version-picker.php:271
msgid "New Version:"
msgstr ""

#: includes/class-cocart-beta-tester-version-picker.php:271
#: includes/class-cocart-beta-tester-version-picker.php:278
msgid ""
"Notice: We strongly recommend you perform the test on a staging site and "
"create a complete backup of your WordPress files and database prior to "
Expand All @@ -248,7 +249,7 @@ msgid ""
"using this plugin."
msgstr ""

#: includes/class-cocart-beta-tester-version-picker.php:275
#: includes/class-cocart-beta-tester-version-picker.php:282
msgid "Cancel"
msgstr ""

Expand All @@ -259,20 +260,20 @@ msgid ""
"updates from %2$sGitHub%3$s repository."
msgstr ""

#: includes/views/html-admin-notice-missing-cocart.php:40
#: includes/views/html-admin-notice-missing-cocart.php:38
msgid "Activate %s"
msgstr ""

#: includes/views/html-admin-notice-missing-cocart.php:44
#: includes/views/html-admin-notice-missing-cocart.php:40
msgid ""
"As you do not have permission to activate a plugin. Please ask a site "
"administrator to activate %s for you."
msgstr ""

#: includes/views/html-admin-notice-missing-cocart.php:59
#: includes/views/html-admin-notice-missing-cocart.php:52
msgid "Install %s"
msgstr ""

#: includes/views/html-admin-notice-missing-cocart.php:70
#: includes/views/html-admin-notice-missing-cocart.php:62
msgid "Turn off Beta Tester"
msgstr ""
Loading

0 comments on commit 7ac0a57

Please sign in to comment.