From 6e94193ed2f7e90d5f403350023f0da96307fce8 Mon Sep 17 00:00:00 2001 From: Nate Ferrell Date: Wed, 18 Sep 2019 19:31:04 -0500 Subject: [PATCH] !deploy v2.32.3 to fix #234 ## 2.32.3 - 2019-09-18 * [Issue #234](https://github.com/scrthq/PSGSuite/issues/234) * Fixed: `Update-GSUserPhoto` errors by switching to `[System.IO.File]::ReadAllBytes($path)`. --- CHANGELOG.md | 6 ++++++ PSGSuite/PSGSuite.psd1 | 2 +- PSGSuite/Public/Users/Update-GSUserPhoto.ps1 | 2 +- README.md | 5 +++++ ci/NuGetDependencies.json | 14 +++++++------- 5 files changed, 20 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9034fb4..0a962dd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ * [PSGSuite - ChangeLog](#psgsuite---changelog) + * [2.32.3 - 2019-09-18](#2323---2019-09-18) * [2.32.2 - 2019-09-15](#2322---2019-09-15) * [2.32.1 - 2019-09-14](#2321---2019-09-14) * [2.32.0 - 2019-09-12](#2320---2019-09-12) @@ -99,6 +100,11 @@ # PSGSuite - ChangeLog +## 2.32.3 - 2019-09-18 + +* [Issue #234](https://github.com/scrthq/PSGSuite/issues/234) + * Fixed: `Update-GSUserPhoto` errors by switching to `[System.IO.File]::ReadAllBytes($path)`. + ## 2.32.2 - 2019-09-15 * [Issue #225](https://github.com/scrthq/PSGSuite/issues/225) diff --git a/PSGSuite/PSGSuite.psd1 b/PSGSuite/PSGSuite.psd1 index fd8c2655..ff932c2c 100644 --- a/PSGSuite/PSGSuite.psd1 +++ b/PSGSuite/PSGSuite.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSGSuite.psm1' # Version number of this module. - ModuleVersion = '2.32.2' + ModuleVersion = '2.32.3' # ID used to uniquely identify this module GUID = '9d751152-e83e-40bb-a6db-4c329092aaec' diff --git a/PSGSuite/Public/Users/Update-GSUserPhoto.ps1 b/PSGSuite/Public/Users/Update-GSUserPhoto.ps1 index b850ea6e..1d196df8 100644 --- a/PSGSuite/Public/Users/Update-GSUserPhoto.ps1 +++ b/PSGSuite/Public/Users/Update-GSUserPhoto.ps1 @@ -48,7 +48,7 @@ function Update-GSUserPhoto { $User = "$($User)@$($Script:PSGSuite.Domain)" } $mimeType = Get-MimeType -File $Path - $photoData = [System.Convert]::ToBase64String((Get-Content $Path -Encoding Byte)) | Convert-Base64 -From Base64String -To WebSafeBase64String + $photoData = [System.Convert]::ToBase64String(([System.IO.File]::ReadAllBytes($Path))) | Convert-Base64 -From Base64String -To WebSafeBase64String $body = New-Object 'Google.Apis.Admin.Directory.directory_v1.Data.UserPhoto' -Property @{ PhotoData = $photoData MimeType = $mimeType diff --git a/README.md b/README.md index c5198bd4..8900ed4f 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,11 @@ All other functions are either intact or have an alias included to support backw [Full CHANGELOG here](https://github.com/scrthq/PSGSuite/blob/master/CHANGELOG.md) +#### 2.32.3 - 2019-09-18 + +* [Issue #234](https://github.com/scrthq/PSGSuite/issues/234) + * Fixed: `Update-GSUserPhoto` errors by switching to `[System.IO.File]::ReadAllBytes($path)`. + #### 2.32.2 - 2019-09-15 * [Issue #225](https://github.com/scrthq/PSGSuite/issues/225) diff --git a/ci/NuGetDependencies.json b/ci/NuGetDependencies.json index cdd4f95c..c5447232 100644 --- a/ci/NuGetDependencies.json +++ b/ci/NuGetDependencies.json @@ -51,7 +51,7 @@ "Name": "Google.Apis.Classroom.v1.dll", "BaseName": "Google.Apis.Classroom.v1", "Target": "Latest", - "LatestVersion": "1.41.1.1712" + "LatestVersion": "1.41.1.1713" }, { "Name": "Google.Apis.Core.dll", @@ -69,13 +69,13 @@ "Name": "Google.Apis.Drive.v3.dll", "BaseName": "Google.Apis.Drive.v3", "Target": "Latest", - "LatestVersion": "1.41.1.1705" + "LatestVersion": "1.41.1.1708" }, { "Name": "Google.Apis.DriveActivity.v2.dll", "BaseName": "Google.Apis.DriveActivity.v2", "Target": "Latest", - "LatestVersion": "1.41.1.1710" + "LatestVersion": "1.41.1.1713" }, { "Name": "Google.Apis.Gmail.v1.dll", @@ -93,7 +93,7 @@ "Name": "Google.Apis.HangoutsChat.v1.dll", "BaseName": "Google.Apis.HangoutsChat.v1", "Target": "Latest", - "LatestVersion": "1.41.1.1707" + "LatestVersion": "1.41.1.1716" }, { "Name": "Google.Apis.Licensing.v1.dll", @@ -111,7 +111,7 @@ "Name": "Google.Apis.PeopleService.v1.dll", "BaseName": "Google.Apis.PeopleService.v1", "Target": "Latest", - "LatestVersion": "1.41.1.1713" + "LatestVersion": "1.41.1.1715" }, { "Name": "Google.Apis.PlatformServices.dll", @@ -123,7 +123,7 @@ "Name": "Google.Apis.Script.v1.dll", "BaseName": "Google.Apis.Script.v1", "Target": "Latest", - "LatestVersion": "1.41.1.1710" + "LatestVersion": "1.41.1.1714" }, { "Name": "Google.Apis.Sheets.v4.dll", @@ -141,7 +141,7 @@ "Name": "Google.Apis.Tasks.v1.dll", "BaseName": "Google.Apis.Tasks.v1", "Target": "Latest", - "LatestVersion": "1.41.1.1711" + "LatestVersion": "1.41.1.1713" }, { "Name": "Google.Apis.Urlshortener.v1.dll",