Hello community,

here is the log from the commit of package platformsh-cli for openSUSE:Factory 
checked in at 2019-12-28 13:40:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/platformsh-cli (Old)
 and      /work/SRC/openSUSE:Factory/.platformsh-cli.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "platformsh-cli"

Sat Dec 28 13:40:42 2019 rev:87 rq:759732 version:3.51.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/platformsh-cli/platformsh-cli.changes    
2019-12-14 12:23:42.591196327 +0100
+++ /work/SRC/openSUSE:Factory/.platformsh-cli.new.6675/platformsh-cli.changes  
2019-12-28 13:40:53.942944476 +0100
@@ -1,0 +2,16 @@
+Fri Dec 27 20:30:03 UTC 2019 - [email protected]
+
+- Update to version 3.51.0:
+  * Release v3.51.0
+  * Cherry-pick from master: Templates have moved to platformsh-templates 
(#884)
+  * Add health.webhook integration type (#882)
+  * Fix: avoid listing duplicate activities and avoid an infinite loop
+  * Keep 'slow' build tests on PHP 7.3 because of Drush errors
+  * Update Box for PHP 7.4 support
+  * Activities will no longer have a "log" property
+  * Templates have moved to platformsh-templates (#884)
+  * Add PLATFORMSH_CLI_NO_INTERACTION variable (#878)
+  * Update the project git URL when adding/deleting an integration (#877)
+  * Test against PHP 7.4
+
+-------------------------------------------------------------------

Old:
----
  platformsh-cli-3.50.1.tar.xz

New:
----
  platformsh-cli-3.51.0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ platformsh-cli.spec ++++++
--- /var/tmp/diff_new_pack.hfD5t3/_old  2019-12-28 13:40:55.282945151 +0100
+++ /var/tmp/diff_new_pack.hfD5t3/_new  2019-12-28 13:40:55.282945151 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package platformsh-cli
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,13 @@
 
 
 Name:           platformsh-cli
-Version:        3.50.1
+Version:        3.51.0
 Release:        0
 Summary:        Tool for managing Platform.sh services from the command line
 # See licenses.txt for dependency licenses.
 License:        MIT
 Group:          Productivity/Networking/Web/Servers
-Url:            https://github.com/platformsh/platformsh-cli
+URL:            https://github.com/platformsh/platformsh-cli
 Source0:        %{name}-%{version}.tar.xz
 Source1:        %{name}-vendor.tar.xz
 Source10:       extensions.php

++++++ _service ++++++
--- /var/tmp/diff_new_pack.hfD5t3/_old  2019-12-28 13:40:55.306945163 +0100
+++ /var/tmp/diff_new_pack.hfD5t3/_new  2019-12-28 13:40:55.306945163 +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.50.1</param>
+    <param name="revision">refs/tags/v3.51.0</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.hfD5t3/_old  2019-12-28 13:40:55.318945169 +0100
+++ /var/tmp/diff_new_pack.hfD5t3/_new  2019-12-28 13:40:55.318945169 +0100
@@ -1,6 +1,6 @@
 <servicedata>
   <service name="tar_scm">
     <param name="url">git://github.com/platformsh/platformsh-cli.git</param>
-    <param 
name="changesrevision">511eed7adf8d1423d0982d36df2e6f2d99e86376</param>
+    <param 
name="changesrevision">c643a9a47ae501d138a7a3c8f3ff633bbff5bce5</param>
   </service>
 </servicedata>

++++++ licenses.txt ++++++
--- /var/tmp/diff_new_pack.hfD5t3/_old  2019-12-28 13:40:55.346945183 +0100
+++ /var/tmp/diff_new_pack.hfD5t3/_new  2019-12-28 13:40:55.346945183 +0100
@@ -16,7 +16,7 @@
 padraic/phar-updater                v1.0.6   BSD-3-Clause  
 paragonie/random_compat             v2.0.18  MIT           
 pjcdawkins/guzzle-oauth2-plugin     v2.2.0   MIT           
-platformsh/client                   v0.30.3  MIT           
+platformsh/client                   v0.31.0  MIT           
 platformsh/console-form             v0.0.24  MIT           
 psr/container                       1.0.0    MIT           
 psr/log                             1.1.2    MIT           

++++++ platformsh-cli-3.50.1.tar.xz -> platformsh-cli-3.51.0.tar.xz ++++++
++++ 2307 lines of diff (skipped)

++++++ 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     2019-12-13 22:23:13.357631242 +0100
+++ new/vendor/autoload.php     2019-12-27 21:30:06.731369084 +0100
@@ -4,4 +4,4 @@
 
 require_once __DIR__ . '/composer/autoload_real.php';
 
-return ComposerAutoloaderInit8583e3846e25cee8d1aee923e588ecf0::getLoader();
+return ComposerAutoloaderInit4287e775f4e3e4d0c2e97d9e389116fe::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       2019-12-13 22:23:13.357631242 
+0100
+++ new/vendor/composer/autoload_real.php       2019-12-27 21:30:06.731369084 
+0100
@@ -2,7 +2,7 @@
 
 // autoload_real.php @generated by Composer
 
-class ComposerAutoloaderInit8583e3846e25cee8d1aee923e588ecf0
+class ComposerAutoloaderInit4287e775f4e3e4d0c2e97d9e389116fe
 {
     private static $loader;
 
@@ -19,15 +19,15 @@
             return self::$loader;
         }
 
-        
spl_autoload_register(array('ComposerAutoloaderInit8583e3846e25cee8d1aee923e588ecf0',
 'loadClassLoader'), true, true);
+        
spl_autoload_register(array('ComposerAutoloaderInit4287e775f4e3e4d0c2e97d9e389116fe',
 'loadClassLoader'), true, true);
         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
-        
spl_autoload_unregister(array('ComposerAutoloaderInit8583e3846e25cee8d1aee923e588ecf0',
 'loadClassLoader'));
+        
spl_autoload_unregister(array('ComposerAutoloaderInit4287e775f4e3e4d0c2e97d9e389116fe',
 '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\ComposerStaticInit8583e3846e25cee8d1aee923e588ecf0::getInitializer($loader));
+            
call_user_func(\Composer\Autoload\ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe::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\ComposerStaticInit8583e3846e25cee8d1aee923e588ecf0::$files;
+            $includeFiles = 
Composer\Autoload\ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe::$files;
         } else {
             $includeFiles = require __DIR__ . '/autoload_files.php';
         }
         foreach ($includeFiles as $fileIdentifier => $file) {
-            composerRequire8583e3846e25cee8d1aee923e588ecf0($fileIdentifier, 
$file);
+            composerRequire4287e775f4e3e4d0c2e97d9e389116fe($fileIdentifier, 
$file);
         }
 
         return $loader;
     }
 }
 
-function composerRequire8583e3846e25cee8d1aee923e588ecf0($fileIdentifier, 
$file)
+function composerRequire4287e775f4e3e4d0c2e97d9e389116fe($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     2019-12-13 22:23:13.357631242 
+0100
+++ new/vendor/composer/autoload_static.php     2019-12-27 21:30:06.731369084 
+0100
@@ -4,7 +4,7 @@
 
 namespace Composer\Autoload;
 
-class ComposerStaticInit8583e3846e25cee8d1aee923e588ecf0
+class ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe
 {
     public static $files = array (
         '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . 
'/symfony/polyfill-ctype/bootstrap.php',
@@ -193,9 +193,9 @@
     public static function getInitializer(ClassLoader $loader)
     {
         return \Closure::bind(function () use ($loader) {
-            $loader->prefixLengthsPsr4 = 
ComposerStaticInit8583e3846e25cee8d1aee923e588ecf0::$prefixLengthsPsr4;
-            $loader->prefixDirsPsr4 = 
ComposerStaticInit8583e3846e25cee8d1aee923e588ecf0::$prefixDirsPsr4;
-            $loader->classMap = 
ComposerStaticInit8583e3846e25cee8d1aee923e588ecf0::$classMap;
+            $loader->prefixLengthsPsr4 = 
ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe::$prefixLengthsPsr4;
+            $loader->prefixDirsPsr4 = 
ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe::$prefixDirsPsr4;
+            $loader->classMap = 
ComposerStaticInit4287e775f4e3e4d0c2e97d9e389116fe::$classMap;
 
         }, null, ClassLoader::class);
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vendor/composer/installed.json 
new/vendor/composer/installed.json
--- old/vendor/composer/installed.json  2019-12-13 22:23:12.921627292 +0100
+++ new/vendor/composer/installed.json  2019-12-27 21:30:06.307365328 +0100
@@ -680,17 +680,17 @@
     },
     {
         "name": "platformsh/client",
-        "version": "v0.30.3",
-        "version_normalized": "0.30.3.0",
+        "version": "v0.31.0",
+        "version_normalized": "0.31.0.0",
         "source": {
             "type": "git",
             "url": "https://github.com/platformsh/platformsh-client-php.git";,
-            "reference": "6c6294595645c8af3d5fda3d8a2f65aaf16bdf92"
+            "reference": "880f5464894baff81d16ace340443601844a208c"
         },
         "dist": {
             "type": "zip",
-            "url": 
"https://api.github.com/repos/platformsh/platformsh-client-php/zipball/6c6294595645c8af3d5fda3d8a2f65aaf16bdf92";,
-            "reference": "6c6294595645c8af3d5fda3d8a2f65aaf16bdf92",
+            "url": 
"https://api.github.com/repos/platformsh/platformsh-client-php/zipball/880f5464894baff81d16ace340443601844a208c";,
+            "reference": "880f5464894baff81d16ace340443601844a208c",
             "shasum": ""
         },
         "require": {
@@ -704,7 +704,7 @@
         "require-dev": {
             "phpunit/phpunit": "~4.5"
         },
-        "time": "2019-11-28T14:39:54+00:00",
+        "time": "2019-12-16T09:37:35+00:00",
         "type": "library",
         "installation-source": "dist",
         "autoload": {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/vendor/platformsh/client/src/Model/Activities/HasActivitiesInterface.php 
new/vendor/platformsh/client/src/Model/Activities/HasActivitiesInterface.php
--- 
old/vendor/platformsh/client/src/Model/Activities/HasActivitiesInterface.php    
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/vendor/platformsh/client/src/Model/Activities/HasActivitiesInterface.php    
    2019-12-16 10:37:35.000000000 +0100
@@ -0,0 +1,37 @@
+<?php
+
+namespace Platformsh\Client\Model\Activities;
+
+use Platformsh\Client\Model\Activity;
+
+/**
+ * An interface for a resource that has activities associated with it.
+ *
+ * @see \Platformsh\Client\Model\Resource
+ * @see HasActivitiesTrait
+ */
+interface HasActivitiesInterface {
+
+    /**
+     * Get a single activity.
+     *
+     * @param string $id
+     *
+     * @return Activity|false
+     */
+    public function getActivity($id);
+
+    /**
+     * Get a list of activities.
+     *
+     * @param int    $limit
+     *   Limit the number of activities to return.
+     * @param string $type
+     *   Filter activities by type.
+     * @param int    $startsAt
+     *   A UNIX timestamp for the maximum created date of activities to return.
+     *
+     * @return Activity[]
+     */
+    public function getActivities($limit = 0, $type = null, $startsAt = null);
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/vendor/platformsh/client/src/Model/Activities/HasActivitiesTrait.php 
new/vendor/platformsh/client/src/Model/Activities/HasActivitiesTrait.php
--- old/vendor/platformsh/client/src/Model/Activities/HasActivitiesTrait.php    
1970-01-01 01:00:00.000000000 +0100
+++ new/vendor/platformsh/client/src/Model/Activities/HasActivitiesTrait.php    
2019-12-16 10:37:35.000000000 +0100
@@ -0,0 +1,46 @@
+<?php
+
+namespace Platformsh\Client\Model\Activities;
+
+use Platformsh\Client\Model\Activity;
+
+/**
+ * A trait meant to be added to a Resource so it can implement 
HasActivitiesInterface.
+ *
+ * @see HasActivitiesInterface
+ */
+trait HasActivitiesTrait {
+
+    /**
+     * {@inheritDoc}
+     */
+    public function getActivity($id)
+    {
+        return Activity::get($id, $this->getUri() . '/activities', 
$this->client);
+    }
+
+    /**
+     * {@inheritDoc}
+     */
+    public function getActivities($limit = 0, $type = null, $startsAt = null)
+    {
+        $options = [];
+        if ($type !== null) {
+            $options['query']['type'] = $type;
+        }
+        if ($startsAt !== null) {
+            $options['query']['starts_at'] = 
Activity::formatStartsAt($startsAt);
+        }
+
+        $activities = Activity::getCollection($this->getUri() . '/activities', 
$limit, $options, $this->client);
+
+        // Guarantee the type filter (works around a temporary bug).
+        if ($type !== null) {
+            $activities = array_filter($activities, function (Activity 
$activity) use ($type) {
+                return $activity->type === $type;
+            });
+        }
+
+        return $activities;
+    }
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vendor/platformsh/client/src/Model/Environment.php 
new/vendor/platformsh/client/src/Model/Environment.php
--- old/vendor/platformsh/client/src/Model/Environment.php      2019-11-28 
15:39:54.000000000 +0100
+++ new/vendor/platformsh/client/src/Model/Environment.php      2019-12-16 
10:37:35.000000000 +0100
@@ -5,6 +5,8 @@
 use Cocur\Slugify\Slugify;
 use Platformsh\Client\Exception\EnvironmentStateException;
 use Platformsh\Client\Exception\OperationUnavailableException;
+use Platformsh\Client\Model\Activities\HasActivitiesInterface;
+use Platformsh\Client\Model\Activities\HasActivitiesTrait;
 use Platformsh\Client\Model\Backups\BackupConfig;
 use Platformsh\Client\Model\Backups\Policy;
 use Platformsh\Client\Model\Deployment\EnvironmentDeployment;
@@ -56,8 +58,10 @@
  *   The backup configuration. It's recommended to use getBackupConfig() 
instead
  *   of using this array directly.
  */
-class Environment extends Resource
+class Environment extends Resource implements HasActivitiesInterface
 {
+    use HasActivitiesTrait;
+
     /**
      * Get the current deployment of this environment.
      *
@@ -379,52 +383,6 @@
     }
 
     /**
-     * Get a single environment activity.
-     *
-     * @param string $id
-     *
-     * @return Activity|false
-     */
-    public function getActivity($id)
-    {
-        return Activity::get($id, $this->getUri() . '/activities', 
$this->client);
-    }
-
-    /**
-     * Get a list of environment activities.
-     *
-     * @param int    $limit
-     *   Limit the number of activities to return.
-     * @param string $type
-     *   Filter activities by type.
-     * @param int    $startsAt
-     *   A UNIX timestamp for the maximum created date of activities to return.
-     *
-     * @return Activity[]
-     */
-    public function getActivities($limit = 0, $type = null, $startsAt = null)
-    {
-        $options = [];
-        if ($type !== null) {
-            $options['query']['type'] = $type;
-        }
-        if ($startsAt !== null) {
-            $options['query']['starts_at'] = 
Activity::formatStartsAt($startsAt);
-        }
-
-        $activities = Activity::getCollection($this->getUri() . '/activities', 
$limit, $options, $this->client);
-
-        // Guarantee the type filter (works around a temporary bug).
-        if ($type !== null) {
-            $activities = array_filter($activities, function (Activity 
$activity) use ($type) {
-                return $activity->type === $type;
-            });
-        }
-
-        return $activities;
-    }
-
-    /**
      * Get a list of variables.
      *
      * @param int $limit
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vendor/platformsh/client/src/Model/Integration.php 
new/vendor/platformsh/client/src/Model/Integration.php
--- old/vendor/platformsh/client/src/Model/Integration.php      2019-11-28 
15:39:54.000000000 +0100
+++ new/vendor/platformsh/client/src/Model/Integration.php      2019-12-16 
10:37:35.000000000 +0100
@@ -3,6 +3,8 @@
 namespace Platformsh\Client\Model;
 
 use GuzzleHttp\Exception\BadResponseException;
+use Platformsh\Client\Model\Activities\HasActivitiesInterface;
+use Platformsh\Client\Model\Activities\HasActivitiesTrait;
 
 /**
  * A project integration.
@@ -10,8 +12,9 @@
  * @property-read string $id
  * @property-read string $type
  */
-class Integration extends Resource
+class Integration extends Resource implements HasActivitiesInterface
 {
+    use HasActivitiesTrait;
 
     /** @var array */
     protected static $required = ['type'];
@@ -27,6 +30,7 @@
       'health.email',
       'health.pagerduty',
       'health.slack',
+      'health.webhook',
     ];
 
     /**
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vendor/platformsh/client/src/Model/Project.php 
new/vendor/platformsh/client/src/Model/Project.php
--- old/vendor/platformsh/client/src/Model/Project.php  2019-11-28 
15:39:54.000000000 +0100
+++ new/vendor/platformsh/client/src/Model/Project.php  2019-12-16 
10:37:35.000000000 +0100
@@ -4,6 +4,8 @@
 
 use GuzzleHttp\ClientInterface;
 use GuzzleHttp\Url;
+use Platformsh\Client\Model\Activities\HasActivitiesInterface;
+use Platformsh\Client\Model\Activities\HasActivitiesTrait;
 
 /**
  * A Platform.sh project.
@@ -14,8 +16,10 @@
  * @property-read string $updated_at
  * @property-read string $owner
  */
-class Project extends Resource
+class Project extends Resource implements HasActivitiesInterface
 {
+    use HasActivitiesTrait;
+
     /**
      * {@inheritDoc}
      *
@@ -234,52 +238,6 @@
     }
 
     /**
-     * Get a single project activity.
-     *
-     * @param string $id
-     *
-     * @return Activity|false
-     */
-    public function getActivity($id)
-    {
-        return Activity::get($id, $this->getUri() . '/activities', 
$this->client);
-    }
-
-    /**
-     * Get a list of project activities.
-     *
-     * @param int $limit
-     *   Limit the number of activities to return.
-     * @param string $type
-     *   Filter activities by type.
-     * @param int $startsAt
-     *   A UNIX timestamp for the maximum created date of activities to return.
-     *
-     * @return Activity[]
-     */
-    public function getActivities($limit = 0, $type = null, $startsAt = null)
-    {
-        $options = [];
-        if ($type !== null) {
-            $options['query']['type'] = $type;
-        }
-        if ($startsAt !== null) {
-            $options['query']['starts_at'] = 
Activity::formatStartsAt($startsAt);
-        }
-
-        $activities = Activity::getCollection($this->getUri() . '/activities', 
$limit, $options, $this->client);
-
-        // Guarantee the type filter (works around a temporary bug).
-        if ($type !== null) {
-            $activities = array_filter($activities, function (Activity 
$activity) use ($type) {
-                return $activity->type === $type;
-            });
-        }
-
-        return $activities;
-    }
-
-    /**
      * Returns whether the project is suspended.
      *
      * @return bool


Reply via email to