Skip to content

Commit

Permalink
pushing updates for v2.26.1
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Apr 7, 2019
1 parent a3194d1 commit 4dbfb43
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 23 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
* [Issue #172](https://github.com/scrthq/PSGSuite/issues/172)
* Fixed: `New-GoogleService` now using `New-Object` to prevent `[Google.Apis.Util.Store.FileDataStore]::new()` constructor issues in PowerShell 4.
* [Issue #173](https://github.com/scrthq/PSGSuite/issues/173)
* Added: `FolderColorRgb` parameter to `New-GSDriveFile` and `Update-GSDriveFile` - _Thanks, [@WJurecki](https://github.com/WJurecki)!_
* Added: `FolderColorRgb` parameter to `New-GSDriveFile` and `Update-GSDriveFile` to enable setting the color of a folder in Drive - _Thanks, [@WJurecki](https://github.com/WJurecki)!_
* [PR #174](https://github.com/scrthq/PSGSuite/pull/174) - _Thanks, [@WJurecki](https://github.com/WJurecki)!_
* Fixed: `Get-GSDriveFileList` filter concatenation so it joins multiple filters with ` and ` instead of just a space ` `.

Expand Down
11 changes: 6 additions & 5 deletions PSGSuite/Public/Drive/Get-GSDriveFileList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function Get-GSDriveFileList {
if ($Filter) {
$Filter += "'$ParentFolderId' in parents"
$PSBoundParameters['Filter'] += "'$ParentFolderId' in parents"
}
else {
$Filter = @("'$ParentFolderId' in parents")
$PSBoundParameters['Filter'] = @("'$ParentFolderId' in parents")
Expand Down Expand Up @@ -119,8 +120,8 @@ function Get-GSDriveFileList {
foreach ($key in $PSBoundParameters.Keys) {
switch ($key) {
Filter {
$FilterFmt = $PSBoundParameters[$key] -replace " -eq ","=" -replace " -like ",":" -replace " -match ",":" -replace " -contains ",":" -creplace "'True'","True" -creplace "'False'","False" -replace " -in "," in " -replace " -le ",'<=' -replace " -ge ",">=" -replace " -gt ",'>' -replace " -lt ",'<' -replace " -ne ","!=" -replace " -and "," and " -replace " -or "," or " -replace " -not "," not "
$request.Q = $($FilterFmt -join " and ")
$FilterFmt = ($PSBoundParameters[$key] -join " and ") -replace " -eq ","=" -replace " -like ",":" -replace " -match ",":" -replace " -contains ",":" -creplace "'True'","True" -creplace "'False'","False" -replace " -in "," in " -replace " -le ",'<=' -replace " -ge ",">=" -replace " -gt ",'>' -replace " -lt ",'<' -replace " -ne ","!=" -replace " -and "," and " -replace " -or "," or " -replace " -not "," not "
$request.Q = $FilterFmt
}
Spaces {
$request.$key = $($PSBoundParameters[$key] -join ",")
Expand All @@ -132,11 +133,11 @@ function Get-GSDriveFileList {
}
}
}
if ($Filter) {
Write-Verbose "Getting all Drive Files matching filter '$Filter' for user '$User'"
if ($FilterFmt) {
Write-Verbose "Getting all Drive Files for User '$User' matching Filter: $FilterFmt"
}
else {
Write-Verbose "Getting all Drive Files for user '$User'"
Write-Verbose "Getting all Drive Files for User '$User'"
}
[int]$i = 1
do {
Expand Down
26 changes: 9 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@ Update-GSSheetValue Export-GSSheet

[Full CHANGELOG here](https://github.com/scrthq/PSGSuite/blob/master/CHANGELOG.md)

#### 2.26.1

* [Issue #172](https://github.com/scrthq/PSGSuite/issues/172)
* Fixed: `New-GoogleService` now using `New-Object` to prevent `[Google.Apis.Util.Store.FileDataStore]::new()` constructor issues in PowerShell 4.
* [Issue #173](https://github.com/scrthq/PSGSuite/issues/173)
* Added: `FolderColorRgb` parameter to `New-GSDriveFile` and `Update-GSDriveFile` to enable setting the color of a folder in Drive - _Thanks, [@WJurecki](https://github.com/WJurecki)!_
* [PR #174](https://github.com/scrthq/PSGSuite/pull/174) - _Thanks, [@WJurecki](https://github.com/WJurecki)!_
* Fixed: `Get-GSDriveFileList` filter concatenation so it joins multiple filters with ` and ` instead of just a space ` `.

#### 2.26.0

* [Issue #169](https://github.com/scrthq/PSGSuite/issues/169)
Expand All @@ -152,20 +161,3 @@ Update-GSSheetValue Export-GSSheet
* Updated: `New-GSUser` and `Update-GSUser` to add in Location support
* Miscellaneous
* Improved pipeline support for the `User` parameter across all pertinent functions, i.e. Drive, Calendar, Gmail, Sheets & Tasks APIs.

#### 2.25.3

* Miscellaneous
* Added: Pipeline support for `Remove-GSCalendarEvent`

#### 2.25.2

* [Issue #167](https://github.com/scrthq/PSGSuite/issues/167)
* Fixed: `Switch-PSGSuiteConfig -SetToDefault` failing with invalid scope errors

#### 2.25.1

* [PR #165](https://github.com/scrthq/PSGSuite/pull/165) - _Thanks, [@scv-m](https://github.com/scv-m)!_
* Updated: `Get-GSCourseParticipant` now supports pipeline input for CourseId to enable piping `Get-GSCourse` into it.
* [Issue #166](https://github.com/scrthq/PSGSuite/issues/166)
* Fixed: `Update-GSUser` would fail to update user phones due to incorrect variable name in the Process block, effectively skipping it.

0 comments on commit 4dbfb43

Please sign in to comment.