Skip to content

Commit

Permalink
Merge pull request #93 from diggy/update-package-framework,-require-W…
Browse files Browse the repository at this point in the history
…P-CLI-1.3.0

update package framework, require WP-CLI 1.3.0
  • Loading branch information
diggy committed Aug 11, 2017
2 parents dc2c6b3 + da8db94 commit 5b64acc
Show file tree
Hide file tree
Showing 11 changed files with 433 additions and 80 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Quick links: [Installation](#installation) | [Using](#using) | [Contributing](#c

## Installation

Installing this package requires WP-CLI v1.2.1 or greater. Update to the latest stable release with `wp cli update`.
Installing this package requires WP-CLI v1.3.0 or greater. Update to the latest stable release with `wp cli update`.
Once you've done so, you can install this package with `wp package install [email protected]:diggy/polylang-cli.git`.

## Using
Expand Down
4 changes: 2 additions & 2 deletions command.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
WP_CLI::error( sprintf( 'This WP-CLI package requires PHP version %s or higher.', '5.5' ) );
}

if ( version_compare( WP_CLI_VERSION, '1.2.1', '<' ) ) {
WP_CLI::error( sprintf( 'This WP-CLI package requires WP-CLI version %s or higher. Please visit %s', '1.2.1', 'https://wp-cli.org/#updating' ) );
if ( version_compare( WP_CLI_VERSION, '1.3.0', '<' ) ) {
WP_CLI::error( sprintf( 'This WP-CLI package requires WP-CLI version %s or higher. Please visit %s', '1.3.0', 'https://wp-cli.org/#updating' ) );
}

# api, cli
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"files": ["command.php"]
},
"require": {
"wp-cli/wp-cli": "~1.2.1"
"wp-cli/wp-cli": "~1.3.0"
},
"require-dev": {
"behat/behat": "~2.5"
Expand Down Expand Up @@ -86,7 +87,7 @@
"Development"
],
"installation": {
"body": "Installing this package requires WP-CLI v1.2.1 or greater. Update to the latest stable release with `wp cli update`. \nOnce you've done so, you can install this package with `wp package install [email protected]:diggy/polylang-cli.git`."
"body": "Installing this package requires WP-CLI v1.3.0 or greater. Update to the latest stable release with `wp cli update`. \nOnce you've done so, you can install this package with `wp package install [email protected]:diggy/polylang-cli.git`."
},
"development": {
"body": "### Behat Tests\nTo run the Behat tests for polylang-cli, `cd` into the package directory and run `$ ./vendor/bin/behat --expand` from the command line. To run a specific group of tests use the `tags` parameter; e.g.: `$ ./vendor/bin/behat --expand --tags @pll-lang`"
Expand Down
39 changes: 19 additions & 20 deletions composer.lock

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

Loading

0 comments on commit 5b64acc

Please sign in to comment.