Hello community,

here is the log from the commit of package platformsh-cli for openSUSE:Factory 
checked in at 2017-02-07 12:02:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/platformsh-cli (Old)
 and      /work/SRC/openSUSE:Factory/.platformsh-cli.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "platformsh-cli"

Changes:
--------
--- /work/SRC/openSUSE:Factory/platformsh-cli/platformsh-cli.changes    
2017-02-03 18:56:15.595123664 +0100
+++ /work/SRC/openSUSE:Factory/.platformsh-cli.new/platformsh-cli.changes       
2017-02-07 12:02:35.669031755 +0100
@@ -1,0 +2,11 @@
+Thu Feb 02 19:14:27 UTC 2017 - ji...@boombatower.com
+
+- Update to version 3.12.1:
+  * Comment mentions old method
+  * More specific gitignore for Drupal vanilla
+  * Allow updates.check to be overridden by an env var
+  * Allow web command to be used with a non-existent environment
+  * Improve 'get' when the user does not have access to master (#569)
+  * Release v3.12.1
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ platformsh-cli.spec ++++++
--- /var/tmp/diff_new_pack.A2yPC6/_old  2017-02-07 12:02:36.440922561 +0100
+++ /var/tmp/diff_new_pack.A2yPC6/_new  2017-02-07 12:02:36.444921995 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           platformsh-cli
-Version:        3.12.0
+Version:        3.12.1
 Release:        0
 Summary:        The unified tool for managing your Platform.sh services from 
the command line.
 # See licenses.txt for dependency licenses.

++++++ _service ++++++
--- /var/tmp/diff_new_pack.A2yPC6/_old  2017-02-07 12:02:36.476917469 +0100
+++ /var/tmp/diff_new_pack.A2yPC6/_new  2017-02-07 12:02:36.476917469 +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.12.0</param>
+    <param name="revision">refs/tags/v3.12.1</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.A2yPC6/_old  2017-02-07 12:02:36.496914640 +0100
+++ /var/tmp/diff_new_pack.A2yPC6/_new  2017-02-07 12:02:36.496914640 +0100
@@ -1,6 +1,6 @@
 <servicedata>
   <service name="tar_scm">
     <param name="url">git://github.com/platformsh/platformsh-cli.git</param>
-    <param 
name="changesrevision">5f479551c4307d40f91ca5a0593aa5180e95c74f</param>
+    <param 
name="changesrevision">393b1add3ac1cc0db5ab5fbba11be516200a93ea</param>
   </service>
 </servicedata>

++++++ platformsh-cli-3.12.0.tar.xz -> platformsh-cli-3.12.1.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/platformsh-cli-3.12.0/README.md 
new/platformsh-cli-3.12.1/README.md
--- old/platformsh-cli-3.12.0/README.md 2017-01-21 12:37:51.000000000 +0100
+++ new/platformsh-cli-3.12.1/README.md 2017-02-02 15:04:19.000000000 +0100
@@ -196,6 +196,7 @@
 * `PLATFORMSH_CLI_DEBUG`: set to 1 to enable cURL debugging
 * `PLATFORMSH_CLI_DISABLE_CACHE`: set to 1 to disable caching
 * `PLATFORMSH_CLI_SESSION_ID`: change user session (default 'default')
+* `PLATFORMSH_CLI_UPDATES_CHECK`: set to 0 to disable the automatic updates 
check
 * `http_proxy` or `https_proxy`: specify a proxy for connecting to Platform.sh
 
 ## Contributing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/platformsh-cli-3.12.0/config.yaml 
new/platformsh-cli-3.12.1/config.yaml
--- old/platformsh-cli-3.12.0/config.yaml       2017-01-21 12:37:51.000000000 
+0100
+++ new/platformsh-cli-3.12.1/config.yaml       2017-02-02 15:04:19.000000000 
+0100
@@ -1,7 +1,7 @@
 # Metadata about the CLI application itself.
 application:
   name: 'Platform.sh CLI'
-  version: '3.12.0'
+  version: '3.12.1'
   executable: 'platform'
   phar: 'platform.phar'
   package_name: 'platformsh/cli'
@@ -65,6 +65,8 @@
 # Automatic updates.
 # This can be overridden in the user config file.
 updates:
-  check: true
   last_checked: null
   check_interval: 86400
+
+  # Overridden by {application.env_prefix}UPDATES_CHECK env var.
+  check: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/platformsh-cli-3.12.0/resources/drupal/gitignore-vanilla 
new/platformsh-cli-3.12.1/resources/drupal/gitignore-vanilla
--- old/platformsh-cli-3.12.0/resources/drupal/gitignore-vanilla        
2017-01-21 12:37:51.000000000 +0100
+++ new/platformsh-cli-3.12.1/resources/drupal/gitignore-vanilla        
2017-02-02 15:04:19.000000000 +0100
@@ -5,7 +5,7 @@
 .idea
 
 # Ignore configuration files that may contain sensitive information.
-sites/*/settings*.php
+sites/*/settings.local.php
 
 # Ignore paths that contain user-generated content.
 sites/*/files
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/platformsh-cli-3.12.0/src/Command/Auth/LoginCommand.php 
new/platformsh-cli-3.12.1/src/Command/Auth/LoginCommand.php
--- old/platformsh-cli-3.12.0/src/Command/Auth/LoginCommand.php 2017-01-21 
12:37:51.000000000 +0100
+++ new/platformsh-cli-3.12.1/src/Command/Auth/LoginCommand.php 2017-02-02 
15:04:19.000000000 +0100
@@ -94,7 +94,7 @@
                 ->logIn($email, $password, true);
         } catch (BadResponseException $e) {
             // If a two-factor authentication challenge is received, then ask
-            // the user for their TOTP code, and then retry authenticateUser().
+            // the user for their TOTP code, and then retry logging in.
             if ($e->getResponse()->getHeader('X-Drupal-TFA')) {
                 $question = new Question("Your application verification code: 
");
                 $question->setValidator(function ($answer) use ($email, 
$password) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/platformsh-cli-3.12.0/src/Command/Project/ProjectGetCommand.php 
new/platformsh-cli-3.12.1/src/Command/Project/ProjectGetCommand.php
--- old/platformsh-cli-3.12.0/src/Command/Project/ProjectGetCommand.php 
2017-01-21 12:37:51.000000000 +0100
+++ new/platformsh-cli-3.12.1/src/Command/Project/ProjectGetCommand.php 
2017-02-02 15:04:19.000000000 +0100
@@ -25,7 +25,7 @@
             ->addArgument('project', InputArgument::OPTIONAL, 'The project ID')
             ->addArgument('directory', InputArgument::OPTIONAL, 'The directory 
to clone to. Defaults to the project title');
         $this->addProjectOption();
-        $this->addOption('environment', 'e', InputOption::VALUE_REQUIRED, "The 
environment ID to clone. Defaults to 'master'")
+        $this->addOption('environment', 'e', InputOption::VALUE_REQUIRED, "The 
environment ID to clone. Defaults to 'master' or the first available 
environment")
             ->addOption('host', null, InputOption::VALUE_REQUIRED, "The 
project's API hostname")
             ->addOption('build', null, InputOption::VALUE_NONE, 'Build the 
project after cloning');
         Ssh::configureInput($this->getDefinition());
@@ -233,7 +233,7 @@
 
         if (!$environmentId) {
             $environments = $this->api()->getEnvironments($project);
-            $environmentId = count($environments) === 1 ? key($environments) : 
'master';
+            $environmentId = isset($environments['master']) ? 'master' : 
key($environments);
         }
 
         $this->selectEnvironment($environmentId);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/platformsh-cli-3.12.0/src/Command/WebCommand.php 
new/platformsh-cli-3.12.1/src/Command/WebCommand.php
--- old/platformsh-cli-3.12.0/src/Command/WebCommand.php        2017-01-21 
12:37:51.000000000 +0100
+++ new/platformsh-cli-3.12.1/src/Command/WebCommand.php        2017-02-02 
15:04:19.000000000 +0100
@@ -24,16 +24,26 @@
         // Attempt to select the appropriate project and environment.
         try {
             $this->validateInput($input);
+            $environmentId = $this->getSelectedEnvironment()->id;
         } catch (\Exception $e) {
-            // Ignore errors.
+            // If a project has been specified but is not found, then error 
out.
+            if ($input->getOption('project') && !$this->hasSelectedProject()) {
+                throw $e;
+            }
+
+            // If an environment ID has been specified but not found, then use
+            // the specified ID anyway. This allows building a URL when an
+            // environment doesn't yet exist.
+            $environmentId = $input->getOption('environment');
         }
 
-        $url = $this->config()->get('service.accounts_url');
         if ($this->hasSelectedProject()) {
             $url = $this->getSelectedProject()->getLink('#ui');
-            if ($this->hasSelectedEnvironment()) {
-                $url .= '/environments/' . 
rawurlencode($this->getSelectedEnvironment()->id);
+            if (!empty($environmentId)) {
+                $url .= '/environments/' . rawurlencode($environmentId);
             }
+        } else {
+            $url = $this->config()->get('service.accounts_url');
         }
 
         /** @var \Platformsh\Cli\Service\Url $urlService */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/platformsh-cli-3.12.0/src/Service/Api.php 
new/platformsh-cli-3.12.1/src/Service/Api.php
--- old/platformsh-cli-3.12.0/src/Service/Api.php       2017-01-21 
12:37:51.000000000 +0100
+++ new/platformsh-cli-3.12.1/src/Service/Api.php       2017-02-02 
15:04:19.000000000 +0100
@@ -287,7 +287,7 @@
      * @param bool|null $refresh Whether to refresh the list.
      * @param bool      $events  Whether to update Drush aliases if the list 
changes.
      *
-     * @return Environment[] The user's environments.
+     * @return Environment[] The user's environments, keyed by ID.
      */
     public function getEnvironments(Project $project, $refresh = null, $events 
= true)
     {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/platformsh-cli-3.12.0/src/Service/Config.php 
new/platformsh-cli-3.12.1/src/Service/Config.php
--- old/platformsh-cli-3.12.0/src/Service/Config.php    2017-01-21 
12:37:51.000000000 +0100
+++ new/platformsh-cli-3.12.1/src/Service/Config.php    2017-02-02 
15:04:19.000000000 +0100
@@ -96,6 +96,7 @@
             'SESSION_ID' => 'api.session_id',
             'SKIP_SSL' => 'api.skip_ssl',
             'ACCOUNTS_API' => 'api.accounts_api_url',
+            'UPDATES_CHECK' => 'updates.check',
         ];
 
         foreach ($overrideMap as $var => $key) {

++++++ 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     2017-01-21 21:54:16.245784066 +0100
+++ new/vendor/autoload.php     2017-02-02 20:14:31.015587187 +0100
@@ -4,4 +4,4 @@
 
 require_once __DIR__ . '/composer' . '/autoload_real.php';
 
-return ComposerAutoloaderInit3bea1f1c823dde88867771201bfb4e44::getLoader();
+return ComposerAutoloaderInit993d572eb7280a50cdb30da9070361e5::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       2017-01-21 21:54:16.245784066 
+0100
+++ new/vendor/composer/autoload_real.php       2017-02-02 20:14:31.015587187 
+0100
@@ -2,7 +2,7 @@
 
 // autoload_real.php @generated by Composer
 
-class ComposerAutoloaderInit3bea1f1c823dde88867771201bfb4e44
+class ComposerAutoloaderInit993d572eb7280a50cdb30da9070361e5
 {
     private static $loader;
 
@@ -19,15 +19,15 @@
             return self::$loader;
         }
 
-        
spl_autoload_register(array('ComposerAutoloaderInit3bea1f1c823dde88867771201bfb4e44',
 'loadClassLoader'), true, true);
+        
spl_autoload_register(array('ComposerAutoloaderInit993d572eb7280a50cdb30da9070361e5',
 'loadClassLoader'), true, true);
         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
-        
spl_autoload_unregister(array('ComposerAutoloaderInit3bea1f1c823dde88867771201bfb4e44',
 'loadClassLoader'));
+        
spl_autoload_unregister(array('ComposerAutoloaderInit993d572eb7280a50cdb30da9070361e5',
 'loadClassLoader'));
 
         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
         if ($useStaticLoader) {
             require_once __DIR__ . '/autoload_static.php';
 
-            
call_user_func(\Composer\Autoload\ComposerStaticInit3bea1f1c823dde88867771201bfb4e44::getInitializer($loader));
+            
call_user_func(\Composer\Autoload\ComposerStaticInit993d572eb7280a50cdb30da9070361e5::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\ComposerStaticInit3bea1f1c823dde88867771201bfb4e44::$files;
+            $includeFiles = 
Composer\Autoload\ComposerStaticInit993d572eb7280a50cdb30da9070361e5::$files;
         } else {
             $includeFiles = require __DIR__ . '/autoload_files.php';
         }
         foreach ($includeFiles as $fileIdentifier => $file) {
-            composerRequire3bea1f1c823dde88867771201bfb4e44($fileIdentifier, 
$file);
+            composerRequire993d572eb7280a50cdb30da9070361e5($fileIdentifier, 
$file);
         }
 
         return $loader;
     }
 }
 
-function composerRequire3bea1f1c823dde88867771201bfb4e44($fileIdentifier, 
$file)
+function composerRequire993d572eb7280a50cdb30da9070361e5($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     2017-01-21 21:54:16.245784066 
+0100
+++ new/vendor/composer/autoload_static.php     2017-02-02 20:14:31.015587187 
+0100
@@ -4,7 +4,7 @@
 
 namespace Composer\Autoload;
 
-class ComposerStaticInit3bea1f1c823dde88867771201bfb4e44
+class ComposerStaticInit993d572eb7280a50cdb30da9070361e5
 {
     public static $files = array (
         '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . 
'/symfony/polyfill-mbstring/bootstrap.php',
@@ -183,9 +183,9 @@
     public static function getInitializer(ClassLoader $loader)
     {
         return \Closure::bind(function () use ($loader) {
-            $loader->prefixLengthsPsr4 = 
ComposerStaticInit3bea1f1c823dde88867771201bfb4e44::$prefixLengthsPsr4;
-            $loader->prefixDirsPsr4 = 
ComposerStaticInit3bea1f1c823dde88867771201bfb4e44::$prefixDirsPsr4;
-            $loader->classMap = 
ComposerStaticInit3bea1f1c823dde88867771201bfb4e44::$classMap;
+            $loader->prefixLengthsPsr4 = 
ComposerStaticInit993d572eb7280a50cdb30da9070361e5::$prefixLengthsPsr4;
+            $loader->prefixDirsPsr4 = 
ComposerStaticInit993d572eb7280a50cdb30da9070361e5::$prefixDirsPsr4;
+            $loader->classMap = 
ComposerStaticInit993d572eb7280a50cdb30da9070361e5::$classMap;
 
         }, null, ClassLoader::class);
     }


Reply via email to