From ad4b99609c84be0f167587737486967a5264e4e3 Mon Sep 17 00:00:00 2001
From: Nathan Osman
Date: Mon, 5 Oct 2015 10:38:23 -0700
Subject: [PATCH] Updated all files with the new project name.
---
go-cannon.php => hectane.php | 20 +++----
go-cannon_api.php => hectane_api.php | 24 ++++-----
...annon_settings.php => hectane_settings.php | 52 +++++++++----------
readme.txt | 15 +++---
4 files changed, 57 insertions(+), 54 deletions(-)
rename go-cannon.php => hectane.php (63%)
rename go-cannon_api.php => hectane_api.php (80%)
rename go-cannon_settings.php => hectane_settings.php (72%)
diff --git a/go-cannon.php b/hectane.php
similarity index 63%
rename from go-cannon.php
rename to hectane.php
index 397670a..7b06fbf 100644
--- a/go-cannon.php
+++ b/hectane.php
@@ -1,22 +1,22 @@
$subject,
'text' => $message,
);
- return GoCannonAPI::instance()->send($email);
+ return HectaneAPI::instance()->send($email);
}
}
diff --git a/go-cannon_api.php b/hectane_api.php
similarity index 80%
rename from go-cannon_api.php
rename to hectane_api.php
index fa34beb..6b5ce5c 100644
--- a/go-cannon_api.php
+++ b/hectane_api.php
@@ -1,11 +1,11 @@
';
- echo '
The cURL PHP extension is required to use go-cannon.
';
+ echo '
The cURL PHP extension is required to use Hectane.
';
echo '';
}
/**
- * Attempt to send the specified email with go-cannon.
+ * Attempt to send the specified email with Hectane.
*
* The $email parameter is expected to be an array with the same parameters
* that /v1/send expects. A boolean is returned indicating success or
@@ -91,7 +91,7 @@ public function send($email) {
}
/**
- * Retrieve the current version of go-cannon.
+ * Retrieve the current version of Hectane.
*
* The version is returned as a string or the value "false" if an error
* occurs while making the API call.
diff --git a/go-cannon_settings.php b/hectane_settings.php
similarity index 72%
rename from go-cannon_settings.php
rename to hectane_settings.php
index 04756cd..e588531 100644
--- a/go-cannon_settings.php
+++ b/hectane_settings.php
@@ -1,10 +1,10 @@
These settings are used to connect to the go-cannon client.
';
+ echo '
These settings are used to connect to the Hectane client.
';
}
/**
@@ -101,7 +101,7 @@ public function connection_settings_callback() {
*/
public function text_field_callback($args) {
printf(
- '',
+ '',
esc_attr($args[0]),
esc_attr($args[0]),
esc_attr(self::get($args[0]))
@@ -113,7 +113,7 @@ public function text_field_callback($args) {
*/
public function checkbox_field_callback($args) {
printf(
- '',
+ '',
esc_attr($args[0]),
esc_attr($args[0]),
self::get($args[0]) ? 'checked="checked"' : ''
@@ -125,10 +125,10 @@ public function checkbox_field_callback($args) {
*/
public function add_options_page() {
add_options_page(
- 'go-cannon Options',
- 'go-cannon',
+ 'Hectane Options',
+ 'hectane',
'manage_options',
- 'go-cannon',
+ 'hectane',
array($this, 'display_options_page')
);
}
@@ -138,10 +138,10 @@ public function add_options_page() {
*/
public function display_options_page() {
echo '
';
- echo '
go-cannon Options
';
+ echo '
Hectane Options
';
echo '';
echo '
';
diff --git a/readme.txt b/readme.txt
index 5ba41ce..8e8b971 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,25 +1,28 @@
-=== go-cannon ===
+=== Hectane ===
Contributors: george_edison
Tags: mail, email
Requires at least: 3.0.1
Tested up to: 4.3.1
-Stable tag: trunk
+Stable tag: 0.1.1
License: MIT
License URI: https://opensource.org/licenses/MIT
-Deliver all WordPress emails via go-cannon.
+Deliver all WordPress emails via Hectane.
== Description ==
-This plugin provides an extremely easy way to route WordPress emails through [go-cannon](https://github.com/nathan-osman/go-cannon). After installing and configuring the plugin, all calls to `wp_mail()` will be intercepted and sent to go-cannon which will take care of delivery.
+This plugin provides an extremely easy way to route WordPress emails through [Hectane](https://github.com/hectane/hectane). After installing and configuring the plugin, all calls to `wp_mail()` will be intercepted and sent to Hectane which will take care of delivery.
== Installation ==
-1. Upload the directory `go-cannon` to the `wp-content/plugins/` directory.
+1. Upload the directory `hectane` to the `wp-content/plugins/` directory.
1. Activate the plugin through the 'Plugins' menu in WordPress.
-1. Configure the plugin through the 'go-cannon' item in the Settings' menu.
+1. Configure the plugin through the 'Hectane' item in the Settings' menu.
== Changelog ==
+= 0.1.1 =
+* Plugin renamed to "Hectane" due to upstream change of name
+
= 0.1.0 =
* Initial release of plugin