Skip to content

Commit

Permalink
Merge pull request #5 from heikkivihersalo/hotfix/version-numbering-t…
Browse files Browse the repository at this point in the history
…o-beta-and-file-zipping-commands

HOTFIX: Overall version numbering to beta and file zipping commands
  • Loading branch information
heikkivihersalo authored Oct 10, 2024
2 parents 3961e23 + bc2555e commit 133e9d5
Show file tree
Hide file tree
Showing 20 changed files with 117 additions and 96 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ dist
out
target
vendor
gutenberg-native-ai.zip

### Environment ###
.env
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* The bootstrap file for the plugin.
*
* @link https://www.kotisivu.dev
* @since 1.0.0
* @since 0.1.0
* @package Gutenberg_Native_Ai
*/

Expand Down
8 changes: 5 additions & 3 deletions gutenberg-native-ai.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,22 @@
* The plugin bootstrap file
*
* @link https://www.kotisivu.dev
* @since 1.0.0
* @since 0.1.0
* @package Gutenberg_Native_Ai
*
* @wordpress-plugin
* Plugin Name: Gutenberg Native AI (Beta)
* Plugin URI: https://www.kotisivu.dev
* Description: A plugin that extends the Gutenberg editor with AI features designed to work natively with WordPress.
* Version: 1.0.0
* Version: 0.1.0
* Author: Heikki Vihersalo
* Author URI: https://www.kotisivu.dev/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: gutenberg-native-ai
* Domain Path: /languages
* Requires at least: 6.5.2
* Requires PHP: 8.2
*/

namespace Kotisivu\Gutenberg_Native_AI;
Expand All @@ -29,7 +31,7 @@
/**
* Current plugin and API versions.
*/
define( 'GUTENBERG_NATIVE_AI_VERSION', '1.0.0' );
define( 'GUTENBERG_NATIVE_AI_VERSION', '0.1.0' );
define( 'GUTENBERG_NATIVE_AI_API_VERSION', '1' );

/**
Expand Down
4 changes: 2 additions & 2 deletions includes/api/class-api-callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* The API callback class file
*
* @link https://www.kotisivu.dev
* @since 1.0.0
* @since 0.1.0
*
* @package Gutenberg_Native_Ai
*/
Expand All @@ -13,7 +13,7 @@
/**
* This class handles the API callbacks for the plugin.
* @since 1.0.0
* @since 0.1.0
* @package Gutenberg_Native_Ai
* @author Heikki Vihersalo <[email protected]>
*/
Expand Down
14 changes: 7 additions & 7 deletions includes/api/class-api-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* The API utility functions file
*
* @link https://www.kotisivu.dev
* @since 1.0.0
* @since 0.1.0
*
* @package Gutenberg_Native_Ai
*/
Expand All @@ -13,7 +13,7 @@
/**
* This class handles the API utility functions for the plugin.
*
* @since 1.0.0
* @since 0.1.0
* @package Gutenberg_Native_Ai
* @author Heikki Vihersalo <[email protected]>
*/
Expand All @@ -27,7 +27,7 @@ private function __construct() {
/**
* Get ChatGPT settings from the database
*
* @since 1.0.0
* @since 0.1.0
* @access public
* @return array
*/
Expand All @@ -52,7 +52,7 @@ public static function get_chatgpt_settings(): array {
/**
* Update ChatGPT settings in the database
*
* @since 1.0.0
* @since 0.1.0
* @access public
* @param \WP_REST_Request $request Request object.
* @return array
Expand Down Expand Up @@ -92,7 +92,7 @@ public static function update_chatgpt_settings( \WP_REST_Request $request ): arr
/**
* Get content from Open AI
*
* @since 1.0.0
* @since 0.1.0
* @access public
* @param \WP_REST_Request $request Request object.
* @return Object
Expand Down Expand Up @@ -141,7 +141,7 @@ public static function get_open_ai_text_content( \WP_REST_Request $request ): ar
/**
* Get content from Open AI
*
* @since 1.0.0
* @since 0.1.0
* @access public
* @param \WP_REST_Request $request Request object.
* @return Object
Expand Down Expand Up @@ -187,7 +187,7 @@ public static function get_open_ai_image_content( \WP_REST_Request $request ): a
*
* @see https://gist.github.com/cyberwani/ad5452b040001878d692c3165836ebff
*
* @since 1.0.0
* @since 0.1.0
* @access public
* @param \WP_REST_Request $request Request object.
* @return Object
Expand Down
14 changes: 7 additions & 7 deletions includes/api/class-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* The main API class file
*
* @link https://www.kotisivu.dev
* @since 1.0.0
* @since 0.1.0
*
* @package Gutenberg_Native_Ai
*/
Expand All @@ -13,15 +13,15 @@
/**
* This class handles the core API functionality for the plugin.
*
* @since 1.0.0
* @since 0.1.0
* @package Gutenberg_Native_Ai
* @author Heikki Vihersalo <[email protected]>
*/
class API {
/**
* The base endpoint for this API.
*
* @since 1.0.0
* @since 0.1.0
* @access protected
* @var string $base The base endpoint for this API.
*/
Expand All @@ -30,7 +30,7 @@ class API {
/**
* The unique identifier for this API endpoint (plugin name).
*
* @since 1.0.0
* @since 0.1.0
* @access protected
* @var string $plugin_name The string used to uniquely identify this plugin.
*/
Expand All @@ -39,7 +39,7 @@ class API {
/**
* The current version of the API endpoint.
*
* @since 1.0.0
* @since 0.1.0
* @access protected
* @var string $version The current version of the API endpoint.
*/
Expand All @@ -62,7 +62,7 @@ public function __construct( string $name, string $version ) {
/**
* Load dependencies
*
* @since 1.0.0
* @since 0.1.0
* @access private
* @return void
*/
Expand All @@ -76,7 +76,7 @@ private function load_dependencies() {
/**
* Register plugin API routes
*
* @since 1.0.0
* @since 0.1.0
* @access public
* @return void
*/
Expand Down
16 changes: 8 additions & 8 deletions includes/api/class-data-encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Class responsible for encrypting and decrypting data.
*
* @since 1.0.0
* @since 0.1.0
* @access private
* @ignore
*/
Expand All @@ -22,23 +22,23 @@ final class Data_Encryption {
/**
* Key to use for encryption.
*
* @since 1.0.0
* @since 0.1.0
* @var string
*/
private $key;

/**
* Salt to use for encryption.
*
* @since 1.0.0
* @since 0.1.0
* @var string
*/
private $salt;

/**
* Constructor.
*
* @since 1.0.0
* @since 0.1.0
*/
public function __construct() {
$this->key = $this->get_default_key();
Expand All @@ -50,7 +50,7 @@ public function __construct() {
*
* If a user-based key is set, that key is used. Otherwise the default key is used.
*
* @since 1.0.0
* @since 0.1.0
*
* @param string $value Value to encrypt.
* @return string|bool Encrypted value, or false on failure.
Expand All @@ -77,7 +77,7 @@ public function encrypt( $value ) {
*
* If a user-based key is set, that key is used. Otherwise the default key is used.
*
* @since 1.0.0
* @since 0.1.0
*
* @param string $raw_value Value to decrypt.
* @return string|bool Decrypted value, or false on failure.
Expand Down Expand Up @@ -106,7 +106,7 @@ public function decrypt( $raw_value ) {
/**
* Gets the default encryption key to use.
*
* @since 1.0.0
* @since 0.1.0
*
* @return string Default (not user-based) encryption key.
*/
Expand All @@ -126,7 +126,7 @@ private function get_default_key() {
/**
* Gets the default encryption salt to use.
*
* @since 1.0.0
* @since 0.1.0
*
* @return string Encryption salt.
*/
Expand Down
8 changes: 4 additions & 4 deletions includes/api/enum-api-permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* The API permissions enum file
*
* @link https://www.kotisivu.dev
* @since 1.0.0
* @since 0.1.0
*
* @package Gutenberg_Native_Ai
*/
Expand All @@ -13,22 +13,22 @@
/**
* Enum Permission
*
* @since 1.0.0
* @since 0.1.0
* @package Gutenberg_Native_Ai
* @author Heikki Vihersalo <[email protected]>
*/
enum API_Permission {
/**
* Admin permission
*
* @since 1.0.0
* @since 0.1.0
*/
case ADMIN;

/**
* Get the callback for the permission
*
* @since 1.0.0
* @since 0.1.0
* @access public
* @return \Closure|bool
*/
Expand Down
6 changes: 3 additions & 3 deletions includes/class-activator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Fired during plugin activation
*
* @link https://www.kotisivu.dev
* @since 1.0.0
* @since 0.1.0
*
* @package Gutenberg_Native_Ai
*/
Expand All @@ -15,7 +15,7 @@
*
* This class defines all code necessary to run during the plugin's activation.
*
* @since 1.0.0
* @since 0.1.0
* @package Gutenberg_Native_Ai
* @author Heikki Vihersalo <[email protected]>
*/
Expand All @@ -25,7 +25,7 @@ class Activator {
*
* Long Description.
*
* @since 1.0.0
* @since 0.1.0
*/
public static function activate() {
}
Expand Down
10 changes: 5 additions & 5 deletions includes/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* The admin-specific functionality of the plugin.
*
* @link https://www.kotisivu.dev
* @since 1.0.0
* @since 0.1.0
*
* @package Gutenberg_Native_Ai
*/
Expand All @@ -13,15 +13,15 @@
/**
* This class defines all code necessary handle the admin area.
*
* @since 1.0.0
* @since 0.1.0
* @package Gutenberg_Native_Ai
* @author Heikki Vihersalo <[email protected]>
*/
class Admin {
/**
* The unique identifier of this plugin.
*
* @since 1.0.0
* @since 0.1.0
* @access protected
* @var string $plugin_name The string used to uniquely identify this plugin.
*/
Expand All @@ -30,7 +30,7 @@ class Admin {
/**
* The current version of the plugin.
*
* @since 1.0.0
* @since 0.1.0
* @access protected
* @var string $version The current version of the plugin.
*/
Expand All @@ -39,7 +39,7 @@ class Admin {
/**
* Constructor
*
* @since 1.0.0
* @since 0.1.0
* @param string $plugin_name The string used to uniquely identify this plugin.
* @param string $version The current version of the plugin.
*/
Expand Down
Loading

0 comments on commit 133e9d5

Please sign in to comment.