Plugin Directory

Changeset 2240220


Ignore:
Timestamp:
02/07/2020 01:36:26 AM (6 years ago)
Author:
tomspocket
Message:

Update readme

Location:
spocket/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • spocket/trunk/changelog.txt

    r2190980 r2240220  
    11*** Spocket for WooCommerce Changelog ***
    22
     32019-12-09 - versin 1.5.6
     4* Update server verification check
    352019-11-12 - version 1.5.5
    46* Fix assets on extension
  • spocket/trunk/composer.json

    r2146731 r2240220  
    1010        "vlucas/phpdotenv": "2.5.1",
    1111        "composer/installers": "1.5.0",
    12         "automattic/vipwpcs": "^2.0"
     12        "automattic/vipwpcs": "^2.0",
     13        "wp-coding-standards/wpcs": "^2.2",
     14        "woocommerce/woocommerce-sniffs": "^0.0.9"
    1315    },
    1416    "require-dev": {
  • spocket/trunk/composer.lock

    r2146731 r2240220  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "e8daa3687a3ddeee31af67c35ee31ece",
     7    "content-hash": "14b004de59a6077d12750de66ce0fe9e",
    88    "packages": [
    99        {
     
    174174        },
    175175        {
     176            "name": "dealerdirect/phpcodesniffer-composer-installer",
     177            "version": "v0.5.0",
     178            "source": {
     179                "type": "git",
     180                "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git",
     181                "reference": "e749410375ff6fb7a040a68878c656c2e610b132"
     182            },
     183            "dist": {
     184                "type": "zip",
     185                "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/e749410375ff6fb7a040a68878c656c2e610b132",
     186                "reference": "e749410375ff6fb7a040a68878c656c2e610b132",
     187                "shasum": ""
     188            },
     189            "require": {
     190                "composer-plugin-api": "^1.0",
     191                "php": "^5.3|^7",
     192                "squizlabs/php_codesniffer": "^2|^3"
     193            },
     194            "require-dev": {
     195                "composer/composer": "*",
     196                "phpcompatibility/php-compatibility": "^9.0",
     197                "sensiolabs/security-checker": "^4.1.0"
     198            },
     199            "type": "composer-plugin",
     200            "extra": {
     201                "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
     202            },
     203            "autoload": {
     204                "psr-4": {
     205                    "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
     206                }
     207            },
     208            "notification-url": "https://packagist.org/downloads/",
     209            "license": [
     210                "MIT"
     211            ],
     212            "authors": [
     213                {
     214                    "name": "Franck Nijhof",
     215                    "email": "franck.nijhof@dealerdirect.com",
     216                    "homepage": "http://www.frenck.nl",
     217                    "role": "Developer / IT Manager"
     218                }
     219            ],
     220            "description": "PHP_CodeSniffer Standards Composer Installer Plugin",
     221            "homepage": "http://www.dealerdirect.com",
     222            "keywords": [
     223                "PHPCodeSniffer",
     224                "PHP_CodeSniffer",
     225                "code quality",
     226                "codesniffer",
     227                "composer",
     228                "installer",
     229                "phpcs",
     230                "plugin",
     231                "qa",
     232                "quality",
     233                "standard",
     234                "standards",
     235                "style guide",
     236                "stylecheck",
     237                "tests"
     238            ],
     239            "time": "2018-10-26T13:21:45+00:00"
     240        },
     241        {
    176242            "name": "nategood/httpful",
    177243            "version": "0.2.20",
     
    224290        },
    225291        {
     292            "name": "phpcompatibility/php-compatibility",
     293            "version": "9.3.4",
     294            "source": {
     295                "type": "git",
     296                "url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
     297                "reference": "1f37659196e4f3113ea506a7efba201c52303bf1"
     298            },
     299            "dist": {
     300                "type": "zip",
     301                "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/1f37659196e4f3113ea506a7efba201c52303bf1",
     302                "reference": "1f37659196e4f3113ea506a7efba201c52303bf1",
     303                "shasum": ""
     304            },
     305            "require": {
     306                "php": ">=5.3",
     307                "squizlabs/php_codesniffer": "^2.3 || ^3.0.2"
     308            },
     309            "conflict": {
     310                "squizlabs/php_codesniffer": "2.6.2"
     311            },
     312            "require-dev": {
     313                "phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
     314            },
     315            "suggest": {
     316                "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
     317                "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
     318            },
     319            "type": "phpcodesniffer-standard",
     320            "notification-url": "https://packagist.org/downloads/",
     321            "license": [
     322                "LGPL-3.0-or-later"
     323            ],
     324            "authors": [
     325                {
     326                    "name": "Wim Godden",
     327                    "homepage": "https://github.com/wimg",
     328                    "role": "lead"
     329                },
     330                {
     331                    "name": "Juliette Reinders Folmer",
     332                    "homepage": "https://github.com/jrfnl",
     333                    "role": "lead"
     334                },
     335                {
     336                    "name": "Contributors",
     337                    "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors"
     338                }
     339            ],
     340            "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.",
     341            "homepage": "http://techblog.wimgodden.be/tag/codesniffer/",
     342            "keywords": [
     343                "compatibility",
     344                "phpcs",
     345                "standards"
     346            ],
     347            "time": "2019-11-15T04:12:02+00:00"
     348        },
     349        {
     350            "name": "phpcompatibility/phpcompatibility-paragonie",
     351            "version": "1.3.0",
     352            "source": {
     353                "type": "git",
     354                "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git",
     355                "reference": "b862bc32f7e860d0b164b199bd995e690b4b191c"
     356            },
     357            "dist": {
     358                "type": "zip",
     359                "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/b862bc32f7e860d0b164b199bd995e690b4b191c",
     360                "reference": "b862bc32f7e860d0b164b199bd995e690b4b191c",
     361                "shasum": ""
     362            },
     363            "require": {
     364                "phpcompatibility/php-compatibility": "^9.0"
     365            },
     366            "require-dev": {
     367                "dealerdirect/phpcodesniffer-composer-installer": "^0.5",
     368                "paragonie/random_compat": "dev-master",
     369                "paragonie/sodium_compat": "dev-master"
     370            },
     371            "suggest": {
     372                "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
     373                "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
     374            },
     375            "type": "phpcodesniffer-standard",
     376            "notification-url": "https://packagist.org/downloads/",
     377            "license": [
     378                "LGPL-3.0-or-later"
     379            ],
     380            "authors": [
     381                {
     382                    "name": "Wim Godden",
     383                    "role": "lead"
     384                },
     385                {
     386                    "name": "Juliette Reinders Folmer",
     387                    "role": "lead"
     388                }
     389            ],
     390            "description": "A set of rulesets for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.",
     391            "homepage": "http://phpcompatibility.com/",
     392            "keywords": [
     393                "compatibility",
     394                "paragonie",
     395                "phpcs",
     396                "polyfill",
     397                "standards"
     398            ],
     399            "time": "2019-11-04T15:17:54+00:00"
     400        },
     401        {
     402            "name": "phpcompatibility/phpcompatibility-wp",
     403            "version": "2.1.0",
     404            "source": {
     405                "type": "git",
     406                "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git",
     407                "reference": "41bef18ba688af638b7310666db28e1ea9158b2f"
     408            },
     409            "dist": {
     410                "type": "zip",
     411                "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/41bef18ba688af638b7310666db28e1ea9158b2f",
     412                "reference": "41bef18ba688af638b7310666db28e1ea9158b2f",
     413                "shasum": ""
     414            },
     415            "require": {
     416                "phpcompatibility/php-compatibility": "^9.0",
     417                "phpcompatibility/phpcompatibility-paragonie": "^1.0"
     418            },
     419            "require-dev": {
     420                "dealerdirect/phpcodesniffer-composer-installer": "^0.5"
     421            },
     422            "suggest": {
     423                "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
     424                "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
     425            },
     426            "type": "phpcodesniffer-standard",
     427            "notification-url": "https://packagist.org/downloads/",
     428            "license": [
     429                "LGPL-3.0-or-later"
     430            ],
     431            "authors": [
     432                {
     433                    "name": "Wim Godden",
     434                    "role": "lead"
     435                },
     436                {
     437                    "name": "Juliette Reinders Folmer",
     438                    "role": "lead"
     439                }
     440            ],
     441            "description": "A ruleset for PHP_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.",
     442            "homepage": "http://phpcompatibility.com/",
     443            "keywords": [
     444                "compatibility",
     445                "phpcs",
     446                "standards",
     447                "wordpress"
     448            ],
     449            "time": "2019-08-28T14:22:28+00:00"
     450        },
     451        {
    226452            "name": "squizlabs/php_codesniffer",
    227453            "version": "3.4.2",
     
    325551        },
    326552        {
     553            "name": "woocommerce/woocommerce-sniffs",
     554            "version": "0.0.9",
     555            "source": {
     556                "type": "git",
     557                "url": "https://github.com/woocommerce/woocommerce-sniffs.git",
     558                "reference": "7677a84e9a355fe1e088f704090be891e7a6d427"
     559            },
     560            "dist": {
     561                "type": "zip",
     562                "url": "https://api.github.com/repos/woocommerce/woocommerce-sniffs/zipball/7677a84e9a355fe1e088f704090be891e7a6d427",
     563                "reference": "7677a84e9a355fe1e088f704090be891e7a6d427",
     564                "shasum": ""
     565            },
     566            "require": {
     567                "dealerdirect/phpcodesniffer-composer-installer": "0.5.0",
     568                "php": ">=7.0",
     569                "phpcompatibility/phpcompatibility-wp": "2.1.0",
     570                "wp-coding-standards/wpcs": "2.2.0"
     571            },
     572            "type": "phpcodesniffer-standard",
     573            "notification-url": "https://packagist.org/downloads/",
     574            "license": [
     575                "MIT"
     576            ],
     577            "authors": [
     578                {
     579                    "name": "Claudio Sanches",
     580                    "email": "claudio@automattic.com"
     581                }
     582            ],
     583            "description": "WooCommerce sniffs",
     584            "keywords": [
     585                "phpcs",
     586                "standards",
     587                "woocommerce",
     588                "wordpress"
     589            ],
     590            "time": "2019-11-11T15:48:34+00:00"
     591        },
     592        {
    327593            "name": "wp-coding-standards/wpcs",
    328             "version": "2.1.1",
     594            "version": "2.2.0",
    329595            "source": {
    330596                "type": "git",
    331597                "url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
    332                 "reference": "bd9c33152115e6741e3510ff7189605b35167908"
    333             },
    334             "dist": {
    335                 "type": "zip",
    336                 "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/bd9c33152115e6741e3510ff7189605b35167908",
    337                 "reference": "bd9c33152115e6741e3510ff7189605b35167908",
     598                "reference": "f90e8692ce97b693633db7ab20bfa78d930f536a"
     599            },
     600            "dist": {
     601                "type": "zip",
     602                "url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/f90e8692ce97b693633db7ab20bfa78d930f536a",
     603                "reference": "f90e8692ce97b693633db7ab20bfa78d930f536a",
    338604                "shasum": ""
    339605            },
     
    358624                {
    359625                    "name": "Contributors",
    360                     "homepage": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/graphs/contributors"
     626                    "homepage": "https://github.com/WordPress/WordPress-Coding-Standards/graphs/contributors"
    361627                }
    362628            ],
     
    367633                "wordpress"
    368634            ],
    369             "time": "2019-05-21T02:50:00+00:00"
     635            "time": "2019-11-11T12:34:03+00:00"
    370636        }
    371637    ],
  • spocket/trunk/index.php

    r2208843 r2240220  
    33Plugin Name:  Spocket
    44Description:  Spocket - Dropshipping US/European Products
    5 Version:      1.5.6
     5Version:      1.5.7
    66Author:       Spocket
    77Author URI:   https://www.spocket.co
  • spocket/trunk/lib/ActivationCheck/Requirements.php

    r2208843 r2240220  
    2626     * @return bool
    2727     */
    28     private function isWoocommerceActivated()
    29     {
     28    private function isWoocommerceActivated() {
    3029        if (is_plugin_active('woocommerce/woocommerce.php')) {
    3130            return true;
     
    4039     * @return void
    4140     */
    42     private function deactivateSpocketPlugin()
    43     {
     41    private function deactivateSpocketPlugin() {
    4442        if (current_user_can('activate_plugins') && is_plugin_active(self::$object->plugin->getPluginBaseName())) {
    4543            deactivate_plugins(plugin_basename(self::$object->plugin->getPluginBaseName()));
     
    5654     * @return void
    5755     */
    58     public function __construct( \Spocket\Plugin $plugin)
    59     {
     56    public function __construct( \Spocket\Plugin $plugin) {
    6057        self::$object = $this;
    6158        $this->plugin = $plugin;
     
    6764     * @return void
    6865     */
    69     public static function disablePluginIfRequirementsFail()
    70     {
     66    public static function disablePluginIfRequirementsFail() {
    7167        if (!self::$object->isWoocommerceActivated()) {
    7268            self::$object->deactivateSpocketPlugin();
     
    8884     * @return void
    8985     */
    90     public static function notifyUser( $title, $message)
    91     {
    92       echo '<div class="error">
    93                 <p>'.
     86    public static function notifyUser( $title, $message) {
     87        echo '<div class="error">
     88                <p>' .
    9489                 esc_html__($title)
    95               .'</p>
     90              . '</p>
    9691                <p>
    97                  <b>Error: </b>'. esc_html__($message)
    98               .'</p>
     92                 <b>Error: </b>' . esc_html__($message)
     93              . '</p>
    9994             </div>';
    10095    }
     
    105100     * @return void
    106101     */
    107     public function run()
    108     {
     102    public function run() {
    109103        add_action('admin_init', array($this, 'disablePluginIfRequirementsFail'));
    110104    }
  • spocket/trunk/lib/Common/Requirements.php

    r2208843 r2240220  
    1313     * @return array cURL requirements check results
    1414     */
    15     public static function checkCurl()
    16     {
     15    public static function checkCurl() {
    1716        if (!in_array('curl', get_loaded_extensions())) {
    1817            return array(
     
    3534     * @return array SSL requirements check results
    3635     */
    37     public static function checkSSLConnection()
    38     {
     36    public static function checkSSLConnection() {
    3937        if (!getenv('IS_DEV') && ( !isset($_SERVER['HTTPS']) || empty($_SERVER['HTTPS']) || 'on' !== $_SERVER['HTTPS'] )) {
    4038            return array(
     
    6058     * @return array Store name requirements check results
    6159     */
    62     public static function getStoreNameRequirementsStatus()
    63     {
     60    public static function getStoreNameRequirementsStatus() {
    6461
    6562        if (get_option('blogname') === '') {
     
    8683     * @return array Current User requirements check results
    8784     */
    88     public static function getUserRequirementsStatus()
    89     {
     85    public static function getUserRequirementsStatus() {
    9086        $currentUser = wp_get_current_user();
    9187        if ($currentUser->get('user_email') === '') {
     
    112108     * @return array WooCommerce requirements check results
    113109     */
    114     public static function getWooCommerceRequirementsStatus()
    115     {
     110    public static function getWooCommerceRequirementsStatus() {
    116111        if (!function_exists('wc')) {
    117112            return array(
     
    152147     * @return array WordPress requirements check results
    153148     */
    154     public static function getWordPressRequirementsStatus()
    155     {
     149    public static function getWordPressRequirementsStatus() {
    156150        if (!version_compare(get_bloginfo('version'), '4.4', '>=')) {
    157151            return array(
     
    180174     * @return array Permalinks requirements check results
    181175     */
    182     public static function getPermalinksRequirementsStatus()
    183     {
     176    public static function getPermalinksRequirementsStatus() {
    184177        if (get_option('permalink_structure', '') === '') {
    185178            return array(
     
    208201     * @return array Requirements check results
    209202     */
    210     public static function getRequirementsStatus()
    211     {
     203    public static function getRequirementsStatus() {
    212204        $requirementsStatus = array(
    213205            'woocommerce' => self::getWooCommerceRequirementsStatus(),
     
    222214    }
    223215
    224     private static function getApiURL()
    225     {
     216    private static function getApiURL() {
    226217        $plugin = new \Spocket\Plugin();
    227218        return $plugin->getApiURL();
  • spocket/trunk/lib/Plugin.php

    r2208843 r2240220  
    3434     * @var string
    3535     */
    36     protected $version = '1.5.6';
     36    protected $version = '1.5.7';
    3737
    3838    /**1000
  • spocket/trunk/package.json

    r2152883 r2240220  
    33  "private": true,
    44  "scripts": {
    5     "test": "echo \"Error: no test specified\" && exit 1",
     5    "test": "./vendor/bin/phpcs --standard=./phpcs.xml --warning-severity=0 --ignore-annotations",
     6    "fix_errors": "./vendor/bin/phpcbf --standard=./phpcs.xml",
    67    "build": "cross-env NODE_ENV=production webpack --config webpack.config.js --progress --hide-modules --mode production",
    78    "build:dev": "cross-env NODE_ENV=development webpack --config webpack.config.js --progress --hide-modules --mode development",
  • spocket/trunk/readme.txt

    r2208843 r2240220  
    33Requires at least: 4.4
    44Tested up to: 5.3
    5 Stable tag: 1.5.6
     5Stable tag: 1.5.7
    66
    77Find fast shipping products from reliable suppliers, import them to [your WooCommerce store](https://www.spocket.co/for-woocommerce) and manage your orders automatically: all for free.
     
    5050[Spocket's](https://www.spocket.co/for-woocommerce) support team is always here to help you out. Have any questions or concerns? Just send us a message via the real-time messaging system inside Spocket's dashboard.
    5151
     52_Here’s how **[Marc built his brand and made $178,492 in just three months](https://www.spocket.co/blogs/how-i-made-178-492-in-three-months-by-dropshipping-us-eu-products)**, using Spocket!_
     53
     54_**Looking for unbeatable strategies on how to grow your eCommerce store? Learn from other expert entrepreneurs in the [Spocket Academy](https://academy.spocket.co/), or join the discussion with other like-minded business owners on the Spocket [Facebook group](https://www.facebook.com/groups/spocketofficial/), a community of over 30,000 successful merchants.**_
     55
     56_Here’s how **[Erin was able to scale multiple businesses to $442,991 in just half a year](https://www.spocket.co/blogs/how-this-entrepreneur-earned-442-991-usd-in-just-six-months-by-building-a-business-that-people-loved)** by building businesses that people loved!_
     57
    5258== Frequently Asked Questions ==
    5359
Note: See TracChangeset for help on using the changeset viewer.