Skip to content

Commit

Permalink
!deploy v2.26.4 with fix for #177
Browse files Browse the repository at this point in the history
## 2.26.4

* [Issue #177](#177) - _Thanks, [@WJurecki](https://github.com/WJurecki)!_
  * Fixed: Fields parameter Get-GSDriveFileList would not set correctly with the default fields value, breaking the expected experience. Restored the same functionality
  • Loading branch information
scrthq committed Apr 26, 2019
1 parent acb007e commit 700d77c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

* [Changelog](#changelog)
* [2.26.4](#2264)
* [2.26.3](#2263)
* [2.26.2](#2262)
* [2.26.1](#2261)
Expand Down Expand Up @@ -85,6 +86,11 @@

***

## 2.26.4

* [Issue #177](https://github.com/scrthq/PSGSuite/issues/177) - _Thanks, [@WJurecki](https://github.com/WJurecki)!_
* Fixed: `Fields` parameter `Get-GSDriveFileList` would not set correctly with the default fields value, breaking the expected experience. Restored the same functionality

## 2.26.3

* [Issue #182](https://github.com/scrthq/PSGSuite/issues/182) - _Thanks, [@aitcriver](https://github.com/aitcriver)!_
Expand Down
2 changes: 1 addition & 1 deletion PSGSuite/PSGSuite.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PSGSuite.psm1'

# Version number of this module.
ModuleVersion = '2.26.3'
ModuleVersion = '2.26.4'

# ID used to uniquely identify this module
GUID = '9d751152-e83e-40bb-a6db-4c329092aaec'
Expand Down
8 changes: 4 additions & 4 deletions PSGSuite/Public/Drive/Get-GSDriveFileList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ function Get-GSDriveFileList {
if ($PageSize) {
$request.PageSize = $PageSize
}
foreach ($key in $PSBoundParameters.Keys) {
if ($Fields) {
$request.Fields = "$($Fields -join ",")"
}
foreach ($key in $PSBoundParameters.Keys | Where-Object {$_ -notin @('Fields','PageSize')}) {
switch ($key) {
Filter {
$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
}
Fields {
$request.Fields = "$($Fields -join ",")"
}
Spaces {
$request.$key = $($PSBoundParameters[$key] -join ",")
}
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ Update-GSSheetValue Export-GSSheet

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

#### 2.26.4

* [Issue #177](https://github.com/scrthq/PSGSuite/issues/177) - _Thanks, [@WJurecki](https://github.com/WJurecki)!_
* Fixed: `Fields` parameter `Get-GSDriveFileList` would not set correctly with the default fields value, breaking the expected experience. Restored the same functionality

#### 2.26.3

* [Issue #182](https://github.com/scrthq/PSGSuite/issues/182) - _Thanks, [@aitcriver](https://github.com/aitcriver)!_
Expand Down

0 comments on commit 700d77c

Please sign in to comment.