Hello community, here is the log from the commit of package platformsh-cli for openSUSE:Factory checked in at 2018-02-21 14:13:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/platformsh-cli (Old) and /work/SRC/openSUSE:Factory/.platformsh-cli.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "platformsh-cli" Wed Feb 21 14:13:14 2018 rev:37 rq:578539 version:3.29.2 Changes: -------- --- /work/SRC/openSUSE:Factory/platformsh-cli/platformsh-cli.changes 2018-02-20 17:55:46.816941304 +0100 +++ /work/SRC/openSUSE:Factory/.platformsh-cli.new/platformsh-cli.changes 2018-02-21 14:13:15.762319076 +0100 @@ -1,0 +2,9 @@ +Tue Feb 20 20:08:46 UTC 2018 - [email protected] + +- Update to version 3.29.2: + * Release v3.29.2 + * Move release logic out of self:build + * Update dependencies + * [self:stats] Add --page option [skip changelog] + +------------------------------------------------------------------- Old: ---- platformsh-cli-3.29.1.tar.xz New: ---- platformsh-cli-3.29.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ platformsh-cli.spec ++++++ --- /var/tmp/diff_new_pack.T2wt4L/_old 2018-02-21 14:13:16.870279176 +0100 +++ /var/tmp/diff_new_pack.T2wt4L/_new 2018-02-21 14:13:16.870279176 +0100 @@ -17,7 +17,7 @@ Name: platformsh-cli -Version: 3.29.1 +Version: 3.29.2 Release: 0 Summary: Tool for managing Platform.sh services from the command line # See licenses.txt for dependency licenses. ++++++ _service ++++++ --- /var/tmp/diff_new_pack.T2wt4L/_old 2018-02-21 14:13:16.902278023 +0100 +++ /var/tmp/diff_new_pack.T2wt4L/_new 2018-02-21 14:13:16.906277879 +0100 @@ -2,7 +2,7 @@ <service name="tar_scm" mode="disabled"> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> - <param name="revision">refs/tags/v3.29.1</param> + <param name="revision">refs/tags/v3.29.2</param> <param name="url">git://github.com/platformsh/platformsh-cli.git</param> <param name="scm">git</param> <param name="changesgenerate">enable</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.T2wt4L/_old 2018-02-21 14:13:16.926277159 +0100 +++ /var/tmp/diff_new_pack.T2wt4L/_new 2018-02-21 14:13:16.926277159 +0100 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">git://github.com/platformsh/platformsh-cli.git</param> - <param name="changesrevision">eca9da9648826c4932b4b74f5fc6d4d3717dc6e3</param> + <param name="changesrevision">c78d88937a158468e41cd0c8d5038305c93e596e</param> </service> </servicedata> ++++++ extensions.txt ++++++ --- /var/tmp/diff_new_pack.T2wt4L/_old 2018-02-21 14:13:16.954276151 +0100 +++ /var/tmp/diff_new_pack.T2wt4L/_new 2018-02-21 14:13:16.958276007 +0100 @@ -2,33 +2,37 @@ ( [requires] => Array ( - [0] => php >=5.2.0 - [1] => php >=5.2.0 - [2] => php >=5.3 - [3] => php >=5.3.0 - [4] => php >=5.3.0 + [0] => ext-openssl * + [1] => ext-openssl * + [2] => ext-pcre * + [3] => php >=5.2.0 + [4] => php >=5.2.0 [5] => php >=5.3.0 - [6] => php >=5.3.2 - [7] => php >=5.3.3 - [8] => php >=5.3.3 - [9] => php >=5.4.0 - [10] => php >=5.4.0 + [6] => php >=5.3.0 + [7] => php >=5.3.0 + [8] => php >=5.3.2 + [9] => php >=5.3.3 + [10] => php >=5.3.3 [11] => php >=5.4.0 [12] => php >=5.4.0 [13] => php >=5.4.0 - [14] => php >=5.5.9 - [15] => php >=5.5.9 + [14] => php >=5.4.0 + [15] => php >=5.4.0 [16] => php >=5.5.9 - [17] => php ^5.5.9|>=7.0.8 - [18] => php ^5.5.9|>=7.0.8 - [19] => php ^5.5.9|>=7.0.8 - [20] => php ^5.5.9|>=7.0.8 + [17] => php >=5.5.9 + [18] => php >=5.5.9 + [19] => php ^5.3 || ^7.0 || ^7.1 || ^7.2 + [20] => php ^5.3.2 || ^7.0 [21] => php ^5.5.9|>=7.0.8 [22] => php ^5.5.9|>=7.0.8 [23] => php ^5.5.9|>=7.0.8 [24] => php ^5.5.9|>=7.0.8 [25] => php ^5.5.9|>=7.0.8 - [26] => php ~5.5|~7.0 + [26] => php ^5.5.9|>=7.0.8 + [27] => php ^5.5.9|>=7.0.8 + [28] => php ^5.5.9|>=7.0.8 + [29] => php ^5.5.9|>=7.0.8 + [30] => php ~5.5|~7.0 ) [suggests] => Array ++++++ licenses.txt ++++++ --- /var/tmp/diff_new_pack.T2wt4L/_old 2018-02-21 14:13:16.978275286 +0100 +++ /var/tmp/diff_new_pack.T2wt4L/_new 2018-02-21 14:13:16.978275286 +0100 @@ -6,6 +6,7 @@ Name Version License cocur/slugify v2.5 MIT commerceguys/guzzle-oauth2-plugin v2.1.1 MIT +composer/ca-bundle 1.1.0 MIT cweagans/composer-patches 1.6.4 BSD-2-Clause doctrine/cache v1.6.2 MIT firebase/php-jwt v2.2.0 BSD-3-Clause @@ -13,8 +14,8 @@ guzzlehttp/guzzle 5.3.2 MIT guzzlehttp/ringphp 1.1.0 MIT guzzlehttp/streams 3.0.0 MIT -padraic/humbug_get_contents 1.0.4 BSD-3-Clause -padraic/phar-updater 1.0.4 BSD-3-Clause +padraic/humbug_get_contents 1.1.2 BSD-3-Clause +padraic/phar-updater v1.0.5 BSD-3-Clause paragonie/random_compat v2.0.11 MIT platformsh/client v0.15.0 MIT platformsh/console-form v0.0.16 MIT @@ -29,6 +30,6 @@ symfony/event-dispatcher v3.4.4 MIT symfony/filesystem v3.4.4 MIT symfony/finder v3.4.4 MIT -symfony/polyfill-mbstring v1.6.0 MIT +symfony/polyfill-mbstring v1.7.0 MIT symfony/process v3.4.4 MIT symfony/yaml v3.4.4 MIT ++++++ platformsh-cli-3.29.1.tar.xz -> platformsh-cli-3.29.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.29.1/composer.lock new/platformsh-cli-3.29.2/composer.lock --- old/platformsh-cli-3.29.1/composer.lock 2018-02-19 13:10:22.000000000 +0100 +++ new/platformsh-cli-3.29.2/composer.lock 2018-02-20 10:23:04.000000000 +0100 @@ -121,6 +121,62 @@ "time": "2015-12-12T23:27:25+00:00" }, { + "name": "composer/ca-bundle", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/composer/ca-bundle.git", + "reference": "943b2c4fcad1ef178d16a713c2468bf7e579c288" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/943b2c4fcad1ef178d16a713c2468bf7e579c288", + "reference": "943b2c4fcad1ef178d16a713c2468bf7e579c288", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "ext-pcre": "*", + "php": "^5.3.2 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35", + "psr/log": "^1.0", + "symfony/process": "^2.5 || ^3.0 || ^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\CaBundle\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "[email protected]", + "homepage": "http://seld.be" + } + ], + "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.", + "keywords": [ + "cabundle", + "cacert", + "certificate", + "ssl", + "tls" + ], + "time": "2017-11-29T09:37:33+00:00" + }, + { "name": "cweagans/composer-patches", "version": "1.6.4", "source": { @@ -486,36 +542,44 @@ }, { "name": "padraic/humbug_get_contents", - "version": "1.0.4", + "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/humbug/file_get_contents.git", - "reference": "66797199019d0cb4529cb8d29c6f0b4c5085b53a" + "reference": "dcb086060c9dd6b2f51d8f7a895500307110b7a7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/humbug/file_get_contents/zipball/66797199019d0cb4529cb8d29c6f0b4c5085b53a", - "reference": "66797199019d0cb4529cb8d29c6f0b4c5085b53a", + "url": "https://api.github.com/repos/humbug/file_get_contents/zipball/dcb086060c9dd6b2f51d8f7a895500307110b7a7", + "reference": "dcb086060c9dd6b2f51d8f7a895500307110b7a7", "shasum": "" }, "require": { - "php": ">=5.3" + "composer/ca-bundle": "^1.0", + "ext-openssl": "*", + "php": "^5.3 || ^7.0 || ^7.1 || ^7.2" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "bamarni/composer-bin-plugin": "^1.1", + "mikey179/vfsstream": "^1.6", + "phpunit/phpunit": "^4.8 || ^5.7 || ^6.5" }, "type": "library", "extra": { + "bamarni-bin": { + "bin-links": false + }, "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "2.0-dev" } }, "autoload": { "psr-4": { - "Humbug\\": "src/Humbug/" + "Humbug\\": "src/" }, "files": [ - "src/function.php" + "src/function.php", + "src/functions.php" ] }, "notification-url": "https://packagist.org/downloads/", @@ -527,6 +591,10 @@ "name": "Pádraic Brady", "email": "[email protected]", "homepage": "http://blog.astrumfutura.com" + }, + { + "name": "Théo Fidry", + "email": "[email protected]" } ], "description": "Secure wrapper for accessing HTTPS resources with file_get_contents for PHP 5.3+", @@ -539,24 +607,24 @@ "ssl", "tls" ], - "time": "2015-04-22T18:45:00+00:00" + "time": "2018-02-12T18:47:17+00:00" }, { "name": "padraic/phar-updater", - "version": "1.0.4", + "version": "v1.0.5", "source": { "type": "git", "url": "https://github.com/humbug/phar-updater.git", - "reference": "ac8802df2d1d03b7092b6f044a914f8d21592aae" + "reference": "fb9d3b1551a99466f0a74cd264f4c95a8621ac7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/humbug/phar-updater/zipball/ac8802df2d1d03b7092b6f044a914f8d21592aae", - "reference": "ac8802df2d1d03b7092b6f044a914f8d21592aae", + "url": "https://api.github.com/repos/humbug/phar-updater/zipball/fb9d3b1551a99466f0a74cd264f4c95a8621ac7a", + "reference": "fb9d3b1551a99466f0a74cd264f4c95a8621ac7a", "shasum": "" }, "require": { - "padraic/humbug_get_contents": "1.0.4", + "padraic/humbug_get_contents": "^1.0", "php": ">=5.3.3" }, "require-dev": { @@ -591,7 +659,7 @@ "self-update", "update" ], - "time": "2017-07-12T22:42:45+00:00" + "time": "2018-02-20T01:18:59+00:00" }, { "name": "paragonie/random_compat", @@ -1337,16 +1405,16 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.6.0", + "version": "v1.7.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296" + "reference": "78be803ce01e55d3491c1397cf1c64beb9c1b63b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", - "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/78be803ce01e55d3491c1397cf1c64beb9c1b63b", + "reference": "78be803ce01e55d3491c1397cf1c64beb9c1b63b", "shasum": "" }, "require": { @@ -1358,7 +1426,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6-dev" + "dev-master": "1.7-dev" } }, "autoload": { @@ -1392,7 +1460,7 @@ "portable", "shim" ], - "time": "2017-10-11T12:05:26+00:00" + "time": "2018-01-30T19:27:44+00:00" }, { "name": "symfony/process", @@ -1692,24 +1760,23 @@ }, { "name": "drush/drush", - "version": "8.1.15", + "version": "8.1.16", "source": { "type": "git", "url": "https://github.com/drush-ops/drush.git", - "reference": "f78b619806a9bc7c3d167fa425e8757eb046bb87" + "reference": "bbaff2dc725a5f3eb22006c5de3dc92a2de54b08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/drush-ops/drush/zipball/f78b619806a9bc7c3d167fa425e8757eb046bb87", - "reference": "f78b619806a9bc7c3d167fa425e8757eb046bb87", + "url": "https://api.github.com/repos/drush-ops/drush/zipball/bbaff2dc725a5f3eb22006c5de3dc92a2de54b08", + "reference": "bbaff2dc725a5f3eb22006c5de3dc92a2de54b08", "shasum": "" }, "require": { - "consolidation/annotated-command": "~2", + "consolidation/annotated-command": "^2.8.1", "consolidation/output-formatters": "~3", - "pear/console_table": "~1.3.0", + "pear/console_table": "~1.3.1", "php": ">=5.4.5", - "phpdocumentor/reflection-docblock": "^2.0", "psr/log": "~1.0", "psy/psysh": "~0.6", "symfony/console": "~2.7|^3", @@ -1752,7 +1819,7 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "GPL-2.0+" + "GPL-2.0-or-later" ], "authors": [ { @@ -1798,7 +1865,7 @@ ], "description": "Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.", "homepage": "http://www.drush.org", - "time": "2017-10-10T02:05:46+00:00" + "time": "2018-02-06T21:18:48+00:00" }, { "name": "jakub-onderka/php-console-color", @@ -1994,38 +2061,135 @@ "time": "2018-01-25T20:47:17+00:00" }, { + "name": "phpdocumentor/reflection-common", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "[email protected]" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "time": "2017-09-11T18:02:19+00:00" + }, + { "name": "phpdocumentor/reflection-docblock", - "version": "2.0.5", + "version": "3.2.2", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b" + "reference": "4aada1f93c72c35e22fb1383b47fee43b8f1d157" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/e6a969a640b00d8daa3c66518b0405fb41ae0c4b", - "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/4aada1f93c72c35e22fb1383b47fee43b8f1d157", + "reference": "4aada1f93c72c35e22fb1383b47fee43b8f1d157", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0@dev", + "phpdocumentor/type-resolver": "^0.3.0", + "webmozart/assert": "^1.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.4" }, - "suggest": { - "dflydev/markdown": "~1.0", - "erusev/parsedown": "~1.0" + "type": "library", + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "[email protected]" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2017-08-08T06:39:58+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "0.3.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "fb3933512008d8162b3cdf9e18dba9309b7c3773" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/fb3933512008d8162b3cdf9e18dba9309b7c3773", + "reference": "fb3933512008d8162b3cdf9e18dba9309b7c3773", + "shasum": "" + }, + "require": { + "php": "^5.5 || ^7.0", + "phpdocumentor/reflection-common": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^5.2||^4.8.24" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { - "psr-0": { - "phpDocumentor": [ + "psr-4": { + "phpDocumentor\\Reflection\\": [ "src/" ] } @@ -2037,23 +2201,23 @@ "authors": [ { "name": "Mike van Riel", - "email": "[email protected]" + "email": "[email protected]" } ], - "time": "2016-01-25T08:17:30+00:00" + "time": "2017-06-03T08:32:36+00:00" }, { "name": "phpspec/prophecy", - "version": "1.7.3", + "version": "1.7.5", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf" + "reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf", - "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/dfd6be44111a7c41c2e884a336cc4f461b3b2401", + "reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401", "shasum": "" }, "require": { @@ -2065,7 +2229,7 @@ }, "require-dev": { "phpspec/phpspec": "^2.5|^3.2", - "phpunit/phpunit": "^4.8.35 || ^5.7" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5" }, "type": "library", "extra": { @@ -2103,7 +2267,7 @@ "spy", "stub" ], - "time": "2017-11-24T13:59:53+00:00" + "time": "2018-02-19T10:16:54+00:00" }, { "name": "phpunit/php-code-coverage", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.29.1/config.yaml new/platformsh-cli-3.29.2/config.yaml --- old/platformsh-cli-3.29.1/config.yaml 2018-02-19 13:10:22.000000000 +0100 +++ new/platformsh-cli-3.29.2/config.yaml 2018-02-20 10:23:04.000000000 +0100 @@ -1,7 +1,7 @@ # Metadata about the CLI application itself. application: name: 'Platform.sh CLI' - version: '3.29.1' + version: '3.29.2' executable: 'platform' package_name: 'platformsh/cli' installer_url: 'https://platform.sh/cli/installer' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.29.1/dist/manifest.json new/platformsh-cli-3.29.2/dist/manifest.json --- old/platformsh-cli-3.29.1/dist/manifest.json 2018-02-19 13:10:22.000000000 +0100 +++ new/platformsh-cli-3.29.2/dist/manifest.json 2018-02-20 10:23:04.000000000 +0100 @@ -1,10 +1,10 @@ [ { "name": "platform.phar", - "sha1": "11d95c5f2e68a534cb19b7be34c146ce5d0ec142", - "sha256": "e3c41764818063bbdb9f59145d187cf8abd8dbc03a6aeadb7f4984b3fde00a59", - "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.29.1/platform.phar", - "version": "3.29.1", + "sha1": "9bac0042061ac37dba58fdf727ba9e63026bc134", + "sha256": "b45c9bdeacd6aac78da9e16c3c564db64100374681ed193bad70a2cf3f9ff09f", + "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.29.2/platform.phar", + "version": "3.29.2", "php": { "min": "5.5.9" }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.29.1/src/Command/Self/SelfBuildCommand.php new/platformsh-cli-3.29.2/src/Command/Self/SelfBuildCommand.php --- old/platformsh-cli-3.29.1/src/Command/Self/SelfBuildCommand.php 2018-02-19 13:10:22.000000000 +0100 +++ new/platformsh-cli-3.29.2/src/Command/Self/SelfBuildCommand.php 2018-02-20 10:23:04.000000000 +0100 @@ -19,9 +19,7 @@ ->setDescription('Build a new package of the CLI') ->addOption('key', null, InputOption::VALUE_REQUIRED, 'The path to a private key') ->addOption('output', null, InputOption::VALUE_REQUIRED, 'The output filename', $this->config()->get('application.executable') . '.phar') - ->addOption('no-composer-rebuild', null, InputOption::VALUE_NONE, 'Skip rebuilding Composer dependencies') - ->addOption('manifest', null, InputOption::VALUE_REQUIRED, 'The manifest file to update') - ->addOption('manifest-mode', null, InputOption::VALUE_REQUIRED, 'How to update the manifest file', 'update-latest'); + ->addOption('no-composer-rebuild', null, InputOption::VALUE_NONE, 'Skip rebuilding Composer dependencies'); } public function isEnabled() @@ -149,85 +147,6 @@ sprintf('Version: %s', $version), ]); - // Write to the manifest file. - $manifestFile = $input->getOption('manifest') ?: CLI_ROOT . '/dist/manifest.json'; - $contents = file_get_contents($manifestFile); - if ($contents === false) { - throw new \RuntimeException('Manifest file not readable: ' . $manifestFile); - } - if (!is_writable($manifestFile)) { - throw new \RuntimeException('Manifest file not writable: ' . $manifestFile); - } - $this->stdErr->writeln('Updating manifest file: ' . $manifestFile); - $manifest = json_decode($contents, true); - if ($manifest === null && json_last_error()) { - throw new \RuntimeException('Failed to decode manifest file: ' . $manifestFile); - } - $latestItem = null; - foreach ($manifest as $key => $item) { - if ($latestItem === null || version_compare($item['version'], $latestItem['version'], '>')) { - $latestItem = &$manifest[$key]; - } - } - - switch ($input->getOption('manifest-mode')) { - case 'update-latest': - $manifestItem = &$latestItem; - break; - - case 'add': - array_unshift($manifest, []); - $manifestItem = &$manifest[0]; - break; - - default: - throw new \RuntimeException('Unrecognised --manifest-mode: ' . $input->getOption('manifest-mode')); - } - - if (isset($latestItem)) { - $oldVersion = $latestItem['version']; - $this->stdErr->writeln(' Found latest version: v' . $oldVersion); - if (isset($latestItem['url'])) { - $manifestItem['url'] = str_replace($oldVersion, $version, $latestItem['url']); - } - $changelog = $shell->execute([ - 'git', - 'log', - '--pretty=format:* %s', - '--no-merges', - '--invert-grep', - '--grep=(Release v|\[skip changelog\])', - '--perl-regexp', - '--regexp-ignore-case', - 'v' . $oldVersion . '...master' - ]); - $changelog = is_string($changelog) ? $changelog : ''; - } - $manifestItem['version'] = $version; - $manifestItem['sha1'] = $sha1; - $manifestItem['sha256'] = $sha256; - $manifestItem['name'] = basename($phar); - $manifestItem['php']['min'] = '5.5.9'; - if (!empty($changelog) && !empty($oldVersion)) { - $manifestItem['updating'][] = [ - 'notes' => $changelog, - 'show from' => $oldVersion, - 'hide from' => $version, - ]; - $this->stdErr->writeln('<info>Changes:</info>'); - $this->stdErr->writeln($changelog); - $this->stdErr->writeln(''); - } - $result = file_put_contents($manifestFile, json_encode($manifest, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); - if ($result !== false) { - $this->stdErr->writeln('Updated manifest file: ' . $manifestFile); - } - else { - $this->stdErr->writeln('Failed to update manifest file: ' . $manifestFile); - - return 1; - } - return 0; } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.29.1/src/Command/Self/SelfReleaseCommand.php new/platformsh-cli-3.29.2/src/Command/Self/SelfReleaseCommand.php --- old/platformsh-cli-3.29.1/src/Command/Self/SelfReleaseCommand.php 2018-02-19 13:10:22.000000000 +0100 +++ new/platformsh-cli-3.29.2/src/Command/Self/SelfReleaseCommand.php 2018-02-20 10:23:04.000000000 +0100 @@ -13,11 +13,16 @@ protected function configure() { + $defaultRepo = $this->config()->has('application.github_repo') + ? $this->config()->get('application.github_repo') : null; + $this ->setName('self:release') ->setDescription('Build and release a new version') ->addOption('phar', null, InputOption::VALUE_REQUIRED, 'The path to a newly built Phar file') - ->addOption('repo', null, InputOption::VALUE_REQUIRED, 'The GitHub repository', $this->config()->has('application.github_repo') ? $this->config()->get('application.github_repo') : null); + ->addOption('repo', null, InputOption::VALUE_REQUIRED, 'The GitHub repository', $defaultRepo) + ->addOption('manifest', null, InputOption::VALUE_REQUIRED, 'The manifest file to update') + ->addOption('manifest-mode', null, InputOption::VALUE_REQUIRED, 'How to update the manifest file', 'update-latest'); } public function isEnabled() @@ -47,7 +52,7 @@ return 1; } - if ($git->execute(['diff', 'master...development'], CLI_ROOT, true) && $questionHelper->confirm('Merge changes from development?')) { + if (strlen($git->execute(['diff', 'master...development'], CLI_ROOT)) && $questionHelper->confirm('Merge changes from development?')) { $git->execute(['merge', 'development'], CLI_ROOT, true); } @@ -136,16 +141,41 @@ } } - $gitStatus = $git->execute(['status', '--porcelain'], CLI_ROOT, true); - if (is_string($gitStatus) && !empty($gitStatus)) { - $this->stdErr->writeln('Committing changes to Git'); - - $result = $shell->executeSimple('git commit --patch config.yaml dist/manifest.json --message ' . escapeshellarg('Release v' . $newVersion) . ' --edit', CLI_ROOT); - if ($result !== 0) { - return $result; + // Write to the manifest file. + $manifestFile = $input->getOption('manifest') ?: CLI_ROOT . '/dist/manifest.json'; + $contents = file_get_contents($manifestFile); + if ($contents === false) { + throw new \RuntimeException('Manifest file not readable: ' . $manifestFile); + } + if (!is_writable($manifestFile)) { + throw new \RuntimeException('Manifest file not writable: ' . $manifestFile); + } + $this->stdErr->writeln('Updating manifest file: ' . $manifestFile); + $manifest = json_decode($contents, true); + if ($manifest === null && json_last_error()) { + throw new \RuntimeException('Failed to decode manifest file: ' . $manifestFile); + } + $latestItem = null; + foreach ($manifest as $key => $item) { + if ($latestItem === null || version_compare($item['version'], $latestItem['version'], '>')) { + $latestItem = &$manifest[$key]; } } + switch ($input->getOption('manifest-mode')) { + case 'update-latest': + $manifestItem = &$latestItem; + break; + + case 'add': + array_unshift($manifest, []); + $manifestItem = &$manifest[0]; + break; + + default: + throw new \RuntimeException('Unrecognised --manifest-mode: ' . $input->getOption('manifest-mode')); + } + $latest = $http->get($repoApiUrl . '/releases/latest', [ 'headers' => [ 'Authorization' => 'token ' . $gitHubToken, @@ -154,8 +184,12 @@ ], 'debug' => $output->isDebug(), ])->json(); - $lastVersion = $latest['tag_name']; + $lastTag = $latest['tag_name']; + $lastVersion = ltrim($lastTag, 'v'); + $pharPublicFilename = $this->config()->get('application.executable') . '.phar'; + + $this->stdErr->writeln(' Found latest version: v' . $lastVersion); $changelog = $git->execute([ 'log', '--pretty=format:* %s', @@ -164,14 +198,46 @@ '--grep=(Release v|\[skip changelog\])', '--perl-regexp', '--regexp-ignore-case', - $lastVersion . '...' . $tagName - ], CLI_ROOT, true); - if (empty($changelog)) { - $this->stdErr->writeln('Failed to find changelog for ' . $lastVersion . '...' . $tagName); + 'v' . $lastVersion . '...HEAD' + ], CLI_ROOT); + $changelog = is_string($changelog) ? $changelog : ''; + + $manifestItem['version'] = $newVersion; + $manifestItem['sha1'] = sha1_file($pharFilename); + $manifestItem['sha256'] = hash('sha256', $pharFilename); + $manifestItem['name'] = basename($pharPublicFilename); + $manifestItem['url'] = 'https://github.com/' . $repoUrl . '/releases/download/' . $tagName . '/' . $pharPublicFilename; + $manifestItem['php']['min'] = '5.5.9'; + if (!empty($changelog)) { + $manifestItem['updating'][] = [ + 'notes' => $changelog, + 'show from' => $lastVersion, + 'hide from' => $newVersion, + ]; + $this->stdErr->writeln('<info>Changes:</info>'); + $this->stdErr->writeln($changelog); + $this->stdErr->writeln(''); + } + $result = file_put_contents($manifestFile, json_encode($manifest, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); + if ($result !== false) { + $this->stdErr->writeln('Updated manifest file: ' . $manifestFile); + } + else { + $this->stdErr->writeln('Failed to update manifest file: ' . $manifestFile); return 1; } + $gitStatus = $git->execute(['status', '--porcelain'], CLI_ROOT, true); + if (is_string($gitStatus) && !empty($gitStatus)) { + $this->stdErr->writeln('Committing changes to Git'); + + $result = $shell->executeSimple('git commit --patch config.yaml dist/manifest.json --message ' . escapeshellarg('Release v' . $newVersion) . ' --edit', CLI_ROOT); + if ($result !== 0) { + return $result; + } + } + $this->stdErr->writeln('Creating tag <info>' . $tagName . '</info>'); $git->execute(['tag', '--force', $tagName], CLI_ROOT, true); @@ -181,11 +247,15 @@ $shell->execute(['git', 'push', $repoGitUrl, 'HEAD:master'], CLI_ROOT, true); $shell->execute(['git', 'push', '--force', $repoGitUrl, $tagName], CLI_ROOT, true); - $lastReleasePublicUrl = 'https://github.com/' . $repoUrl . '/releases/' . $lastVersion; - $pharPublicFilename = $this->config()->get('application.executable') . '.phar'; - $releaseDescription = sprintf('Changes since [%s](%s):', $lastVersion, $lastReleasePublicUrl) - . "\n\n" . $changelog - . "\n\n" . sprintf('SHA-256 checksum for `%s`:', $pharPublicFilename) + $lastReleasePublicUrl = 'https://github.com/' . $repoUrl . '/releases/' . $lastTag; + $releaseDescription = sprintf('Changes since [%s](%s):', $lastTag, $lastReleasePublicUrl); + if (!empty($changelog)) { + $releaseDescription .= "\n\n" . $changelog; + } else { + $releaseDescription .= "\n\n" . 'https://github.com/' . $repoUrl . '/compare/' . $lastTag . '...' . $tagName; + } + + $releaseDescription .= "\n\n" . sprintf('SHA-256 checksum for `%s`:', $pharPublicFilename) . "\n" . sprintf('`%s`', hash_file('sha256', $pharFilename)); $this->stdErr->writeln(''); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.29.1/src/Command/Self/SelfStatsCommand.php new/platformsh-cli-3.29.2/src/Command/Self/SelfStatsCommand.php --- old/platformsh-cli-3.29.1/src/Command/Self/SelfStatsCommand.php 2018-02-19 13:10:22.000000000 +0100 +++ new/platformsh-cli-3.29.2/src/Command/Self/SelfStatsCommand.php 2018-02-20 10:23:04.000000000 +0100 @@ -5,6 +5,7 @@ use Platformsh\Cli\Service\PropertyFormatter; use Platformsh\Cli\Service\Table; use Symfony\Component\Console\Input\InputInterface; +use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class SelfStatsCommand extends CommandBase @@ -15,7 +16,8 @@ { $this ->setName('self:stats') - ->setDescription('View stats on GitHub package downloads'); + ->setDescription('View stats on GitHub package downloads') + ->addOption('page', 'p', InputOption::VALUE_REQUIRED, 'Page number', 1); Table::configureInput($this->getDefinition()); PropertyFormatter::configureInput($this->getDefinition()); } @@ -36,8 +38,18 @@ 'Accept' => 'application/vnd.github.v3+json', ], 'auth' => false, + 'query' => [ + 'page' => (int) $input->getOption('page'), + 'per_page' => 20, + ], ])->json(); + if (empty($releases)) { + $this->stdErr->writeln('No releases found.'); + + return 1; + } + /** @var \Platformsh\Cli\Service\Table $table */ $table = $this->getService('table'); /** @var \Platformsh\Cli\Service\PropertyFormatter $formatter */ @@ -45,17 +57,18 @@ $headers = ['Release', 'Date', 'Asset', 'Downloads']; $rows = []; foreach ($releases as $release) { + $row = []; + $row[] = $release['name']; + $time = !empty($release['published_at']) ? $release['published_at'] : $release['created_at']; + $row[] = $formatter->format($time, 'created_at'); if (!empty($release['assets'])) { foreach ($release['assets'] as $asset) { - $row = []; - $row[] = $release['name']; - $time = !empty($release['published_at']) ? $release['published_at'] : $release['created_at']; - $row[] = $formatter->format($time, 'created_at'); $row[] = $asset['name']; $row[] = $formatter->format($asset['download_count']); - $rows[] = $row; + break; } } + $rows[] = $row; } $table->render($rows, $headers); ++++++ platformsh-cli-vendor.tar.xz ++++++ ++++ 6194 lines of diff (skipped)
