Hello community, here is the log from the commit of package platformsh-cli for openSUSE:Factory checked in at 2018-05-16 11:40:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/platformsh-cli (Old) and /work/SRC/openSUSE:Factory/.platformsh-cli.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "platformsh-cli" Wed May 16 11:40:29 2018 rev:47 rq:607334 version:3.32.5 Changes: -------- --- /work/SRC/openSUSE:Factory/platformsh-cli/platformsh-cli.changes 2018-05-08 13:39:26.912986678 +0200 +++ /work/SRC/openSUSE:Factory/.platformsh-cli.new/platformsh-cli.changes 2018-05-16 11:41:57.283510257 +0200 @@ -1,0 +2,10 @@ +Mon May 14 21:53:01 UTC 2018 - ji...@boombatower.com + +- Update to version 3.32.5: + * Release v3.32.5 + * Installer: improvements to environment configuration snippet (#711) + * Avoid false positives when recommending .gitignore in Drupal vanilla sites + * Allow a timezone to be configured for the CLI in application.timezone + * Improve "No services found" message and ignore relationships without a scheme. + +------------------------------------------------------------------- Old: ---- platformsh-cli-3.32.4.tar.xz New: ---- platformsh-cli-3.32.5.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ platformsh-cli.spec ++++++ --- /var/tmp/diff_new_pack.PRHwxu/_old 2018-05-16 11:41:58.459467459 +0200 +++ /var/tmp/diff_new_pack.PRHwxu/_new 2018-05-16 11:41:58.463467314 +0200 @@ -17,7 +17,7 @@ Name: platformsh-cli -Version: 3.32.4 +Version: 3.32.5 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.PRHwxu/_old 2018-05-16 11:41:58.495466149 +0200 +++ /var/tmp/diff_new_pack.PRHwxu/_new 2018-05-16 11:41:58.495466149 +0200 @@ -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.32.4</param> + <param name="revision">refs/tags/v3.32.5</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.PRHwxu/_old 2018-05-16 11:41:58.511465567 +0200 +++ /var/tmp/diff_new_pack.PRHwxu/_new 2018-05-16 11:41:58.515465421 +0200 @@ -1,6 +1,6 @@ <servicedata> <service name="tar_scm"> <param name="url">git://github.com/platformsh/platformsh-cli.git</param> - <param name="changesrevision">41bb3fe19375eee40a340d150077b5253b71f1f8</param> + <param name="changesrevision">273b8e90b72a182b76e46a7f720e45c9b87b68c5</param> </service> </servicedata> ++++++ platformsh-cli-3.32.4.tar.xz -> platformsh-cli-3.32.5.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.32.4/README.md new/platformsh-cli-3.32.5/README.md --- old/platformsh-cli-3.32.4/README.md 2018-05-07 09:59:27.000000000 +0200 +++ new/platformsh-cli-3.32.5/README.md 2018-05-14 18:26:16.000000000 +0200 @@ -222,7 +222,13 @@ # 'browser'). login_method: browser - # The default date format string. For a list of formats, see: http://php.net/manual/en/function.date.php + # The default timezone for times displayed or interpreted by the CLI. + # An empty (falsy) value here means the PHP or system timezone will be used. + # For a list of timezones, see: http://php.net/manual/en/timezones.php + timezone: ~ + + # The default date format string, for dates and times displayed by the CLI. + # For a list of formats, see: http://php.net/manual/en/function.date.php date_format: c local: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.32.4/config.yaml new/platformsh-cli-3.32.5/config.yaml --- old/platformsh-cli-3.32.4/config.yaml 2018-05-07 09:59:27.000000000 +0200 +++ new/platformsh-cli-3.32.5/config.yaml 2018-05-14 18:26:16.000000000 +0200 @@ -1,7 +1,7 @@ # Metadata about the CLI application itself. application: name: 'Platform.sh CLI' - version: '3.32.4' + version: '3.32.5' executable: 'platform' package_name: 'platformsh/cli' installer_url: 'https://platform.sh/cli/installer' @@ -17,6 +17,12 @@ # This can be overridden in the user config file. login_method: browser + # The default timezone for times displayed or interpreted by the CLI. + # An empty (falsy) value here means the PHP or system timezone will be used. + # For a list of timezones, see: http://php.net/manual/en/timezones.php + # This can be overridden in the user config file. + timezone: ~ + # The default date format string. This can be overridden in the user config # file, or by the --date-fmt option. For a list of formats, see: # http://php.net/manual/en/function.date.php diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.32.4/dist/manifest.json new/platformsh-cli-3.32.5/dist/manifest.json --- old/platformsh-cli-3.32.4/dist/manifest.json 2018-05-07 09:59:27.000000000 +0200 +++ new/platformsh-cli-3.32.5/dist/manifest.json 2018-05-14 18:26:16.000000000 +0200 @@ -1,10 +1,10 @@ [ { "name": "platform.phar", - "sha1": "2457b38ec2456bd4eadbefb571c8ddd4f3843be6", - "sha256": "62ca0646bd7fc6b31bb459991378399b93c0436d493e73f75cf04396f32b7bfa", - "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.32.4/platform.phar", - "version": "3.32.4", + "sha1": "cb1253f9a1c0be7c78462d32611c5f6d11dda50e", + "sha256": "220684dde9f5236d2c9b16982c8bc4d5a8211d9d1cd30e1e6474312136575e85", + "url": "https://github.com/platformsh/platformsh-cli/releases/download/v3.32.5/platform.phar", + "version": "3.32.5", "php": { "min": "5.5.9" }, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.32.4/src/Application.php new/platformsh-cli-3.32.5/src/Application.php --- old/platformsh-cli-3.32.4/src/Application.php 2018-05-07 09:59:27.000000000 +0200 +++ new/platformsh-cli-3.32.5/src/Application.php 2018-05-14 18:26:16.000000000 +0200 @@ -35,7 +35,11 @@ $this->cliConfig = new Config(); parent::__construct($this->cliConfig->get('application.name'), $this->cliConfig->get('application.version')); - date_default_timezone_set(TimezoneUtil::getTimezone()); + // Use the configured timezone, or fall back to the system timezone. + date_default_timezone_set( + $this->cliConfig->getWithDefault('application.timezone', null) + ?: TimezoneUtil::getTimezone() + ); $this->addCommands($this->getCommands()); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.32.4/src/Command/Self/SelfInstallCommand.php new/platformsh-cli-3.32.5/src/Command/Self/SelfInstallCommand.php --- old/platformsh-cli-3.32.4/src/Command/Self/SelfInstallCommand.php 2018-05-07 09:59:27.000000000 +0200 +++ new/platformsh-cli-3.32.5/src/Command/Self/SelfInstallCommand.php 2018-05-14 18:26:16.000000000 +0200 @@ -31,7 +31,6 @@ 'shell-config.rc', 'shell-config-bash.rc', ]; - $rcDestination = $configDir . DIRECTORY_SEPARATOR . 'shell-config.rc'; $fs = new \Symfony\Component\Filesystem\Filesystem(); foreach ($rcFiles as $rcFile) { if (($rcContents = file_get_contents(CLI_ROOT . '/' . $rcFile)) === false) { @@ -56,13 +55,15 @@ } } + $configDirRelative = $this->config()->getUserConfigDir(false); + $rcDestination = $configDirRelative . '/' . 'shell-config.rc'; $suggestedShellConfig = sprintf( 'export PATH=%s:"$PATH"', - escapeshellarg($configDir . '/bin') + '"$HOME/"' . escapeshellarg($configDirRelative . '/bin') ); $suggestedShellConfig .= PHP_EOL . sprintf( - '[ -f %1$s ] && . %1$s', - escapeshellarg($rcDestination) + 'if [ -f %1$s ]; then . %1$s; fi', + '"$HOME/"' . escapeshellarg($rcDestination) ); if (strpos($currentShellConfig, $suggestedShellConfig) !== false) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.32.4/src/Local/BuildFlavor/Drupal.php new/platformsh-cli-3.32.5/src/Local/BuildFlavor/Drupal.php --- old/platformsh-cli-3.32.4/src/Local/BuildFlavor/Drupal.php 2018-05-07 09:59:27.000000000 +0200 +++ new/platformsh-cli-3.32.5/src/Local/BuildFlavor/Drupal.php 2018-05-14 18:26:16.000000000 +0200 @@ -95,8 +95,8 @@ if (!$this->copy) { $this->copyGitIgnore('drupal/gitignore-vanilla'); - $this->checkIgnored('sites/default/settings.local.php'); - $this->checkIgnored('sites/default/files'); + $this->checkIgnored($this->getWebRoot() . '/sites/default/settings.local.php'); + $this->checkIgnored($this->getWebRoot() . '/sites/default/files'); } } @@ -111,10 +111,13 @@ */ protected function checkIgnored($filename, $suggestion = null) { + if (!file_exists($filename)) { + return; + } if (!$repositoryDir = $this->gitHelper->getRoot($this->appRoot)) { return; } - $relative = $this->fsHelper->makePathRelative($this->appRoot . '/' . $filename, $repositoryDir); + $relative = $this->fsHelper->makePathRelative($filename, $repositoryDir); if (!$this->gitHelper->checkIgnore($relative, $repositoryDir)) { $suggestion = $suggestion ?: $relative; $this->stdErr->writeln("<comment>You should exclude this file using .gitignore:</comment> $suggestion"); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.32.4/src/Service/Config.php new/platformsh-cli-3.32.5/src/Service/Config.php --- old/platformsh-cli-3.32.4/src/Service/Config.php 2018-05-07 09:59:27.000000000 +0200 +++ new/platformsh-cli-3.32.5/src/Service/Config.php 2018-05-14 18:26:16.000000000 +0200 @@ -99,11 +99,18 @@ } /** + * Get the directory where the CLI is normally installed and configured. + * + * @param bool $absolute Whether to return an absolute path. If false, + * the path will be relative to the home directory. + * * @return string */ - public function getUserConfigDir() + public function getUserConfigDir($absolute = true) { - return $this->fs()->getHomeDirectory() . '/' . $this->get('application.user_config_dir'); + $path = $this->get('application.user_config_dir'); + + return $absolute ? $this->fs()->getHomeDirectory() . '/' . $path : $path; } /** @@ -224,6 +231,7 @@ 'updates' => 'updates', 'application.login_method' => 'application.login_method', 'application.date_format' => 'application.date_format', + 'application.timezone' => 'application.timezone', ]; $userConfig = $this->getUserConfig(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/platformsh-cli-3.32.4/src/Service/Relationships.php new/platformsh-cli-3.32.5/src/Service/Relationships.php --- old/platformsh-cli-3.32.4/src/Service/Relationships.php 2018-05-07 09:59:27.000000000 +0200 +++ new/platformsh-cli-3.32.5/src/Service/Relationships.php 2018-05-14 18:26:16.000000000 +0200 @@ -65,7 +65,7 @@ if (!empty($schemes)) { $relationships = array_filter($relationships, function (array $relationship) use ($schemes) { foreach ($relationship as $key => $service) { - if (in_array($service['scheme'], $schemes, true)) { + if (isset($service['scheme']) && in_array($service['scheme'], $schemes, true)) { return true; } } @@ -75,7 +75,7 @@ } if (empty($relationships)) { - $stdErr->writeln('No services found'); + $stdErr->writeln(sprintf('No relationships found matching scheme(s): <error>%s</error>.', implode(', ', $schemes))); return false; } ++++++ platformsh-cli-vendor.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/autoload.php new/vendor/autoload.php --- old/vendor/autoload.php 2018-05-08 01:25:42.917466408 +0200 +++ new/vendor/autoload.php 2018-05-14 23:53:05.240987472 +0200 @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit21a94438bd5e1cc08ddef19f43b7e6a1::getLoader(); +return ComposerAutoloaderInitbbf089209b59236a9485072bbec22b9d::getLoader(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/composer/autoload_real.php new/vendor/composer/autoload_real.php --- old/vendor/composer/autoload_real.php 2018-05-08 01:25:42.917466408 +0200 +++ new/vendor/composer/autoload_real.php 2018-05-14 23:53:05.240987472 +0200 @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit21a94438bd5e1cc08ddef19f43b7e6a1 +class ComposerAutoloaderInitbbf089209b59236a9485072bbec22b9d { private static $loader; @@ -19,15 +19,15 @@ return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit21a94438bd5e1cc08ddef19f43b7e6a1', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitbbf089209b59236a9485072bbec22b9d', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit21a94438bd5e1cc08ddef19f43b7e6a1', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitbbf089209b59236a9485072bbec22b9d', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit21a94438bd5e1cc08ddef19f43b7e6a1::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitbbf089209b59236a9485072bbec22b9d::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -48,19 +48,19 @@ $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInit21a94438bd5e1cc08ddef19f43b7e6a1::$files; + $includeFiles = Composer\Autoload\ComposerStaticInitbbf089209b59236a9485072bbec22b9d::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire21a94438bd5e1cc08ddef19f43b7e6a1($fileIdentifier, $file); + composerRequirebbf089209b59236a9485072bbec22b9d($fileIdentifier, $file); } return $loader; } } -function composerRequire21a94438bd5e1cc08ddef19f43b7e6a1($fileIdentifier, $file) +function composerRequirebbf089209b59236a9485072bbec22b9d($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vendor/composer/autoload_static.php new/vendor/composer/autoload_static.php --- old/vendor/composer/autoload_static.php 2018-05-08 01:25:42.917466408 +0200 +++ new/vendor/composer/autoload_static.php 2018-05-14 23:53:05.240987472 +0200 @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit21a94438bd5e1cc08ddef19f43b7e6a1 +class ComposerStaticInitbbf089209b59236a9485072bbec22b9d { public static $files = array ( '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', @@ -195,9 +195,9 @@ public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit21a94438bd5e1cc08ddef19f43b7e6a1::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit21a94438bd5e1cc08ddef19f43b7e6a1::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit21a94438bd5e1cc08ddef19f43b7e6a1::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitbbf089209b59236a9485072bbec22b9d::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitbbf089209b59236a9485072bbec22b9d::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitbbf089209b59236a9485072bbec22b9d::$classMap; }, null, ClassLoader::class); }